Hi,

I defined a workflow, that contains a loop node. I wanted to write it 
somehow like this (here pseudo code):

loop
{
  ...
  $result = do something
  XOR
    ( if !$result
        go to start of loop
      else
        jump outside.
    )
}
...

Unfortunately, the loop node needs more than one outnode. So I need to 
redefine my workflow to something like:

loop
    ( if !$result
        go in loop
      else
        jump after loop node
    )
{
  ...
  $result = do something
}
...

Of course, the code is the same (and I did it like that for now). But 
for reading and writing the definition, this is not really intuitive, 
as in the beginning you are confronted with a $result, where you do not 
know anything about it. (I did not run the workflow yet as I do not 
have the workflow definition and a running setup at home. So I don't 
know, if an exception will be thrown in the loop node until $result is 
defined before.)

So the question is, if it is possible to enhance the loop node not to 
require several conditional out nodes or if this is needed by the 
implementation.

Have a nice day

Thomas
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to