-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcall_activity_script.bpmn
More file actions
227 lines (227 loc) · 11.9 KB
/
call_activity_script.bpmn
File metadata and controls
227 lines (227 loc) · 11.9 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" 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="customize_product" isExecutable="false">
<bpmn:exclusiveGateway id="Gateway_0ocn7fn" name="Is Color Customizable?" default="Flow_1h8w6f7">
<bpmn:incoming>Flow_04tpb3e</bpmn:incoming>
<bpmn:outgoing>Flow_0ikn93z</bpmn:outgoing>
<bpmn:outgoing>Flow_1h8w6f7</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:userTask id="Activity_1uazifo" 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:value id="product_d" name="D" />
<camunda:value id="product_e" name="E" />
<camunda:value id="product_f" name="F" />
<camunda:value id="product_g" name="G" />
</camunda:formField>
<camunda:formField id="product_quantity" label="Quantity" type="long" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_06gb1zr</bpmn:incoming>
<bpmn:outgoing>Flow_104dmrv</bpmn:outgoing>
</bpmn:userTask>
<bpmn:startEvent id="Event_09a7t9p" name="Begin Customization">
<bpmn:outgoing>Flow_06gb1zr</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0ikn93z" name="Yes" sourceRef="Gateway_0ocn7fn" targetRef="Activity_0263vxi">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">product_info.color == True</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_104dmrv" sourceRef="Activity_1uazifo" targetRef="Activity_1qpe6gu" />
<bpmn:sequenceFlow id="Flow_1h8w6f7" name="No" sourceRef="Gateway_0ocn7fn" targetRef="Gateway_0y2l88d" />
<bpmn:sequenceFlow id="Flow_06gb1zr" sourceRef="Event_09a7t9p" targetRef="Activity_1uazifo" />
<bpmn:exclusiveGateway id="Gateway_0y2l88d" name="Is Size Customizable?" default="Flow_0b4pvj2">
<bpmn:incoming>Flow_1h8w6f7</bpmn:incoming>
<bpmn:incoming>Flow_16qjxga</bpmn:incoming>
<bpmn:outgoing>Flow_0b4pvj2</bpmn:outgoing>
<bpmn:outgoing>Flow_0apn5fw</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0b4pvj2" name="No" sourceRef="Gateway_0y2l88d" targetRef="Gateway_1iupgqu" />
<bpmn:userTask id="Activity_0263vxi" name="Select Product Color" camunda:formKey="">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="product_color" label="Color" type="enum" defaultValue="white">
<camunda:value id="white" name="White" />
<camunda:value id="black" name="Black" />
<camunda:value id="gray" name="Gray" />
<camunda:value id="navy" name="Navy" />
</camunda:formField>
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0ikn93z</bpmn:incoming>
<bpmn:outgoing>Flow_16qjxga</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_16qjxga" sourceRef="Activity_0263vxi" targetRef="Gateway_0y2l88d" />
<bpmn:exclusiveGateway id="Gateway_1iupgqu" name="Is Style Customizable?" default="Flow_1pvko5s">
<bpmn:incoming>Flow_0b4pvj2</bpmn:incoming>
<bpmn:incoming>Flow_1y8t5or</bpmn:incoming>
<bpmn:outgoing>Flow_043j5w0</bpmn:outgoing>
<bpmn:outgoing>Flow_1pvko5s</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0apn5fw" name="Yes" sourceRef="Gateway_0y2l88d" targetRef="Activity_1x0wxtq">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">product_info.size == True</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1y8t5or" sourceRef="Activity_1x0wxtq" targetRef="Gateway_1iupgqu" />
<bpmn:userTask id="Activity_1x0wxtq" name="Select Product Size" camunda:formKey="">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="product_size" label="Size" type="enum" defaultValue="small">
<camunda:value id="small" name="S" />
<camunda:value id="medium" name="M" />
<camunda:value id="large" name="L" />
</camunda:formField>
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0apn5fw</bpmn:incoming>
<bpmn:outgoing>Flow_1y8t5or</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="Event_10j4iim" name="End Customization">
<bpmn:incoming>Flow_171nf3j</bpmn:incoming>
<bpmn:incoming>Flow_1pvko5s</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_043j5w0" name="Yes" sourceRef="Gateway_1iupgqu" targetRef="Activity_1mkqpod">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">product_info.style == True</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:userTask id="Activity_1mkqpod" name="Select Product Style" camunda:formKey="">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="product_style" label="Sleeve Type" type="enum" defaultValue="short">
<camunda:value id="short" name="Short" />
<camunda:value id="long" name="Long" />
</camunda:formField>
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_043j5w0</bpmn:incoming>
<bpmn:outgoing>Flow_171nf3j</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_04tpb3e" sourceRef="Activity_1qpe6gu" targetRef="Gateway_0ocn7fn" />
<bpmn:scriptTask id="Activity_1qpe6gu" name="Lookup Product Info">
<bpmn:incoming>Flow_104dmrv</bpmn:incoming>
<bpmn:outgoing>Flow_04tpb3e</bpmn:outgoing>
<bpmn:script>product_info = lookup_product_info(product_name)</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_171nf3j" sourceRef="Activity_1mkqpod" targetRef="Event_10j4iim" />
<bpmn:sequenceFlow id="Flow_1pvko5s" sourceRef="Gateway_1iupgqu" targetRef="Event_10j4iim" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="customize_product">
<bpmndi:BPMNEdge id="Flow_043j5w0_di" bpmnElement="Flow_043j5w0">
<di:waypoint x="1050" y="232" />
<di:waypoint x="1050" y="290" />
<di:waypoint x="1100" y="290" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1056" y="258" width="19" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1y8t5or_di" bpmnElement="Flow_1y8t5or">
<di:waypoint x="990" y="120" />
<di:waypoint x="1050" y="120" />
<di:waypoint x="1050" y="182" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0apn5fw_di" bpmnElement="Flow_0apn5fw">
<di:waypoint x="820" y="182" />
<di:waypoint x="820" y="120" />
<di:waypoint x="890" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="826" y="148" width="19" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_16qjxga_di" bpmnElement="Flow_16qjxga">
<di:waypoint x="770" y="290" />
<di:waypoint x="820" y="290" />
<di:waypoint x="820" y="232" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0b4pvj2_di" bpmnElement="Flow_0b4pvj2">
<di:waypoint x="845" y="207" />
<di:waypoint x="1025" y="207" />
<bpmndi:BPMNLabel>
<dc:Bounds x="928" y="189" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_06gb1zr_di" bpmnElement="Flow_06gb1zr">
<di:waypoint x="208" y="207" />
<di:waypoint x="260" y="207" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1h8w6f7_di" bpmnElement="Flow_1h8w6f7">
<di:waypoint x="645" y="207" />
<di:waypoint x="795" y="207" />
<bpmndi:BPMNLabel>
<dc:Bounds x="712" y="183" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_104dmrv_di" bpmnElement="Flow_104dmrv">
<di:waypoint x="360" y="207" />
<di:waypoint x="420" y="207" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ikn93z_di" bpmnElement="Flow_0ikn93z">
<di:waypoint x="620" y="232" />
<di:waypoint x="620" y="290" />
<di:waypoint x="670" y="290" />
<bpmndi:BPMNLabel>
<dc:Bounds x="626" y="257" width="19" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_04tpb3e_di" bpmnElement="Flow_04tpb3e">
<di:waypoint x="520" y="207" />
<di:waypoint x="595" y="207" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_171nf3j_di" bpmnElement="Flow_171nf3j">
<di:waypoint x="1200" y="290" />
<di:waypoint x="1270" y="290" />
<di:waypoint x="1270" y="225" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1pvko5s_di" bpmnElement="Flow_1pvko5s">
<di:waypoint x="1075" y="207" />
<di:waypoint x="1252" y="207" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Gateway_0ocn7fn_di" bpmnElement="Gateway_0ocn7fn" isMarkerVisible="true">
<dc:Bounds x="595" y="182" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="584" y="152" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0y2l88d_di" bpmnElement="Gateway_0y2l88d" isMarkerVisible="true">
<dc:Bounds x="795" y="182" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="833" y="216" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0263vxi_di" bpmnElement="Activity_0263vxi">
<dc:Bounds x="670" y="250" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1iupgqu_di" bpmnElement="Gateway_1iupgqu" isMarkerVisible="true">
<dc:Bounds x="1025" y="182" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1073" y="166" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0aeqvs6_di" bpmnElement="Activity_1x0wxtq">
<dc:Bounds x="890" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0clnuqi_di" bpmnElement="Activity_1mkqpod">
<dc:Bounds x="1100" y="250" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_09a7t9p_di" bpmnElement="Event_09a7t9p">
<dc:Bounds x="172" y="189" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="155" y="232" width="70" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1uazifo_di" bpmnElement="Activity_1uazifo">
<dc:Bounds x="260" y="167" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_01imt1t_di" bpmnElement="Activity_1qpe6gu">
<dc:Bounds x="420" y="167" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_10j4iim_di" bpmnElement="Event_10j4iim">
<dc:Bounds x="1252" y="189" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1235" y="151.5" width="70" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>