Merge "Lower code duplication of AaiClient calls in BBInputSetupUtils"
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / ControllerExecutionBB.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/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" id="Definitions_1ahlzqg" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.14.0">
3   <bpmn:process id="ControllerExecution" name="ControllerExecutionBB" isExecutable="true">
4     <bpmn:startEvent id="StartEvent_1">
5       <bpmn:outgoing>SequenceFlow_0gmfit3</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:sequenceFlow id="SequenceFlow_0gmfit3" sourceRef="StartEvent_1" targetRef="ServiceTask_0inxg9l" />
8     <bpmn:endEvent id="EndEvent_0lgvk82">
9       <bpmn:incoming>SequenceFlow_1mkhog2</bpmn:incoming>
10       <bpmn:incoming>SequenceFlow_0no1qag</bpmn:incoming>
11     </bpmn:endEvent>
12     <bpmn:sequenceFlow id="SequenceFlow_1mkhog2" sourceRef="Task_1hs1mn0" targetRef="EndEvent_0lgvk82" />
13     <bpmn:callActivity id="CallActivity_1gfzi2g" name="Abstract CDS&#10;(CDS Call)&#10;" calledElement="AbstractCDSProcessingBB">
14       <bpmn:extensionElements>
15         <camunda:out source="WorkflowException" target="WorkflowException" />
16         <camunda:out source="CDSStatus" target="CDSStatus" />
17         <camunda:in source="executionObject" target="executionObject" />
18       </bpmn:extensionElements>
19       <bpmn:incoming>SequenceFlow_05qembo</bpmn:incoming>
20       <bpmn:outgoing>SequenceFlow_0cvsnuu</bpmn:outgoing>
21     </bpmn:callActivity>
22     <bpmn:serviceTask id="Task_1hs1mn0" name="Update AAI" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatus(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)),InjectExecution.execute(execution, execution.getVariable(&#34;scope&#34;)),InjectExecution.execute(execution, execution.getVariable(&#34;action&#34;)))}">
23       <bpmn:incoming>SequenceFlow_07tqu82</bpmn:incoming>
24       <bpmn:outgoing>SequenceFlow_1mkhog2</bpmn:outgoing>
25     </bpmn:serviceTask>
26     <bpmn:sequenceFlow id="SequenceFlow_05qembo" sourceRef="Task_0bhf6tp" targetRef="CallActivity_1gfzi2g" />
27     <bpmn:serviceTask id="Task_0bhf6tp" name="PreProcess Abstract CDS Processing" camunda:expression="${GenericCDSProcessing.buildPayloadBasedOnScopeAndAction(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
28       <bpmn:incoming>SequenceFlow_0vzx2yr</bpmn:incoming>
29       <bpmn:outgoing>SequenceFlow_05qembo</bpmn:outgoing>
30     </bpmn:serviceTask>
31     <bpmn:exclusiveGateway id="ExclusiveGateway_13q340y" default="SequenceFlow_15gxql1">
32       <bpmn:incoming>SequenceFlow_0cvsnuu</bpmn:incoming>
33       <bpmn:outgoing>SequenceFlow_07tqu82</bpmn:outgoing>
34       <bpmn:outgoing>SequenceFlow_15gxql1</bpmn:outgoing>
35     </bpmn:exclusiveGateway>
36     <bpmn:sequenceFlow id="SequenceFlow_0cvsnuu" sourceRef="CallActivity_1gfzi2g" targetRef="ExclusiveGateway_13q340y" />
37     <bpmn:sequenceFlow id="SequenceFlow_07tqu82" name="success" sourceRef="ExclusiveGateway_13q340y" targetRef="Task_1hs1mn0">
38       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("CDSStatus").equals("Success")}</bpmn:conditionExpression>
39     </bpmn:sequenceFlow>
40     <bpmn:endEvent id="EndEvent_0mnaj50">
41       <bpmn:incoming>SequenceFlow_15gxql1</bpmn:incoming>
42       <bpmn:errorEventDefinition id="ErrorEventDefinition_1s1hqgm" errorRef="Error_0aovtfv" />
43     </bpmn:endEvent>
44     <bpmn:sequenceFlow id="SequenceFlow_15gxql1" sourceRef="ExclusiveGateway_13q340y" targetRef="EndEvent_0mnaj50" />
45     <bpmn:serviceTask id="ServiceTask_0inxg9l" name="Set Actor, Scope and Action Params" camunda:expression="${ControllerExecution.setControllerActorScopeAction(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
46       <bpmn:incoming>SequenceFlow_0gmfit3</bpmn:incoming>
47       <bpmn:outgoing>SequenceFlow_05j6hg6</bpmn:outgoing>
48       <bpmn:outgoing>SequenceFlow_1lspfyy</bpmn:outgoing>
49     </bpmn:serviceTask>
50     <bpmn:sequenceFlow id="SequenceFlow_05j6hg6" sourceRef="ServiceTask_0inxg9l" targetRef="ExclusiveGateway_0plxwkg" />
51     <bpmn:exclusiveGateway id="ExclusiveGateway_0plxwkg" default="SequenceFlow_1t7hs4k">
52       <bpmn:incoming>SequenceFlow_1lspfyy</bpmn:incoming>
53       <bpmn:incoming>SequenceFlow_05j6hg6</bpmn:incoming>
54       <bpmn:outgoing>SequenceFlow_1t7hs4k</bpmn:outgoing>
55       <bpmn:outgoing>SequenceFlow_0vzx2yr</bpmn:outgoing>
56     </bpmn:exclusiveGateway>
57     <bpmn:sequenceFlow id="SequenceFlow_1lspfyy" sourceRef="ServiceTask_0inxg9l" targetRef="ExclusiveGateway_0plxwkg" />
58     <bpmn:callActivity id="BBToExecute" name="BB to Execute&#10;" calledElement="${bbName}">
59       <bpmn:extensionElements>
60         <camunda:out source="WorkflowException" target="WorkflowException" />
61         <camunda:out source="WorkflowExceptionErrorMessage" target="WorkflowExceptionErrorMessage" />
62         <camunda:in source="executionObject" target="executionObject" />
63         <camunda:in source="mso-request-id" target="mso-request-id" />
64         <camunda:in source="isRollback" target="isRollback" />
65         <camunda:out source="StatusMessage" target="StatusMessage" />
66       </bpmn:extensionElements>
67       <bpmn:incoming>SequenceFlow_0fv03vt</bpmn:incoming>
68       <bpmn:outgoing>SequenceFlow_0no1qag</bpmn:outgoing>
69       <bpmn:outgoing>SequenceFlow_0op5irz</bpmn:outgoing>
70     </bpmn:callActivity>
71     <bpmn:sequenceFlow id="SequenceFlow_1t7hs4k" sourceRef="ExclusiveGateway_0plxwkg" targetRef="Task_1rc2j9" />
72     <bpmn:sequenceFlow id="SequenceFlow_0no1qag" sourceRef="BBToExecute" targetRef="EndEvent_0lgvk82" />
73     <bpmn:sequenceFlow id="SequenceFlow_0fv03vt" sourceRef="Task_1rc2j9" targetRef="BBToExecute" />
74     <bpmn:serviceTask id="Task_1rc2j9" name="select BB " camunda:expression="${ControllerExecution.selectBB(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
75       <bpmn:incoming>SequenceFlow_1t7hs4k</bpmn:incoming>
76       <bpmn:outgoing>SequenceFlow_0fv03vt</bpmn:outgoing>
77     </bpmn:serviceTask>
78     <bpmn:endEvent id="EndEvent_1lxwuh2">
79       <bpmn:incoming>SequenceFlow_0op5irz</bpmn:incoming>
80       <bpmn:errorEventDefinition id="ErrorEventDefinition_0z001cu" errorRef="Error_0aovtfv" />
81     </bpmn:endEvent>
82     <bpmn:sequenceFlow id="SequenceFlow_0op5irz" sourceRef="BBToExecute" targetRef="EndEvent_1lxwuh2" />
83     <bpmn:sequenceFlow id="SequenceFlow_0vzx2yr" name="Actor= CDS" sourceRef="ExclusiveGateway_0plxwkg" targetRef="Task_0bhf6tp">
84       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("controller_actor") == "CDS"}</bpmn:conditionExpression>
85     </bpmn:sequenceFlow>
86   </bpmn:process>
87   <bpmn:error id="Error_0aovtfv" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
88   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
89     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ControllerExecution">
90       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
91         <dc:Bounds x="160" y="323" width="36" height="36" />
92         <bpmndi:BPMNLabel>
93           <dc:Bounds x="-17" y="279" width="90" height="20" />
94         </bpmndi:BPMNLabel>
95       </bpmndi:BPMNShape>
96       <bpmndi:BPMNEdge id="SequenceFlow_0gmfit3_di" bpmnElement="SequenceFlow_0gmfit3">
97         <di:waypoint x="196" y="341" />
98         <di:waypoint x="259" y="341" />
99         <bpmndi:BPMNLabel>
100           <dc:Bounds x="32.5" y="236" width="90" height="20" />
101         </bpmndi:BPMNLabel>
102       </bpmndi:BPMNEdge>
103       <bpmndi:BPMNShape id="EndEvent_0lgvk82_di" bpmnElement="EndEvent_0lgvk82">
104         <dc:Bounds x="1129" y="323" width="36" height="36" />
105         <bpmndi:BPMNLabel>
106           <dc:Bounds x="1025" y="251" width="90" height="20" />
107         </bpmndi:BPMNLabel>
108       </bpmndi:BPMNShape>
109       <bpmndi:BPMNEdge id="SequenceFlow_1mkhog2_di" bpmnElement="SequenceFlow_1mkhog2">
110         <di:waypoint x="1079" y="462" />
111         <di:waypoint x="1147" y="462" />
112         <di:waypoint x="1147" y="359" />
113         <bpmndi:BPMNLabel>
114           <dc:Bounds x="918" y="357" width="90" height="20" />
115         </bpmndi:BPMNLabel>
116       </bpmndi:BPMNEdge>
117       <bpmndi:BPMNShape id="CallActivity_1gfzi2g_di" bpmnElement="CallActivity_1gfzi2g">
118         <dc:Bounds x="725" y="422" width="100" height="80" />
119       </bpmndi:BPMNShape>
120       <bpmndi:BPMNShape id="ServiceTask_0404s6a_di" bpmnElement="Task_1hs1mn0">
121         <dc:Bounds x="979" y="422" width="100" height="80" />
122       </bpmndi:BPMNShape>
123       <bpmndi:BPMNEdge id="SequenceFlow_05qembo_di" bpmnElement="SequenceFlow_05qembo">
124         <di:waypoint x="672" y="462" />
125         <di:waypoint x="725" y="462" />
126         <bpmndi:BPMNLabel>
127           <dc:Bounds x="503.5" y="357" width="90" height="20" />
128         </bpmndi:BPMNLabel>
129       </bpmndi:BPMNEdge>
130       <bpmndi:BPMNShape id="ServiceTask_01mv1si_di" bpmnElement="Task_0bhf6tp">
131         <dc:Bounds x="572" y="422" width="100" height="80" />
132       </bpmndi:BPMNShape>
133       <bpmndi:BPMNShape id="ExclusiveGateway_13q340y_di" bpmnElement="ExclusiveGateway_13q340y" isMarkerVisible="true">
134         <dc:Bounds x="868" y="437" width="50" height="50" />
135         <bpmndi:BPMNLabel>
136           <dc:Bounds x="698" y="327" width="90" height="20" />
137         </bpmndi:BPMNLabel>
138       </bpmndi:BPMNShape>
139       <bpmndi:BPMNEdge id="SequenceFlow_0cvsnuu_di" bpmnElement="SequenceFlow_0cvsnuu">
140         <di:waypoint x="825" y="462" />
141         <di:waypoint x="868" y="462" />
142         <bpmndi:BPMNLabel>
143           <dc:Bounds x="651.5" y="357" width="90" height="20" />
144         </bpmndi:BPMNLabel>
145       </bpmndi:BPMNEdge>
146       <bpmndi:BPMNEdge id="SequenceFlow_07tqu82_di" bpmnElement="SequenceFlow_07tqu82">
147         <di:waypoint x="918" y="462" />
148         <di:waypoint x="979" y="462" />
149         <bpmndi:BPMNLabel>
150           <dc:Bounds x="856" y="409" width="41" height="14" />
151         </bpmndi:BPMNLabel>
152       </bpmndi:BPMNEdge>
153       <bpmndi:BPMNShape id="EndEvent_0mnaj50_di" bpmnElement="EndEvent_0mnaj50">
154         <dc:Bounds x="875" y="565" width="36" height="36" />
155         <bpmndi:BPMNLabel>
156           <dc:Bounds x="698" y="531" width="90" height="20" />
157         </bpmndi:BPMNLabel>
158       </bpmndi:BPMNShape>
159       <bpmndi:BPMNEdge id="SequenceFlow_15gxql1_di" bpmnElement="SequenceFlow_15gxql1">
160         <di:waypoint x="893" y="487" />
161         <di:waypoint x="893" y="565" />
162         <bpmndi:BPMNLabel>
163           <dc:Bounds x="713" y="436" width="90" height="20" />
164         </bpmndi:BPMNLabel>
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNShape id="ServiceTask_0inxg9l_di" bpmnElement="ServiceTask_0inxg9l">
167         <dc:Bounds x="259" y="301" width="100" height="80" />
168       </bpmndi:BPMNShape>
169       <bpmndi:BPMNEdge id="SequenceFlow_05j6hg6_di" bpmnElement="SequenceFlow_05j6hg6">
170         <di:waypoint x="359" y="341" />
171         <di:waypoint x="399" y="341" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="184" y="240" width="90" height="12" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNEdge>
176       <bpmndi:BPMNShape id="ExclusiveGateway_0plxwkg_di" bpmnElement="ExclusiveGateway_0plxwkg" isMarkerVisible="true">
177         <dc:Bounds x="399" y="316" width="50" height="50" />
178         <bpmndi:BPMNLabel>
179           <dc:Bounds x="309" y="255" width="0" height="12" />
180         </bpmndi:BPMNLabel>
181       </bpmndi:BPMNShape>
182       <bpmndi:BPMNEdge id="SequenceFlow_1lspfyy_di" bpmnElement="SequenceFlow_1lspfyy">
183         <di:waypoint x="359" y="341" />
184         <di:waypoint x="399" y="341" />
185         <bpmndi:BPMNLabel>
186           <dc:Bounds x="229" y="240" width="0" height="12" />
187         </bpmndi:BPMNLabel>
188       </bpmndi:BPMNEdge>
189       <bpmndi:BPMNShape id="CallActivity_01dem38_di" bpmnElement="BBToExecute">
190         <dc:Bounds x="824" y="168" width="100" height="80" />
191       </bpmndi:BPMNShape>
192       <bpmndi:BPMNEdge id="SequenceFlow_1t7hs4k_di" bpmnElement="SequenceFlow_1t7hs4k">
193         <di:waypoint x="424" y="316" />
194         <di:waypoint x="424" y="208" />
195         <di:waypoint x="572" y="208" />
196         <bpmndi:BPMNLabel>
197           <dc:Bounds x="271" y="89" width="83" height="36" />
198         </bpmndi:BPMNLabel>
199       </bpmndi:BPMNEdge>
200       <bpmndi:BPMNEdge id="SequenceFlow_0no1qag_di" bpmnElement="SequenceFlow_0no1qag">
201         <di:waypoint x="924" y="208" />
202         <di:waypoint x="1147" y="208" />
203         <di:waypoint x="1147" y="323" />
204         <bpmndi:BPMNLabel>
205           <dc:Bounds x="840.5" y="107" width="90" height="12" />
206         </bpmndi:BPMNLabel>
207       </bpmndi:BPMNEdge>
208       <bpmndi:BPMNEdge id="SequenceFlow_0fv03vt_di" bpmnElement="SequenceFlow_0fv03vt">
209         <di:waypoint x="672" y="208" />
210         <di:waypoint x="824" y="208" />
211         <bpmndi:BPMNLabel>
212           <dc:Bounds x="598" y="107" width="0" height="12" />
213         </bpmndi:BPMNLabel>
214       </bpmndi:BPMNEdge>
215       <bpmndi:BPMNShape id="ServiceTask_0qd9p4w_di" bpmnElement="Task_1rc2j9">
216         <dc:Bounds x="572" y="168" width="100" height="80" />
217       </bpmndi:BPMNShape>
218       <bpmndi:BPMNShape id="EndEvent_1lxwuh2_di" bpmnElement="EndEvent_1lxwuh2">
219         <dc:Bounds x="856" y="84" width="36" height="36" />
220         <bpmndi:BPMNLabel>
221           <dc:Bounds x="679" y="50" width="0" height="12" />
222         </bpmndi:BPMNLabel>
223       </bpmndi:BPMNShape>
224       <bpmndi:BPMNEdge id="SequenceFlow_0op5irz_di" bpmnElement="SequenceFlow_0op5irz">
225         <di:waypoint x="874" y="168" />
226         <di:waypoint x="874" y="120" />
227         <bpmndi:BPMNLabel>
228           <dc:Bounds x="739" y="58" width="0" height="12" />
229         </bpmndi:BPMNLabel>
230       </bpmndi:BPMNEdge>
231       <bpmndi:BPMNEdge id="SequenceFlow_0vzx2yr_di" bpmnElement="SequenceFlow_0vzx2yr">
232         <di:waypoint x="424" y="366" />
233         <di:waypoint x="424" y="462" />
234         <di:waypoint x="572" y="462" />
235         <bpmndi:BPMNLabel>
236           <dc:Bounds x="455" y="436" width="60" height="12" />
237         </bpmndi:BPMNLabel>
238       </bpmndi:BPMNEdge>
239     </bpmndi:BPMNPlane>
240   </bpmndi:BPMNDiagram>
241 </bpmn:definitions>