Hello,

Using Taverna 2.3 i've created a workflow consisting of a single beanshell
processor. This processor has two input ports (single value - depth 0) and
one output port. Then created two workflow input ports again with depth 0
(single value). I've tested it and it has worked.

Later i've created a new workflow and added the previous workflow as a
nested workflow. To iterate many times over the previous workflow, i have
added two workflow input ports with depth 1. As list handling method i set
dot product.

I run the new workflow with two list of values. If in any of the iteration
an error happens, i see it in the workflow results, in the output port's
list. After restarting the taverna, however, the output port's result were
not there anymore. A warning during execution has been issued, which is
probably the cause:

WARN  2012-04-24 10:08:26,098
(net.sf.taverna.t2.provenance.lineageservice.WorkflowDataProcessor:215) -
No workflow port data for /o:abc_Beanshell_out1

A possible fix:

I studied the WorkflowDataProcessor class a little and found that a for
loop at line 114 is enclosed in a try catch:

try{ // line 112
    for(...){ // line 114
        ......
       }
 }catch(SQLException e){....}

If an exception happens in the loop, it will be catched in the catch clause
but also it means that the for loop won't complete. So i changed it to:

for(...){
   try{
       ......
   }catch(SQLException e){...}
}

This has solved my problem but someone needs to check for the side effects.

Best wishes,
Ilhami Visne

P.S.: For testing one can create a beanshell with two input ports for two
number values and in the beanshell these two number can be divided. To
cause an error one of the number can be zero.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to