it can be dangerous using the fail_if_false and fail_if_true processors of Taverna 1. Let's say you have two fail_if_true processors, and two shims above that tests equality to 'RUNNING' and 'COMPLETED'. You have now not covered any case like 'TERMINATED' - and neither of the processors will fail. This means in Taverna 1 that both branches will run, and whichever finishes first (probably not the one getting the data) will win.
In Taverna 2 you can configure looping for the getStatus processor, you can do something like 'while status is equal to "RUNNING"' - which is safer than 'while it is not complete' - as it would cover the error cases as well - avoiding the infinite loop. You would probably want to customize the looping though, so you can check for both RUNNING and PENDING - and so you can put a little Thread.sleep(500); to avoid killing the getStatus service - see http://www.myexperiment.org/workflows/820 for an example. You would have to modify it for the different status messages as pointed out by Mahmut. On Fri, Jul 24, 2009 at 15:35, Mahmut Uludag<[email protected]> wrote: > >> I forgot to tell you that the workflow was by taverna 1.7.2 > > I apologise not testing it with taverna-1.7 before returning you. > > I just checked that if you update your bean shell with the following > condition your workflow works. > > if(job_status.equals("COMPLETED")||job_status.startsWith("TERMINATED")) > > Different than other EBI web services Soaplab web services doesn't have > the status DONE but instead it has COMPLETED, TERMINATED_BY_REQUEST, and > TERMINATED_BY_ERROR. > > Regards, > Mahmut > > > > ------------------------------------------------------------------------------ > _______________________________________________ > taverna-users mailing list > [email protected] > [email protected] > Web site: http://www.taverna.org.uk > Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ > -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ _______________________________________________ taverna-users mailing list [email protected] [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
