spiff-arena/tests/SpiffWorkflow/data/spiff/control-flow/persistent_trigger.xml

49 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<process-definition name="flow" revision="1.0">
<description>Pattern 15 (Multiple Instances without a priori Run-Time Knowledge)</description>
<!-- Start with an implicit simple split. -->
<start-task>
<successor>trigger_before_1</successor>
<successor>add_instance_1</successor>
<successor>multi_instance_1</successor>
<successor>trigger_after_1</successor>
</start-task>
<!-- Branch 1 -->
<trigger name="trigger_before_1" context="add_instance_1">
<successor>trigger_before_2</successor>
</trigger>
<trigger name="trigger_before_2" context="add_instance_1">
<successor>last</successor>
</trigger>
<!-- End branch 1 -->
<!-- Branch 2 -->
<trigger name="add_instance_1" context="multi_instance_1" times="0">
<successor>last</successor>
</trigger>
<!-- End branch 2 -->
<!-- Branch 3 -->
<multi-instance name="multi_instance_1" times="0">
<successor>task_g1</successor>
</multi-instance>
<task name="task_g1">
<successor>last</successor>
</task>
<!-- End branch 3 -->
<!-- Branch 4 -->
<trigger name="trigger_after_1" context="add_instance_1">
<successor>last</successor>
</trigger>
<!-- End branch 4 -->
<!-- A final task. -->
<task name="last">
<successor>end</successor>
</task>
</process-definition>