bug fix - SO sends rest request to cds twice per one operation
[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>SequenceFlow_0no1qag</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="success" 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:out source="WorkflowException" target="WorkflowException" />
48         <camunda:out source="WorkflowExceptionErrorMessage" target="WorkflowExceptionErrorMessage" />
49         <camunda:in source="executionObject" target="executionObject" />
50         <camunda:in source="mso-request-id" target="mso-request-id" />
51         <camunda:in source="isRollback" target="isRollback" />
52         <camunda:out source="StatusMessage" target="StatusMessage" />
53       </bpmn:extensionElements>
54       <bpmn:incoming>SequenceFlow_0fv03vt</bpmn:incoming>
55       <bpmn:outgoing>SequenceFlow_0no1qag</bpmn:outgoing>
56       <bpmn:outgoing>SequenceFlow_0op5irz</bpmn:outgoing>
57     </bpmn:callActivity>
58     <bpmn:sequenceFlow id="SequenceFlow_1t7hs4k" sourceRef="ExclusiveGateway_0plxwkg" targetRef="Task_1rc2j9" />
59     <bpmn:sequenceFlow id="SequenceFlow_0no1qag" sourceRef="BBToExecute" targetRef="EndEvent_0lgvk82" />
60     <bpmn:sequenceFlow id="SequenceFlow_0fv03vt" sourceRef="Task_1rc2j9" targetRef="BBToExecute" />
61     <bpmn:serviceTask id="Task_1rc2j9" name="select BB " camunda:expression="${ControllerExecution.selectBB(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
62       <bpmn:incoming>SequenceFlow_1t7hs4k</bpmn:incoming>
63       <bpmn:outgoing>SequenceFlow_0fv03vt</bpmn:outgoing>
64     </bpmn:serviceTask>
65     <bpmn:endEvent id="EndEvent_1lxwuh2">
66       <bpmn:incoming>SequenceFlow_0op5irz</bpmn:incoming>
67       <bpmn:errorEventDefinition id="ErrorEventDefinition_0z001cu" errorRef="Error_0aovtfv" />
68     </bpmn:endEvent>
69     <bpmn:sequenceFlow id="SequenceFlow_0op5irz" sourceRef="BBToExecute" targetRef="EndEvent_1lxwuh2" />
70     <bpmn:sequenceFlow id="SequenceFlow_0vzx2yr" name="Actor= CDS" sourceRef="ExclusiveGateway_0plxwkg" targetRef="Task_0bhf6tp">
71       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("actor") == "CDS"}</bpmn:conditionExpression>
72     </bpmn:sequenceFlow>
73   </bpmn:process>
74   <bpmn:error id="Error_0aovtfv" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
75   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
76     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ControllerExecutionBB">
77       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
78         <dc:Bounds x="160" y="323" width="36" height="36" />
79         <bpmndi:BPMNLabel>
80           <dc:Bounds x="-17" y="279" width="90" height="20" />
81         </bpmndi:BPMNLabel>
82       </bpmndi:BPMNShape>
83       <bpmndi:BPMNEdge id="SequenceFlow_0gmfit3_di" bpmnElement="SequenceFlow_0gmfit3">
84         <di:waypoint x="196" y="341" />
85         <di:waypoint x="259" y="341" />
86         <bpmndi:BPMNLabel>
87           <dc:Bounds x="32.5" y="236" width="90" height="20" />
88         </bpmndi:BPMNLabel>
89       </bpmndi:BPMNEdge>
90       <bpmndi:BPMNShape id="EndEvent_0lgvk82_di" bpmnElement="EndEvent_0lgvk82">
91         <dc:Bounds x="1129" y="323" width="36" height="36" />
92         <bpmndi:BPMNLabel>
93           <dc:Bounds x="1025" y="251" width="90" height="20" />
94         </bpmndi:BPMNLabel>
95       </bpmndi:BPMNShape>
96       <bpmndi:BPMNEdge id="SequenceFlow_1mkhog2_di" bpmnElement="SequenceFlow_1mkhog2">
97         <di:waypoint x="1079" y="462" />
98         <di:waypoint x="1147" y="462" />
99         <di:waypoint x="1147" y="359" />
100         <bpmndi:BPMNLabel>
101           <dc:Bounds x="918" y="357" width="90" height="20" />
102         </bpmndi:BPMNLabel>
103       </bpmndi:BPMNEdge>
104       <bpmndi:BPMNShape id="ServiceTask_0404s6a_di" bpmnElement="Task_1hs1mn0">
105         <dc:Bounds x="979" y="422" width="100" height="80" />
106       </bpmndi:BPMNShape>
107       <bpmndi:BPMNEdge id="SequenceFlow_05qembo_di" bpmnElement="SequenceFlow_05qembo">
108         <di:waypoint x="672" y="462" />
109         <di:waypoint x="868" y="462" />
110         <bpmndi:BPMNLabel>
111           <dc:Bounds x="725" y="437" width="90" height="20" />
112         </bpmndi:BPMNLabel>
113       </bpmndi:BPMNEdge>
114       <bpmndi:BPMNShape id="ServiceTask_01mv1si_di" bpmnElement="Task_0bhf6tp">
115         <dc:Bounds x="572" y="422" width="100" height="80" />
116       </bpmndi:BPMNShape>
117       <bpmndi:BPMNShape id="ExclusiveGateway_13q340y_di" bpmnElement="ExclusiveGateway_13q340y" isMarkerVisible="true">
118         <dc:Bounds x="868" y="437" width="50" height="50" />
119         <bpmndi:BPMNLabel>
120           <dc:Bounds x="698" y="327" width="90" height="20" />
121         </bpmndi:BPMNLabel>
122       </bpmndi:BPMNShape>
123       <bpmndi:BPMNEdge id="SequenceFlow_07tqu82_di" bpmnElement="SequenceFlow_07tqu82">
124         <di:waypoint x="918" y="462" />
125         <di:waypoint x="979" y="462" />
126         <bpmndi:BPMNLabel>
127           <dc:Bounds x="856" y="409" width="41" height="14" />
128         </bpmndi:BPMNLabel>
129       </bpmndi:BPMNEdge>
130       <bpmndi:BPMNShape id="EndEvent_0mnaj50_di" bpmnElement="EndEvent_0mnaj50">
131         <dc:Bounds x="875" y="565" width="36" height="36" />
132         <bpmndi:BPMNLabel>
133           <dc:Bounds x="698" y="531" width="90" height="20" />
134         </bpmndi:BPMNLabel>
135       </bpmndi:BPMNShape>
136       <bpmndi:BPMNEdge id="SequenceFlow_15gxql1_di" bpmnElement="SequenceFlow_15gxql1">
137         <di:waypoint x="893" y="487" />
138         <di:waypoint x="893" y="565" />
139         <bpmndi:BPMNLabel>
140           <dc:Bounds x="713" y="436" width="90" height="20" />
141         </bpmndi:BPMNLabel>
142       </bpmndi:BPMNEdge>
143       <bpmndi:BPMNShape id="ServiceTask_0inxg9l_di" bpmnElement="ServiceTask_0inxg9l">
144         <dc:Bounds x="259" y="301" width="100" height="80" />
145       </bpmndi:BPMNShape>
146       <bpmndi:BPMNShape id="ExclusiveGateway_0plxwkg_di" bpmnElement="ExclusiveGateway_0plxwkg" isMarkerVisible="true">
147         <dc:Bounds x="399" y="316" width="50" height="50" />
148         <bpmndi:BPMNLabel>
149           <dc:Bounds x="309" y="255" width="0" height="12" />
150         </bpmndi:BPMNLabel>
151       </bpmndi:BPMNShape>
152       <bpmndi:BPMNEdge id="SequenceFlow_1lspfyy_di" bpmnElement="SequenceFlow_1lspfyy">
153         <di:waypoint x="359" y="341" />
154         <di:waypoint x="399" y="341" />
155         <bpmndi:BPMNLabel>
156           <dc:Bounds x="229" y="240" width="0" height="12" />
157         </bpmndi:BPMNLabel>
158       </bpmndi:BPMNEdge>
159       <bpmndi:BPMNShape id="CallActivity_01dem38_di" bpmnElement="BBToExecute">
160         <dc:Bounds x="824" y="168" width="100" height="80" />
161       </bpmndi:BPMNShape>
162       <bpmndi:BPMNEdge id="SequenceFlow_1t7hs4k_di" bpmnElement="SequenceFlow_1t7hs4k">
163         <di:waypoint x="424" y="316" />
164         <di:waypoint x="424" y="208" />
165         <di:waypoint x="572" y="208" />
166         <bpmndi:BPMNLabel>
167           <dc:Bounds x="271" y="89" width="83" height="36" />
168         </bpmndi:BPMNLabel>
169       </bpmndi:BPMNEdge>
170       <bpmndi:BPMNEdge id="SequenceFlow_0no1qag_di" bpmnElement="SequenceFlow_0no1qag">
171         <di:waypoint x="924" y="208" />
172         <di:waypoint x="1147" y="208" />
173         <di:waypoint x="1147" y="323" />
174         <bpmndi:BPMNLabel>
175           <dc:Bounds x="840.5" y="107" width="90" height="12" />
176         </bpmndi:BPMNLabel>
177       </bpmndi:BPMNEdge>
178       <bpmndi:BPMNEdge id="SequenceFlow_0fv03vt_di" bpmnElement="SequenceFlow_0fv03vt">
179         <di:waypoint x="672" y="208" />
180         <di:waypoint x="824" y="208" />
181         <bpmndi:BPMNLabel>
182           <dc:Bounds x="598" y="107" width="0" height="12" />
183         </bpmndi:BPMNLabel>
184       </bpmndi:BPMNEdge>
185       <bpmndi:BPMNShape id="ServiceTask_0qd9p4w_di" bpmnElement="Task_1rc2j9">
186         <dc:Bounds x="572" y="168" width="100" height="80" />
187       </bpmndi:BPMNShape>
188       <bpmndi:BPMNShape id="EndEvent_1lxwuh2_di" bpmnElement="EndEvent_1lxwuh2">
189         <dc:Bounds x="856" y="84" width="36" height="36" />
190         <bpmndi:BPMNLabel>
191           <dc:Bounds x="679" y="50" width="0" height="12" />
192         </bpmndi:BPMNLabel>
193       </bpmndi:BPMNShape>
194       <bpmndi:BPMNEdge id="SequenceFlow_0op5irz_di" bpmnElement="SequenceFlow_0op5irz">
195         <di:waypoint x="874" y="168" />
196         <di:waypoint x="874" y="120" />
197         <bpmndi:BPMNLabel>
198           <dc:Bounds x="739" y="58" width="0" height="12" />
199         </bpmndi:BPMNLabel>
200       </bpmndi:BPMNEdge>
201       <bpmndi:BPMNEdge id="SequenceFlow_0vzx2yr_di" bpmnElement="SequenceFlow_0vzx2yr">
202         <di:waypoint x="424" y="366" />
203         <di:waypoint x="424" y="462" />
204         <di:waypoint x="572" y="462" />
205         <bpmndi:BPMNLabel>
206           <dc:Bounds x="455" y="436" width="60" height="12" />
207         </bpmndi:BPMNLabel>
208       </bpmndi:BPMNEdge>
209     </bpmndi:BPMNPlane>
210   </bpmndi:BPMNDiagram>
211 </bpmn:definitions>