-
Notifications
You must be signed in to change notification settings - Fork 0
/
ActivityCoding.bpmn
453 lines (444 loc) · 28.1 KB
/
ActivityCoding.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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://activiti.org/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_DdZocL47EeOQo_IRkjDF6w" exporter="camunda modeler" exporterVersion="2.5.0" targetNamespace="http://activiti.org/bpmn">
<bpmn2:process id="ActivityCoding" name="ActivityCoding" isExecutable="true">
<bpmn2:userTask id="code_round_2" camunda:candidateGroups="ROLE_ACTIVITY_CODER" camunda:priority="${priority}" camunda:formKey="activity-coding" name="Activity Coding">
<bpmn2:documentation>${project_id} - ${project_title}</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:inputOutput><![CDATA[
]]><camunda:inputParameter name="Locale">en-UK</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="TaskName">Activity Coding</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="Skippable">false</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="GroupId">ROLE_ACTIVITY_CODER</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="ui-path">activity-coding</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="NodeName">Activity Coding</camunda:inputParameter><![CDATA[
]]></camunda:inputOutput>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.RollbackTaskListener" event="complete"/>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.ParallelGroupRestorePointListener" event="create">
<camunda:field name="taskGroupKey" stringValue="1"/>
</camunda:taskListener>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:boundaryEvent id="code_round_2_flag_event" name="" attachedToRef="code_round_2" cancelActivity="false">
<bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>
<bpmn2:messageEventDefinition id="MessageEventDefinition_2" messageRef="Message_2"/>
</bpmn2:boundaryEvent>
<bpmn2:endEvent id="EndEvent_2" name="End Flagging">
<bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="SequenceFlow_13" name="" sourceRef="code_round_2_flag_event" targetRef="activity_flag_2"/>
<bpmn2:userTask id="activity_flag_1" camunda:candidateGroups="ROLE_ACTIVITY_FLAG_RESOLVER" camunda:priority="${priority}" camunda:formKey="flag-resolution" name="Flag Resolution">
<bpmn2:documentation>Activity Coding - ${project_id} - ${project_title}</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.FlagResolutionCreatedListener" event="create">
<camunda:field name="targetTaskKey" stringValue="code_round_1"/>
</camunda:taskListener>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.FlagResolutionCompletedListener" event="complete"/>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="activity_flag_1" targetRef="EndEvent_2"/>
<bpmn2:userTask id="activity_flag_2" camunda:candidateGroups="ROLE_ACTIVITY_FLAG_RESOLVER" camunda:priority="${priority}" camunda:formKey="flag-resolution" name="Flag Resolution">
<bpmn2:documentation>Activity Coding - ${project_id} - ${project_title}</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.FlagResolutionCreatedListener" event="create">
<camunda:field name="targetTaskKey" stringValue="code_round_2"/>
</camunda:taskListener>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.FlagResolutionCompletedListener" event="complete"/>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_19</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:sequenceFlow id="SequenceFlow_19" name="" sourceRef="activity_flag_2" targetRef="EndEvent_3"/>
<bpmn2:startEvent id="StartEvent_1" name="ActivityCoding 
Start Event">
<bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="StartEvent_1" targetRef="ParallelGateway_1"/>
<bpmn2:boundaryEvent id="code_round_1_flag_event" attachedToRef="code_round_1" cancelActivity="false">
<bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
<bpmn2:messageEventDefinition id="MessageEventDefinition_1" messageRef="Message_1"/>
</bpmn2:boundaryEvent>
<bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="code_round_1_flag_event" targetRef="activity_flag_1"/>
<bpmn2:userTask id="code_round_1" camunda:candidateGroups="ROLE_ACTIVITY_CODER" camunda:priority="${priority}" camunda:formKey="activity-coding" name="Activity Coding">
<bpmn2:documentation>${project_id} - ${project_title}</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:inputOutput><![CDATA[
]]><camunda:inputParameter name="Locale">en-UK</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="TaskName">Activity Coding</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="Skippable">false</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="GroupId">ROLE_ACTIVITY_CODER</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="ui-path">activity-coding</camunda:inputParameter><![CDATA[
]]><camunda:inputParameter name="NodeName">Activity Coding</camunda:inputParameter><![CDATA[
]]></camunda:inputOutput>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.RollbackTaskListener" event="complete"/>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.ParallelGroupRestorePointListener" event="create">
<camunda:field name="taskGroupKey" stringValue="1"/>
</camunda:taskListener>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:parallelGateway id="ParallelGateway_1" name="Task
Splitter">
<bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
</bpmn2:parallelGateway>
<bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="ParallelGateway_1" targetRef="code_round_2"/>
<bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="ParallelGateway_1" targetRef="code_round_1"/>
<bpmn2:endEvent id="EndEvent_3" name="End Flagging">
<bpmn2:incoming>SequenceFlow_19</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="code_round_2" targetRef="ParallelGateway_2"/>
<bpmn2:sequenceFlow id="SequenceFlow_23" name="" sourceRef="code_round_1" targetRef="ParallelGateway_2"/>
<bpmn2:scriptTask id="autoarbritration_script" name="Auto Arbitration" scriptFormat="groovy">
<bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
<bpmn2:script><![CDATA[println "-------------Autoarbitration time---------------"
com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper();
java.util.Map<String, Object> cr1 = mapper.readValue(code_round_1, new com.fasterxml.jackson.core.type.TypeReference<java.util.Map<java.lang.String, java.lang.Object>>(){});
java.util.Map<String, Object> cr2 = mapper.readValue(code_round_2, new com.fasterxml.jackson.core.type.TypeReference<java.util.Map<java.lang.String, java.lang.Object>>(){});
if(cr1?.purpose?.code == cr2?.purpose?.code && cr1?.hasFeasibilityStudy == cr2?.hasFeasibilityStudy && cr1?.hasTechnicalAssistance == cr2?.hasTechnicalAssistance){
println "Running auto arbitration..."
def arbitrated = new java.util.HashMap()
java.util.Set activities = new java.util.HashSet()
arbitrated.project=cr1?.project
arbitrated.purpose=cr1?.purpose
arbitrated.hasFeasibilityStudy=cr1?.hasFeasibilityStudy
arbitrated.hasTechnicalAssistance=cr1?.hasTechnicalAssistance
activities.addAll(cr1?.activities)
activities.addAll(cr2?.activities)
arbitrated.activities=activities
arbitrated.created=new Date()
arbitrated.coder=null
arbitrated.level=org.aiddata.internal.common.model.coding.CodeRound.ARBITRATION_LEVEL
arbitrated.autoCreated=true
execution.setVariable("arbitration",arbitrated);
execution.setVariable("isAuto","true");
println "Running auto arbitration done!"
} else {
println "Cant arbitrate this one..."
}
println "-------------bye Autoarbitration ---------------"]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="autoarbritration_script" targetRef="ExclusiveGateway_1"/>
<bpmn2:parallelGateway id="ParallelGateway_2" name="Task
Join">
<bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>
<bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
</bpmn2:parallelGateway>
<bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="ParallelGateway_2" targetRef="autoarbritration_script"/>
<bpmn2:exclusiveGateway id="ExclusiveGateway_1" default="SequenceFlow_15">
<bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
<bpmn2:outgoing>SequenceFlow_15</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="SequenceFlow_5" name="manual" sourceRef="ExclusiveGateway_1" targetRef="arbitration">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${execution.getVariable("isAuto")==null}]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="SequenceFlow_15" name="auto" sourceRef="ExclusiveGateway_1" targetRef="ExclusiveGateway_2"/>
<bpmn2:boundaryEvent id="manual_arbitration_flag_event" name="" attachedToRef="arbitration" cancelActivity="false">
<bpmn2:outgoing>SequenceFlow_21</bpmn2:outgoing>
<bpmn2:messageEventDefinition id="MessageEventDefinition_3" messageRef="Message_3"/>
</bpmn2:boundaryEvent>
<bpmn2:sequenceFlow id="SequenceFlow_21" name="" sourceRef="manual_arbitration_flag_event" targetRef="UserTask_2"/>
<bpmn2:userTask id="UserTask_2" camunda:formKey="flag-resolution" camunda:candidateGroups="ROLE_ACTIVITY_FLAG_RESOLVER" camunda:priority="${priority}" name="Flag Resolution">
<bpmn2:documentation>Activity Coding Arbitration - ${project_id} - ${project_title}</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.FlagResolutionCreatedListener" event="create">
<camunda:field name="targetTaskKey" stringValue="arbitration"/>
</camunda:taskListener>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.FlagResolutionCompletedListener" event="complete"/>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_21</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_20</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:sequenceFlow id="SequenceFlow_20" name="" sourceRef="UserTask_2" targetRef="EndEvent_4"/>
<bpmn2:exclusiveGateway id="ExclusiveGateway_2">
<bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
<bpmn2:incoming>SequenceFlow_15</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_24</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="SequenceFlow_24" name="" sourceRef="ExclusiveGateway_2" targetRef="ServiceTask_1"/>
<bpmn2:serviceTask id="ServiceTask_1" camunda:class="org.aiddata.internal.workflow.delegate.MongoUpdaterDelegate" name="Save Task">
<bpmn2:incoming>SequenceFlow_24</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:sequenceFlow id="SequenceFlow_17" name="" sourceRef="ServiceTask_1" targetRef="EndEvent_1"/>
<bpmn2:userTask id="arbitration" camunda:candidateGroups="ROLE_ACTIVITY_ARBITRATOR" camunda:priority="${priority}" camunda:formKey="activity-coding-arbitration" name="Manual Arbitration">
<bpmn2:documentation>${project_id} - ${project_title}</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:taskListener class="org.aiddata.internal.workflow.delegate.RollbackTaskListener" event="complete"/>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="arbitration" targetRef="ExclusiveGateway_2"/>
<bpmn2:endEvent id="EndEvent_1" name="End ">
<bpmn2:incoming>SequenceFlow_17</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:endEvent id="EndEvent_4">
<bpmn2:incoming>SequenceFlow_20</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:textAnnotation id="TextAnnotation_1">
<bpmn2:text><![CDATA[A listener is called when Activity Coding task is created.
A listener is called when Flag Resolution task is created, a field is injected to the listener with the value of the code round name that should use as target task
code_round_1
code_round_2
arbitration
- http://docs.camunda.org/latest/guides/user-guide/#process-engine-delegation-code-task-listener]]></bpmn2:text>
</bpmn2:textAnnotation>
<bpmn2:textAnnotation id="TextAnnotation_2">
<bpmn2:text>Activity Coding - Task Model v4</bpmn2:text>
</bpmn2:textAnnotation>
</bpmn2:process>
<bpmn2:message id="Message_1" name="code_round_1"/>
<bpmn2:message id="Message_2" name="code_round_2"/>
<bpmn2:message id="Message_3" name="arbitration"/>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ActivityCoding">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_3" bpmnElement="StartEvent_1">
<dc:Bounds height="36.0" width="36.0" x="65.0" y="245.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="38.0" width="102.0" x="-12.0" y="292.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_UserTask_3" bpmnElement="code_round_1">
<dc:Bounds height="80.0" width="100.0" x="221.0" y="148.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_UserTask_4" bpmnElement="code_round_2">
<dc:Bounds height="80.0" width="100.0" x="221.0" y="311.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_2" bpmnElement="ParallelGateway_1">
<dc:Bounds height="50.0" width="50.0" x="146.0" y="238.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="38.0" width="47.0" x="196.0" y="244.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_UserTask_4">
<di:waypoint xsi:type="dc:Point" x="171.0" y="288.0"/>
<di:waypoint xsi:type="dc:Point" x="171.0" y="351.0"/>
<di:waypoint xsi:type="dc:Point" x="221.0" y="351.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="169.0" y="467.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_UserTask_3">
<di:waypoint xsi:type="dc:Point" x="171.0" y="238.0"/>
<di:waypoint xsi:type="dc:Point" x="171.0" y="215.0"/>
<di:waypoint xsi:type="dc:Point" x="171.0" y="188.0"/>
<di:waypoint xsi:type="dc:Point" x="221.0" y="188.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="168.0" y="328.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_ScriptTask_2" bpmnElement="autoarbritration_script">
<dc:Bounds height="80.0" width="100.0" x="476.0" y="223.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_3" bpmnElement="ParallelGateway_2">
<dc:Bounds height="50.0" width="50.0" x="383.0" y="238.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="38.0" width="44.0" x="341.0" y="244.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ParallelGateway_3" targetElement="_BPMNShape_ScriptTask_2">
<di:waypoint xsi:type="dc:Point" x="433.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="476.0" y="263.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="452.0" y="263.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_4" bpmnElement="EndEvent_1">
<dc:Bounds height="36.0" width="36.0" x="1070.0" y="245.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="33.0" x="1072.0" y="286.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ScriptTask_2" targetElement="_BPMNShape_ExclusiveGateway_3">
<di:waypoint xsi:type="dc:Point" x="576.0" y="264.0"/>
<di:waypoint xsi:type="dc:Point" x="597.0" y="264.0"/>
<di:waypoint xsi:type="dc:Point" x="597.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="624.0" y="263.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="577.0" y="265.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_3" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="624.0" y="238.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="649.0" y="293.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_UserTask_7" bpmnElement="arbitration">
<dc:Bounds height="80.0" width="100.0" x="688.0" y="100.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ExclusiveGateway_3" targetElement="_BPMNShape_UserTask_7">
<di:waypoint xsi:type="dc:Point" x="649.0" y="238.0"/>
<di:waypoint xsi:type="dc:Point" x="649.0" y="140.0"/>
<di:waypoint xsi:type="dc:Point" x="688.0" y="140.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="48.0" x="603.0" y="152.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_6" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="787.0" y="238.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="812.0" y="293.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_UserTask_7" targetElement="_BPMNShape_ExclusiveGateway_6">
<di:waypoint xsi:type="dc:Point" x="788.0" y="140.0"/>
<di:waypoint xsi:type="dc:Point" x="812.0" y="140.0"/>
<di:waypoint xsi:type="dc:Point" x="812.0" y="238.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="757.0" y="183.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_15" sourceElement="_BPMNShape_ExclusiveGateway_3" targetElement="_BPMNShape_ExclusiveGateway_6">
<di:waypoint xsi:type="dc:Point" x="674.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="787.0" y="263.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="31.0" x="558.0" y="263.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_StartEvent_3" targetElement="_BPMNShape_ParallelGateway_2">
<di:waypoint xsi:type="dc:Point" x="101.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="133.0" y="264.0"/>
<di:waypoint xsi:type="dc:Point" x="133.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="146.0" y="263.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="137.0" y="380.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_ServiceTask_3" bpmnElement="ServiceTask_1">
<dc:Bounds height="80.0" width="100.0" x="911.0" y="223.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_17" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_ServiceTask_3" targetElement="_BPMNShape_EndEvent_4">
<di:waypoint xsi:type="dc:Point" x="1011.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="1070.0" y="263.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="906.0" y="263.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_15" bpmnElement="code_round_1_flag_event">
<dc:Bounds height="36.0" width="36.0" x="303.0" y="130.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="318.0" y="171.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_UserTask_10" bpmnElement="activity_flag_1">
<dc:Bounds height="61.0" width="100.0" x="377.0" y="40.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_BoundaryEvent_15" targetElement="_BPMNShape_UserTask_10">
<di:waypoint xsi:type="dc:Point" x="321.0" y="130.0"/>
<di:waypoint xsi:type="dc:Point" x="321.0" y="70.0"/>
<di:waypoint xsi:type="dc:Point" x="377.0" y="70.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="318.0" y="75.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_16" bpmnElement="EndEvent_2">
<dc:Bounds height="36.0" width="36.0" x="519.0" y="53.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="537.0" y="94.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_UserTask_10" targetElement="_BPMNShape_EndEvent_16">
<di:waypoint xsi:type="dc:Point" x="477.0" y="70.0"/>
<di:waypoint xsi:type="dc:Point" x="505.0" y="70.0"/>
<di:waypoint xsi:type="dc:Point" x="505.0" y="71.0"/>
<di:waypoint xsi:type="dc:Point" x="519.0" y="71.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="505.0" y="71.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_16" bpmnElement="code_round_2_flag_event">
<dc:Bounds height="36.0" width="36.0" x="303.0" y="373.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_UserTask_11" bpmnElement="activity_flag_2">
<dc:Bounds height="58.0" width="100.0" x="377.0" y="436.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_BoundaryEvent_16" targetElement="_BPMNShape_UserTask_11">
<di:waypoint xsi:type="dc:Point" x="321.0" y="409.0"/>
<di:waypoint xsi:type="dc:Point" x="321.0" y="465.0"/>
<di:waypoint xsi:type="dc:Point" x="377.0" y="465.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="318.0" y="454.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_17" bpmnElement="EndEvent_3">
<dc:Bounds height="36.0" width="36.0" x="629.0" y="447.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="82.0" x="606.0" y="488.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_19" sourceElement="_BPMNShape_UserTask_11" targetElement="_BPMNShape_EndEvent_17">
<di:waypoint xsi:type="dc:Point" x="477.0" y="465.0"/>
<di:waypoint xsi:type="dc:Point" x="629.0" y="465.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="497.0" y="479.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_17" bpmnElement="manual_arbitration_flag_event">
<dc:Bounds height="36.0" width="36.0" x="770.0" y="82.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="785.0" y="123.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_UserTask_13" bpmnElement="UserTask_2">
<dc:Bounds height="68.0" width="100.0" x="840.0" y="12.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_21" bpmnElement="SequenceFlow_21" sourceElement="_BPMNShape_BoundaryEvent_17" targetElement="_BPMNShape_UserTask_13">
<di:waypoint xsi:type="dc:Point" x="788.0" y="82.0"/>
<di:waypoint xsi:type="dc:Point" x="788.0" y="46.0"/>
<di:waypoint xsi:type="dc:Point" x="840.0" y="46.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="766.0" y="30.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_18" bpmnElement="EndEvent_4">
<dc:Bounds height="36.0" width="36.0" x="1005.0" y="28.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="1023.0" y="69.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_20" sourceElement="_BPMNShape_UserTask_13" targetElement="_BPMNShape_EndEvent_18">
<di:waypoint xsi:type="dc:Point" x="940.0" y="46.0"/>
<di:waypoint xsi:type="dc:Point" x="1005.0" y="46.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="958.0" y="46.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_TextAnnotation_5" bpmnElement="TextAnnotation_1">
<dc:Bounds height="139.0" width="601.0" x="799.0" y="395.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_TextAnnotation_6" bpmnElement="TextAnnotation_2">
<dc:Bounds height="50.0" width="229.0" x="0.0" y="8.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_22" bpmnElement="SequenceFlow_22" sourceElement="_BPMNShape_UserTask_4" targetElement="_BPMNShape_ParallelGateway_3">
<di:waypoint xsi:type="dc:Point" x="321.0" y="351.0"/>
<di:waypoint xsi:type="dc:Point" x="407.0" y="351.0"/>
<di:waypoint xsi:type="dc:Point" x="408.0" y="288.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="405.0" y="307.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_UserTask_3" targetElement="_BPMNShape_ParallelGateway_3">
<di:waypoint xsi:type="dc:Point" x="321.0" y="188.0"/>
<di:waypoint xsi:type="dc:Point" x="407.0" y="188.0"/>
<di:waypoint xsi:type="dc:Point" x="408.0" y="238.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="405.0" y="226.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_24" sourceElement="_BPMNShape_ExclusiveGateway_6" targetElement="_BPMNShape_ServiceTask_3">
<di:waypoint xsi:type="dc:Point" x="837.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="911.0" y="263.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="871.0" y="263.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>