Hi,
thanks for your fast answer. I tried this method and it works fine.
However I had a problem to get the result as a single value instead of a
list. I am working with images as byte arrays. When I created a
beanshell to get the value, the beanshell service converts the byte
array to a String. I saw that the "Byte Array To String" service sets
the mime type and translatedElementType of the beanshell inputport to
"'application/octet-stream'" and "[B" and changed that manually in my
workflow XML.
<net.sf.taverna.t2.workflowmodel.processor.activity.config.ActivityInputPortDefinitionBean>
<name>input</name>
<depth>2</depth>
<mimeTypes>
<string>'application/octet-stream'</string>
</mimeTypes>
<handledReferenceSchemes />
<translatedElementType>[B</translatedElementType>
<allowsLiteralValues>true</allowsLiteralValues>
</net.sf.taverna.t2.workflowmodel.processor.activity.config.ActivityInputPortDefinitionBean>
Is there any other way or is this correct?
Regards,
Markus
>> Hi,
> Hello
>
>> > I'm currently trying to make a conditional branch in a workflow.
>> > According to to the document "Differences between Taverna 1 and Taverna
>> > 2 workflows"
>> > (http://www.mygrid.org.uk/dev/wiki/display/developer/Differences+between+Taverna+1+and+Taverna+2+workflows#DifferencesbetweenTaverna1andTaverna2workflows-Branchingbyerrordocument)
>> > the preferred method is to produce ErrorDocuments for the branch that
>> > should not be executed. So the error documents get passed along to the
>> > output of the workflow.
>> > The document states that "It should be possible to write a shim that
>> > merges these two lists and removes the error documents.". Is there a way
>> > to do this (because a beanshell service fails if there is any error in
>> > the input, http://www.mygrid.org.uk/dev/issues/browse/T2-1991)?.
> That document is out of date. I will ask for it to be updated.
>
>> > Otherwise is there any other way to implement branching?
> Yes. If you look in the starter pack on myExperiment you should see
> http://www.myexperiment.org/workflows/2561.html (Example of conditional
> invocation).
>
>> > Regards,
>> >
>> > Markus
> Alan
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/