/
user-guide-basics.bpmn
276 lines (270 loc) · 13.4 KB
/
user-guide-basics.bpmn
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<?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="Proccess_rlm9uj3" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_15c4wm3</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_15c4wm3" sourceRef="StartEvent_1" targetRef="Activity_0v7nz5r" />
<bpmn:userTask id="Activity_0v7nz5r" name="Get Simple Information">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="simple-JSONSchema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="simple-UISchema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_15c4wm3</bpmn:incoming>
<bpmn:outgoing>Flow_1195zgn</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="Event_0c62aiv">
<bpmn:incoming>Flow_1czgyj5</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1195zgn" sourceRef="Activity_0v7nz5r" targetRef="Activity_0twfaq6" />
<bpmn:manualTask id="Activity_0s0ak1j" name="Call The Real Chuck Norris">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## Call The Real Chuck Norris
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}
**Telephone:** {{ telephone_all }}
.
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0kdjagb</bpmn:incoming>
<bpmn:outgoing>Flow_12yxktn</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:scriptTask id="Activity_0twfaq6" name="Format Telephone Number" scriptFormat="python">
<bpmn:incoming>Flow_1195zgn</bpmn:incoming>
<bpmn:outgoing>Flow_1vfw75z</bpmn:outgoing>
<bpmn:script># Get lenth of phone number entered
tel_len = len(telephone)
# Determine if the US country code was entered or not
if tel_len == 11:
country_code = telephone[0]
area_code_strt = 1
else:
country_code = "1"
area_code_strt = 0
# Set where phone number starts
phone_strt = area_code_strt + 3
# Get area code
area_code = "(" + telephone[area_code_strt:area_code_strt+3] + ")"
# Get phone number
phone_before_hyphen = telephone[phone_strt:phone_strt+3]
phone_after_hyphen = telephone[phone_strt+3:]
phone_number_all = phone_before_hyphen + "-" + phone_after_hyphen
telephone_all = country_code + " " + area_code + " " + phone_number_all
del(country_code)
del(area_code)
del(phone_number_all)
del(phone_strt)
del(area_code_strt)
del(phone_before_hyphen)
del(phone_after_hyphen)
del(tel_len)</bpmn:script>
</bpmn:scriptTask>
<bpmn:businessRuleTask id="Activity_0sualuq" name="Analyze Phone Number">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Analyze_Telephone_Number</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1vfw75z</bpmn:incoming>
<bpmn:outgoing>Flow_0z9399c</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_1vfw75z" sourceRef="Activity_0twfaq6" targetRef="Activity_0sualuq" />
<bpmn:sequenceFlow id="Flow_0z9399c" sourceRef="Activity_0sualuq" targetRef="Gateway_1nez60d" />
<bpmn:exclusiveGateway id="Gateway_1nez60d" name="The Real Chuck Norris?" default="Flow_0gbomzh">
<bpmn:incoming>Flow_0z9399c</bpmn:incoming>
<bpmn:outgoing>Flow_0z3tg6l</bpmn:outgoing>
<bpmn:outgoing>Flow_0gbomzh</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0z3tg6l" name="Yes" sourceRef="Gateway_1nez60d" targetRef="Gateway_06fiuk8">
<bpmn:conditionExpression>isRealChuckNorris</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:exclusiveGateway id="Gateway_06fiuk8" name="Which of The Real Chuck's Phone Numbers?" default="Flow_0r7plsj">
<bpmn:incoming>Flow_0z3tg6l</bpmn:incoming>
<bpmn:outgoing>Flow_0kdjagb</bpmn:outgoing>
<bpmn:outgoing>Flow_0r7plsj</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0kdjagb" sourceRef="Gateway_06fiuk8" targetRef="Activity_0s0ak1j">
<bpmn:conditionExpression>whichNumber == "Chuck's Personal Number"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0r7plsj" sourceRef="Gateway_06fiuk8" targetRef="Activity_1aggwmx" />
<bpmn:manualTask id="Activity_1aggwmx" name="Call Chuck's Fan Club">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>##. Call Chuck's Fan Club
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}
**Telephone:** {{ telephone_all }} </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0r7plsj</bpmn:incoming>
<bpmn:outgoing>Flow_1yshk2s</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:exclusiveGateway id="Gateway_0winlbl" name="Which Other Chuck?" default="Flow_0u5kd7m">
<bpmn:incoming>Flow_0gbomzh</bpmn:incoming>
<bpmn:outgoing>Flow_07urdvu</bpmn:outgoing>
<bpmn:outgoing>Flow_0u5kd7m</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0gbomzh" name="No" sourceRef="Gateway_1nez60d" targetRef="Gateway_0winlbl" />
<bpmn:sequenceFlow id="Flow_07urdvu" sourceRef="Gateway_0winlbl" targetRef="Activity_0uxorq8">
<bpmn:conditionExpression>whichNumber == "Some Other Chuck Norris"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0u5kd7m" sourceRef="Gateway_0winlbl" targetRef="Activity_1ewbhqq" />
<bpmn:exclusiveGateway id="Gateway_1em7510">
<bpmn:incoming>Flow_0q4rvgc</bpmn:incoming>
<bpmn:incoming>Flow_0gr5f0w</bpmn:incoming>
<bpmn:incoming>Flow_12yxktn</bpmn:incoming>
<bpmn:incoming>Flow_1yshk2s</bpmn:incoming>
<bpmn:outgoing>Flow_1czgyj5</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0q4rvgc" sourceRef="Activity_1ewbhqq" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_0gr5f0w" sourceRef="Activity_0uxorq8" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_12yxktn" sourceRef="Activity_0s0ak1j" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_1yshk2s" sourceRef="Activity_1aggwmx" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_1czgyj5" sourceRef="Gateway_1em7510" targetRef="Event_0c62aiv" />
<bpmn:manualTask id="Activity_1ewbhqq" name="Call Some Other Chuck">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## Call Some Other Chuck
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}
**Telephone:** {{ telephone_all }} </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0u5kd7m</bpmn:incoming>
<bpmn:outgoing>Flow_0q4rvgc</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:manualTask id="Activity_0uxorq8" name="Call Some Other Check Norris">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## Call Some Other Chuck Norris
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}.
**Telephone:** {{ telephone_all }} </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_07urdvu</bpmn:incoming>
<bpmn:outgoing>Flow_0gr5f0w</bpmn:outgoing>
</bpmn:manualTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_rlm9uj3">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-28" y="199" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_15rn7j8_di" bpmnElement="Activity_0v7nz5r">
<dc:Bounds x="60" y="177" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0c62aiv_di" bpmnElement="Event_0c62aiv">
<dc:Bounds x="1132" y="122" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1235hph_di" bpmnElement="Activity_0s0ak1j">
<dc:Bounds x="800" y="177" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0qqdrd7_di" bpmnElement="Activity_0twfaq6">
<dc:Bounds x="210" y="177" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0igyd4t_di" bpmnElement="Activity_0sualuq">
<dc:Bounds x="360" y="177" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1nez60d_di" bpmnElement="Gateway_1nez60d" isMarkerVisible="true">
<dc:Bounds x="535" y="192" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="523" y="249" width="79" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_06fiuk8_di" bpmnElement="Gateway_06fiuk8" isMarkerVisible="true">
<dc:Bounds x="665" y="192" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="647" y="150" width="86" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0nv529h_di" bpmnElement="Activity_1aggwmx">
<dc:Bounds x="800" y="290" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0winlbl_di" bpmnElement="Gateway_0winlbl" isMarkerVisible="true">
<dc:Bounds x="665" y="35" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="661" y="92" width="62" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1em7510_di" bpmnElement="Gateway_1em7510" isMarkerVisible="true">
<dc:Bounds x="995" y="115" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08p2k71_di" bpmnElement="Activity_1ewbhqq">
<dc:Bounds x="800" y="-100" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_063pfne_di" bpmnElement="Activity_0uxorq8">
<dc:Bounds x="800" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_15c4wm3_di" bpmnElement="Flow_15c4wm3">
<di:waypoint x="8" y="217" />
<di:waypoint x="60" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1195zgn_di" bpmnElement="Flow_1195zgn">
<di:waypoint x="160" y="217" />
<di:waypoint x="210" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1vfw75z_di" bpmnElement="Flow_1vfw75z">
<di:waypoint x="310" y="217" />
<di:waypoint x="360" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0z9399c_di" bpmnElement="Flow_0z9399c">
<di:waypoint x="460" y="217" />
<di:waypoint x="535" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0z3tg6l_di" bpmnElement="Flow_0z3tg6l">
<di:waypoint x="585" y="217" />
<di:waypoint x="665" y="217" />
<bpmndi:BPMNLabel>
<dc:Bounds x="601" y="199" width="18" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0kdjagb_di" bpmnElement="Flow_0kdjagb">
<di:waypoint x="715" y="217" />
<di:waypoint x="800" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0r7plsj_di" bpmnElement="Flow_0r7plsj">
<di:waypoint x="690" y="242" />
<di:waypoint x="690" y="330" />
<di:waypoint x="800" y="330" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gbomzh_di" bpmnElement="Flow_0gbomzh">
<di:waypoint x="560" y="192" />
<di:waypoint x="560" y="60" />
<di:waypoint x="665" y="60" />
<bpmndi:BPMNLabel>
<dc:Bounds x="568" y="103" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_07urdvu_di" bpmnElement="Flow_07urdvu">
<di:waypoint x="715" y="60" />
<di:waypoint x="800" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0u5kd7m_di" bpmnElement="Flow_0u5kd7m">
<di:waypoint x="690" y="35" />
<di:waypoint x="690" y="-60" />
<di:waypoint x="800" y="-60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0q4rvgc_di" bpmnElement="Flow_0q4rvgc">
<di:waypoint x="900" y="-60" />
<di:waypoint x="1020" y="-60" />
<di:waypoint x="1020" y="115" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gr5f0w_di" bpmnElement="Flow_0gr5f0w">
<di:waypoint x="900" y="60" />
<di:waypoint x="1020" y="60" />
<di:waypoint x="1020" y="115" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12yxktn_di" bpmnElement="Flow_12yxktn">
<di:waypoint x="900" y="217" />
<di:waypoint x="1020" y="217" />
<di:waypoint x="1020" y="165" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1yshk2s_di" bpmnElement="Flow_1yshk2s">
<di:waypoint x="900" y="330" />
<di:waypoint x="1020" y="330" />
<di:waypoint x="1020" y="165" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1czgyj5_di" bpmnElement="Flow_1czgyj5">
<di:waypoint x="1045" y="140" />
<di:waypoint x="1132" y="140" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>