Designer > Implementing a BPMN Gateway or Control Flow > While


BPMN Implementation: Loop
The While activity executes an activity repeatedly until its condition evaluates to false.
In contrast to the Repeat Until activity, the While loop may not execute the contained activity at all.
Required Properties
Optional Properties
Name. See Selecting Activity Labels
Join Condition. See Creating a Join Condition for an Incoming Link
Suppress Join Failure. See Process Properties
Comment. See Adding Comments to a Process
Documentation. See Adding Documentation to a Process
See Setting Visual Properties and Using Your Own Library of Images.
Execution State. See Viewing the Execution State of an Activity or Link
Extension Attributes and Extension Elements. See Declaring Extension Elements and Attributes.
To build a While:
  1. 1. From the Control Flow palette, drag a Loop activity to the Process Editor canvas.
  2. 2. Double-click the Qhile to open the Condition Builder. For details, see Using the Expression Builder.
  3. 3. Drag an activity, such as a Scope or Invoke, inside the While.
  4. 4. Specify all the properties for each activity in the while.
XML Syntax
<while standard-attributes>
<condition expressionLanguage="anyURI"?>
$orderDetails > 100