Chapter 8. Dynamic Parallel Invocations

Until now we have seen how to do parallel activity execution with a <flow> activity. We also learned about the <while> and <repeatUntil> activities, which support for repetitive executions. Suppose the BPEL process needs to read 10 data entries from a database. The BPEL process should execute the same data retrieval command with a different index in each command. This is a repetitive task, so we can use <while> or <repeatUntil> to achieve it. However, this can be parallelized as well. Each data retrieval command is executed in a parallel manner than in a sequential repetitive manner. How can a BPEL process execute a set of repetitive tasks in parallel?

The <forEach> activity comes to the rescue. It lets ...

Get WS-BPEL 2.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.