Time for action – adding a <forEach> activity

Carry out the following steps:

  1. Drag-and-drop a <forEach> activity from the BPEL constructs palette in between the receiveInput and callbackClient activities. Then, the basic configurations of the <forEach> activity can be set as follows:
    Time for action – adding a <forEach> activity
  2. To set the Counter Name, double-click on the added <forEach> activity. On the General tab, set Counter Name as foreach_counter. Subtasks within the <forEach> activity can be parallalized by ticking the Parallel Execution checkbox, as shown in the following screenshot:
    Time for action – adding a <forEach> activity
  3. To set the <startCounterValue> and <finalCounterValue>, go to the Counter Values tab. Set the unsigned integer expressions for start and final counter values. Then click on Apply and then on OK, as shown in the following screenshot:
    Time for action – adding a <forEach> activity
  4. Let's create an <invoke> activity within the <forEach> activity so the <invoke> activity can be repeatedly executed:
    Time for action – adding a <forEach> activity

What just happened?

In the preceding section, we added a <forEach> activity and configured its essential parameters such as initial counter value and counter value at completion. Finally, we added an uninitialized <invoke> activity that will be configured in the next section as the repetitive execution logic. There are other configuration parameters that define the execution behavior of a <forEach> activity, which were not covered in the last section. However, they are discussed later.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset