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 us define repetitive tasks in sequential or in parallel. Let's see how it works.
In this chapter, we will cover the following topics:
- Introducing dynamic parallel invocations
- Adding dynamic parallel...