Java Reference
In-Depth Information
Executing Activities in Parallel
Problem
You want to execute a set of related activities concurrently.
Solution
Use the BPEL <flow> structured activity.
Discussion
In its simplest form, the <flow> appears much like a <sequence> , in that it is merely a con-
tainer for other activities that do actual work. The difference is that all of the items specified
within the <flow> are executed at roughly the same time. In other words, one does not wait
for another to finish, and therefore you cannot treat the result of one operation within a flow
as the input to another. Here is an example:
<else>
<sequence name="Purchase">
<flow name="SaleCompletedNotifyFlow">
<invoke name="NotifySeller"
partnerLink="contactPLink"
operation="contactService"
portType="ct:contactPortType"
inputVariable="ContactServiceIn"
outputVariable="ContactServiceOut"/>
<invoke name="NotifyShipper"
partnerLink="requestShippingPLink"
operation="shippingService"
portType="shp:shippingPortType"
inputVariable="ShippingServiceIn"
outputVariable="ShippingerviceOut"/>
</flow>
<assign name="AssignValues">
//...
Search WWH ::




Custom Search