WSO2 BPS - Sample Guide - While

Sample Guide - While

Table of Content


Objective

Show how to use <while/> , where sequential iterations of repetitive tasks are required.


Prerequisites


Overall Idea

Refer TestWhile.zip

<whilename="While"><condition><![CDATA[$counter < 10]]></condition><assignvalidate="no"name="IncrementInput"><copy><from><![CDATA[$counter + 1]]></from><tovariable="counter"></to></copy></assign></while>

Here we increment counter variable until it's equal to 10.