not sure what you are hinting at, Paul, but you are right in that Anja
could pass in a special 'first' value to recognize in the beanshell
script  (inserted via a string constant and a merge?) - this would
however mean that this would be the zeroth iteration before starting
with the real inputs - and in that case I would also still go for the
initialisation-beanshell. (What does it need to initialize?)


On Fri, Oct 30, 2009 at 15:59, Paul Fisher <[email protected]> wrote:
> Could you set it up to include the 1st value in a loop, then each new
> value added is in elements 2, 3, 4..... N ?
> I.e.
>
> my array[100] = "";
> array[0] = Orginal string;
>
> for loop on array(1 to 100)
> {
>   set new values in array;
> }
>
> For loop (length of array)
> {
>   print out values + "\n";
> }
>
> so you might have:
> Original Value
> New 2
> New 3
> New 4
> New 5
>
> Paul.
>
> Anja Le Blanc wrote:
>> Hi All,
>>
>> Sorry to pick up an old thread again. But is there a workaround to have
>> a global variable in the current version of Taverna (2.1 Beta 2)?
>>
>> I want to have a Beanshell which runs iteratively and always does one
>> thing, but the first time the inputs come in some configuration it
>> should also do something else (only the first time) - so I need to
>> remember a previous state somewhere.
>>
>> Best regards,
>> Anja
>>
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> 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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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/

Reply via email to