Book Image

WS-BPEL 2.0 Beginner's Guide

Book Image

WS-BPEL 2.0 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
WS-BPEL 2.0 Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  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:

  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:

  4. Let's create an <invoke> activity within the <forEach> activity so the <invoke> activity can be repeatedly executed:

What just happened?

In the preceding section...