The datatypes are a hierarchy, and tools will accept any type that is
more specific than their defined input type. If you set the input type
to "data" the tool will accept anything, if you set it to "text" it
will accept any text format.
For outputs, there is a special format "input" which copies the type
of the input dataset (first input I believe, this needs to be enhanced
to allow specifying a particular input). There is also the
"metadata_source" attribute for copying the input metadata. This is
how many of our tools that work on tabular data preserve the type and
metadata of "interval" format files.
On Nov 25, 2008, at 6:14 AM, James Casbon wrote:
Is there a way to define a tool which accepts more any type of
It should ideally preserve the format in the output as well.