demo-process-models/playground/dmn-tables/place-a-takeaway-order/onlineStore.bpmn

273 lines
14 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Process_qjakbnb" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="Start Shopping">
<bpmn:outgoing>Flow_000hzh6</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_000hzh6" sourceRef="StartEvent_1" targetRef="Activity_046rcrw" />
<bpmn:sequenceFlow id="Flow_0356moq" sourceRef="Activity_046rcrw" targetRef="Gateway_18zu4x7" />
<bpmn:serviceTask id="Activity_046rcrw" name="Get available Products">
<bpmn:incoming>Flow_000hzh6</bpmn:incoming>
<bpmn:outgoing>Flow_0356moq</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:endEvent id="Event_10wh26c" name="Purchase Complete">
<bpmn:incoming>Flow_014llu5</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_014llu5" sourceRef="Activity_1pmsf9d" targetRef="Event_10wh26c" />
<bpmn:sequenceFlow id="Flow_14uajhj" sourceRef="Activity_1hvzale" targetRef="Gateway_09grceb" />
<bpmn:userTask id="Activity_1hvzale" name="Shop Items">
<bpmn:incoming>Flow_0jao176</bpmn:incoming>
<bpmn:outgoing>Flow_14uajhj</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_09grceb" name="Checkout?">
<bpmn:incoming>Flow_14uajhj</bpmn:incoming>
<bpmn:outgoing>Flow_1ud098f</bpmn:outgoing>
<bpmn:outgoing>Flow_0gf7osl</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1ud098f" name="proceed to checkout" sourceRef="Gateway_09grceb" targetRef="Activity_13go59v" />
<bpmn:endEvent id="Event_0yq1gz9">
<bpmn:incoming>Flow_0i2hsev</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0pfxhdu" sourceRef="Event_1l0kjeq" targetRef="Gateway_0yhl3s7" />
<bpmn:boundaryEvent id="Event_1l0kjeq" name="Cart expired" attachedToRef="Activity_1hvzale">
<bpmn:outgoing>Flow_0pfxhdu</bpmn:outgoing>
<bpmn:timerEventDefinition id="TimerEventDefinition_1gq5g3c" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_0i2hsev" sourceRef="Activity_0peewph" targetRef="Event_0yq1gz9" />
<bpmn:scriptTask id="Activity_0peewph" name="Remove Items from cart">
<bpmn:incoming>Flow_0t8reur</bpmn:incoming>
<bpmn:outgoing>Flow_0i2hsev</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1a9snaf" sourceRef="Activity_13go59v" targetRef="Activity_0fb0e9l" />
<bpmn:userTask id="Activity_13go59v" name="Complete Payment">
<bpmn:incoming>Flow_1ud098f</bpmn:incoming>
<bpmn:outgoing>Flow_1a9snaf</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_0xghxnr" name="Payment Successful?">
<bpmn:incoming>Flow_1n01g2a</bpmn:incoming>
<bpmn:outgoing>Flow_0nuf6pr</bpmn:outgoing>
<bpmn:outgoing>Flow_0vswxhx</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0nuf6pr" name="Yes" sourceRef="Gateway_0xghxnr" targetRef="Activity_0er3dvv" />
<bpmn:sequenceFlow id="Flow_1n01g2a" sourceRef="Activity_0fb0e9l" targetRef="Gateway_0xghxnr" />
<bpmn:serviceTask id="Activity_0fb0e9l" name="Process Payment">
<bpmn:incoming>Flow_1a9snaf</bpmn:incoming>
<bpmn:outgoing>Flow_1n01g2a</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_0vswxhx" sourceRef="Gateway_0xghxnr" targetRef="Activity_084eegn" />
<bpmn:userTask id="Activity_084eegn" name="Display Failure Message">
<bpmn:incoming>Flow_0vswxhx</bpmn:incoming>
<bpmn:outgoing>Flow_0orxvjq</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0gf7osl" name="abandon cart" sourceRef="Gateway_09grceb" targetRef="Gateway_0yhl3s7" />
<bpmn:userTask id="Activity_1pmsf9d" name="Display Success Message">
<bpmn:incoming>Flow_11qcymh</bpmn:incoming>
<bpmn:outgoing>Flow_014llu5</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_135f3r5" name="Retry?">
<bpmn:incoming>Flow_0orxvjq</bpmn:incoming>
<bpmn:outgoing>Flow_1lyqz7k</bpmn:outgoing>
<bpmn:outgoing>Flow_0ikeecq</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0orxvjq" sourceRef="Activity_084eegn" targetRef="Gateway_135f3r5" />
<bpmn:endEvent id="Event_1k9k7nf">
<bpmn:incoming>Flow_1lyqz7k</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1lyqz7k" name="No" sourceRef="Gateway_135f3r5" targetRef="Event_1k9k7nf" />
<bpmn:exclusiveGateway id="Gateway_18zu4x7">
<bpmn:incoming>Flow_0356moq</bpmn:incoming>
<bpmn:incoming>Flow_0ikeecq</bpmn:incoming>
<bpmn:outgoing>Flow_0jao176</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0jao176" sourceRef="Gateway_18zu4x7" targetRef="Activity_1hvzale" />
<bpmn:sequenceFlow id="Flow_0ikeecq" name="Yes" sourceRef="Gateway_135f3r5" targetRef="Gateway_18zu4x7" />
<bpmn:sequenceFlow id="Flow_11qcymh" sourceRef="Activity_0er3dvv" targetRef="Activity_1pmsf9d" />
<bpmn:serviceTask id="Activity_0er3dvv" name="Update Inventory">
<bpmn:incoming>Flow_0nuf6pr</bpmn:incoming>
<bpmn:outgoing>Flow_11qcymh</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="Gateway_0yhl3s7">
<bpmn:incoming>Flow_0pfxhdu</bpmn:incoming>
<bpmn:incoming>Flow_0gf7osl</bpmn:incoming>
<bpmn:outgoing>Flow_0t8reur</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0t8reur" sourceRef="Gateway_0yhl3s7" targetRef="Activity_0peewph">
<bpmn:conditionExpression>payment_method == "credit_card"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_qjakbnb">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="62" y="142" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="44" y="185" width="73" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_02ehodk_di" bpmnElement="Activity_046rcrw">
<dc:Bounds x="150" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_10wh26c_di" bpmnElement="Event_10wh26c">
<dc:Bounds x="1342" y="142" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1336" y="185" width="48" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0h09356_di" bpmnElement="Activity_1hvzale">
<dc:Bounds x="390" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_09grceb_di" bpmnElement="Gateway_09grceb" isMarkerVisible="true">
<dc:Bounds x="545" y="135" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="543" y="111" width="53" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0yq1gz9_di" bpmnElement="Event_0yq1gz9">
<dc:Bounds x="792" y="342" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_074so3x_di" bpmnElement="Activity_0peewph">
<dc:Bounds x="650" y="320" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ymi3mg_di" bpmnElement="Activity_13go59v">
<dc:Bounds x="650" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0xghxnr_di" bpmnElement="Gateway_0xghxnr" isMarkerVisible="true">
<dc:Bounds x="945" y="135" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="940" y="97.5" width="60" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_06zezmo_di" bpmnElement="Activity_0fb0e9l">
<dc:Bounds x="790" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ujlc0q_di" bpmnElement="Activity_084eegn">
<dc:Bounds x="920" y="260" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_075vc2d_di" bpmnElement="Activity_1pmsf9d">
<dc:Bounds x="1190" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_135f3r5_di" bpmnElement="Gateway_135f3r5" isMarkerVisible="true">
<dc:Bounds x="1075" y="275" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1083" y="251" width="33" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1k9k7nf_di" bpmnElement="Event_1k9k7nf">
<dc:Bounds x="1222" y="282" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_18zu4x7_di" bpmnElement="Gateway_18zu4x7" isMarkerVisible="true">
<dc:Bounds x="295" y="135" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1qmhj4f_di" bpmnElement="Activity_0er3dvv">
<dc:Bounds x="1050" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0yhl3s7_di" bpmnElement="Gateway_0yhl3s7" isMarkerVisible="true">
<dc:Bounds x="545" y="335" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1f2i2iz_di" bpmnElement="Event_1l0kjeq">
<dc:Bounds x="422" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="450" y="225" width="60" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_000hzh6_di" bpmnElement="Flow_000hzh6">
<di:waypoint x="98" y="160" />
<di:waypoint x="150" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0356moq_di" bpmnElement="Flow_0356moq">
<di:waypoint x="250" y="160" />
<di:waypoint x="295" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_014llu5_di" bpmnElement="Flow_014llu5">
<di:waypoint x="1290" y="160" />
<di:waypoint x="1342" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_14uajhj_di" bpmnElement="Flow_14uajhj">
<di:waypoint x="490" y="160" />
<di:waypoint x="545" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ud098f_di" bpmnElement="Flow_1ud098f">
<di:waypoint x="595" y="160" />
<di:waypoint x="650" y="160" />
<bpmndi:BPMNLabel>
<dc:Bounds x="584" y="176" width="52" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0pfxhdu_di" bpmnElement="Flow_0pfxhdu">
<di:waypoint x="440" y="218" />
<di:waypoint x="440" y="360" />
<di:waypoint x="545" y="360" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0i2hsev_di" bpmnElement="Flow_0i2hsev">
<di:waypoint x="750" y="360" />
<di:waypoint x="792" y="360" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1a9snaf_di" bpmnElement="Flow_1a9snaf">
<di:waypoint x="750" y="160" />
<di:waypoint x="790" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0nuf6pr_di" bpmnElement="Flow_0nuf6pr">
<di:waypoint x="995" y="160" />
<di:waypoint x="1050" y="160" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1010" y="142" width="18" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1n01g2a_di" bpmnElement="Flow_1n01g2a">
<di:waypoint x="890" y="160" />
<di:waypoint x="945" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0vswxhx_di" bpmnElement="Flow_0vswxhx">
<di:waypoint x="970" y="185" />
<di:waypoint x="970" y="260" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gf7osl_di" bpmnElement="Flow_0gf7osl">
<di:waypoint x="570" y="185" />
<di:waypoint x="570" y="335" />
<bpmndi:BPMNLabel>
<dc:Bounds x="577" y="251" width="66" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0orxvjq_di" bpmnElement="Flow_0orxvjq">
<di:waypoint x="1020" y="300" />
<di:waypoint x="1075" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1lyqz7k_di" bpmnElement="Flow_1lyqz7k">
<di:waypoint x="1125" y="300" />
<di:waypoint x="1222" y="300" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1168" y="282" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jao176_di" bpmnElement="Flow_0jao176">
<di:waypoint x="345" y="160" />
<di:waypoint x="390" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ikeecq_di" bpmnElement="Flow_0ikeecq">
<di:waypoint x="1100" y="325" />
<di:waypoint x="1100" y="470" />
<di:waypoint x="320" y="470" />
<di:waypoint x="320" y="185" />
<bpmndi:BPMNLabel>
<dc:Bounds x="701" y="452" width="18" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_11qcymh_di" bpmnElement="Flow_11qcymh">
<di:waypoint x="1150" y="160" />
<di:waypoint x="1190" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0t8reur_di" bpmnElement="Flow_0t8reur">
<di:waypoint x="595" y="360" />
<di:waypoint x="650" y="360" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>