Let's now modify the BookWarehousingBPEL
process so that the BookstoreA
and BookstoreB
services will be invoked in parallel. We should do the following:
To invoke
BookstoreA
andBookstoreB
services in parallel, we need to add the Flow structured activity to the process flow just before the first invocation, as shown in the following screenshot:We can see that two parallel branches have been created. We simply drag-and-drop both the invoke activities into the parallel branches:
That's all! We can create more parallel branches if we need to by clicking on the Add Sequence icon.
We have modified the BookWarehousingBPEL
process so that the BookstoreA
and BookstoreB
<invoke>
activities are executed in parallel. A corresponding <flow>
activity has been created in the BPEL source code. Within the <flow>
activity, both <invoke>
activities are nested. Please notice that each <invoke>
activity is placed within...