92 lines
3.1 KiB
XML
92 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<bpmn:definitions
|
|
xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
id="Definitions_Control_Flow"
|
|
targetNamespace="urn:govoplan:workflow:fixtures">
|
|
<bpmn:signal id="Signal_Escalation" name="Escalation" />
|
|
<bpmn:process id="Called_Process" isExecutable="true">
|
|
<bpmn:startEvent id="Called_Start" />
|
|
<bpmn:userTask id="Called_Human_Task" name="Confirm result" />
|
|
<bpmn:endEvent id="Called_End" />
|
|
<bpmn:sequenceFlow
|
|
id="Called_Flow_1"
|
|
sourceRef="Called_Start"
|
|
targetRef="Called_Human_Task" />
|
|
<bpmn:sequenceFlow
|
|
id="Called_Flow_2"
|
|
sourceRef="Called_Human_Task"
|
|
targetRef="Called_End" />
|
|
</bpmn:process>
|
|
<bpmn:process id="Control_Process" isExecutable="true">
|
|
<bpmn:startEvent id="Control_Start" />
|
|
<bpmn:exclusiveGateway id="Control_Decision" />
|
|
<bpmn:subProcess id="Review_Subprocess" name="Review">
|
|
<bpmn:startEvent id="Subprocess_Start" />
|
|
<bpmn:userTask id="Subprocess_Review" name="Review request" />
|
|
<bpmn:endEvent id="Subprocess_End" />
|
|
<bpmn:sequenceFlow
|
|
id="Subprocess_Flow_1"
|
|
sourceRef="Subprocess_Start"
|
|
targetRef="Subprocess_Review" />
|
|
<bpmn:sequenceFlow
|
|
id="Subprocess_Flow_2"
|
|
sourceRef="Subprocess_Review"
|
|
targetRef="Subprocess_End" />
|
|
</bpmn:subProcess>
|
|
<bpmn:boundaryEvent
|
|
id="Review_Escalation"
|
|
attachedToRef="Review_Subprocess"
|
|
cancelActivity="false">
|
|
<bpmn:signalEventDefinition
|
|
id="Review_Escalation_Definition"
|
|
signalRef="Signal_Escalation" />
|
|
</bpmn:boundaryEvent>
|
|
<bpmn:parallelGateway id="Control_Join" />
|
|
<bpmn:callActivity
|
|
id="Call_Confirmation"
|
|
name="Confirm"
|
|
calledElement="Called_Process" />
|
|
<bpmn:intermediateThrowEvent id="Escalation_Thrown">
|
|
<bpmn:signalEventDefinition
|
|
id="Escalation_Thrown_Definition"
|
|
signalRef="Signal_Escalation" />
|
|
</bpmn:intermediateThrowEvent>
|
|
<bpmn:task
|
|
id="Compensation_Handler"
|
|
name="Undo review"
|
|
isForCompensation="true" />
|
|
<bpmn:boundaryEvent
|
|
id="Review_Compensation"
|
|
attachedToRef="Review_Subprocess">
|
|
<bpmn:compensateEventDefinition
|
|
id="Review_Compensation_Definition"
|
|
activityRef="Compensation_Handler" />
|
|
</bpmn:boundaryEvent>
|
|
<bpmn:endEvent id="Control_End" />
|
|
<bpmn:sequenceFlow
|
|
id="Control_Flow_1"
|
|
sourceRef="Control_Start"
|
|
targetRef="Control_Decision" />
|
|
<bpmn:sequenceFlow
|
|
id="Control_Flow_2"
|
|
sourceRef="Control_Decision"
|
|
targetRef="Review_Subprocess" />
|
|
<bpmn:sequenceFlow
|
|
id="Control_Flow_3"
|
|
sourceRef="Review_Subprocess"
|
|
targetRef="Control_Join" />
|
|
<bpmn:sequenceFlow
|
|
id="Control_Flow_4"
|
|
sourceRef="Control_Join"
|
|
targetRef="Call_Confirmation" />
|
|
<bpmn:sequenceFlow
|
|
id="Control_Flow_5"
|
|
sourceRef="Call_Confirmation"
|
|
targetRef="Escalation_Thrown" />
|
|
<bpmn:sequenceFlow
|
|
id="Control_Flow_6"
|
|
sourceRef="Escalation_Thrown"
|
|
targetRef="Control_End" />
|
|
</bpmn:process>
|
|
</bpmn:definitions>
|