Using the BPEL Designer and Service Engine

Using the While Element

Use the While element to repeatedly execute one or more activities as long as specific conditions are in place at the beginning of each iteration. This element contains other elements that are repeated while success criteria you specify are met. If the condition you specify leads to false, none of the activities listed will be executed.

Note: the While element first checks the validity of the condition and then executes the iterative activity. Conversely, the Using the Repeat Until Element element first executes the activity and then checks the validity of the condition.

Usage

  1. In the Design view, drag the While element from the Palette to the diagram.

  2. Drag an activity that will be repeatedly executed and place it inside the While element. If needed, configure the activity's properties.

  3. Use the Properties window to specify the name and condition of the While element. You can enter the condition manually or use the BPEL Mapper to generate the condition for you.