pp108 : While

While

This topic describes a While group construct.


While is a BPMN group construct which is used to group activities or sub-processes that should be executed while the condition is satisfied. At the start of every While loop, the condition is tested and if found 'false' will not be executed. Accordingly, the activities or sub-processes are executed zero or more times. The While construct is used when the loop is to be executed more number of times or none at all; that is to say, it will not be executed if the condition is false from the start. While construct is graphically represented as follows:

Example of a While Loop


In a stock verification and update process, a condition can be set to send a notification to the Purchase Manager while the stock is less than 10 units.

The above example can be modeled with the following condition: Notify the Purchase Manager while (stock is less than 10 units) .

Related tasks

Setting the Properties of 'While' Construct