Paolo has identified a bug in looping - if a processor output port is not connected to anything in the workflow, the loop condition can't test on this output port - and the workflow might never finish. The simplest workaround is to connect it to a new workflow output port.
See http://www.mygrid.org.uk/dev/issues/browse/T2-641 Not sure what priority we should put on this bug.. Alan? ---------- Forwarded message ---------- From: Stian Soiland-Reyes <[email protected]> Date: Thu, Jun 11, 2009 at 09:46 Subject: Re: loops in Taverna To: Paolo Missier <[email protected]> counter is received as a string, not an integer. counter++ won't work. Parse the string to an Integer. The initial value of counter is not provided - add a string constant with value 0. There's some kind of nasty bug in that if you have not connected the output port you want to check to the outside world (ie. doesn't have a processor output port), then the condition won't be able to find it. See revised version. On Thu, Jun 11, 2009 at 09:24, Paolo Missier<[email protected]> wrote: > I am trying to write the simplest possible beanshell that makes use of the > loop layer (attached) and I keep failing. What am I doing wrong? -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ Developers Guide: http://www.mygrid.org.uk/tools/developer-information
