On Thu, Jul 30, 2009 at 17:40, Wei Tan<[email protected]> wrote:

>    I have a workflow which contains two wsdl operations: 1. submit the
> job 2. get result
> If the result is not available yet the 2nd operation will return a soap
> fault. Can I tell Taverna to keep retry, say every 30 seconds until a
> non-fault result is obtained?

Yes, but the UI for setting this is not currently exposed in Taverna
2.. you would have to edit the XML manually and look for
'RetryConfig'.

As the indentation of .t2flows are currently a bit messy, you might
want to use an XML editor that shows you the XML tree structure - in
that way you can be sure you are editing the right processor. Change
this bit:

<class>net.sf.taverna.t2.workflowmodel.processor.dispatch.layers.Retry</class>
<configBean 
encoding="xstream"><net.sf.taverna.t2.workflowmodel.processor.dispatch.layers.RetryConfig
xmlns="">
  <backoffFactor>1.0</backoffFactor>
  <initialDelay>1000</initialDelay>
  <maxDelay>5000</maxDelay>
  <maxRetries>0</maxRetries>
</net.sf.taverna.t2.workflowmodel.processor.dispatch.layers.RetryConfig>


Set maxRetries to a number that fits you - if you set it to 7 in this
case, it will try 7 times with 1000ms between each time - so a total
of 6 seconds. (It doesn't sleep after the last failure - )

The backoffFactor is used as a multiplication factor for each retry,
so if you set it to 1.1 instead, it would sleep like this:

1000
1100
1210
1331
1464
1610

.. although the number would never go higher than maxDelay





If you have a separate kind of getStatus method on the service you can
use the Loop function - click Details -> Advanced and enable looping.
Note that you would have to make a connection from the output port to
something else in the workflow (like an additional workflow output) to
be able to test it.  - you can then do a 'Run after' from getOutput to
detStatus - see http://www.myexperiment.org/workflows/820

(In that example the looping has also been customized to add a delay)



-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to