<activity xmlns="http://taverna.sf.net/2008/xml/t2flow"><class>net.sf.taverna.t2.activities.localworker.LocalworkerActivity</class><inputMap /><outputMap /><configBean encoding="xstream"><net.sf.taverna.t2.activities.localworker.LocalworkerActivityConfigurationBean xmlns=""> | |
<script>flatten(inputs, outputs, depth) { | |
for (i = inputs.iterator(); i.hasNext();) { | |
element = i.next(); | |
if (element instanceof Collection && depth > 0) { | |
flatten(element, outputs, depth - 1); | |
} else { | |
outputs.add(element); | |
} | |
} | |
} | |
outputlist = new ArrayList(); | |
flatten(inputlist, outputlist, 1);</script> | |
<dependencies /> | |
<inputs> | |
<net.sf.taverna.t2.workflowmodel.processor.activity.config.ActivityInputPortDefinitionBean> | |
<handledReferenceSchemes /> | |
<translatedElementType>[B</translatedElementType> | |
<allowsLiteralValues>true</allowsLiteralValues> | |
<name>inputlist</name> | |
<depth>2</depth> | |
<mimeTypes> | |
<string>l(l(''))</string> | |
</mimeTypes> | |
</net.sf.taverna.t2.workflowmodel.processor.activity.config.ActivityInputPortDefinitionBean> | |
</inputs> | |
<outputs> | |
<net.sf.taverna.t2.workflowmodel.processor.activity.config.ActivityOutputPortDefinitionBean> | |
<granularDepth>1</granularDepth> | |
<name>outputlist</name> | |
<depth>1</depth> | |
<mimeTypes> | |
<string>l('')</string> | |
</mimeTypes> | |
</net.sf.taverna.t2.workflowmodel.processor.activity.config.ActivityOutputPortDefinitionBean> | |
</outputs> | |
</net.sf.taverna.t2.activities.localworker.LocalworkerActivityConfigurationBean></configBean></activity> |