Pattern: Return errors instead of null
As Taverna can't (currently) handle null (see http://www.mygrid.org.uk/dev/issues/browse/TAV-653) - in Taverna 2 one can instead return exceptions on individual ports and inside lists.
Exceptions are registered as error documents by Taverna, and are passed along. The ErrorBounce layer of processors downstream will prevent execution if they see this 'null'-exception - as showed in this example that the string concatination is just run for the two list elements that are not exceptions. Downstream processors that don't read the port with an error on it's output are not affected.
This pattern could be used for instance for database lookups. A database NULL has semantically almost the same meaning as error documents in Taverna - placeholders for the expected value.
TAV-653 suggests registering a special exception that is defined as null, so that future null-supporting services/beanshell scripts can dereference the error as null again - while services that can't handle it will behave like in this workflow.
Preview
Run
Run this Workflow in the Taverna Workbench...
Option 1:
Copy and paste this link into File > 'Open workflow location...'
http://myexperiment.org/workflows/1009/download?version=1
[ More Info ]
Workflow Components
Reviews (0)
Other workflows that use similar services (0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment