demo-process-models/playground/dinithi/restaurant-ordering-process/Restaurant Ordering Process...

355 lines
18 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: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:collaboration id="Collaboration_19mxjt0">
<bpmn:participant id="Participant_0b7chez" name="Restaurant" processRef="Process_gytcxhg" />
<bpmn:participant id="Participant_0ukkb64" name="Customer" processRef="Process_0h2qeso" />
<bpmn:messageFlow id="Flow_1lap8ec" sourceRef="Activity_11p9qja" targetRef="Activity_08kzxt3" />
<bpmn:messageFlow id="Flow_0bsaup7" sourceRef="Activity_1oviao0" targetRef="Activity_1lswlee" />
<bpmn:messageFlow id="Flow_0fjhfic" sourceRef="Activity_167ok94" targetRef="Activity_1o8pv3y" />
<bpmn:messageFlow id="Flow_12t5gns" sourceRef="Activity_0zl8sdt" targetRef="Activity_07mhbqm" />
<bpmn:messageFlow id="Flow_195pwvp" sourceRef="Activity_1d5nln3" targetRef="Activity_02e144j" />
</bpmn:collaboration>
<bpmn:process id="Process_gytcxhg" isExecutable="true">
<bpmn:laneSet id="LaneSet_1wszcx7">
<bpmn:lane id="Lane_07uquw8" name="Waiter">
<bpmn:flowNodeRef>Activity_08kzxt3</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1oviao0</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_167ok94</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_07mhbqm</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1d5nln3</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_0yyaihs" name="Chef">
<bpmn:flowNodeRef>Activity_0mdhx5v</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_0vhyndj</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1b51w0g</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_1biv3tm" name="Cashier">
<bpmn:flowNodeRef>Activity_1qt0y93</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0e0b0uz</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:task id="Activity_08kzxt3" name="Receive Customer Order">
<bpmn:outgoing>Flow_1tbtye9</bpmn:outgoing>
</bpmn:task>
<bpmn:task id="Activity_0mdhx5v" name="Receive Order">
<bpmn:incoming>Flow_1tbtye9</bpmn:incoming>
<bpmn:outgoing>Flow_0jvyeia</bpmn:outgoing>
</bpmn:task>
<bpmn:exclusiveGateway id="Gateway_0vhyndj" name="Check Availability&#10;">
<bpmn:incoming>Flow_0jvyeia</bpmn:incoming>
<bpmn:outgoing>Flow_0puenid</bpmn:outgoing>
<bpmn:outgoing>Flow_1k844pb</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0jvyeia" sourceRef="Activity_0mdhx5v" targetRef="Gateway_0vhyndj" />
<bpmn:sequenceFlow id="Flow_0puenid" name="Have all ingredients" sourceRef="Gateway_0vhyndj" targetRef="Activity_1b51w0g" />
<bpmn:sequenceFlow id="Flow_1tbtye9" sourceRef="Activity_08kzxt3" targetRef="Activity_0mdhx5v" />
<bpmn:task id="Activity_1b51w0g" name="Prepare Order">
<bpmn:incoming>Flow_0puenid</bpmn:incoming>
<bpmn:outgoing>Flow_1clf0d7</bpmn:outgoing>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_1k844pb" name="Out of Stock&#10;" sourceRef="Gateway_0vhyndj" targetRef="Activity_1oviao0" />
<bpmn:task id="Activity_1oviao0" name="Receive Out of Stock Message From Chef">
<bpmn:incoming>Flow_1k844pb</bpmn:incoming>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_1clf0d7" sourceRef="Activity_1b51w0g" targetRef="Activity_167ok94" />
<bpmn:task id="Activity_167ok94" name="Receive Completed Order">
<bpmn:incoming>Flow_1clf0d7</bpmn:incoming>
</bpmn:task>
<bpmn:task id="Activity_07mhbqm" name="Receive Bill Request">
<bpmn:outgoing>Flow_1h965q0</bpmn:outgoing>
</bpmn:task>
<bpmn:dataObject id="DataObject_0psaf88" />
<bpmn:dataObjectReference id="DataObjectReference_186f8w7" dataObjectRef="DataObject_0psaf88" />
<bpmn:task id="Activity_1qt0y93" name="Receive Bill Request">
<bpmn:incoming>Flow_1h965q0</bpmn:incoming>
<bpmn:outgoing>Flow_0kwx5hv</bpmn:outgoing>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_1h965q0" sourceRef="Activity_07mhbqm" targetRef="Activity_1qt0y93" />
<bpmn:sequenceFlow id="Flow_0kwx5hv" sourceRef="Activity_1qt0y93" targetRef="Activity_0e0b0uz" />
<bpmn:sequenceFlow id="Flow_0dqewgc" sourceRef="Activity_0e0b0uz" targetRef="Activity_1d5nln3" />
<bpmn:task id="Activity_1d5nln3" name="Collect Bill from Cashier">
<bpmn:incoming>Flow_0dqewgc</bpmn:incoming>
</bpmn:task>
<bpmn:task id="Activity_0e0b0uz" name="Prepare Bill">
<bpmn:incoming>Flow_0kwx5hv</bpmn:incoming>
<bpmn:outgoing>Flow_0dqewgc</bpmn:outgoing>
</bpmn:task>
</bpmn:process>
<bpmn:process id="Process_0h2qeso">
<bpmn:startEvent id="Event_1p0g0zb" name="Customer Arrives">
<bpmn:outgoing>Flow_07caf7p</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:task id="Activity_1lswlee" name="Check Menu">
<bpmn:incoming>Flow_07caf7p</bpmn:incoming>
<bpmn:outgoing>Flow_085dot6</bpmn:outgoing>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_07caf7p" sourceRef="Event_1p0g0zb" targetRef="Activity_1lswlee" />
<bpmn:task id="Activity_11p9qja" name="Place Order">
<bpmn:incoming>Flow_085dot6</bpmn:incoming>
<bpmn:outgoing>Flow_0a0dsso</bpmn:outgoing>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_085dot6" sourceRef="Activity_1lswlee" targetRef="Activity_11p9qja" />
<bpmn:sequenceFlow id="Flow_0a0dsso" sourceRef="Activity_11p9qja" targetRef="Event_1ph5klf" />
<bpmn:intermediateThrowEvent id="Event_1ph5klf" name="Wait for the Order to Complete">
<bpmn:incoming>Flow_0a0dsso</bpmn:incoming>
<bpmn:outgoing>Flow_1tz82jr</bpmn:outgoing>
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_1tz82jr" sourceRef="Event_1ph5klf" targetRef="Activity_1o8pv3y" />
<bpmn:task id="Activity_1o8pv3y" name="Receive Completed Order">
<bpmn:incoming>Flow_1tz82jr</bpmn:incoming>
<bpmn:outgoing>Flow_03uy1lc</bpmn:outgoing>
</bpmn:task>
<bpmn:task id="Activity_1ai8s13" name="Eat Food">
<bpmn:incoming>Flow_03uy1lc</bpmn:incoming>
<bpmn:outgoing>Flow_1axyxk9</bpmn:outgoing>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_03uy1lc" sourceRef="Activity_1o8pv3y" targetRef="Activity_1ai8s13" />
<bpmn:task id="Activity_0zl8sdt" name="Request Bill">
<bpmn:incoming>Flow_1axyxk9</bpmn:incoming>
<bpmn:outgoing>Flow_0d8npxl</bpmn:outgoing>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_1axyxk9" sourceRef="Activity_1ai8s13" targetRef="Activity_0zl8sdt" />
<bpmn:intermediateThrowEvent id="Event_1lejlbr" name="Waits for the Bill">
<bpmn:incoming>Flow_0d8npxl</bpmn:incoming>
<bpmn:outgoing>Flow_0jfa18n</bpmn:outgoing>
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_0d8npxl" sourceRef="Activity_0zl8sdt" targetRef="Event_1lejlbr" />
<bpmn:task id="Activity_02e144j" name="Receive Bill">
<bpmn:incoming>Flow_0jfa18n</bpmn:incoming>
<bpmn:outgoing>Flow_0xxwocg</bpmn:outgoing>
</bpmn:task>
<bpmn:task id="Activity_0da4yaa" name="Settle Payment">
<bpmn:incoming>Flow_0xxwocg</bpmn:incoming>
<bpmn:outgoing>Flow_0bra4m0</bpmn:outgoing>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_0jfa18n" sourceRef="Event_1lejlbr" targetRef="Activity_02e144j" />
<bpmn:sequenceFlow id="Flow_0xxwocg" sourceRef="Activity_02e144j" targetRef="Activity_0da4yaa" />
<bpmn:sequenceFlow id="Flow_0bra4m0" sourceRef="Activity_0da4yaa" targetRef="Event_0gqh5gu" />
<bpmn:endEvent id="Event_0gqh5gu" name="Leave from Restuarent">
<bpmn:incoming>Flow_0bra4m0</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_19mxjt0">
<bpmndi:BPMNShape id="Participant_0b7chez_di" bpmnElement="Participant_0b7chez" isHorizontal="true">
<dc:Bounds x="-530" y="-520" width="1570" height="640" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1biv3tm_di" bpmnElement="Lane_1biv3tm" isHorizontal="true">
<dc:Bounds x="-500" y="-520" width="1540" height="190" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0yyaihs_di" bpmnElement="Lane_0yyaihs" isHorizontal="true">
<dc:Bounds x="-500" y="-330" width="1540" height="232" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_07uquw8_di" bpmnElement="Lane_07uquw8" isHorizontal="true">
<dc:Bounds x="-500" y="-98" width="1540" height="218" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08kzxt3_di" bpmnElement="Activity_08kzxt3">
<dc:Bounds x="-260" y="-40" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0mdhx5v_di" bpmnElement="Activity_0mdhx5v">
<dc:Bounds x="-260" y="-230" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0vhyndj_di" bpmnElement="Gateway_0vhyndj" isMarkerVisible="true">
<dc:Bounds x="-105" y="-215" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-45.5" y="-204" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1b51w0g_di" bpmnElement="Activity_1b51w0g">
<dc:Bounds x="0" y="-300" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1oviao0_di" bpmnElement="Activity_1oviao0">
<dc:Bounds x="-110" y="-40" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_167ok94_di" bpmnElement="Activity_167ok94">
<dc:Bounds x="100" y="-40" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_07mhbqm_di" bpmnElement="Activity_07mhbqm">
<dc:Bounds x="360" y="-40" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0yjdulj" bpmnElement="Activity_1qt0y93">
<dc:Bounds x="360" y="-460" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1d5nln3_di" bpmnElement="Activity_1d5nln3">
<dc:Bounds x="560" y="-40" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0e0b0uz_di" bpmnElement="Activity_0e0b0uz">
<dc:Bounds x="560" y="-460" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0jvyeia_di" bpmnElement="Flow_0jvyeia">
<di:waypoint x="-160" y="-190" />
<di:waypoint x="-105" y="-190" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0puenid_di" bpmnElement="Flow_0puenid">
<di:waypoint x="-80" y="-215" />
<di:waypoint x="-80" y="-260" />
<di:waypoint x="0" y="-260" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-66" y="-278" width="54" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1tbtye9_di" bpmnElement="Flow_1tbtye9">
<di:waypoint x="-210" y="-40" />
<di:waypoint x="-210" y="-150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1k844pb_di" bpmnElement="Flow_1k844pb">
<di:waypoint x="-80" y="-165" />
<di:waypoint x="-80" y="-102" />
<di:waypoint x="-60" y="-102" />
<di:waypoint x="-60" y="-40" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-101" y="-120" width="62" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1clf0d7_di" bpmnElement="Flow_1clf0d7">
<di:waypoint x="100" y="-260" />
<di:waypoint x="150" y="-260" />
<di:waypoint x="150" y="-40" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1h965q0_di" bpmnElement="Flow_1h965q0">
<di:waypoint x="410" y="-40" />
<di:waypoint x="410" y="-380" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0kwx5hv_di" bpmnElement="Flow_0kwx5hv">
<di:waypoint x="460" y="-420" />
<di:waypoint x="560" y="-420" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dqewgc_di" bpmnElement="Flow_0dqewgc">
<di:waypoint x="610" y="-380" />
<di:waypoint x="610" y="-40" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Participant_0ukkb64_di" bpmnElement="Participant_0ukkb64" isHorizontal="true">
<dc:Bounds x="-530" y="190" width="1570" height="250" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1p0g0zb_di" bpmnElement="Event_1p0g0zb">
<dc:Bounds x="-478" y="292" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-502" y="335" width="85" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1lswlee_di" bpmnElement="Activity_1lswlee">
<dc:Bounds x="-400" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_11p9qja_di" bpmnElement="Activity_11p9qja">
<dc:Bounds x="-260" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ph5klf_di" bpmnElement="Event_1ph5klf">
<dc:Bounds x="2" y="292" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-14" y="335" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0jmu0dk" bpmnElement="Activity_1o8pv3y">
<dc:Bounds x="100" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ai8s13_di" bpmnElement="Activity_1ai8s13">
<dc:Bounds x="230" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0zl8sdt_di" bpmnElement="Activity_0zl8sdt">
<dc:Bounds x="360" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1lejlbr_di" bpmnElement="Event_1lejlbr">
<dc:Bounds x="492" y="292" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="472" y="335" width="78" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_02e144j_di" bpmnElement="Activity_02e144j">
<dc:Bounds x="570" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0gidoqt" bpmnElement="Activity_0da4yaa">
<dc:Bounds x="700" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0gqh5gu_di" bpmnElement="Event_0gqh5gu">
<dc:Bounds x="852" y="292" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="846" y="335" width="55" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_07caf7p_di" bpmnElement="Flow_07caf7p">
<di:waypoint x="-442" y="310" />
<di:waypoint x="-400" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_085dot6_di" bpmnElement="Flow_085dot6">
<di:waypoint x="-300" y="310" />
<di:waypoint x="-260" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0a0dsso_di" bpmnElement="Flow_0a0dsso">
<di:waypoint x="-160" y="310" />
<di:waypoint x="2" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1tz82jr_di" bpmnElement="Flow_1tz82jr">
<di:waypoint x="38" y="310" />
<di:waypoint x="100" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03uy1lc_di" bpmnElement="Flow_03uy1lc">
<di:waypoint x="200" y="310" />
<di:waypoint x="230" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1axyxk9_di" bpmnElement="Flow_1axyxk9">
<di:waypoint x="330" y="310" />
<di:waypoint x="360" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0d8npxl_di" bpmnElement="Flow_0d8npxl">
<di:waypoint x="460" y="310" />
<di:waypoint x="492" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jfa18n_di" bpmnElement="Flow_0jfa18n">
<di:waypoint x="528" y="310" />
<di:waypoint x="570" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xxwocg_di" bpmnElement="Flow_0xxwocg">
<di:waypoint x="670" y="310" />
<di:waypoint x="700" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0bra4m0_di" bpmnElement="Flow_0bra4m0">
<di:waypoint x="800" y="310" />
<di:waypoint x="852" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1lap8ec_di" bpmnElement="Flow_1lap8ec">
<di:waypoint x="-210" y="270" />
<di:waypoint x="-210" y="40" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0bsaup7_di" bpmnElement="Flow_0bsaup7">
<di:waypoint x="-60" y="40" />
<di:waypoint x="-60" y="155" />
<di:waypoint x="-350" y="155" />
<di:waypoint x="-350" y="270" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0fjhfic_di" bpmnElement="Flow_0fjhfic">
<di:waypoint x="150" y="40" />
<di:waypoint x="150" y="270" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12t5gns_di" bpmnElement="Flow_12t5gns">
<di:waypoint x="410" y="270" />
<di:waypoint x="410" y="40" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_195pwvp_di" bpmnElement="Flow_195pwvp">
<di:waypoint x="610" y="40" />
<di:waypoint x="610" y="270" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>