-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathtask_types.bpmn
More file actions
98 lines (98 loc) · 5.28 KB
/
task_types.bpmn
File metadata and controls
98 lines (98 loc) · 5.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0ibnyhd" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.11.1" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
<bpmn:process id="order_product" name="Order Product" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="Begin Order">
<bpmn:outgoing>Flow_19d1ca2</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_19d1ca2" sourceRef="StartEvent_1" targetRef="Activity_0gnvuqr" />
<bpmn:userTask id="Activity_0gnvuqr" name="Select Product and Quantity" camunda:formKey="">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="product_name" label="Product Name" type="enum">
<camunda:value id="product_a" name="A" />
<camunda:value id="product_b" name="B" />
<camunda:value id="product_c" name="C" />
</camunda:formField>
<camunda:formField id="product_quantity" label="Quantity" type="long" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_19d1ca2</bpmn:incoming>
<bpmn:outgoing>Flow_1m9aack</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1m9aack" sourceRef="Activity_0gnvuqr" targetRef="Activity_0bxy81n" />
<bpmn:businessRuleTask id="Activity_0bxy81n" name="Look Up Product Price" camunda:decisionRef="product_prices">
<bpmn:incoming>Flow_1m9aack</bpmn:incoming>
<bpmn:outgoing>Flow_03cch6u</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_03cch6u" sourceRef="Activity_0bxy81n" targetRef="Activity_1ulwq7u" />
<bpmn:scriptTask id="Activity_1ulwq7u" name="Calculate Order Total">
<bpmn:incoming>Flow_03cch6u</bpmn:incoming>
<bpmn:outgoing>Flow_0rd1dlt</bpmn:outgoing>
<bpmn:script>order_total = product_quantity * product_price</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0rd1dlt" sourceRef="Activity_1ulwq7u" targetRef="Activity_0h1938t" />
<bpmn:manualTask id="Activity_0h1938t" name="Review Order">
<bpmn:documentation>Order Summary
{{ product_name }}
Quantity: {{ product_quantity }}
Order Total: {{ order_total }}</bpmn:documentation>
<bpmn:incoming>Flow_0rd1dlt</bpmn:incoming>
<bpmn:outgoing>Flow_1aftqy6</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_136gk7h" name="End Order">
<bpmn:incoming>Flow_1aftqy6</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1aftqy6" sourceRef="Activity_0h1938t" targetRef="Event_136gk7h" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="order_product">
<bpmndi:BPMNEdge id="Flow_1aftqy6_di" bpmnElement="Flow_1aftqy6">
<di:waypoint x="850" y="117" />
<di:waypoint x="912" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0rd1dlt_di" bpmnElement="Flow_0rd1dlt">
<di:waypoint x="690" y="117" />
<di:waypoint x="750" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03cch6u_di" bpmnElement="Flow_03cch6u">
<di:waypoint x="530" y="117" />
<di:waypoint x="590" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1m9aack_di" bpmnElement="Flow_1m9aack">
<di:waypoint x="370" y="117" />
<di:waypoint x="430" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19d1ca2_di" bpmnElement="Flow_19d1ca2">
<di:waypoint x="215" y="117" />
<di:waypoint x="270" y="117" />
<bpmndi:BPMNLabel>
<dc:Bounds x="224" y="159" width="37" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="99" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="167" y="142" width="60" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ovzied_di" bpmnElement="Activity_0gnvuqr">
<dc:Bounds x="270" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13h0958_di" bpmnElement="Activity_0bxy81n">
<dc:Bounds x="430" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ux9veg_di" bpmnElement="Activity_1ulwq7u">
<dc:Bounds x="590" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1uxal7y_di" bpmnElement="Activity_0h1938t">
<dc:Bounds x="750" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_136gk7h_di" bpmnElement="Event_136gk7h">
<dc:Bounds x="912" y="99" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="905" y="142" width="52" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>