Sample Guide - While
Show how to use <while/> , where sequential iterations of repetitive tasks are
required.
- Log in into BPS server admin console.
- Under Business Processes -> Add BPEL.
- Upload the TestWhile.zip , (all samples are located at our sample repository.)
- Under the Business Processes -> Processes.
- Under the WSDL details widget -> Create instance
Refer TestWhile.zip
<while name="While">
<condition><![CDATA[$counter < 10]]></condition>
<assign validate="no" name="IncrementInput">
<copy>
<from><![CDATA[$counter + 1]]></from>
<to variable="counter"/>
</copy>
</assign>
</while>
Here we increment counter variable until it's equal to 10.