The While action executes an action or a block of actions until a specified expression evaluates to false. Since the test of expression takes place before each execution of the loop, a while loop executes zero or more times.
While (Boolean-Expression)
Action-Block ...
int index = 0 |
|
While (index <= PurchaseOrderSchema:order.itemCount) |
|
Execute rule "CalculateDiscountsRule" |
|
Assign index = index + 1 |