|
72 | 72 | <bpmn:sequenceFlow id="SequenceFlow_1owrbto" sourceRef="determineAccountTask" targetRef="persistChangeTask" />
|
73 | 73 | <bpmn:endEvent id="processChangeEnd">
|
74 | 74 | <bpmn:incoming>SequenceFlow_19r3dzy</bpmn:incoming>
|
| 75 | + <bpmn:incoming>entity_not_found</bpmn:incoming> |
75 | 76 | </bpmn:endEvent>
|
76 | 77 | <bpmn:sequenceFlow id="SequenceFlow_19r3dzy" sourceRef="persistChangeTask" targetRef="processChangeEnd" />
|
77 | 78 | <bpmn:serviceTask id="determineAccountTask" name="Determine account" camunda:delegateExpression="${processAccountLookupDelegate}">
|
|
133 | 134 | <bpmn:incoming>sf_determineCategory</bpmn:incoming>
|
134 | 135 | <bpmn:outgoing>Flow_0va4wh6</bpmn:outgoing>
|
135 | 136 | </bpmn:serviceTask>
|
136 |
| - <bpmn:sequenceFlow id="Flow_0va4wh6" sourceRef="determineCategoryTask" targetRef="compute_entity_id" /> |
| 137 | + <bpmn:sequenceFlow id="Flow_0va4wh6" sourceRef="determineCategoryTask" targetRef="check_entity" /> |
137 | 138 | <bpmn:sequenceFlow id="Flow_0vivaah" sourceRef="compute_entity_id" targetRef="persistChangeTask" />
|
138 | 139 | <bpmn:serviceTask id="compute_entity_id" name="Grab Entity Id as String" camunda:expression="${entity.getId().toString()}" camunda:resultVariable="id">
|
139 |
| - <bpmn:incoming>Flow_0va4wh6</bpmn:incoming> |
140 |
| - <bpmn:incoming>Flow_03rhrc4</bpmn:incoming> |
141 |
| - <bpmn:incoming>Flow_1rdo73q</bpmn:incoming> |
| 140 | + <bpmn:incoming>entity_exists</bpmn:incoming> |
142 | 141 | <bpmn:outgoing>Flow_0vivaah</bpmn:outgoing>
|
143 | 142 | </bpmn:serviceTask>
|
144 |
| - <bpmn:sequenceFlow id="Flow_03rhrc4" sourceRef="lookupRelevantBudget" targetRef="compute_entity_id" /> |
| 143 | + <bpmn:sequenceFlow id="Flow_03rhrc4" sourceRef="lookupRelevantBudget" targetRef="check_entity" /> |
145 | 144 | <bpmn:serviceTask id="lookupRelevantBudget" name="Determine budget" camunda:modelerTemplate="com.jongsoft.finance.bpmn.budget.BudgetLookup" camunda:delegateExpression="${processBudgetLookupDelegate}">
|
146 | 145 | <bpmn:extensionElements>
|
147 | 146 | <camunda:inputOutput>
|
|
163 | 162 | <bpmn:incoming>sf_contract_lookup</bpmn:incoming>
|
164 | 163 | <bpmn:outgoing>Flow_1rdo73q</bpmn:outgoing>
|
165 | 164 | </bpmn:serviceTask>
|
166 |
| - <bpmn:sequenceFlow id="Flow_1rdo73q" sourceRef="locateContract" targetRef="compute_entity_id" /> |
| 165 | + <bpmn:sequenceFlow id="Flow_1rdo73q" sourceRef="locateContract" targetRef="check_entity" /> |
| 166 | + <bpmn:exclusiveGateway id="check_entity" name="entity exists" default="entity_not_found"> |
| 167 | + <bpmn:incoming>Flow_0va4wh6</bpmn:incoming> |
| 168 | + <bpmn:incoming>Flow_03rhrc4</bpmn:incoming> |
| 169 | + <bpmn:incoming>Flow_1rdo73q</bpmn:incoming> |
| 170 | + <bpmn:outgoing>entity_exists</bpmn:outgoing> |
| 171 | + <bpmn:outgoing>entity_not_found</bpmn:outgoing> |
| 172 | + </bpmn:exclusiveGateway> |
| 173 | + <bpmn:sequenceFlow id="entity_exists" name="yes" sourceRef="check_entity" targetRef="compute_entity_id"> |
| 174 | + <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${entity != null && entity.getId() != null}</bpmn:conditionExpression> |
| 175 | + </bpmn:sequenceFlow> |
| 176 | + <bpmn:sequenceFlow id="entity_not_found" name="no" sourceRef="check_entity" targetRef="processChangeEnd" /> |
167 | 177 | </bpmn:subProcess>
|
168 | 178 | <bpmn:sequenceFlow id="SequenceFlow_1btdqvl" sourceRef="processRuleConfiguration" targetRef="hasGroup" />
|
169 | 179 | <bpmn:sequenceFlow id="SequenceFlow_03zw3cp" sourceRef="buildChangeSubProcess" targetRef="Task_1cw86mx" />
|
|
284 | 294 | <bpmndi:BPMNShape id="Activity_0kccv3o_di" bpmnElement="locateContract">
|
285 | 295 | <dc:Bounds x="1651" y="390" width="100" height="80" />
|
286 | 296 | </bpmndi:BPMNShape>
|
| 297 | + <bpmndi:BPMNShape id="Gateway_00b68d3_di" bpmnElement="check_entity" isMarkerVisible="true"> |
| 298 | + <dc:Bounds x="1895" y="605" width="50" height="50" /> |
| 299 | + <bpmndi:BPMNLabel> |
| 300 | + <dc:Bounds x="1891" y="665" width="58" height="14" /> |
| 301 | + </bpmndi:BPMNLabel> |
| 302 | + </bpmndi:BPMNShape> |
287 | 303 | <bpmndi:BPMNEdge id="SequenceFlow_0tlb203_di" bpmnElement="SequenceFlow_0tlb203">
|
288 | 304 | <di:waypoint x="1429" y="430" />
|
289 | 305 | <di:waypoint x="1506" y="430" />
|
290 | 306 | </bpmndi:BPMNEdge>
|
291 | 307 | <bpmndi:BPMNEdge id="SequenceFlow_1tk5jhy_di" bpmnElement="sf_determineAccount">
|
292 |
| - <di:waypoint x="1540" y="414" /> |
293 |
| - <di:waypoint x="1540" y="330" /> |
| 308 | + <di:waypoint x="1550" y="424" /> |
| 309 | + <di:waypoint x="1550" y="330" /> |
294 | 310 | <di:waypoint x="1651" y="330" />
|
295 | 311 | <bpmndi:BPMNLabel>
|
296 |
| - <dc:Bounds x="1519" y="366" width="21" height="14" /> |
| 312 | + <dc:Bounds x="1529" y="371" width="21" height="14" /> |
297 | 313 | </bpmndi:BPMNLabel>
|
298 | 314 | </bpmndi:BPMNEdge>
|
299 | 315 | <bpmndi:BPMNEdge id="SequenceFlow_0co9o7z_di" bpmnElement="sf_determineBudget">
|
300 |
| - <di:waypoint x="1541" y="445" /> |
301 |
| - <di:waypoint x="1541" y="530" /> |
| 316 | + <di:waypoint x="1550" y="436" /> |
| 317 | + <di:waypoint x="1550" y="530" /> |
302 | 318 | <di:waypoint x="1651" y="530" />
|
303 | 319 | <bpmndi:BPMNLabel>
|
304 |
| - <dc:Bounds x="1561" y="586" width="35" height="14" /> |
| 320 | + <dc:Bounds x="1567" y="586" width="35" height="14" /> |
305 | 321 | </bpmndi:BPMNLabel>
|
306 | 322 | </bpmndi:BPMNEdge>
|
307 | 323 | <bpmndi:BPMNEdge id="SequenceFlow_04kbwr8_di" bpmnElement="sf_determineCategory">
|
|
344 | 360 | </bpmndi:BPMNEdge>
|
345 | 361 | <bpmndi:BPMNEdge id="Flow_0va4wh6_di" bpmnElement="Flow_0va4wh6">
|
346 | 362 | <di:waypoint x="1751" y="630" />
|
347 |
| - <di:waypoint x="1920" y="630" /> |
348 |
| - <di:waypoint x="1920" y="520" /> |
| 363 | + <di:waypoint x="1895" y="630" /> |
349 | 364 | </bpmndi:BPMNEdge>
|
350 | 365 | <bpmndi:BPMNEdge id="Flow_0vivaah_di" bpmnElement="Flow_0vivaah">
|
351 | 366 | <di:waypoint x="1970" y="480" />
|
|
356 | 371 | <bpmndi:BPMNEdge id="Flow_03rhrc4_di" bpmnElement="Flow_03rhrc4">
|
357 | 372 | <di:waypoint x="1751" y="530" />
|
358 | 373 | <di:waypoint x="1811" y="530" />
|
359 |
| - <di:waypoint x="1811" y="480" /> |
360 |
| - <di:waypoint x="1870" y="480" /> |
| 374 | + <di:waypoint x="1811" y="630" /> |
| 375 | + <di:waypoint x="1895" y="630" /> |
361 | 376 | </bpmndi:BPMNEdge>
|
362 | 377 | <bpmndi:BPMNEdge id="Flow_1rdo73q_di" bpmnElement="Flow_1rdo73q">
|
363 | 378 | <di:waypoint x="1751" y="430" />
|
364 | 379 | <di:waypoint x="1811" y="430" />
|
365 |
| - <di:waypoint x="1811" y="470" /> |
366 |
| - <di:waypoint x="1870" y="470" /> |
| 380 | + <di:waypoint x="1811" y="630" /> |
| 381 | + <di:waypoint x="1895" y="630" /> |
| 382 | + </bpmndi:BPMNEdge> |
| 383 | + <bpmndi:BPMNEdge id="Flow_045o8yc_di" bpmnElement="entity_exists"> |
| 384 | + <di:waypoint x="1920" y="605" /> |
| 385 | + <di:waypoint x="1920" y="520" /> |
| 386 | + <bpmndi:BPMNLabel> |
| 387 | + <dc:Bounds x="1927" y="560" width="17" height="14" /> |
| 388 | + </bpmndi:BPMNLabel> |
| 389 | + </bpmndi:BPMNEdge> |
| 390 | + <bpmndi:BPMNEdge id="Flow_1t6r9sc_di" bpmnElement="entity_not_found"> |
| 391 | + <di:waypoint x="1945" y="630" /> |
| 392 | + <di:waypoint x="2201" y="630" /> |
| 393 | + <di:waypoint x="2201" y="418" /> |
| 394 | + <bpmndi:BPMNLabel> |
| 395 | + <dc:Bounds x="2067" y="612" width="13" height="14" /> |
| 396 | + </bpmndi:BPMNLabel> |
367 | 397 | </bpmndi:BPMNEdge>
|
368 | 398 | <bpmndi:BPMNShape id="EndEvent_1djjkjl_di" bpmnElement="analyzeRuleEnd">
|
369 | 399 | <dc:Bounds x="2543" y="403" width="36" height="36" />
|
|
0 commit comments