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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.11.3">
3 <bpmn:process id="UpdateCustomE2EServiceInstance" name="UpdateCustomE2EServiceInstance" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_00qj6ro" name="Update SI Start Flow">
5 <bpmn:outgoing>SequenceFlow_0s2spoq</bpmn:outgoing>
7 <bpmn:subProcess id="SubProcess_0ka59nc" name="Sub-process for UnexpectedErrors" triggeredByEvent="true">
8 <bpmn:scriptTask id="ScriptTask_0u3lw39" name="Handle Unexpected Error" scriptFormat="groovy">
9 <bpmn:incoming>SequenceFlow_1dsbjjb</bpmn:incoming>
10 <bpmn:outgoing>SequenceFlow_1yay321</bpmn:outgoing>
11 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
\r
12 ExceptionUtil ex = new ExceptionUtil()
\r
13 ex.processJavaException(execution)]]></bpmn:script>
15 <bpmn:startEvent id="StartEvent_0v1ffn4">
16 <bpmn:outgoing>SequenceFlow_1dsbjjb</bpmn:outgoing>
17 <bpmn:errorEventDefinition />
19 <bpmn:endEvent id="EndEvent_0eznq6x">
20 <bpmn:incoming>SequenceFlow_1yay321</bpmn:incoming>
22 <bpmn:sequenceFlow id="SequenceFlow_1dsbjjb" name="" sourceRef="StartEvent_0v1ffn4" targetRef="ScriptTask_0u3lw39" />
23 <bpmn:sequenceFlow id="SequenceFlow_1yay321" name="" sourceRef="ScriptTask_0u3lw39" targetRef="EndEvent_0eznq6x" />
25 <bpmn:callActivity id="DoUpdateE2EServiceInstance" name="Call DoUpdateE2EServiceInstance " calledElement="DoUpdateE2EServiceInstance">
26 <bpmn:extensionElements>
27 <camunda:out source="WorkflowException" target="WorkflowException" />
28 <camunda:in source="msoRequestId" target="msoRequestId" />
29 <camunda:out source="rollbackData" target="rollbackData" />
30 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
31 <camunda:in source="serviceInstanceName" target="serviceInstanceName" />
32 <camunda:in source="productFamilyId" target="productFamilyId" />
33 <camunda:in source="disableRollback" target="disableRollback" />
34 <camunda:in source="uuiRequest" target="uuiRequest" />
35 <camunda:out source="rolledBack" target="rolledBack" />
36 <camunda:out source="serviceInstanceName" target="serviceInstanceName" />
37 <camunda:in source="failIfExists" target="failIfExists" />
38 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
39 <camunda:in source="serviceType" target="serviceType" />
40 <camunda:in source="initialStatus" target="initialStatus" />
41 <camunda:in source="operationId" target="operationId" />
42 <camunda:in source="operationType" target="operationType" />
43 <camunda:in source="URN_mso_adapters_openecomp_db_endpoint" target="URN_mso_adapters_openecomp_db_endpoint" />
44 </bpmn:extensionElements>
45 <bpmn:incoming>SequenceFlow_19eilro</bpmn:incoming>
46 <bpmn:outgoing>SequenceFlow_0klbpxx</bpmn:outgoing>
48 <bpmn:endEvent id="EndEvent_0bpd6c0" name="End">
49 <bpmn:incoming>SequenceFlow_0yayvrf</bpmn:incoming>
51 <bpmn:scriptTask id="ScriptTask_1s09c7d" name="Pre Process Incoming Request" scriptFormat="groovy">
52 <bpmn:incoming>SequenceFlow_0s2spoq</bpmn:incoming>
53 <bpmn:outgoing>SequenceFlow_0z4faf9</bpmn:outgoing>
54 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
\r
55 def csi= new UpdateCustomE2EServiceInstance()
\r
56 csi.preProcessRequest(execution)]]></bpmn:script>
58 <bpmn:scriptTask id="ScriptTask_0ttvn8r" name="Prepare Completion Request" scriptFormat="groovy">
59 <bpmn:incoming>SequenceFlow_14zu6wr</bpmn:incoming>
60 <bpmn:outgoing>SequenceFlow_0je30si</bpmn:outgoing>
61 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
\r
62 def csi = new UpdateCustomE2EServiceInstance()
\r
63 csi.prepareCompletionRequest(execution)]]></bpmn:script>
65 <bpmn:callActivity id="CallActivity_02fyxz0" name="Call CompleteMsoProcess" calledElement="CompleteMsoProcess">
66 <bpmn:extensionElements>
67 <camunda:in source="completionRequest" target="CompleteMsoProcessRequest" />
68 <camunda:in source="mso-request-id" target="mso-request-id" />
69 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
70 <camunda:out source="CMSO_ResponseCode" target="CMSO_ResponseCode" />
71 <camunda:out source="CompleteMsoProcessResponse" target="CompleteMsoProcessResponse" />
72 <camunda:out source="CMSO_ErrorResponse" target="CMSO_ErrorResponse" />
73 </bpmn:extensionElements>
74 <bpmn:incoming>SequenceFlow_0je30si</bpmn:incoming>
75 <bpmn:outgoing>SequenceFlow_0yayvrf</bpmn:outgoing>
77 <bpmn:subProcess id="SubProcess_0vaws86" name="Sub-process for FalloutHandler and Rollback" triggeredByEvent="true">
78 <bpmn:startEvent id="StartEvent_0dug28e">
79 <bpmn:outgoing>SequenceFlow_0e1r62n</bpmn:outgoing>
80 <bpmn:errorEventDefinition />
82 <bpmn:endEvent id="EndEvent_03wysuk">
83 <bpmn:incoming>SequenceFlow_1ysapam</bpmn:incoming>
85 <bpmn:scriptTask id="ScriptTask_0u8o9p2" name="Prepare Fallout Request" scriptFormat="groovy">
86 <bpmn:incoming>SequenceFlow_0n9pexp</bpmn:incoming>
87 <bpmn:outgoing>SequenceFlow_01umodj</bpmn:outgoing>
88 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
\r
89 def csi = new UpdateCustomE2EServiceInstance()
\r
90 csi.prepareFalloutRequest(execution)]]></bpmn:script>
92 <bpmn:callActivity id="CallActivity_1ang7q8" name="Call FalloutHandler" calledElement="FalloutHandler">
93 <bpmn:extensionElements>
94 <camunda:in source="falloutRequest" target="FalloutHandlerRequest" />
95 <camunda:in source="mso-request-id" target="mso-request-id" />
96 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
97 <camunda:out source="FH_ResponseCode" target="FH_ResponseCode" />
98 <camunda:out source="FalloutHandlerResponse" target="FalloutHandlerResponse" />
99 <camunda:out source="FH_ErrorResponse" target="FH_ErrorResponse" />
100 </bpmn:extensionElements>
101 <bpmn:incoming>SequenceFlow_01umodj</bpmn:incoming>
102 <bpmn:outgoing>SequenceFlow_1ysapam</bpmn:outgoing>
104 <bpmn:scriptTask id="ScriptTask_1rn6nqi" name="Send Error Response">
105 <bpmn:incoming>SequenceFlow_0e1r62n</bpmn:incoming>
106 <bpmn:outgoing>SequenceFlow_0n9pexp</bpmn:outgoing>
107 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
\r
108 def csi = new UpdateCustomE2EServiceInstance()
\r
109 csi.sendSyncError(execution)]]></bpmn:script>
111 <bpmn:sequenceFlow id="SequenceFlow_0e1r62n" sourceRef="StartEvent_0dug28e" targetRef="ScriptTask_1rn6nqi" />
112 <bpmn:sequenceFlow id="SequenceFlow_1ysapam" sourceRef="CallActivity_1ang7q8" targetRef="EndEvent_03wysuk" />
113 <bpmn:sequenceFlow id="SequenceFlow_0n9pexp" sourceRef="ScriptTask_1rn6nqi" targetRef="ScriptTask_0u8o9p2" />
114 <bpmn:sequenceFlow id="SequenceFlow_01umodj" sourceRef="ScriptTask_0u8o9p2" targetRef="CallActivity_1ang7q8" />
116 <bpmn:scriptTask id="ScriptTask_0xupxj9" name="Send Sync Ack Response" scriptFormat="groovy">
117 <bpmn:incoming>SequenceFlow_0z4faf9</bpmn:incoming>
118 <bpmn:outgoing>SequenceFlow_19eilro</bpmn:outgoing>
119 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
\r
120 def csi = new UpdateCustomE2EServiceInstance()
\r
121 csi.sendSyncResponse(execution)]]></bpmn:script>
123 <bpmn:exclusiveGateway id="ExclusiveGateway_0aqn64l" name="Success?">
124 <bpmn:incoming>SequenceFlow_0klbpxx</bpmn:incoming>
125 <bpmn:outgoing>SequenceFlow_14zu6wr</bpmn:outgoing>
126 <bpmn:outgoing>SequenceFlow_1fueo69</bpmn:outgoing>
127 </bpmn:exclusiveGateway>
128 <bpmn:endEvent id="EndEvent_07uk5iy">
129 <bpmn:incoming>SequenceFlow_1fueo69</bpmn:incoming>
130 <bpmn:errorEventDefinition errorRef="Error_0nbdy47" />
132 <bpmn:sequenceFlow id="SequenceFlow_0s2spoq" sourceRef="StartEvent_00qj6ro" targetRef="ScriptTask_1s09c7d" />
133 <bpmn:sequenceFlow id="SequenceFlow_19eilro" sourceRef="ScriptTask_0xupxj9" targetRef="DoUpdateE2EServiceInstance" />
134 <bpmn:sequenceFlow id="SequenceFlow_0klbpxx" sourceRef="DoUpdateE2EServiceInstance" targetRef="ExclusiveGateway_0aqn64l" />
135 <bpmn:sequenceFlow id="SequenceFlow_0yayvrf" sourceRef="CallActivity_02fyxz0" targetRef="EndEvent_0bpd6c0" />
136 <bpmn:sequenceFlow id="SequenceFlow_0z4faf9" sourceRef="ScriptTask_1s09c7d" targetRef="ScriptTask_0xupxj9" />
137 <bpmn:sequenceFlow id="SequenceFlow_14zu6wr" name="yes" sourceRef="ExclusiveGateway_0aqn64l" targetRef="ScriptTask_0ttvn8r">
138 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{execution.getVariable("WorkflowException") == null}]]></bpmn:conditionExpression>
140 <bpmn:sequenceFlow id="SequenceFlow_0je30si" sourceRef="ScriptTask_0ttvn8r" targetRef="CallActivity_02fyxz0" />
141 <bpmn:sequenceFlow id="SequenceFlow_1fueo69" name="no" sourceRef="ExclusiveGateway_0aqn64l" targetRef="EndEvent_07uk5iy">
142 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{execution.getVariable("WorkflowException") != null}]]></bpmn:conditionExpression>
145 <bpmn:error id="Error_0nbdy47" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
146 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
147 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="UpdateCustomE2EServiceInstance">
148 <bpmndi:BPMNShape id="StartEvent_00qj6ro_di" bpmnElement="StartEvent_00qj6ro">
149 <dc:Bounds x="-6" y="180" width="36" height="36" />
151 <dc:Bounds x="-24" y="221" width="73" height="24" />
154 <bpmndi:BPMNShape id="SubProcess_0ka59nc_di" bpmnElement="SubProcess_0ka59nc" isExpanded="true">
155 <dc:Bounds x="463" y="632" width="394" height="188" />
157 <bpmndi:BPMNShape id="CallActivity_0rhljy8_di" bpmnElement="DoUpdateE2EServiceInstance">
158 <dc:Bounds x="717" y="158" width="100" height="80" />
160 <bpmndi:BPMNShape id="EndEvent_0bpd6c0_di" bpmnElement="EndEvent_0bpd6c0">
161 <dc:Bounds x="1258" y="286" width="36" height="36" />
163 <dc:Bounds x="1268" y="322" width="22" height="12" />
166 <bpmndi:BPMNShape id="ScriptTask_1s09c7d_di" bpmnElement="ScriptTask_1s09c7d">
167 <dc:Bounds x="214" y="158" width="100" height="80" />
169 <bpmndi:BPMNShape id="ScriptTask_0ttvn8r_di" bpmnElement="ScriptTask_0ttvn8r">
170 <dc:Bounds x="1038" y="158" width="100" height="80" />
172 <bpmndi:BPMNShape id="CallActivity_02fyxz0_di" bpmnElement="CallActivity_02fyxz0">
173 <dc:Bounds x="1226" y="158" width="100" height="80" />
175 <bpmndi:BPMNShape id="SubProcess_0vaws86_di" bpmnElement="SubProcess_0vaws86" isExpanded="true">
176 <dc:Bounds x="348" y="370" width="679" height="194" />
178 <bpmndi:BPMNShape id="ScriptTask_0xupxj9_di" bpmnElement="ScriptTask_0xupxj9">
179 <dc:Bounds x="459" y="158" width="100" height="80" />
181 <bpmndi:BPMNShape id="ExclusiveGateway_0aqn64l_di" bpmnElement="ExclusiveGateway_0aqn64l" isMarkerVisible="true">
182 <dc:Bounds x="903" y="173" width="50" height="50" />
184 <dc:Bounds x="903" y="145" width="50" height="12" />
187 <bpmndi:BPMNShape id="EndEvent_07uk5iy_di" bpmnElement="EndEvent_07uk5iy">
188 <dc:Bounds x="910" y="286" width="36" height="36" />
190 <dc:Bounds x="883" y="322" width="0" height="12" />
193 <bpmndi:BPMNEdge id="SequenceFlow_0s2spoq_di" bpmnElement="SequenceFlow_0s2spoq">
194 <di:waypoint xsi:type="dc:Point" x="30" y="198" />
195 <di:waypoint xsi:type="dc:Point" x="214" y="198" />
197 <dc:Bounds x="77" y="177" width="90" height="12" />
200 <bpmndi:BPMNEdge id="SequenceFlow_19eilro_di" bpmnElement="SequenceFlow_19eilro">
201 <di:waypoint xsi:type="dc:Point" x="559" y="198" />
202 <di:waypoint xsi:type="dc:Point" x="717" y="198" />
204 <dc:Bounds x="593" y="177" width="90" height="12" />
207 <bpmndi:BPMNEdge id="SequenceFlow_0klbpxx_di" bpmnElement="SequenceFlow_0klbpxx">
208 <di:waypoint xsi:type="dc:Point" x="817" y="198" />
209 <di:waypoint xsi:type="dc:Point" x="903" y="198" />
211 <dc:Bounds x="815" y="177" width="90" height="12" />
214 <bpmndi:BPMNEdge id="SequenceFlow_0yayvrf_di" bpmnElement="SequenceFlow_0yayvrf">
215 <di:waypoint xsi:type="dc:Point" x="1276" y="238" />
216 <di:waypoint xsi:type="dc:Point" x="1276" y="286" />
218 <dc:Bounds x="1246" y="262" width="0" height="12" />
221 <bpmndi:BPMNEdge id="SequenceFlow_0z4faf9_di" bpmnElement="SequenceFlow_0z4faf9">
222 <di:waypoint xsi:type="dc:Point" x="314" y="198" />
223 <di:waypoint xsi:type="dc:Point" x="459" y="198" />
225 <dc:Bounds x="341.5" y="177" width="90" height="12" />
228 <bpmndi:BPMNEdge id="SequenceFlow_14zu6wr_di" bpmnElement="SequenceFlow_14zu6wr">
229 <di:waypoint xsi:type="dc:Point" x="953" y="198" />
230 <di:waypoint xsi:type="dc:Point" x="990" y="198" />
231 <di:waypoint xsi:type="dc:Point" x="990" y="198" />
232 <di:waypoint xsi:type="dc:Point" x="1038" y="198" />
234 <dc:Bounds x="987" y="195" width="20" height="12" />
237 <bpmndi:BPMNEdge id="SequenceFlow_0je30si_di" bpmnElement="SequenceFlow_0je30si">
238 <di:waypoint xsi:type="dc:Point" x="1138" y="198" />
239 <di:waypoint xsi:type="dc:Point" x="1226" y="198" />
241 <dc:Bounds x="1137" y="183" width="0" height="12" />
244 <bpmndi:BPMNEdge id="SequenceFlow_1fueo69_di" bpmnElement="SequenceFlow_1fueo69">
245 <di:waypoint xsi:type="dc:Point" x="928" y="223" />
246 <di:waypoint xsi:type="dc:Point" x="928" y="250" />
247 <di:waypoint xsi:type="dc:Point" x="928" y="250" />
248 <di:waypoint xsi:type="dc:Point" x="928" y="286" />
250 <dc:Bounds x="901" y="228" width="15" height="12" />
253 <bpmndi:BPMNShape id="ScriptTask_0u3lw39_di" bpmnElement="ScriptTask_0u3lw39">
254 <dc:Bounds x="611" y="687" width="100" height="80" />
256 <bpmndi:BPMNShape id="StartEvent_0v1ffn4_di" bpmnElement="StartEvent_0v1ffn4">
257 <dc:Bounds x="496" y="709" width="36" height="36" />
259 <dc:Bounds x="469" y="750" width="0" height="12" />
262 <bpmndi:BPMNShape id="EndEvent_0eznq6x_di" bpmnElement="EndEvent_0eznq6x">
263 <dc:Bounds x="772" y="709" width="36" height="36" />
265 <dc:Bounds x="745" y="750" width="0" height="12" />
268 <bpmndi:BPMNShape id="StartEvent_0dug28e_di" bpmnElement="StartEvent_0dug28e">
269 <dc:Bounds x="363" y="456" width="36" height="36" />
271 <dc:Bounds x="336" y="497" width="0" height="12" />
274 <bpmndi:BPMNShape id="EndEvent_03wysuk_di" bpmnElement="EndEvent_03wysuk">
275 <dc:Bounds x="942" y="456" width="36" height="36" />
277 <dc:Bounds x="915" y="497" width="0" height="12" />
280 <bpmndi:BPMNShape id="ScriptTask_0u8o9p2_di" bpmnElement="ScriptTask_0u8o9p2">
281 <dc:Bounds x="621" y="434" width="100" height="80" />
283 <bpmndi:BPMNShape id="CallActivity_1ang7q8_di" bpmnElement="CallActivity_1ang7q8">
284 <dc:Bounds x="798" y="434" width="100" height="80" />
286 <bpmndi:BPMNShape id="ScriptTask_1rn6nqi_di" bpmnElement="ScriptTask_1rn6nqi">
287 <dc:Bounds x="443" y="434" width="100" height="80" />
289 <bpmndi:BPMNEdge id="SequenceFlow_1dsbjjb_di" bpmnElement="SequenceFlow_1dsbjjb">
290 <di:waypoint xsi:type="dc:Point" x="532" y="727" />
291 <di:waypoint xsi:type="dc:Point" x="611" y="727" />
293 <dc:Bounds x="529.5" y="727" width="0" height="12" />
296 <bpmndi:BPMNEdge id="SequenceFlow_1yay321_di" bpmnElement="SequenceFlow_1yay321">
297 <di:waypoint xsi:type="dc:Point" x="711" y="727" />
298 <di:waypoint xsi:type="dc:Point" x="772" y="727" />
300 <dc:Bounds x="701.5" y="727" width="0" height="12" />
303 <bpmndi:BPMNEdge id="SequenceFlow_0e1r62n_di" bpmnElement="SequenceFlow_0e1r62n">
304 <di:waypoint xsi:type="dc:Point" x="399" y="474" />
305 <di:waypoint xsi:type="dc:Point" x="421" y="474" />
306 <di:waypoint xsi:type="dc:Point" x="421" y="474" />
307 <di:waypoint xsi:type="dc:Point" x="442" y="474" />
309 <dc:Bounds x="391" y="474" width="0" height="12" />
312 <bpmndi:BPMNEdge id="SequenceFlow_1ysapam_di" bpmnElement="SequenceFlow_1ysapam">
313 <di:waypoint xsi:type="dc:Point" x="898" y="474" />
314 <di:waypoint xsi:type="dc:Point" x="942" y="474" />
316 <dc:Bounds x="875" y="459" width="0" height="12" />
319 <bpmndi:BPMNEdge id="SequenceFlow_0n9pexp_di" bpmnElement="SequenceFlow_0n9pexp">
320 <di:waypoint xsi:type="dc:Point" x="543" y="474" />
321 <di:waypoint xsi:type="dc:Point" x="570" y="474" />
322 <di:waypoint xsi:type="dc:Point" x="570" y="474" />
323 <di:waypoint xsi:type="dc:Point" x="621" y="474" />
325 <dc:Bounds x="540" y="474" width="0" height="12" />
328 <bpmndi:BPMNEdge id="SequenceFlow_01umodj_di" bpmnElement="SequenceFlow_01umodj">
329 <di:waypoint xsi:type="dc:Point" x="721" y="474" />
330 <di:waypoint xsi:type="dc:Point" x="798" y="474" />
332 <dc:Bounds x="715.5" y="459" width="0" height="12" />
336 </bpmndi:BPMNDiagram>