Designer > Implementing a BPMN Gateway or Control Flow > Repeat Until
  

Repeat Until

BPMN Implementation: Repeat Pattern
The Repeat Until activity executes an activity repeatedly until its condition evaluates to true. In contrast to the While activity, the Repeat Until loop executes the contained activity at least once.
See also Ungrouping Selected Structured Activities.
Required Properties
Optional Properties
Condition
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 Repeat Until:
  1. 1. From the Control Flow palette, drag a Repeat Pattern activity to the Process Editor canvas.
  2. 2. Double-click the Repeat Until to open the Condition Builder and build a Boolean expression. For details, see Using the Expression Builder.
  3. 3. Drag an activity, such as a Scope or Invoke, inside the Repeat Until.
  4. 4. Specify all the properties for each activity in the Repeat Until.
XML Syntax
<repeatUntil standard-attributes>
standard-elements
activity
<condition expressionLanguage="anyURI"?>
bool-expr
</condition>
</repeatUntil>
Example:
<repeatUntil>
<condition
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:
xpath1.0">$counter &gt; 0
</condition>
<sequence>
<assign name="IncrementCounter">
<copy>
<from>$counter + 1</from>
<to variable="counter"/>
</copy>
</assign>
<wait name="WaitTwoSeconds">
<for expressionLanguage=
"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
'PT2S'
</for>
</wait>
</sequence>
</repeatUntil>