On Tue, Apr 7, 2009 at 19:40, Richard Holland <[email protected]> wrote: > Quick question - just in case someone knows a quick answer: > a) if I want to put in a conditional statement in my workflow, with the > direction of output depending on the result of a test, is that possible? > Which activity type do I use?
You would need to implement a layer very similar to the Loop layer, but make it so that it chooses between two alternative activities. The processor can then have two (or more!) alternative nested workflows, and an additional input that is "activity" or something, this can just say the number of the activity you want to run. > What I'm trying to do here is construct a conditional loop: That is already directly supported in Taverna 2.0. > Get activity output > Loop While activity output = some predefined constant > Pause (to prevent hammering it) > Rerun same activity with same input and get new output > End Loop > Continue with next activity On the processor that you want to loop, click Advanced in the Contextual View, there enable looping. Click configure. Select the output port you want to compare for the predefined constant, the activity will loop until the value is as you specify. (Or alternatively, as long as it's not) Now, you want to add pauses, this is something we have planned to do but not yet added. Click Customize. A beanshell script should pop up. Add a line: Thread.sleep(300); // For 300 ms -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ taverna-hackers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/taverna-hackers Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq
