167 lines
8.0 KiB
XML
167 lines
8.0 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_kyg5wux" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_1855mr8</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_1855mr8" sourceRef="StartEvent_1" targetRef="Activity_0fgw6j5" />
|
|
<bpmn:endEvent id="Event_0dkep9e">
|
|
<bpmn:incoming>Flow_1632h1m</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_17v1vzv" sourceRef="Activity_0fgw6j5" targetRef="Activity_1o3s5ex" />
|
|
<bpmn:manualTask id="Activity_0fgw6j5" name="Welcome Message">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser>Welcome to Dylan's Pizza Palace
|
|
|
|
We make pizza</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1855mr8</bpmn:incoming>
|
|
<bpmn:incoming>Flow_0rm3l4o</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_17v1vzv</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:sequenceFlow id="Flow_0zuwmie" sourceRef="Activity_1o3s5ex" targetRef="Activity_13998wt" />
|
|
<bpmn:userTask id="Activity_1o3s5ex" name="Select Pizza">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="select-toppings-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="select-toppings-uischema.json" />
|
|
</spiffworkflow:properties>
|
|
<spiffworkflow:preScript>pizza_sizes = [
|
|
{
|
|
"value": "small",
|
|
"label": "Small"
|
|
},
|
|
{
|
|
"value": "medium",
|
|
"label": "Medium"
|
|
},
|
|
{
|
|
"value": "large",
|
|
"label": "Large"
|
|
}
|
|
]</spiffworkflow:preScript>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_17v1vzv</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0zuwmie</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:sequenceFlow id="Flow_09wvnx9" sourceRef="Activity_13998wt" targetRef="Activity_1nn7hxq" />
|
|
<bpmn:businessRuleTask id="Activity_13998wt" name="Calculate Price">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>decision_1</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0zuwmie</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_09wvnx9</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:sequenceFlow id="Flow_0poq38s" sourceRef="Activity_1nn7hxq" targetRef="Activity_0xkxviy" />
|
|
<bpmn:manualTask id="Activity_1nn7hxq" name="Show Total">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser>Thank you for your order, your total is:
|
|
|
|
Base Price: {{base_price}}
|
|
Topping price: {{topping_price}}
|
|
Total price: {{total_price}}</spiffworkflow:instructionsForEndUser>
|
|
<spiffworkflow:preScript>total_price = base_price + topping_price * len(toppings)</spiffworkflow:preScript>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_09wvnx9</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0poq38s</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:boundaryEvent id="Event_1yrw9rs" attachedToRef="Activity_1nn7hxq">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:signalButtonLabel>Change Order</spiffworkflow:signalButtonLabel>
|
|
</bpmn:extensionElements>
|
|
<bpmn:outgoing>Flow_0rm3l4o</bpmn:outgoing>
|
|
<bpmn:signalEventDefinition id="SignalEventDefinition_0jo3rti" />
|
|
</bpmn:boundaryEvent>
|
|
<bpmn:sequenceFlow id="Flow_0rm3l4o" sourceRef="Event_1yrw9rs" targetRef="Activity_0fgw6j5" />
|
|
<bpmn:sequenceFlow id="Flow_1632h1m" sourceRef="Activity_0xkxviy" targetRef="Event_0dkep9e" />
|
|
<bpmn:subProcess id="Activity_0xkxviy" name="Collect Payment">
|
|
<bpmn:incoming>Flow_0poq38s</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1632h1m</bpmn:outgoing>
|
|
<bpmn:startEvent id="Event_19ddrsk">
|
|
<bpmn:outgoing>Flow_024we6t</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_024we6t" sourceRef="Event_19ddrsk" targetRef="Activity_1j3x9jb" />
|
|
<bpmn:userTask id="Activity_1j3x9jb">
|
|
<bpmn:incoming>Flow_024we6t</bpmn:incoming>
|
|
</bpmn:userTask>
|
|
</bpmn:subProcess>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_kyg5wux">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="-258" y="-518" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0ewmfrd_di" bpmnElement="Activity_0fgw6j5">
|
|
<dc:Bounds x="-170" y="-540" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0v66cip_di" bpmnElement="Activity_1o3s5ex">
|
|
<dc:Bounds x="-10" y="-540" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_003qvot_di" bpmnElement="Activity_13998wt">
|
|
<dc:Bounds x="150" y="-540" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1mdv6i0_di" bpmnElement="Activity_1nn7hxq">
|
|
<dc:Bounds x="290" y="-540" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0dkep9e_di" bpmnElement="Event_0dkep9e">
|
|
<dc:Bounds x="722" y="-518" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0fzw5cu_di" bpmnElement="Activity_0xkxviy">
|
|
<dc:Bounds x="450" y="-540" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1g6n1il_di" bpmnElement="Event_1yrw9rs">
|
|
<dc:Bounds x="342" y="-478" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1855mr8_di" bpmnElement="Flow_1855mr8">
|
|
<di:waypoint x="-222" y="-500" />
|
|
<di:waypoint x="-170" y="-500" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_17v1vzv_di" bpmnElement="Flow_17v1vzv">
|
|
<di:waypoint x="-70" y="-500" />
|
|
<di:waypoint x="-10" y="-500" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0zuwmie_di" bpmnElement="Flow_0zuwmie">
|
|
<di:waypoint x="90" y="-500" />
|
|
<di:waypoint x="150" y="-500" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_09wvnx9_di" bpmnElement="Flow_09wvnx9">
|
|
<di:waypoint x="250" y="-500" />
|
|
<di:waypoint x="290" y="-500" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0poq38s_di" bpmnElement="Flow_0poq38s">
|
|
<di:waypoint x="390" y="-500" />
|
|
<di:waypoint x="450" y="-500" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0rm3l4o_di" bpmnElement="Flow_0rm3l4o">
|
|
<di:waypoint x="360" y="-442" />
|
|
<di:waypoint x="360" y="-410" />
|
|
<di:waypoint x="-120" y="-410" />
|
|
<di:waypoint x="-120" y="-460" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1632h1m_di" bpmnElement="Flow_1632h1m">
|
|
<di:waypoint x="550" y="-500" />
|
|
<di:waypoint x="722" y="-500" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_170uhdy">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_10l15oy" bpmnElement="Activity_0xkxviy">
|
|
<bpmndi:BPMNShape id="Event_19ddrsk_di" bpmnElement="Event_19ddrsk">
|
|
<dc:Bounds x="292" y="202" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0r49bhp_di" bpmnElement="Activity_1j3x9jb">
|
|
<dc:Bounds x="380" y="180" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_024we6t_di" bpmnElement="Flow_024we6t">
|
|
<di:waypoint x="328" y="220" />
|
|
<di:waypoint x="380" y="220" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|