1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_MagIIMOUEeW8asg-vCEgWQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.14.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="UpdateNetworkInstance" name="UpdateNetworkInstance" isExecutable="true">
4 <bpmn2:startEvent id="createNetwork_startEvent" name="Start Flow">
5 <bpmn2:outgoing>SequenceFlow_0lp2z7l</bpmn2:outgoing>
7 <bpmn2:subProcess id="unexpectedErrors_SubProcess" name="Sub-process for UnexpectedErrors" triggeredByEvent="true">
8 <bpmn2:scriptTask id="ScriptTask_1" name="Log / Print Unexpected Error" scriptFormat="groovy">
9 <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
10 <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
11 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
12 def networkMod = new UpdateNetworkInstance()
13 networkMod.processJavaException(execution)</bpmn2:script>
15 <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="ScriptTask_1" targetRef="EndEvent_1" />
16 <bpmn2:startEvent id="StartEvent_1">
17 <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
18 <bpmn2:errorEventDefinition id="ErrorEventDefinition_2" errorRef="Error_1" />
20 <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="StartEvent_1" targetRef="ScriptTask_1" />
21 <bpmn2:endEvent id="EndEvent_1">
22 <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
25 <bpmn2:callActivity id="doUpdateNetworkInstance_CallActivity" name="DoUpdate Network Instance " calledElement="DoUpdateNetworkInstance">
26 <bpmn2: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="networkId" target="networkId" />
31 <camunda:in source="networkName" target="networkName" />
32 <camunda:in source="networkModelInfo" target="networkModelInfo" />
33 <camunda:in source="cloudOwner" target="cloudOwner" />
34 <camunda:in source="lcpCloudRegionId" target="lcpCloudRegionId" />
35 <camunda:in source="tenantId" target="tenantId" />
36 <camunda:in source="productFamilyId" target="productFamilyId" />
37 <camunda:in source="disableRollback" target="disableRollback" />
38 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
39 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
40 <camunda:in source="networkInputParams" target="networkInputParams" />
41 <camunda:out source="rolledBack" target="rolledBack" />
42 <camunda:out source="networkId" target="networkId" />
43 <camunda:out source="networkName" target="networkName" />
44 <camunda:out source="networkOutputParams" target="networkOutputParams" />
45 <camunda:in source="bpmnRequest" target="bpmnRequest" />
46 <camunda:in source="failIfExists" target="failIfExists" />
47 <camunda:in source="sdncVersion" target="sdncVersion" />
48 <camunda:in source="requestId" target="requestId" />
49 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
50 <camunda:in source="requestAction" target="requestAction" />
51 <camunda:in source="mso-request-id" target="mso-request-id" />
52 <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
53 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
54 <camunda:in source="serviceModelInfo" target="serviceModelInfo" />
55 </bpmn2:extensionElements>
56 <bpmn2:incoming>SequenceFlow_0eto8sn</bpmn2:incoming>
57 <bpmn2:outgoing>SequenceFlow_1lj31zp</bpmn2:outgoing>
59 <bpmn2:endEvent id="EndEvent_0o440av" name="End">
60 <bpmn2:incoming>SequenceFlow_0x3znm5</bpmn2:incoming>
62 <bpmn2:scriptTask id="ScriptTask_09qt0pi" name="CreateNetwork PostProcess Success " scriptFormat="groovy">
63 <bpmn2:incoming>SequenceFlow_095crcd</bpmn2:incoming>
64 <bpmn2:outgoing>SequenceFlow_0x3znm5</bpmn2:outgoing>
65 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
66 def UpdateNetworkInstance = new UpdateNetworkInstance()
67 UpdateNetworkInstance.postProcessResponse(execution)
70 <bpmn2:sequenceFlow id="SequenceFlow_1lj31zp" sourceRef="doUpdateNetworkInstance_CallActivity" targetRef="ScriptTask_0cihgpv" />
71 <bpmn2:sequenceFlow id="SequenceFlow_0x3znm5" sourceRef="ScriptTask_09qt0pi" targetRef="EndEvent_0o440av" />
72 <bpmn2:scriptTask id="ScriptTask_0pvcr6j" name="PreProcess Incoming Request" scriptFormat="groovy">
73 <bpmn2:incoming>SequenceFlow_0lp2z7l</bpmn2:incoming>
74 <bpmn2:outgoing>SequenceFlow_1ablr60</bpmn2:outgoing>
75 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
76 def preProcess = new UpdateNetworkInstance()
77 preProcess.preProcessRequest(execution)</bpmn2:script>
79 <bpmn2:sequenceFlow id="SequenceFlow_0lp2z7l" sourceRef="createNetwork_startEvent" targetRef="ScriptTask_0pvcr6j" />
80 <bpmn2:sequenceFlow id="SequenceFlow_1ablr60" sourceRef="ScriptTask_0pvcr6j" targetRef="Task_19xbdbu" />
81 <bpmn2:scriptTask id="ScriptTask_0cihgpv" name="Prepare Completion Request" scriptFormat="groovy">
82 <bpmn2:incoming>SequenceFlow_1lj31zp</bpmn2:incoming>
83 <bpmn2:outgoing>SequenceFlow_0xxvjxq</bpmn2:outgoing>
84 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
85 def UpdateNetworkInstance = new UpdateNetworkInstance()
86 UpdateNetworkInstance.prepareCompletion(execution)</bpmn2:script>
88 <bpmn2:callActivity id="CallActivity_0sevgre" name="Call CompleteMsoProcess" calledElement="CompleteMsoProcess">
89 <bpmn2:extensionElements>
90 <camunda:in source="UPDNI_CompleteMsoProcessRequest" target="CompleteMsoProcessRequest" />
91 <camunda:in source="mso-request-id" target="mso-request-id" />
92 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
93 <camunda:out source="CMSO_ResponseCode" target="CMSO_ResponseCode" />
94 <camunda:out source="CompleteMsoProcessResponse" target="CompleteMsoProcessResponse" />
95 <camunda:out source="CMSO_ErrorResponse" target="CMSO_ErrorResponse" />
96 </bpmn2:extensionElements>
97 <bpmn2:incoming>SequenceFlow_0xxvjxq</bpmn2:incoming>
98 <bpmn2:outgoing>SequenceFlow_095crcd</bpmn2:outgoing>
100 <bpmn2:sequenceFlow id="SequenceFlow_0xxvjxq" sourceRef="ScriptTask_0cihgpv" targetRef="CallActivity_0sevgre" />
101 <bpmn2:subProcess id="SubProcess_1k2112i" name="Sub-process for FalloutHandler" triggeredByEvent="true">
102 <bpmn2:startEvent id="StartEvent_110xxgx">
103 <bpmn2:outgoing>SequenceFlow_0n4umjf</bpmn2:outgoing>
104 <bpmn2:errorEventDefinition errorRef="Error_2" />
106 <bpmn2:endEvent id="EndEvent_1rqikib">
107 <bpmn2:incoming>SequenceFlow_1ghqolv</bpmn2:incoming>
109 <bpmn2:scriptTask id="ScriptTask_1hql91g" name="Prepare FalloutHandler" scriptFormat="groovy">
110 <bpmn2:incoming>SequenceFlow_0n4umjf</bpmn2:incoming>
111 <bpmn2:outgoing>SequenceFlow_1reso2f</bpmn2:outgoing>
112 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
113 def UpdateNetworkInstance = new UpdateNetworkInstance()
114 UpdateNetworkInstance.buildErrorResponse(execution)</bpmn2:script>
116 <bpmn2:callActivity id="CallActivity_1ksm1dz" name="Call FalloutHandlerV1" calledElement="FalloutHandler">
117 <bpmn2:extensionElements>
118 <camunda:in source="UPDNI_FalloutHandlerRequest" target="FalloutHandlerRequest" />
119 <camunda:in source="mso-request-id" target="mso-request-id" />
120 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
121 <camunda:out source="FH_ResponseCode" target="FH_ResponseCode" />
122 <camunda:out source="FalloutHandlerResponse" target="FalloutHandlerResponse" />
123 <camunda:out source="FH_ErrorResponse" target="FH_ErrorResponse" />
124 </bpmn2:extensionElements>
125 <bpmn2:incoming>SequenceFlow_1reso2f</bpmn2:incoming>
126 <bpmn2:outgoing>SequenceFlow_1ghqolv</bpmn2:outgoing>
127 </bpmn2:callActivity>
128 <bpmn2:sequenceFlow id="SequenceFlow_1reso2f" sourceRef="ScriptTask_1hql91g" targetRef="CallActivity_1ksm1dz" />
129 <bpmn2:sequenceFlow id="SequenceFlow_1ghqolv" sourceRef="CallActivity_1ksm1dz" targetRef="EndEvent_1rqikib" />
130 <bpmn2:sequenceFlow id="SequenceFlow_0n4umjf" sourceRef="StartEvent_110xxgx" targetRef="ScriptTask_1hql91g" />
132 <bpmn2:sequenceFlow id="SequenceFlow_095crcd" sourceRef="CallActivity_0sevgre" targetRef="ScriptTask_09qt0pi" />
133 <bpmn2:sequenceFlow id="SequenceFlow_0rt8wax" sourceRef="Task_19xbdbu" targetRef="Task_1nko5zz" />
134 <bpmn2:sequenceFlow id="SequenceFlow_0eto8sn" sourceRef="Task_1nko5zz" targetRef="doUpdateNetworkInstance_CallActivity" />
135 <bpmn2:scriptTask id="Task_19xbdbu" name="Get Network Model Info " scriptFormat="groovy">
136 <bpmn2:incoming>SequenceFlow_1ablr60</bpmn2:incoming>
137 <bpmn2:outgoing>SequenceFlow_0rt8wax</bpmn2:outgoing>
138 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
139 def UpdateNetworkInstance = new UpdateNetworkInstance()
140 UpdateNetworkInstance.getNetworkModelInfo(execution)</bpmn2:script>
142 <bpmn2:scriptTask id="Task_1nko5zz" name="Send Sync Ack Response" scriptFormat="groovy">
143 <bpmn2:incoming>SequenceFlow_0rt8wax</bpmn2:incoming>
144 <bpmn2:outgoing>SequenceFlow_0eto8sn</bpmn2:outgoing>
145 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
146 def UpdateNetworkInstance = new UpdateNetworkInstance()
147 UpdateNetworkInstance.sendSyncResponse(execution)</bpmn2:script>
150 <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
151 <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
152 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
153 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="UpdateNetworkInstance">
154 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_47" bpmnElement="createNetwork_startEvent">
155 <dc:Bounds x="3" y="79" width="36" height="36" />
157 <dc:Bounds x="-3" y="120" width="48" height="14" />
160 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_28" bpmnElement="unexpectedErrors_SubProcess" isExpanded="true">
161 <dc:Bounds x="370" y="734" width="394" height="188" />
163 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_71" bpmnElement="StartEvent_1">
164 <dc:Bounds x="403" y="811" width="36" height="36" />
166 <dc:Bounds x="376" y="852" width="90" height="0" />
169 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_270" bpmnElement="ScriptTask_1">
170 <dc:Bounds x="518" y="789" width="100" height="80" />
172 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_220" bpmnElement="EndEvent_1">
173 <dc:Bounds x="679" y="811" width="36" height="36" />
175 <dc:Bounds x="652" y="852" width="90" height="0" />
178 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_StartEvent_71" targetElement="_BPMNShape_ScriptTask_270">
179 <di:waypoint x="439" y="829" />
180 <di:waypoint x="518" y="829" />
182 <dc:Bounds x="436" y="829" width="90" height="0" />
185 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ScriptTask_270" targetElement="_BPMNShape_EndEvent_220">
186 <di:waypoint x="618" y="829" />
187 <di:waypoint x="679" y="829" />
189 <dc:Bounds x="608" y="829" width="90" height="0" />
192 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_72" bpmnElement="doUpdateNetworkInstance_CallActivity">
193 <dc:Bounds x="692" y="57" width="100" height="80" />
195 <bpmndi:BPMNShape id="EndEvent_0o440av_di" bpmnElement="EndEvent_0o440av">
196 <dc:Bounds x="1408" y="79" width="36" height="36" />
198 <dc:Bounds x="1419" y="115" width="19" height="12" />
201 <bpmndi:BPMNShape id="ScriptTask_09qt0pi_di" bpmnElement="ScriptTask_09qt0pi">
202 <dc:Bounds x="1253" y="57" width="100" height="80" />
204 <bpmndi:BPMNEdge id="SequenceFlow_1lj31zp_di" bpmnElement="SequenceFlow_1lj31zp">
205 <di:waypoint x="792" y="97" />
206 <di:waypoint x="907" y="97" />
208 <dc:Bounds x="850" y="82" width="0" height="0" />
211 <bpmndi:BPMNEdge id="SequenceFlow_0x3znm5_di" bpmnElement="SequenceFlow_0x3znm5">
212 <di:waypoint x="1353" y="97" />
213 <di:waypoint x="1408" y="97" />
215 <dc:Bounds x="1381" y="82" width="0" height="0" />
218 <bpmndi:BPMNShape id="ScriptTask_0pvcr6j_di" bpmnElement="ScriptTask_0pvcr6j">
219 <dc:Bounds x="139" y="57" width="100" height="80" />
221 <bpmndi:BPMNEdge id="SequenceFlow_0lp2z7l_di" bpmnElement="SequenceFlow_0lp2z7l">
222 <di:waypoint x="39" y="97" />
223 <di:waypoint x="89" y="97" />
224 <di:waypoint x="89" y="97" />
225 <di:waypoint x="139" y="97" />
227 <dc:Bounds x="104" y="97" width="0" height="0" />
230 <bpmndi:BPMNEdge id="SequenceFlow_1ablr60_di" bpmnElement="SequenceFlow_1ablr60">
231 <di:waypoint x="239" y="97" />
232 <di:waypoint x="306" y="97" />
233 <di:waypoint x="306" y="97" />
234 <di:waypoint x="372" y="97" />
236 <dc:Bounds x="321" y="97" width="0" height="0" />
239 <bpmndi:BPMNShape id="ScriptTask_0cihgpv_di" bpmnElement="ScriptTask_0cihgpv">
240 <dc:Bounds x="907" y="57" width="100" height="80" />
242 <bpmndi:BPMNShape id="CallActivity_0sevgre_di" bpmnElement="CallActivity_0sevgre">
243 <dc:Bounds x="1071" y="57" width="100" height="80" />
245 <bpmndi:BPMNEdge id="SequenceFlow_0xxvjxq_di" bpmnElement="SequenceFlow_0xxvjxq">
246 <di:waypoint x="1007" y="97" />
247 <di:waypoint x="1071" y="97" />
249 <dc:Bounds x="1039" y="82" width="0" height="0" />
252 <bpmndi:BPMNShape id="ScriptTask_1hql91g_di" bpmnElement="ScriptTask_1hql91g">
253 <dc:Bounds x="436" y="461" width="100" height="80" />
255 <bpmndi:BPMNShape id="CallActivity_1ksm1dz_di" bpmnElement="CallActivity_1ksm1dz">
256 <dc:Bounds x="611" y="461" width="100" height="80" />
258 <bpmndi:BPMNShape id="SubProcess_1k2112i_di" bpmnElement="SubProcess_1k2112i" isExpanded="true">
259 <dc:Bounds x="200" y="354" width="681" height="293" />
261 <bpmndi:BPMNShape id="StartEvent_110xxgx_di" bpmnElement="StartEvent_110xxgx">
262 <dc:Bounds x="283" y="483" width="36" height="36" />
264 <dc:Bounds x="256" y="524" width="90" height="0" />
267 <bpmndi:BPMNShape id="EndEvent_1rqikib_di" bpmnElement="EndEvent_1rqikib">
268 <dc:Bounds x="786" y="483" width="36" height="36" />
270 <dc:Bounds x="759" y="524" width="90" height="0" />
273 <bpmndi:BPMNEdge id="SequenceFlow_1reso2f_di" bpmnElement="SequenceFlow_1reso2f">
274 <di:waypoint x="536" y="501" />
275 <di:waypoint x="611" y="501" />
277 <dc:Bounds x="529" y="486" width="90" height="0" />
280 <bpmndi:BPMNEdge id="SequenceFlow_1ghqolv_di" bpmnElement="SequenceFlow_1ghqolv">
281 <di:waypoint x="711" y="501" />
282 <di:waypoint x="786" y="501" />
284 <dc:Bounds x="704" y="486" width="90" height="0" />
287 <bpmndi:BPMNEdge id="SequenceFlow_095crcd_di" bpmnElement="SequenceFlow_095crcd">
288 <di:waypoint x="1171" y="97" />
289 <di:waypoint x="1253" y="97" />
291 <dc:Bounds x="1212" y="82" width="0" height="0" />
294 <bpmndi:BPMNEdge id="SequenceFlow_0n4umjf_di" bpmnElement="SequenceFlow_0n4umjf">
295 <di:waypoint x="319" y="501" />
296 <di:waypoint x="436" y="501" />
298 <dc:Bounds x="332.5" y="486" width="90" height="0" />
301 <bpmndi:BPMNEdge id="SequenceFlow_0rt8wax_di" bpmnElement="SequenceFlow_0rt8wax">
302 <di:waypoint x="472" y="97" />
303 <di:waypoint x="558" y="97" />
305 <dc:Bounds x="515" y="82" width="0" height="0" />
308 <bpmndi:BPMNEdge id="SequenceFlow_0eto8sn_di" bpmnElement="SequenceFlow_0eto8sn">
309 <di:waypoint x="658" y="97" />
310 <di:waypoint x="692" y="97" />
312 <dc:Bounds x="675" y="82" width="0" height="0" />
315 <bpmndi:BPMNShape id="ScriptTask_1gpvlh8_di" bpmnElement="Task_19xbdbu">
316 <dc:Bounds x="372" y="57" width="100" height="80" />
318 <bpmndi:BPMNShape id="ScriptTask_1rb2dsd_di" bpmnElement="Task_1nko5zz">
319 <dc:Bounds x="558" y="57" width="100" height="80" />
322 </bpmndi:BPMNDiagram>