Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | <?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<signal id="paymentSignal" name="Payment Received"/>
<signal id="cancelSignal" name="Order Cancelled"/>
<message id="startMsg" name="Start Order"/>
<message id="notifyMsg" name="Notify Complete"/>
<process id="phase3Process" name="Phase 3 Process" isExecutable="true">
<documentation>This is the main process documentation.</documentation>
<extensionElements>
<activiti:eventListener events="ENTITY_CREATED" class="com.example.AuditListener" entityType="task"/>
<activiti:eventListener events="TASK_COMPLETED" delegateExpression="${completionHandler}"/>
<activiti:eventListener events="ACTIVITY_STARTED" signalName="paymentSignal"/>
<activiti:eventListener events="PROCESS_COMPLETED" messageName="completionMessage"/>
<activiti:eventListener events="ENTITY_DELETED" errorCode="ERR-CLEANUP"/>
</extensionElements>
<startEvent id="startevent1" name="Start">
<documentation>Start of the order process</documentation>
</startEvent>
<userTask id="usertask1" name="Review Order" activiti:assignee="reviewer">
<documentation>Reviewer checks the order details</documentation>
</userTask>
<exclusiveGateway id="gateway1" name="Approved?" default="flow3"/>
<serviceTask id="servicetask1" name="Process Payment" activiti:class="com.example.PaymentService" activiti:async="true">
<documentation>Handles payment processing</documentation>
</serviceTask>
<endEvent id="endevent1" name="Done"/>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1"/>
<sequenceFlow id="flow2" name="Yes" sourceRef="gateway1" targetRef="servicetask1">
<conditionExpression xsi:type="tFormalExpression">${approved}</conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow3" name="No" sourceRef="gateway1" targetRef="endevent1"/>
<sequenceFlow id="flow4" sourceRef="usertask1" targetRef="gateway1"/>
<sequenceFlow id="flow5" sourceRef="servicetask1" targetRef="endevent1"/>
<textAnnotation id="textannot1">
<text>This process handles order review and payment.</text>
</textAnnotation>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_phase3Process">
<bpmndi:BPMNPlane bpmnElement="phase3Process" id="BPMNPlane_phase3Process">
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
<omgdc:Bounds height="35.0" width="35.0" x="90.0" y="250.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
<omgdc:Bounds height="55.0" width="105.0" x="200.0" y="240.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="gateway1" id="BPMNShape_gateway1">
<omgdc:Bounds height="40.0" width="40.0" x="360.0" y="248.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
<omgdc:Bounds height="55.0" width="105.0" x="460.0" y="240.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35.0" width="35.0" x="620.0" y="250.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="textannot1" id="BPMNShape_textannot1">
<omgdc:Bounds height="40.0" width="200.0" x="200.0" y="140.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="125.0" y="267.5"/>
<omgdi:waypoint x="200.0" y="267.5"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="400.0" y="268.0"/>
<omgdi:waypoint x="460.0" y="267.5"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
<omgdi:waypoint x="380.0" y="288.0"/>
<omgdi:waypoint x="380.0" y="340.0"/>
<omgdi:waypoint x="637.5" y="340.0"/>
<omgdi:waypoint x="637.5" y="285.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
<omgdi:waypoint x="305.0" y="267.5"/>
<omgdi:waypoint x="360.0" y="268.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
<omgdi:waypoint x="565.0" y="267.5"/>
<omgdi:waypoint x="620.0" y="267.5"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
|