Version 1
(of 1)
|
Version created on:
04/01/10 @ 17:42:36
by:
Stian Soiland-Reyes
|
Revision comments
Last edited on: 04/01/10 @ 17:50:00 by: Stian Soiland-Reyes
Title: Pattern: Return errors instead of null
Type: Taverna 2
Preview
(Click on the image to get the full size)
Description
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.
Download
Run
Option 1:
Copy and paste this link into File > 'Open workflow location...'
http://www.myexperiment.org/workflows/1009/download?version=1
[ More Info
]
Workflow Components
Authors (1)
Titles (1)
Descriptions (0)
Workflow Type
Log in to add Tags
Shared with Groups (0)
None
Current:
0.0 / 5
(0 ratings)
Log in to rate and see breakdown of ratings
Statistics
None
Earliest Version:
[1] - Pattern: Return errors instead of null
This Workflow only has one version.
Reviews
(0)
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Linked Data
Non-Information Resource URI: http://www.myexperiment.org/workflows/1009
Alternative Formats
Copyright © 2007 - 2011 The University of Manchester and University of Southampton
No comments yet
Log in to make a comment