mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 17:38:13 +00:00
138 lines
6.4 KiB
XML
138 lines
6.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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
|
<bpmn:process id="Process_57rvnyv" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_0q4d4r9</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0q4d4r9" sourceRef="StartEvent_1" targetRef="Activity_093hb7o" />
|
|
<bpmn:manualTask id="Activity_093hb7o" name="Welcome message">
|
|
<bpmn:incoming>Flow_0q4d4r9</bpmn:incoming>
|
|
<bpmn:incoming>Flow_1ygkfkp</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0c3flgu</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:sequenceFlow id="Flow_0c3flgu" sourceRef="Activity_093hb7o" targetRef="Activity_1y7mw9l" />
|
|
<bpmn:userTask id="Activity_1y7mw9l" name="Select pizza">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="select-pizza-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="select-pizza-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_0c3flgu</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0yromb6</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:sequenceFlow id="Flow_0yromb6" sourceRef="Activity_1y7mw9l" targetRef="Activity_15463hw" />
|
|
<bpmn:businessRuleTask id="Activity_15463hw" name="Calculate cost">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>decision_1</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0yromb6</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1y8ok4x</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:manualTask id="Activity_0gznwgh" name="Display total">
|
|
<bpmn:documentation># Here is your order total:
|
|
|
|
Pizza Price: {{base_price}}
|
|
Topping Price: {{topping_price}}
|
|
|
|
---
|
|
# Total Price: {{base_price + topping_price * len(toppings) }}</bpmn:documentation>
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:preScript>total_price = base_price + (topping_price * len(toppings))</spiffworkflow:preScript>
|
|
<spiffworkflow:instructionsForEndUser># Here is your order total:
|
|
|
|
Pizza Price: {{base_price}}
|
|
Topping Price: {{topping_price}}
|
|
|
|
---
|
|
# Total Price: {{total_price}}</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1y8ok4x</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_07z1ros</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:sequenceFlow id="Flow_1y8ok4x" sourceRef="Activity_15463hw" targetRef="Activity_0gznwgh" />
|
|
<bpmn:endEvent id="Event_1j54928">
|
|
<bpmn:incoming>Flow_07z1ros</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_07z1ros" sourceRef="Activity_0gznwgh" targetRef="Event_1j54928" />
|
|
<bpmn:boundaryEvent id="Event_06rpop5" attachedToRef="Activity_0gznwgh">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:signalButtonLabel>Change Order</spiffworkflow:signalButtonLabel>
|
|
</bpmn:extensionElements>
|
|
<bpmn:outgoing>Flow_1ygkfkp</bpmn:outgoing>
|
|
<bpmn:signalEventDefinition id="SignalEventDefinition_12dq9wh" />
|
|
</bpmn:boundaryEvent>
|
|
<bpmn:sequenceFlow id="Flow_1ygkfkp" sourceRef="Event_06rpop5" targetRef="Activity_093hb7o" />
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_57rvnyv">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0l5zf92_di" bpmnElement="Activity_093hb7o">
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1mznjcl_di" bpmnElement="Activity_1y7mw9l">
|
|
<dc:Bounds x="440" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_05btu3r_di" bpmnElement="Activity_15463hw">
|
|
<dc:Bounds x="610" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_03699io_di" bpmnElement="Activity_0gznwgh">
|
|
<dc:Bounds x="770" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1j54928_di" bpmnElement="Event_1j54928">
|
|
<dc:Bounds x="932" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1qeo4h4_di" bpmnElement="Event_06rpop5">
|
|
<dc:Bounds x="822" y="199" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0q4d4r9_di" bpmnElement="Flow_0q4d4r9">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="270" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0c3flgu_di" bpmnElement="Flow_0c3flgu">
|
|
<di:waypoint x="370" y="177" />
|
|
<di:waypoint x="440" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0yromb6_di" bpmnElement="Flow_0yromb6">
|
|
<di:waypoint x="540" y="177" />
|
|
<di:waypoint x="610" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1y8ok4x_di" bpmnElement="Flow_1y8ok4x">
|
|
<di:waypoint x="710" y="177" />
|
|
<di:waypoint x="770" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_07z1ros_di" bpmnElement="Flow_07z1ros">
|
|
<di:waypoint x="870" y="177" />
|
|
<di:waypoint x="932" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1ygkfkp_di" bpmnElement="Flow_1ygkfkp">
|
|
<di:waypoint x="840" y="235" />
|
|
<di:waypoint x="840" y="255" />
|
|
<di:waypoint x="610" y="570" />
|
|
<di:waypoint x="340" y="320" />
|
|
<di:waypoint x="322" y="217" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|