065d7e0c4bc3ed1bcc4676bb7bde81b9395b40ac
[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="3.5.0">
3   <bpmn:process id="ControllerExecutionBB" 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>Flow_0qmjpxv</bpmn:incoming>
11     </bpmn:endEvent>
12     <bpmn:sequenceFlow id="SequenceFlow_1mkhog2" sourceRef="Task_1hs1mn0" targetRef="EndEvent_0lgvk82" />
13     <bpmn:serviceTask id="Task_1hs1mn0" name="Update AAI" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatus(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)), execution.getVariable(&#34;scope&#34;), execution.getVariable(&#34;action&#34;))}">
14       <bpmn:incoming>SequenceFlow_07tqu82</bpmn:incoming>
15       <bpmn:outgoing>SequenceFlow_1mkhog2</bpmn:outgoing>
16     </bpmn:serviceTask>
17     <bpmn:sequenceFlow id="SequenceFlow_05qembo" sourceRef="Task_0bhf6tp" targetRef="ExclusiveGateway_13q340y" />
18     <bpmn:serviceTask id="Task_0bhf6tp" name="Call ControllerExecutionBB" camunda:expression="${ControllerExecutionBB.execute(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
19       <bpmn:incoming>SequenceFlow_0vzx2yr</bpmn:incoming>
20       <bpmn:outgoing>SequenceFlow_05qembo</bpmn:outgoing>
21     </bpmn:serviceTask>
22     <bpmn:exclusiveGateway id="ExclusiveGateway_13q340y" default="SequenceFlow_15gxql1">
23       <bpmn:incoming>SequenceFlow_05qembo</bpmn:incoming>
24       <bpmn:outgoing>SequenceFlow_07tqu82</bpmn:outgoing>
25       <bpmn:outgoing>SequenceFlow_15gxql1</bpmn:outgoing>
26     </bpmn:exclusiveGateway>
27     <bpmn:sequenceFlow id="SequenceFlow_07tqu82" name="successCDS" sourceRef="ExclusiveGateway_13q340y" targetRef="Task_1hs1mn0">
28       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("ControllerStatus").equals("Success")}</bpmn:conditionExpression>
29     </bpmn:sequenceFlow>
30     <bpmn:endEvent id="EndEvent_0mnaj50">
31       <bpmn:incoming>SequenceFlow_15gxql1</bpmn:incoming>
32       <bpmn:errorEventDefinition id="ErrorEventDefinition_1s1hqgm" errorRef="Error_0aovtfv" />
33     </bpmn:endEvent>
34     <bpmn:sequenceFlow id="SequenceFlow_15gxql1" sourceRef="ExclusiveGateway_13q340y" targetRef="EndEvent_0mnaj50" />
35     <bpmn:serviceTask id="ServiceTask_0inxg9l" name="Set Actor, Scope and Action Params" camunda:expression="${ControllerExecution.setControllerActorScopeAction(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
36       <bpmn:incoming>SequenceFlow_0gmfit3</bpmn:incoming>
37       <bpmn:outgoing>SequenceFlow_1lspfyy</bpmn:outgoing>
38     </bpmn:serviceTask>
39     <bpmn:exclusiveGateway id="ExclusiveGateway_0plxwkg" default="SequenceFlow_1t7hs4k">
40       <bpmn:incoming>SequenceFlow_1lspfyy</bpmn:incoming>
41       <bpmn:outgoing>SequenceFlow_1t7hs4k</bpmn:outgoing>
42       <bpmn:outgoing>SequenceFlow_0vzx2yr</bpmn:outgoing>
43     </bpmn:exclusiveGateway>
44     <bpmn:sequenceFlow id="SequenceFlow_1lspfyy" sourceRef="ServiceTask_0inxg9l" targetRef="ExclusiveGateway_0plxwkg" />
45     <bpmn:callActivity id="BBToExecute" name="BB to Execute&#10;" calledElement="${bbName}">
46       <bpmn:extensionElements>
47         <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
48         <camunda:out source="WorkflowException" target="WorkflowException" />
49         <camunda:out source="WorkflowExceptionErrorMessage" target="WorkflowExceptionErrorMessage" />
50         <camunda:out source="ControllerStatus" target="ControllerStatus" />
51         <camunda:in source="executionObject" target="executionObject" />
52         <camunda:in source="mso-request-id" target="mso-request-id" />
53         <camunda:in source="isRollback" target="isRollback" />
54         <camunda:out source="StatusMessage" target="StatusMessage" />
55       </bpmn:extensionElements>
56       <bpmn:incoming>SequenceFlow_0fv03vt</bpmn:incoming>
57       <bpmn:outgoing>SequenceFlow_0no1qag</bpmn:outgoing>
58     </bpmn:callActivity>
59     <bpmn:sequenceFlow id="SequenceFlow_1t7hs4k" sourceRef="ExclusiveGateway_0plxwkg" targetRef="Task_1rc2j9" />
60     <bpmn:sequenceFlow id="SequenceFlow_0no1qag" sourceRef="BBToExecute" targetRef="Gateway_065nxpu" />
61     <bpmn:sequenceFlow id="SequenceFlow_0fv03vt" sourceRef="Task_1rc2j9" targetRef="BBToExecute" />
62     <bpmn:serviceTask id="Task_1rc2j9" name="select BB " camunda:expression="${ControllerExecution.selectBB(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
63       <bpmn:incoming>SequenceFlow_1t7hs4k</bpmn:incoming>
64       <bpmn:outgoing>SequenceFlow_0fv03vt</bpmn:outgoing>
65     </bpmn:serviceTask>
66     <bpmn:endEvent id="EndEvent_1lxwuh2">
67       <bpmn:incoming>SequenceFlow_0op5irz</bpmn:incoming>
68       <bpmn:errorEventDefinition id="ErrorEventDefinition_0z001cu" errorRef="Error_0aovtfv" />
69     </bpmn:endEvent>
70     <bpmn:sequenceFlow id="SequenceFlow_0op5irz" sourceRef="Gateway_065nxpu" targetRef="EndEvent_1lxwuh2" />
71     <bpmn:sequenceFlow id="SequenceFlow_0vzx2yr" name="Actor= CDS" sourceRef="ExclusiveGateway_0plxwkg" targetRef="Task_0bhf6tp">
72       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("actor") == "CDS"}</bpmn:conditionExpression>
73     </bpmn:sequenceFlow>
74     <bpmn:exclusiveGateway id="Gateway_065nxpu" default="SequenceFlow_0op5irz">
75       <bpmn:incoming>SequenceFlow_0no1qag</bpmn:incoming>
76       <bpmn:outgoing>SequenceFlow_0op5irz</bpmn:outgoing>
77       <bpmn:outgoing>Flow_0qmjpxv</bpmn:outgoing>
78     </bpmn:exclusiveGateway>
79     <bpmn:sequenceFlow id="Flow_0qmjpxv" name="success" sourceRef="Gateway_065nxpu" targetRef="EndEvent_0lgvk82">
80       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("ControllerStatus").equals("Success")}</bpmn:conditionExpression>
81     </bpmn:sequenceFlow>
82   </bpmn:process>
83   <bpmn:error id="Error_0aovtfv" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
84   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
85     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ControllerExecutionBB">
86       <bpmndi:BPMNEdge id="Flow_0qmjpxv_di" bpmnElement="Flow_0qmjpxv">
87         <di:waypoint x="1147" y="233" />
88         <di:waypoint x="1147" y="323" />
89         <bpmndi:BPMNLabel>
90           <dc:Bounds x="1170" y="263" width="41" height="14" />
91         </bpmndi:BPMNLabel>
92       </bpmndi:BPMNEdge>
93       <bpmndi:BPMNEdge id="SequenceFlow_0vzx2yr_di" bpmnElement="SequenceFlow_0vzx2yr">
94         <di:waypoint x="424" y="366" />
95         <di:waypoint x="424" y="462" />
96         <di:waypoint x="572" y="462" />
97         <bpmndi:BPMNLabel>
98           <dc:Bounds x="455" y="436" width="60" height="12" />
99         </bpmndi:BPMNLabel>
100       </bpmndi:BPMNEdge>
101       <bpmndi:BPMNEdge id="SequenceFlow_0op5irz_di" bpmnElement="SequenceFlow_0op5irz">
102         <di:waypoint x="1147" y="183" />
103         <di:waypoint x="1147" y="128" />
104         <bpmndi:BPMNLabel>
105           <dc:Bounds x="739" y="58" width="0" height="12" />
106         </bpmndi:BPMNLabel>
107       </bpmndi:BPMNEdge>
108       <bpmndi:BPMNEdge id="SequenceFlow_0fv03vt_di" bpmnElement="SequenceFlow_0fv03vt">
109         <di:waypoint x="672" y="208" />
110         <di:waypoint x="824" y="208" />
111         <bpmndi:BPMNLabel>
112           <dc:Bounds x="598" y="107" width="0" height="12" />
113         </bpmndi:BPMNLabel>
114       </bpmndi:BPMNEdge>
115       <bpmndi:BPMNEdge id="SequenceFlow_0no1qag_di" bpmnElement="SequenceFlow_0no1qag">
116         <di:waypoint x="924" y="208" />
117         <di:waypoint x="1122" y="208" />
118         <bpmndi:BPMNLabel>
119           <dc:Bounds x="840.5" y="107" width="90" height="12" />
120         </bpmndi:BPMNLabel>
121       </bpmndi:BPMNEdge>
122       <bpmndi:BPMNEdge id="SequenceFlow_1t7hs4k_di" bpmnElement="SequenceFlow_1t7hs4k">
123         <di:waypoint x="424" y="316" />
124         <di:waypoint x="424" y="208" />
125         <di:waypoint x="572" y="208" />
126         <bpmndi:BPMNLabel>
127           <dc:Bounds x="271" y="89" width="83" height="36" />
128         </bpmndi:BPMNLabel>
129       </bpmndi:BPMNEdge>
130       <bpmndi:BPMNEdge id="SequenceFlow_1lspfyy_di" bpmnElement="SequenceFlow_1lspfyy">
131         <di:waypoint x="359" y="341" />
132         <di:waypoint x="399" y="341" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="229" y="240" width="0" height="12" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNEdge id="SequenceFlow_15gxql1_di" bpmnElement="SequenceFlow_15gxql1">
138         <di:waypoint x="893" y="487" />
139         <di:waypoint x="893" y="565" />
140         <bpmndi:BPMNLabel>
141           <dc:Bounds x="713" y="436" width="90" height="20" />
142         </bpmndi:BPMNLabel>
143       </bpmndi:BPMNEdge>
144       <bpmndi:BPMNEdge id="SequenceFlow_07tqu82_di" bpmnElement="SequenceFlow_07tqu82">
145         <di:waypoint x="918" y="462" />
146         <di:waypoint x="979" y="462" />
147         <bpmndi:BPMNLabel>
148           <dc:Bounds x="908" y="443" width="64" height="14" />
149         </bpmndi:BPMNLabel>
150       </bpmndi:BPMNEdge>
151       <bpmndi:BPMNEdge id="SequenceFlow_05qembo_di" bpmnElement="SequenceFlow_05qembo">
152         <di:waypoint x="672" y="462" />
153         <di:waypoint x="868" y="462" />
154         <bpmndi:BPMNLabel>
155           <dc:Bounds x="725" y="437" width="90" height="20" />
156         </bpmndi:BPMNLabel>
157       </bpmndi:BPMNEdge>
158       <bpmndi:BPMNEdge id="SequenceFlow_1mkhog2_di" bpmnElement="SequenceFlow_1mkhog2">
159         <di:waypoint x="1079" y="462" />
160         <di:waypoint x="1147" y="462" />
161         <di:waypoint x="1147" y="359" />
162         <bpmndi:BPMNLabel>
163           <dc:Bounds x="918" y="357" width="90" height="20" />
164         </bpmndi:BPMNLabel>
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNEdge id="SequenceFlow_0gmfit3_di" bpmnElement="SequenceFlow_0gmfit3">
167         <di:waypoint x="196" y="341" />
168         <di:waypoint x="259" y="341" />
169         <bpmndi:BPMNLabel>
170           <dc:Bounds x="32.5" y="236" width="90" height="20" />
171         </bpmndi:BPMNLabel>
172       </bpmndi:BPMNEdge>
173       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
174         <dc:Bounds x="160" y="323" width="36" height="36" />
175         <bpmndi:BPMNLabel>
176           <dc:Bounds x="-17" y="279" width="90" height="20" />
177         </bpmndi:BPMNLabel>
178       </bpmndi:BPMNShape>
179       <bpmndi:BPMNShape id="EndEvent_0lgvk82_di" bpmnElement="EndEvent_0lgvk82">
180         <dc:Bounds x="1129" y="323" width="36" height="36" />
181         <bpmndi:BPMNLabel>
182           <dc:Bounds x="1025" y="251" width="90" height="20" />
183         </bpmndi:BPMNLabel>
184       </bpmndi:BPMNShape>
185       <bpmndi:BPMNShape id="ServiceTask_0404s6a_di" bpmnElement="Task_1hs1mn0">
186         <dc:Bounds x="979" y="422" width="100" height="80" />
187       </bpmndi:BPMNShape>
188       <bpmndi:BPMNShape id="ServiceTask_01mv1si_di" bpmnElement="Task_0bhf6tp">
189         <dc:Bounds x="572" y="422" width="100" height="80" />
190       </bpmndi:BPMNShape>
191       <bpmndi:BPMNShape id="ExclusiveGateway_13q340y_di" bpmnElement="ExclusiveGateway_13q340y" isMarkerVisible="true">
192         <dc:Bounds x="868" y="437" width="50" height="50" />
193         <bpmndi:BPMNLabel>
194           <dc:Bounds x="698" y="327" width="90" height="20" />
195         </bpmndi:BPMNLabel>
196       </bpmndi:BPMNShape>
197       <bpmndi:BPMNShape id="EndEvent_0mnaj50_di" bpmnElement="EndEvent_0mnaj50">
198         <dc:Bounds x="875" y="565" width="36" height="36" />
199         <bpmndi:BPMNLabel>
200           <dc:Bounds x="698" y="531" width="90" height="20" />
201         </bpmndi:BPMNLabel>
202       </bpmndi:BPMNShape>
203       <bpmndi:BPMNShape id="ServiceTask_0inxg9l_di" bpmnElement="ServiceTask_0inxg9l">
204         <dc:Bounds x="259" y="301" width="100" height="80" />
205       </bpmndi:BPMNShape>
206       <bpmndi:BPMNShape id="ExclusiveGateway_0plxwkg_di" bpmnElement="ExclusiveGateway_0plxwkg" isMarkerVisible="true">
207         <dc:Bounds x="399" y="316" width="50" height="50" />
208         <bpmndi:BPMNLabel>
209           <dc:Bounds x="309" y="255" width="0" height="12" />
210         </bpmndi:BPMNLabel>
211       </bpmndi:BPMNShape>
212       <bpmndi:BPMNShape id="CallActivity_01dem38_di" bpmnElement="BBToExecute">
213         <dc:Bounds x="824" y="168" width="100" height="80" />
214       </bpmndi:BPMNShape>
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="1129" y="92" 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:BPMNShape id="Gateway_065nxpu_di" bpmnElement="Gateway_065nxpu" isMarkerVisible="true">
225         <dc:Bounds x="1122" y="183" width="50" height="50" />
226       </bpmndi:BPMNShape>
227     </bpmndi:BPMNPlane>
228   </bpmndi:BPMNDiagram>
229 </bpmn:definitions>