Other Loops


BPEL provides two other loops: while and repeatUntil.

while Activity

The while activity defines a loop that iterates while a Boolean expression at the top of the loop evaluates to true. If the expression initially evaluates to false, the loop does not run.

 <while>    <condition>$numberOfDrivers &lt; 5</condition>    <sequence>       .       .    </sequence> </while> 

repeatUntil Activity

The repeatUntil activity defines a loop that always runs at least once. The loop iterates until the Boolean expression at the bottom of the loop evaluates to true.

 <repeatUntil>    <sequence>       .       .    </sequence>    <condition>$numberOfDrivers = 5</condition> </repeatUntil> 




SOA for the Business Developer. Concepts, BPEL, and SCA
SOA for the Business Developer: Concepts, BPEL, and SCA (Business Developers series)
ISBN: 1583470654
EAN: 2147483647
Year: 2004
Pages: 157
Authors: Ben Margolis

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net