Bug report: on Ubuntu 8.10 / Java build 1.6.0_10-b33 - after setting the
Loop condition, the loop window reformats itself all weird (you can only
see text labels, no fields, and even the text labels are only partially
visible) and so it becomes unusable and uneditable.

Question: in the string box for loop condition, when using 'matches' in
the drop down, do you enter a standard regex? Do I need to include the
Java ^ and $ line start/end matchers, or just ".*XYZ.*" to match any
string including "XYZ"?


Stian Soiland-Reyes wrote:
> 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
> 

-- 
Richard Holland, BSc MBCS
Finance Director, Eagle Genomics Ltd
T: +44 (0)1223 654481 ext 3 | E: [email protected]
http://www.eaglegenomics.com/

------------------------------------------------------------------------------
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

Reply via email to