How To Create a While Activity

To create a while activity:

  1. In the Components window, expand BPEL Constructs.
  2. Drag a While activity into the designer.
  3. Click the + sign to expand the while activity.

    The while activity has icons to allow you to build condition expressions and to validate the while definition. It also provides an area for you to drag an activity to define the while loop.

  4. Drag and define additional activities for using the while condition into the Drop Activity Here area of the While activity (for example, a Scope activity).

    The activities can be existing or new activities.

  5. Click the XPath Expression Builder icon to open the Expression Builder dialog.
  6. Enter an expression to perform repeatedly, as shown in Figure 11-9. This action is performed until the given boolean while condition is no longer true. In this example, this activity is set to loop while less than 5.

    Figure 11-9 While Activity with an Expression

    Description of Figure 11-9 follows
    Description of "Figure 11-9 While Activity with an Expression"
  7. Click OK when complete.