mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 23:08:10 +00:00
114 lines
5.4 KiB
XML
114 lines
5.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_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_0poq38s</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: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="Event_0dkep9e" />
|
|
<bpmn:manualTask id="Activity_1nn7hxq">
|
|
<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_cose = 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: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="Event_0dkep9e_di" bpmnElement="Event_0dkep9e">
|
|
<dc:Bounds x="432" 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: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="432" y="-500" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|