Hi Joe,
The <while> activity only accepts a single child activity so you need to
wrap your multiple if's and assign into a sequence, e.g.
<while>
<condition> ... </condition>
<sequence>
<if> ... </if>
<if> ... </if>
<assign> ... </assign>
</sequence>
</while>
alex
On 11/3/07, jbi joe <[EMAIL PROTECTED]> wrote:
>
>
> Im experiencing some unexpected behavior during the processing
> inside of a "WHILE" loop. I have some logic structures that equate to
> boolean values that work very good. However, When I add in an
> if structure that contains a ASSIGN activity the WHILE loops appears
> to get stuck looping forever, even when I insert a boolean value
> to exit out of the WHILE loop at the very bottom of the loop.
> For Example:
>
> <while>
> <condition> ('$moreWork' = true() ) </condition>
> <if name="gotMilk">
> <condition> ("$gotMilk" = true() ) </condition>
> <assign name="SETsomeVariables">
> <!-- blah, blah set moreWork=false() here -->
> </assign>
> </if>
> <if name="checkinEvent1">
> <condition> ('$event1' = true() ) </condition>
> <sequence>
> <!-- do a syncronous invoke here -->
> </sequence>
> <elseif name="checkingEvent2">
> <condition> ('$event2' = true() ) </condition>
> <sequence>
> <!-- do a syncronous invoke here -->
> </sequence>
> </elseif>
> </if>
> <assign>
> <!-- I set moreWork= false() here, but loop KEEPS going
> forever. -->
> </asssign>
> </while>
>
>
> --
> View this message in context:
> http://www.nabble.com/Understanding-activity---BPEL-while-tf4742812.html#a13562452
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>