demo-process-models/playground/usama/essential-example/Escalation_Event.bpmn

140 lines
7.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Process_s3f4tsf" name="Display" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0h096ue</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:subProcess id="Activity_1cneqjh">
<bpmn:incoming>Flow_0h096ue</bpmn:incoming>
<bpmn:startEvent id="Event_1o13l5k">
<bpmn:outgoing>Flow_193gydw</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_193gydw" sourceRef="Event_1o13l5k" targetRef="Activity_1elp72b" />
<bpmn:exclusiveGateway id="Gateway_0jcq1yd">
<bpmn:incoming>Flow_1kvpcj3</bpmn:incoming>
<bpmn:outgoing>Flow_0okn2rx</bpmn:outgoing>
<bpmn:outgoing>Flow_1a6mt0f</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1kvpcj3" sourceRef="Activity_1elp72b" targetRef="Gateway_0jcq1yd" />
<bpmn:endEvent id="Event_1awg2k3" name="Process Order">
<bpmn:incoming>Flow_0okn2rx</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0okn2rx" name="if quantity&#60; 1000" sourceRef="Gateway_0jcq1yd" targetRef="Event_1awg2k3">
<bpmn:conditionExpression>int(quantity) &lt; 1000</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1a6mt0f" name="if quantity&#62;1000" sourceRef="Gateway_0jcq1yd" targetRef="Event_1trwx9o">
<bpmn:conditionExpression>int(quantity) &gt; 1000</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:userTask id="Activity_1elp72b" name="Enter Order Details">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="orderdetails-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="orderdetails-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_193gydw</bpmn:incoming>
<bpmn:outgoing>Flow_1kvpcj3</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="Event_1trwx9o" name="Escalate Order">
<bpmn:incoming>Flow_1a6mt0f</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0w9bow9" escalationRef="Escalation_Throw_1" />
</bpmn:endEvent>
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_0h096ue" sourceRef="StartEvent_1" targetRef="Activity_1cneqjh" />
<bpmn:boundaryEvent id="Event_1xburk6" attachedToRef="Activity_1cneqjh">
<bpmn:outgoing>Flow_1w1ncrn</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_08s7ev7" escalationRef="Escalation_Throw_1" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_1w1ncrn" sourceRef="Event_1xburk6" targetRef="Activity_0x6cgr8" />
<bpmn:endEvent id="Event_0705zn5">
<bpmn:incoming>Flow_0pra30g</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0pra30g" sourceRef="Activity_0x6cgr8" targetRef="Event_0705zn5" />
<bpmn:userTask id="Activity_0x6cgr8" name="Manager Approval">
<bpmn:documentation>Add more quantity</bpmn:documentation>
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Add more</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1w1ncrn</bpmn:incoming>
<bpmn:outgoing>Flow_0pra30g</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmn:escalation id="Escalation_Throw_1" name="Escalation_Throw_1" escalationCode="OrderExceedsThreshold" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_s3f4tsf">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-8" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1vp5arx_di" bpmnElement="Activity_0x6cgr8">
<dc:Bounds x="430" y="380" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1cneqjh_di" bpmnElement="Activity_1cneqjh" isExpanded="true">
<dc:Bounds x="80" y="-20" width="620" height="360" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1o13l5k_di" bpmnElement="Event_1o13l5k">
<dc:Bounds x="120" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0jcq1yd_di" bpmnElement="Gateway_0jcq1yd" isMarkerVisible="true">
<dc:Bounds x="365" y="125" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ks2clx_di" bpmnElement="Activity_1elp72b">
<dc:Bounds x="210" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0ygwoxs_di" bpmnElement="Event_1trwx9o">
<dc:Bounds x="492" y="242" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="473" y="285" width="74" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1awg2k3_di" bpmnElement="Event_1awg2k3">
<dc:Bounds x="492" y="132" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="474" y="175" width="72" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_193gydw_di" bpmnElement="Flow_193gydw">
<di:waypoint x="156" y="150" />
<di:waypoint x="210" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1kvpcj3_di" bpmnElement="Flow_1kvpcj3">
<di:waypoint x="310" y="150" />
<di:waypoint x="365" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0okn2rx_di" bpmnElement="Flow_0okn2rx">
<di:waypoint x="415" y="150" />
<di:waypoint x="492" y="150" />
<bpmndi:BPMNLabel>
<dc:Bounds x="413" y="132" width="82" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1a6mt0f_di" bpmnElement="Flow_1a6mt0f">
<di:waypoint x="390" y="175" />
<di:waypoint x="390" y="260" />
<di:waypoint x="492" y="260" />
<bpmndi:BPMNLabel>
<dc:Bounds x="311" y="233" width="78" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_0705zn5_di" bpmnElement="Event_0705zn5">
<dc:Bounds x="582" y="402" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1200g31_di" bpmnElement="Event_1xburk6">
<dc:Bounds x="342" y="322" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0h096ue_di" bpmnElement="Flow_0h096ue">
<di:waypoint x="28" y="150" />
<di:waypoint x="80" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1w1ncrn_di" bpmnElement="Flow_1w1ncrn">
<di:waypoint x="360" y="358" />
<di:waypoint x="360" y="420" />
<di:waypoint x="430" y="420" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0pra30g_di" bpmnElement="Flow_0pra30g">
<di:waypoint x="530" y="420" />
<di:waypoint x="582" y="420" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>