Version 3.0 - September, 2006
For Each Activity
Introduction
The For Each Activity
The Continue and Break Activities
Deploying the Process
Running the Process

Using ActiveBPEL Designer's extension activities for BPEL4WS 1.1 (forEach, break, and continue)

Introduction

There are two samples included that are intended to demonstrate the use of the forEach, break, and continue activities. It is important to note that these activities are not part of the BPEL4WS 1.1 specification; they are ActiveBPEL extensions. The forEach activity will be part of the upcoming WSBPEL 2.0 specification and the syntax that is being used is the same syntax that has been approved by the WSBPEL technical committee at the time of this implementation. The break and continue activities have proposals for inclusion in the WSBPEL specification but these have not been approved. The implementation of these activities follow the proposals as closely as possible. Information on the syntax and symantics of these activities can be found both later in this document as well as in the documentation included with ActiveBPEL Designer.

Example 1

In this example, a forEach activity is used to traverse a sequence of order detail elements. The process consists of:

The diagram below is a visual representation of the process. The process is instantiated when an order message is received and the response is sent after the execution of the forEach activity.

for each example

The easiest way to visulaize the effects of executing in paralell or in sequence is to view the execution via simaultion or remote debugging using ActiveBPEL Designer. The pictures below show the debug view when executing in paralell and in sequence

for each executing in paralell for each with break and continue example

Example 2

In this example, a forEach activity is used to traverse the same set of order detail elements but in this case we introduce the new break and continue activities. The process consists of: