Java Reference
In-Depth Information
Executing Multiple Activities in a Sequence
Problem
You want to execute two or more activities sequentially.
Solution
Use a <sequence> container structure to encapsulate the activities. They will be executed in
the order in which they appear.
Discussion
Sequences do no work themselves, but rather define a structure around other activities. A
sequence uses only the standard attributes that are allowed for any activity ( name and sup-
pressJoinFailure ), and those are optional. A sequence must define one or more child activ-
ities. Apart from that, there's nothing more to it:
<sequence name="CheckInventory">
<receive name="InventoryServiceReceive"
partnerLink="inventorySevicePL"
portType="i:inventoryPortType"
operation="inventoryService"
variable="purchaseOrder"
createInstance="yes">
</receive>
<if name="ifQty">
<condition>...</condition>
//...
<else>
//...
</else>
</if>
<reply name="InventoryServiceReply"
partnerLink="inventorySevicePL"
portType="i:inventoryPortType"
operation="inventoryService"
variable="status"/>
</sequence>
This sequence will ensure that the receive, the conditional logic, and the reply all happen in
the specified order.
Search WWH ::




Custom Search