@@ -17,6 +17,7 @@ When calling the flow the following variables must be set:
17
17
</bpmn : extensionElements >
18
18
<bpmn : incoming >arrow_to_config</bpmn : incoming >
19
19
<bpmn : incoming >arrow_account_missing</bpmn : incoming >
20
+ <bpmn : incoming >no_data_found</bpmn : incoming >
20
21
<bpmn : outgoing >Flow_088kfgl</bpmn : outgoing >
21
22
</bpmn : userTask >
22
23
<bpmn : sequenceFlow id =" Flow_1nv7ilo" sourceRef =" startJob" targetRef =" read_import_config" />
@@ -52,7 +53,7 @@ When calling the flow the following variables must be set:
52
53
</bpmn : exclusiveGateway >
53
54
<bpmn : sequenceFlow id =" Flow_0xcxk57" name =" with account id" sourceRef =" find_target_account" targetRef =" target_account_exists" />
54
55
<bpmn : sequenceFlow id =" arrow_account_missing" name =" reconfigure" sourceRef =" target_account_exists" targetRef =" task_configure" />
55
- <bpmn : sequenceFlow id =" arrow_target_account_exists" name =" yes" sourceRef =" target_account_exists" targetRef =" extract_accounts " >
56
+ <bpmn : sequenceFlow id =" arrow_target_account_exists" name =" yes" sourceRef =" target_account_exists" targetRef =" read_csv_file " >
56
57
<bpmn : conditionExpression xsi : type =" bpmn:tFormalExpression" >${targetAccountId != null}</bpmn : conditionExpression >
57
58
</bpmn : sequenceFlow >
58
59
<bpmn : serviceTask id =" read_csv_file" name =" Read in CSV file" camunda : modelerTemplate =" com.jongsoft.finance.bpmn.delegate.importer.ReadTransactionLogDelegate" camunda : modelerTemplateVersion =" 1" camunda : delegateExpression =" ${readTransactionLogDelegate}" >
@@ -63,13 +64,14 @@ When calling the flow the following variables must be set:
63
64
<camunda : outputParameter name =" transactionTokens" >${storageTokens}</camunda : outputParameter >
64
65
<camunda : outputParameter name =" allowGenerate" >${generateAccounts}</camunda : outputParameter >
65
66
<camunda : outputParameter name =" applyRules" >${applyRules}</camunda : outputParameter >
67
+ <camunda : outputParameter name =" accounts_data" >${locatable}</camunda : outputParameter >
66
68
</camunda : inputOutput >
67
69
</bpmn : extensionElements >
68
- <bpmn : incoming >Flow_11g50b7 </bpmn : incoming >
69
- <bpmn : outgoing >Flow_02v0o7o </bpmn : outgoing >
70
+ <bpmn : incoming >arrow_target_account_exists </bpmn : incoming >
71
+ <bpmn : outgoing >Flow_03qkx35 </bpmn : outgoing >
70
72
</bpmn : serviceTask >
71
73
<bpmn : subProcess id =" process_account_mapping" name =" Map accounts" >
72
- <bpmn : incoming >Flow_0ow7pbb </bpmn : incoming >
74
+ <bpmn : incoming >transactions_found </bpmn : incoming >
73
75
<bpmn : outgoing >Flow_0pngnev</bpmn : outgoing >
74
76
<bpmn : multiInstanceLoopCharacteristics isSequential =" true" camunda : collection =" ${accounts_data}" camunda : elementVariable =" account_extract" />
75
77
<bpmn : startEvent id =" start_match_accounts" >
@@ -147,7 +149,6 @@ When calling the flow the following variables must be set:
147
149
<bpmn : outgoing >Flow_0czgnsv</bpmn : outgoing >
148
150
</bpmn : serviceTask >
149
151
</bpmn : subProcess >
150
- <bpmn : sequenceFlow id =" Flow_0ow7pbb" name =" extracts" sourceRef =" extract_accounts" targetRef =" process_account_mapping" />
151
152
<bpmn : sequenceFlow id =" Flow_0pngnev" name =" mappings" sourceRef =" process_account_mapping" targetRef =" confirm_mappings" />
152
153
<bpmn : userTask id =" confirm_mappings" name =" Confirm account mapping" >
153
154
<bpmn : extensionElements >
@@ -159,20 +160,9 @@ When calling the flow the following variables must be set:
159
160
<bpmn : incoming >Flow_0pngnev</bpmn : incoming >
160
161
<bpmn : outgoing >Flow_11g50b7</bpmn : outgoing >
161
162
</bpmn : userTask >
162
- <bpmn : sequenceFlow id =" Flow_11g50b7" sourceRef =" confirm_mappings" targetRef =" read_csv_file" />
163
- <bpmn : serviceTask id =" extract_accounts" name =" Extract accounts from CSV" camunda : modelerTemplate =" com.jongsoft.finance.bpmn.delegate.importer.ExtractAccountDetailsDelegate" camunda : modelerTemplateVersion =" 1" camunda : delegateExpression =" ${extractAccountDetailsDelegate}" >
164
- <bpmn : extensionElements >
165
- <camunda : inputOutput >
166
- <camunda : inputParameter name =" batchImportSlug" >${importJobSlug}</camunda : inputParameter >
167
- <camunda : inputParameter name =" importConfig" >${importConfiguration}</camunda : inputParameter >
168
- <camunda : outputParameter name =" accounts_data" >${locatable}</camunda : outputParameter >
169
- </camunda : inputOutput >
170
- </bpmn : extensionElements >
171
- <bpmn : incoming >arrow_target_account_exists</bpmn : incoming >
172
- <bpmn : outgoing >Flow_0ow7pbb</bpmn : outgoing >
173
- </bpmn : serviceTask >
163
+ <bpmn : sequenceFlow id =" Flow_11g50b7" sourceRef =" confirm_mappings" targetRef =" process_create_transactions" />
174
164
<bpmn : subProcess id =" process_create_transactions" name =" Process transactions" >
175
- <bpmn : incoming >Flow_02v0o7o </bpmn : incoming >
165
+ <bpmn : incoming >Flow_11g50b7 </bpmn : incoming >
176
166
<bpmn : outgoing >Flow_16v2prx</bpmn : outgoing >
177
167
<bpmn : multiInstanceLoopCharacteristics isSequential =" true" camunda : collection =" ${transactionTokens}" camunda : elementVariable =" transactionToken" />
178
168
<bpmn : startEvent id =" start_create_transaction" >
@@ -315,7 +305,6 @@ When calling the flow the following variables must be set:
315
305
<bpmn : outgoing >Flow_0rz5nze</bpmn : outgoing >
316
306
</bpmn : serviceTask >
317
307
</bpmn : subProcess >
318
- <bpmn : sequenceFlow id =" Flow_02v0o7o" sourceRef =" read_csv_file" targetRef =" process_create_transactions" />
319
308
<bpmn : sequenceFlow id =" Flow_16v2prx" sourceRef =" process_create_transactions" targetRef =" mark_import_done" />
320
309
<bpmn : endEvent id =" endJob" >
321
310
<bpmn : incoming >Flow_06dyjk4</bpmn : incoming >
@@ -331,6 +320,16 @@ When calling the flow the following variables must be set:
331
320
<bpmn : incoming >Flow_16v2prx</bpmn : incoming >
332
321
<bpmn : outgoing >Flow_06dyjk4</bpmn : outgoing >
333
322
</bpmn : serviceTask >
323
+ <bpmn : sequenceFlow id =" Flow_03qkx35" sourceRef =" read_csv_file" targetRef =" no_transactions" />
324
+ <bpmn : exclusiveGateway id =" no_transactions" name =" empty import" default =" transactions_found" >
325
+ <bpmn : incoming >Flow_03qkx35</bpmn : incoming >
326
+ <bpmn : outgoing >transactions_found</bpmn : outgoing >
327
+ <bpmn : outgoing >no_data_found</bpmn : outgoing >
328
+ </bpmn : exclusiveGateway >
329
+ <bpmn : sequenceFlow id =" transactions_found" sourceRef =" no_transactions" targetRef =" process_account_mapping" />
330
+ <bpmn : sequenceFlow id =" no_data_found" name =" Empty import file" sourceRef =" no_transactions" targetRef =" task_configure" >
331
+ <bpmn : conditionExpression xsi : type =" bpmn:tFormalExpression" >${accounts_data.isEmpty()}</bpmn : conditionExpression >
332
+ </bpmn : sequenceFlow >
334
333
</bpmn : process >
335
334
<bpmndi : BPMNDiagram id =" BPMNDiagram_1" >
336
335
<bpmndi : BPMNPlane id =" BPMNPlane_1" bpmnElement =" import_job" >
@@ -357,7 +356,13 @@ When calling the flow the following variables must be set:
357
356
</bpmndi : BPMNLabel >
358
357
</bpmndi : BPMNShape >
359
358
<bpmndi : BPMNShape id =" Activity_1y5d1uo_di" bpmnElement =" read_csv_file" >
360
- <dc : Bounds x =" 1480" y =" 250" width =" 100" height =" 80" />
359
+ <dc : Bounds x =" 1060" y =" 260" width =" 100" height =" 80" />
360
+ </bpmndi : BPMNShape >
361
+ <bpmndi : BPMNShape id =" Gateway_02tmvr8_di" bpmnElement =" no_transactions" isMarkerVisible =" true" >
362
+ <dc : Bounds x =" 1085" y =" 365" width =" 50" height =" 50" />
363
+ <bpmndi : BPMNLabel >
364
+ <dc : Bounds x =" 1010" y =" 383" width =" 65" height =" 14" />
365
+ </bpmndi : BPMNLabel >
361
366
</bpmndi : BPMNShape >
362
367
<bpmndi : BPMNShape id =" Activity_0bn3ft1_di" bpmnElement =" process_account_mapping" isExpanded =" true" >
363
368
<dc : Bounds x =" 810" y =" 450" width =" 780" height =" 330" />
@@ -445,9 +450,6 @@ When calling the flow the following variables must be set:
445
450
<bpmndi : BPMNShape id =" Activity_0vbcm2j_di" bpmnElement =" confirm_mappings" >
446
451
<dc : Bounds x =" 1280" y =" 250" width =" 100" height =" 80" />
447
452
</bpmndi : BPMNShape >
448
- <bpmndi : BPMNShape id =" Activity_0cfirls_di" bpmnElement =" extract_accounts" >
449
- <dc : Bounds x =" 1070" y =" 250" width =" 100" height =" 80" />
450
- </bpmndi : BPMNShape >
451
453
<bpmndi : BPMNShape id =" Activity_0nxa7la_di" bpmnElement =" process_create_transactions" isExpanded =" true" >
452
454
<dc : Bounds x =" 1710" y =" 85" width =" 1220" height =" 410" />
453
455
<bpmndi : BPMNLabel />
@@ -624,24 +626,17 @@ When calling the flow the following variables must be set:
624
626
<bpmndi : BPMNEdge id =" Flow_1q5av68_di" bpmnElement =" arrow_account_missing" >
625
627
<di : waypoint x =" 930" y =" 265" />
626
628
<di : waypoint x =" 930" y =" 160" />
627
- <di : waypoint x =" 540 " y =" 160" />
628
- <di : waypoint x =" 540 " y =" 250" />
629
+ <di : waypoint x =" 560 " y =" 160" />
630
+ <di : waypoint x =" 560 " y =" 250" />
629
631
<bpmndi : BPMNLabel >
630
- <dc : Bounds x =" 708 " y =" 142" width =" 56" height =" 14" />
632
+ <dc : Bounds x =" 718 " y =" 142" width =" 56" height =" 14" />
631
633
</bpmndi : BPMNLabel >
632
634
</bpmndi : BPMNEdge >
633
635
<bpmndi : BPMNEdge id =" Flow_1fbjukg_di" bpmnElement =" arrow_target_account_exists" >
634
636
<di : waypoint x =" 955" y =" 290" />
635
- <di : waypoint x =" 1070" y =" 290" />
636
- <bpmndi : BPMNLabel >
637
- <dc : Bounds x =" 1005" y =" 272" width =" 17" height =" 14" />
638
- </bpmndi : BPMNLabel >
639
- </bpmndi : BPMNEdge >
640
- <bpmndi : BPMNEdge id =" Flow_0ow7pbb_di" bpmnElement =" Flow_0ow7pbb" >
641
- <di : waypoint x =" 1120" y =" 330" />
642
- <di : waypoint x =" 1120" y =" 450" />
637
+ <di : waypoint x =" 1060" y =" 290" />
643
638
<bpmndi : BPMNLabel >
644
- <dc : Bounds x =" 1130 " y =" 383 " width =" 40 " height =" 14" />
639
+ <dc : Bounds x =" 985 " y =" 272 " width =" 17 " height =" 14" />
645
640
</bpmndi : BPMNLabel >
646
641
</bpmndi : BPMNEdge >
647
642
<bpmndi : BPMNEdge id =" Flow_0pngnev_di" bpmnElement =" Flow_0pngnev" >
@@ -653,10 +648,6 @@ When calling the flow the following variables must be set:
653
648
</bpmndi : BPMNEdge >
654
649
<bpmndi : BPMNEdge id =" Flow_11g50b7_di" bpmnElement =" Flow_11g50b7" >
655
650
<di : waypoint x =" 1380" y =" 290" />
656
- <di : waypoint x =" 1480" y =" 290" />
657
- </bpmndi : BPMNEdge >
658
- <bpmndi : BPMNEdge id =" Flow_02v0o7o_di" bpmnElement =" Flow_02v0o7o" >
659
- <di : waypoint x =" 1580" y =" 290" />
660
651
<di : waypoint x =" 1710" y =" 290" />
661
652
</bpmndi : BPMNEdge >
662
653
<bpmndi : BPMNEdge id =" Flow_16v2prx_di" bpmnElement =" Flow_16v2prx" >
@@ -667,6 +658,24 @@ When calling the flow the following variables must be set:
667
658
<di : waypoint x =" 3110" y =" 290" />
668
659
<di : waypoint x =" 3192" y =" 290" />
669
660
</bpmndi : BPMNEdge >
661
+ <bpmndi : BPMNEdge id =" Flow_03qkx35_di" bpmnElement =" Flow_03qkx35" >
662
+ <di : waypoint x =" 1110" y =" 340" />
663
+ <di : waypoint x =" 1110" y =" 365" />
664
+ </bpmndi : BPMNEdge >
665
+ <bpmndi : BPMNEdge id =" Flow_03qrqg6_di" bpmnElement =" transactions_found" >
666
+ <di : waypoint x =" 1110" y =" 415" />
667
+ <di : waypoint x =" 1110" y =" 450" />
668
+ </bpmndi : BPMNEdge >
669
+ <bpmndi : BPMNEdge id =" Flow_1wlgrgi_di" bpmnElement =" no_data_found" >
670
+ <di : waypoint x =" 1135" y =" 390" />
671
+ <di : waypoint x =" 1200" y =" 390" />
672
+ <di : waypoint x =" 1200" y =" 130" />
673
+ <di : waypoint x =" 540" y =" 130" />
674
+ <di : waypoint x =" 540" y =" 250" />
675
+ <bpmndi : BPMNLabel >
676
+ <dc : Bounds x =" 1109" y =" 133" width =" 82" height =" 14" />
677
+ </bpmndi : BPMNLabel >
678
+ </bpmndi : BPMNEdge >
670
679
</bpmndi : BPMNPlane >
671
680
</bpmndi : BPMNDiagram >
672
681
</bpmn : definitions >
0 commit comments