39 lines
1022 B
XML
39 lines
1022 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<process-definition name="flow" revision="1.0">
|
|
<description>Pattern 17 (Interleaved Parallel Routing)</description>
|
|
|
|
<!-- Start with an implicit simple split. -->
|
|
<start-task>
|
|
<successor>one1</successor>
|
|
<successor>two1</successor>
|
|
</start-task>
|
|
|
|
<!-- Branch 1 -->
|
|
<task name="one1">
|
|
<lock>one_task_at_a_time</lock>
|
|
<successor>join</successor>
|
|
</task>
|
|
<!-- End branch 1 -->
|
|
|
|
<!-- Branch 2 -->
|
|
<task name="two1">
|
|
<lock>one_task_at_a_time</lock>
|
|
<successor>two2</successor>
|
|
</task>
|
|
<task name="two2">
|
|
<lock>one_task_at_a_time</lock>
|
|
<successor>join</successor>
|
|
</task>
|
|
<!-- End branch 2 -->
|
|
|
|
<!-- Join all branches. -->
|
|
<join name="join">
|
|
<successor>last</successor>
|
|
</join>
|
|
|
|
<!-- A final task. -->
|
|
<task name="last">
|
|
<successor>end</successor>
|
|
</task>
|
|
</process-definition>
|