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="_Wblj8GyfEeWUWLTvug7ZOg" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="DoUpdateVfModule" name="DoUpdateVfModule" isExecutable="true">
4 <bpmn2:documentation>This flow expects its incoming request to be in the variable 'DoUpdateVfModuleRequest'. This flow produces no output.</bpmn2:documentation>
5 <bpmn2:scriptTask id="PrepareUpdateAAIVfModule_prep" name="Prepare Update AAI Vf Module (prep)" scriptFormat="groovy">
6 <bpmn2:incoming>SequenceFlow_38</bpmn2:incoming>
7 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
8 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
9 def duvm = new DoUpdateVfModule()
10 duvm.prepPrepareUpdateAAIVfModule(execution)</bpmn2:script>
12 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="PrepareUpdateAAIVfModule_prep" targetRef="ScriptTask_1" />
13 <bpmn2:callActivity id="ScriptTask_1" name="Prepare Update AAI Vf Module" calledElement="PrepareUpdateAAIVfModule">
14 <bpmn2:extensionElements>
15 <camunda:in source="DOUPVfMod_prepareUpdateAAIVfModuleRequest" target="PrepareUpdateAAIVfModuleRequest" />
16 <camunda:in source="mso-request-id" target="mso-request-id" />
17 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
18 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
19 <camunda:out source="PUAAIVfMod_outVfModule" target="DOUPVfMod_vfModule" />
20 <camunda:out source="PUAAIVfMod_vnfName" target="DOUPVfMod_vnfNameFromAAI" />
21 <camunda:out source="WorkflowException" target="WorkflowException" />
22 </bpmn2:extensionElements>
23 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
24 <bpmn2:outgoing>SequenceFlow_15</bpmn2:outgoing>
26 <bpmn2:scriptTask id="ProcessReceivedRequest" name="Process Received Request" scriptFormat="groovy">
27 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
28 <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing>
29 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
30 def duvm = new DoUpdateVfModule()
31 duvm.preProcessRequest(execution)</bpmn2:script>
33 <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="ProcessReceivedRequest" targetRef="PrepareUpdateAAIVfModule_prep" />
34 <bpmn2:subProcess id="SubProcess_1" name="Catch Exception" triggeredByEvent="true">
35 <bpmn2:scriptTask id="ScriptTask_16" name="Handle Exception" scriptFormat="groovy">
36 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
37 <bpmn2:outgoing>SequenceFlow_35</bpmn2:outgoing>
38 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
39 def duvm = new DoUpdateVfModule()
40 duvm.handleWorkflowException(execution)</bpmn2:script>
42 <bpmn2:endEvent id="EndEvent_3">
43 <bpmn2:incoming>SequenceFlow_35</bpmn2:incoming>
44 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_11" />
46 <bpmn2:sequenceFlow id="SequenceFlow_35" name="" sourceRef="ScriptTask_16" targetRef="EndEvent_3" />
47 <bpmn2:startEvent id="StartEvent_3">
48 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
49 <bpmn2:errorEventDefinition id="ErrorEventDefinition_2" />
51 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="StartEvent_3" targetRef="ScriptTask_16" />
53 <bpmn2:endEvent id="EndEvent_5">
54 <bpmn2:incoming>SequenceFlow_36</bpmn2:incoming>
55 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_12" />
57 <bpmn2:boundaryEvent id="BoundaryEvent_1" name="" attachedToRef="SubProcess_1">
58 <bpmn2:outgoing>SequenceFlow_36</bpmn2:outgoing>
59 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_70" />
60 </bpmn2:boundaryEvent>
61 <bpmn2:sequenceFlow id="SequenceFlow_36" name="" sourceRef="BoundaryEvent_1" targetRef="EndEvent_5" />
62 <bpmn2:scriptTask id="ScriptTask_10" name="Update AAI Vf Module (prep)" scriptFormat="groovy">
63 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
64 <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>
65 <bpmn2:outgoing>SequenceFlow_25</bpmn2:outgoing>
66 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
67 def duvm = new DoUpdateVfModule()
68 duvm.prepUpdateAAIVfModule(execution)</bpmn2:script>
70 <bpmn2:sequenceFlow id="SequenceFlow_25" name="" sourceRef="ScriptTask_10" targetRef="ScriptTask_11" />
71 <bpmn2:callActivity id="ScriptTask_11" name="UpdateAAIVfModule" calledElement="UpdateAAIVfModule">
72 <bpmn2:extensionElements>
73 <camunda:out source="WorkflowException" target="WorkflowException" />
74 <camunda:in source="DOUPVfMod_updateAAIVfModuleRequest" target="UpdateAAIVfModuleRequest" />
75 <camunda:in source="mso-request-id" target="mso-request-id" />
76 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
77 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
78 </bpmn2:extensionElements>
79 <bpmn2:incoming>SequenceFlow_25</bpmn2:incoming>
80 <bpmn2:outgoing>SequenceFlow_26</bpmn2:outgoing>
82 <bpmn2:sequenceFlow id="SequenceFlow_26" name="" sourceRef="ScriptTask_11" targetRef="ScriptTask_12" />
83 <bpmn2:scriptTask id="ScriptTask_12" name="SDNC Topology Activate (prep)" scriptFormat="groovy">
84 <bpmn2:incoming>SequenceFlow_26</bpmn2:incoming>
85 <bpmn2:outgoing>SequenceFlow_27</bpmn2:outgoing>
86 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
87 def duvm = new DoUpdateVfModule()
88 duvm.prepSDNCTopologyAct(execution)</bpmn2:script>
90 <bpmn2:sequenceFlow id="SequenceFlow_27" name="" sourceRef="ScriptTask_12" targetRef="ScriptTask_13" />
91 <bpmn2:callActivity id="ScriptTask_13" name="SDNCAdapter Topology Activate" calledElement="sdncAdapter">
92 <bpmn2:extensionElements>
93 <camunda:in source="DOUPVfMod_sdncActivateRequest" target="sdncAdapterWorkflowRequest" />
94 <camunda:in source="mso-request-id" target="mso-request-id" />
95 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
96 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
97 <camunda:out source="WorkflowException" target="WorkflowException" />
98 <camunda:out source="sdncAdapterResponse" target="DOUPVfMod_sdncActivateResponse" />
99 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
100 </bpmn2:extensionElements>
101 <bpmn2:incoming>SequenceFlow_27</bpmn2:incoming>
102 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
103 </bpmn2:callActivity>
104 <bpmn2:scriptTask id="ScriptTask_14" name="Update AAI Generic Vnf (prep)" scriptFormat="groovy">
105 <bpmn2:incoming>SequenceFlow_24</bpmn2:incoming>
106 <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>
107 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
108 def duvm = new DoUpdateVfModule()
109 duvm.prepUpdateAAIGenericVnf(execution)</bpmn2:script>
111 <bpmn2:sequenceFlow id="SequenceFlow_13" name="" sourceRef="ScriptTask_14" targetRef="ExclusiveGateway_1" />
112 <bpmn2:callActivity id="CallActivity_1" name="UpdateAAIGenericVnf" calledElement="UpdateAAIGenericVnf">
113 <bpmn2:extensionElements>
114 <camunda:in source="DOUPVfMod_updateAAIGenericVnfRequest" target="UpdateAAIGenericVnfRequest" />
115 <camunda:in source="mso-request-id" target="mso-request-id" />
116 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
117 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
118 <camunda:out source="WorkflowException" target="WorkflowException" />
119 </bpmn2:extensionElements>
120 <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
121 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
122 </bpmn2:callActivity>
123 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="CallActivity_1" targetRef="ScriptTask_10" />
124 <bpmn2:exclusiveGateway id="ExclusiveGateway_1" name="Skip Update
\r Generic Vnf?" default="SequenceFlow_14">
125 <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>
126 <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
127 <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>
128 </bpmn2:exclusiveGateway>
129 <bpmn2:sequenceFlow id="SequenceFlow_14" name="Do the update" sourceRef="ExclusiveGateway_1" targetRef="CallActivity_1" />
130 <bpmn2:sequenceFlow id="SequenceFlow_18" name="Skip the update" sourceRef="ExclusiveGateway_1" targetRef="ScriptTask_10">
131 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="groovy">${execution.getVariable('DOUPVfMod_skipUpdateGenericVnf')} == true</bpmn2:conditionExpression>
132 </bpmn2:sequenceFlow>
133 <bpmn2:startEvent id="StartEvent_1" name="Start">
134 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
136 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="ProcessReceivedRequest" />
137 <bpmn2:scriptTask id="ScriptTask_4" name="SDNC Topology Change/Assign (prep)" scriptFormat="groovy">
138 <bpmn2:incoming>SequenceFlow_16</bpmn2:incoming>
139 <bpmn2:incoming>SequenceFlow_17</bpmn2:incoming>
140 <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
141 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
142 def duvm = new DoUpdateVfModule()
143 duvm.prepSDNCTopologyChg(execution)</bpmn2:script>
145 <bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="ScriptTask_4" targetRef="ScriptTask_5" />
146 <bpmn2:callActivity id="ScriptTask_5" name="SDNC Adapter Topology Change/Assign" calledElement="sdncAdapter">
147 <bpmn2:extensionElements>
148 <camunda:in source="DOUPVfMod_sdncChangeAssignRequest" target="sdncAdapterWorkflowRequest" />
149 <camunda:in source="mso-request-id" target="mso-request-id" />
150 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
151 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
152 <camunda:out source="WorkflowException" target="WorkflowException" />
153 <camunda:out source="sdncAdapterResponse" target="DOUPVfMod_sdncChangeAssignResponse" />
154 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
155 </bpmn2:extensionElements>
156 <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
157 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
158 </bpmn2:callActivity>
159 <bpmn2:callActivity id="ScriptTask_9" name="VnfAdapterRest" calledElement="openstackAdapterTask">
160 <bpmn2:extensionElements>
161 <camunda:in source="DOUPVfMod_vnfAdapterRestRequest" target="openstackAdapterTaskRequest" />
162 <camunda:in source="mso-request-id" target="mso-request-id" />
163 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
164 <camunda:out source="WorkflowException" target="WorkflowException" />
165 <camunda:out source="WorkflowResponse" target="DOUPVfMod_vnfAdapterRestResponse" />
166 </bpmn2:extensionElements>
167 <bpmn2:incoming>SequenceFlow_21</bpmn2:incoming>
168 <bpmn2:outgoing>SequenceFlow_24</bpmn2:outgoing>
169 </bpmn2:callActivity>
170 <bpmn2:sequenceFlow id="SequenceFlow_24" name="" sourceRef="ScriptTask_9" targetRef="ScriptTask_14" />
171 <bpmn2:scriptTask id="ScriptTask_8" name="VNF Adapter (prep)" scriptFormat="groovy">
172 <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>
173 <bpmn2:outgoing>SequenceFlow_21</bpmn2:outgoing>
174 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
175 def duvm = new DoUpdateVfModule()
176 duvm.prepVnfAdapterRest(execution)</bpmn2:script>
178 <bpmn2:sequenceFlow id="SequenceFlow_21" name="" sourceRef="ScriptTask_8" targetRef="ScriptTask_9" />
179 <bpmn2:scriptTask id="ScriptTask_15" name="Validate SDNC Query Response" scriptFormat="groovy">
180 <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>
181 <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
182 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
183 String response = execution.getVariable("DOUPVfMod_sdncTopologyResponse")
184 def duvm = new DoUpdateVfModule()
185 duvm.validateSDNCResponse(execution, response, "query")</bpmn2:script>
187 <bpmn2:callActivity id="ScriptTask_7" name="SDNCAdapter Topology Query" calledElement="sdncAdapter">
188 <bpmn2:extensionElements>
189 <camunda:in source="DOUPVfMod_sdncTopologyRequest" target="sdncAdapterWorkflowRequest" />
190 <camunda:in source="mso-request-id" target="mso-request-id" />
191 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
192 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
193 <camunda:out source="WorkflowException" target="WorkflowException" />
194 <camunda:out source="sdncAdapterResponse" target="DOUPVfMod_sdncTopologyResponse" />
195 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
196 </bpmn2:extensionElements>
197 <bpmn2:incoming>SequenceFlow_19</bpmn2:incoming>
198 <bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>
199 </bpmn2:callActivity>
200 <bpmn2:scriptTask id="ScriptTask_18" name="Validate SDNC Change/Assign Response" scriptFormat="groovy">
201 <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
202 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
203 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
204 String response = execution.getVariable("DOUPVfMod_sdncChangeAssignResponse")
205 def duvm = new DoUpdateVfModule()
206 duvm.validateSDNCResponse(execution, response, "changeassign")</bpmn2:script>
208 <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="ScriptTask_5" targetRef="ScriptTask_18" />
209 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="ScriptTask_18" targetRef="ScriptTask_6" />
210 <bpmn2:scriptTask id="ScriptTask_6" name="SDNC Topology Query (prep)" scriptFormat="groovy">
211 <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
212 <bpmn2:outgoing>SequenceFlow_19</bpmn2:outgoing>
213 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
214 def duvm = new DoUpdateVfModule()
215 duvm.prepSDNCTopologyQuery(execution)</bpmn2:script>
217 <bpmn2:sequenceFlow id="SequenceFlow_19" name="" sourceRef="ScriptTask_6" targetRef="ScriptTask_7" />
218 <bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="ScriptTask_7" targetRef="ScriptTask_15" />
219 <bpmn2:sequenceFlow id="SequenceFlow_23" name="" sourceRef="ScriptTask_15" targetRef="ScriptTask_8" />
220 <bpmn2:exclusiveGateway id="IsBaseVfModule" name="Is Base VF Module?" default="SequenceFlow_30">
221 <bpmn2:incoming>SequenceFlow_15</bpmn2:incoming>
222 <bpmn2:outgoing>SequenceFlow_28</bpmn2:outgoing>
223 <bpmn2:outgoing>SequenceFlow_30</bpmn2:outgoing>
224 </bpmn2:exclusiveGateway>
225 <bpmn2:sequenceFlow id="SequenceFlow_15" name="" sourceRef="ScriptTask_1" targetRef="IsBaseVfModule" />
226 <bpmn2:callActivity id="ScriptTask_3" name="Confirm VolumeGroup Tenant" calledElement="ConfirmVolumeGroupTenant">
227 <bpmn2:extensionElements>
228 <camunda:in source="DOUPVfMod_volumeGroupId" target="volumeGroupId" />
229 <camunda:in source="DOUPVfMod_tenantId" target="tenantId" />
230 <camunda:in source="DOUPVfMod_cloudRegionForVolume" target="aicCloudRegion" />
231 <camunda:in source="mso-request-id" target="mso-request-id" />
232 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
233 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
234 <camunda:out source="WorkflowException" target="WorkflowException" />
235 <camunda:out source="ConfirmVolumeGroupTenantResponse" target="DOUPVfMod_volumeGroupStackId" />
236 </bpmn2:extensionElements>
237 <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
238 <bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing>
239 </bpmn2:callActivity>
240 <bpmn2:sequenceFlow id="SequenceFlow_17" name="" sourceRef="ScriptTask_3" targetRef="ScriptTask_4" />
241 <bpmn2:scriptTask id="ScriptTask_2" name="Confirm VolumeGroup Tenant (prep)" scriptFormat="groovy">
242 <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
243 <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
244 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
245 def duvm = new DoUpdateVfModule()
246 duvm.prepConfirmVolumeGroupTenant(execution)</bpmn2:script>
248 <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="ScriptTask_2" targetRef="ScriptTask_3" />
249 <bpmn2:exclusiveGateway id="ExclusiveGateway_2" name="VolumeGroupId
\r present?" default="SequenceFlow_16">
250 <bpmn2:incoming>SequenceFlow_29</bpmn2:incoming>
251 <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
252 <bpmn2:outgoing>SequenceFlow_16</bpmn2:outgoing>
253 </bpmn2:exclusiveGateway>
254 <bpmn2:sequenceFlow id="SequenceFlow_10" name="Yes" sourceRef="ExclusiveGateway_2" targetRef="ScriptTask_2">
255 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="groovy">${execution.getVariable('DOUPVfMod_volumeGroupId').isEmpty()} == false</bpmn2:conditionExpression>
256 </bpmn2:sequenceFlow>
257 <bpmn2:sequenceFlow id="SequenceFlow_16" name="No" sourceRef="ExclusiveGateway_2" targetRef="ScriptTask_4" />
258 <bpmn2:sequenceFlow id="SequenceFlow_28" name="yes" sourceRef="IsBaseVfModule" targetRef="ExclusiveGateway_3">
259 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="groovy">execution.getVariable("DOUPVfMod_isBaseVfModule") == "true"</bpmn2:conditionExpression>
260 </bpmn2:sequenceFlow>
261 <bpmn2:scriptTask id="QueryAAIVfModule" name="Query AAI Vf Module" scriptFormat="groovy">
262 <bpmn2:incoming>SequenceFlow_30</bpmn2:incoming>
263 <bpmn2:outgoing>SequenceFlow_34</bpmn2:outgoing>
264 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
265 def doUpdateVfModule = new DoUpdateVfModule()
266 doUpdateVfModule.queryAAIVfModule(execution)</bpmn2:script>
268 <bpmn2:sequenceFlow id="SequenceFlow_30" name="no" sourceRef="IsBaseVfModule" targetRef="QueryAAIVfModule" />
269 <bpmn2:sequenceFlow id="SequenceFlow_34" name="" sourceRef="QueryAAIVfModule" targetRef="ExclusiveGateway_3" />
270 <bpmn2:exclusiveGateway id="ExclusiveGateway_3">
271 <bpmn2:incoming>SequenceFlow_28</bpmn2:incoming>
272 <bpmn2:incoming>SequenceFlow_34</bpmn2:incoming>
273 <bpmn2:outgoing>SequenceFlow_29</bpmn2:outgoing>
274 </bpmn2:exclusiveGateway>
275 <bpmn2:sequenceFlow id="SequenceFlow_29" name="" sourceRef="ExclusiveGateway_3" targetRef="ExclusiveGateway_2" />
276 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="ScriptTask_13" targetRef="ScriptTask_19" />
277 <bpmn2:scriptTask id="ScriptTask_19" name="PostProcess SDNC Adapter Activate" scriptFormat="groovy">
278 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
279 <bpmn2:outgoing>SequenceFlow_20</bpmn2:outgoing>
280 <bpmn2:script>import org.onap.so.bpmn.infrastructure.scripts.*
281 String response = execution.getVariable("DOUPVfMod_sdncActivateResponse")
282 def duvm = new DoUpdateVfModule()
283 duvm.validateSDNCResponse(execution, response, "activate")</bpmn2:script>
285 <bpmn2:scriptTask id="ScriptTask_17" name="Set Success Indicator" scriptFormat="groovy">
286 <bpmn2:incoming>SequenceFlow_20</bpmn2:incoming>
287 <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
288 <bpmn2:script>// This variable is checked by the unit test
289 execution.setVariable('DoUpdateVfModuleSuccessIndicator', true)</bpmn2:script>
291 <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="ScriptTask_17" targetRef="EndEvent_1" />
292 <bpmn2:endEvent id="EndEvent_1" name="TheEnd">
293 <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
294 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_10" />
296 <bpmn2:sequenceFlow id="SequenceFlow_20" name="" sourceRef="ScriptTask_19" targetRef="ScriptTask_17" />
298 <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
299 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
300 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoUpdateVfModule">
301 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_37" bpmnElement="StartEvent_1">
302 <dc:Bounds x="230" y="214" width="36" height="36" />
304 <dc:Bounds x="236" y="255" width="25" height="14" />
307 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="ProcessReceivedRequest">
308 <dc:Bounds x="380" y="192" width="100" height="80" />
310 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_37" targetElement="_BPMNShape_ScriptTask_22">
311 <di:waypoint x="266" y="232" />
312 <di:waypoint x="380" y="232" />
314 <dc:Bounds x="208" y="232" width="6" height="6" />
317 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="PrepareUpdateAAIVfModule_prep">
318 <dc:Bounds x="536" y="192" width="100" height="80" />
320 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_22" targetElement="_BPMNShape_ScriptTask_160">
321 <di:waypoint x="480" y="232" />
322 <di:waypoint x="536" y="232" />
324 <dc:Bounds x="492" y="232" width="6" height="6" />
327 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_164" bpmnElement="ScriptTask_1">
328 <dc:Bounds x="704" y="192" width="100" height="80" />
330 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_160" targetElement="_BPMNShape_ScriptTask_164">
331 <di:waypoint x="636" y="232" />
332 <di:waypoint x="704" y="232" />
334 <dc:Bounds x="575" y="232" width="6" height="6" />
337 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_88" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
338 <dc:Bounds x="1119" y="206" width="50" height="50" />
340 <dc:Bounds x="1108" y="172" width="76" height="40" />
343 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_165" bpmnElement="ScriptTask_2">
344 <dc:Bounds x="1232" y="192" width="100" height="80" />
346 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ExclusiveGateway_88" targetElement="_BPMNShape_ScriptTask_165">
347 <di:waypoint x="1169" y="231" />
348 <di:waypoint x="1198" y="231" />
349 <di:waypoint x="1198" y="232" />
350 <di:waypoint x="1232" y="232" />
352 <dc:Bounds x="1185" y="231" width="18" height="14" />
355 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_166" bpmnElement="ScriptTask_3">
356 <dc:Bounds x="1388" y="192" width="100" height="80" />
358 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ScriptTask_165" targetElement="_BPMNShape_ScriptTask_166">
359 <di:waypoint x="1332" y="232" />
360 <di:waypoint x="1388" y="232" />
362 <dc:Bounds x="1271" y="232" width="6" height="6" />
365 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_167" bpmnElement="ScriptTask_4">
366 <dc:Bounds x="152" y="420" width="100" height="80" />
368 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_168" bpmnElement="ScriptTask_5">
369 <dc:Bounds x="319" y="420" width="100" height="80" />
371 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_169" bpmnElement="ScriptTask_6">
372 <dc:Bounds x="615" y="420" width="100" height="80" />
374 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_ScriptTask_167" targetElement="_BPMNShape_ScriptTask_168">
375 <di:waypoint x="252" y="460" />
376 <di:waypoint x="319" y="460" />
378 <dc:Bounds x="197" y="460" width="6" height="6" />
381 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_16" bpmnElement="SequenceFlow_16" sourceElement="_BPMNShape_ExclusiveGateway_88" targetElement="_BPMNShape_ScriptTask_167">
382 <di:waypoint x="1144" y="256" />
383 <di:waypoint x="1144" y="351" />
384 <di:waypoint x="202" y="351" />
385 <di:waypoint x="202" y="420" />
387 <dc:Bounds x="1157" y="271" width="15" height="14" />
390 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_17" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_ScriptTask_166" targetElement="_BPMNShape_ScriptTask_167">
391 <di:waypoint x="1438" y="272" />
392 <di:waypoint x="1438" y="352" />
393 <di:waypoint x="719" y="352" />
394 <di:waypoint x="202" y="352" />
395 <di:waypoint x="202" y="420" />
397 <dc:Bounds x="927" y="352" width="6" height="6" />
400 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_170" bpmnElement="ScriptTask_7">
401 <dc:Bounds x="764" y="420" width="100" height="80" />
403 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_19" sourceElement="_BPMNShape_ScriptTask_169" targetElement="_BPMNShape_ScriptTask_170">
404 <di:waypoint x="715" y="460" />
405 <di:waypoint x="764" y="460" />
407 <dc:Bounds x="648" y="460" width="6" height="6" />
410 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_171" bpmnElement="ScriptTask_8">
411 <dc:Bounds x="1076" y="420" width="100" height="80" />
413 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_172" bpmnElement="ScriptTask_9">
414 <dc:Bounds x="1256" y="420" width="100" height="80" />
416 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_21" bpmnElement="SequenceFlow_21" sourceElement="_BPMNShape_ScriptTask_171" targetElement="_BPMNShape_ScriptTask_172">
417 <di:waypoint x="1176" y="460" />
418 <di:waypoint x="1256" y="460" />
420 <dc:Bounds x="1133" y="460" width="6" height="6" />
423 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_173" bpmnElement="ScriptTask_10">
424 <dc:Bounds x="546" y="636" width="100" height="80" />
426 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_174" bpmnElement="ScriptTask_11">
427 <dc:Bounds x="704" y="636" width="100" height="80" />
429 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_22" bpmnElement="SequenceFlow_24" sourceElement="_BPMNShape_ScriptTask_172" targetElement="_BPMNShape_ScriptTask_219">
430 <di:waypoint x="1306" y="500" />
431 <di:waypoint x="1306" y="576" />
432 <di:waypoint x="274" y="576" />
433 <di:waypoint x="274" y="636" />
435 <dc:Bounds x="821" y="576" width="6" height="6" />
438 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_25" bpmnElement="SequenceFlow_25" sourceElement="_BPMNShape_ScriptTask_173" targetElement="_BPMNShape_ScriptTask_174">
439 <di:waypoint x="646" y="676" />
440 <di:waypoint x="704" y="676" />
442 <dc:Bounds x="591" y="676" width="6" height="6" />
445 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_175" bpmnElement="ScriptTask_12">
446 <dc:Bounds x="884" y="636" width="100" height="80" />
448 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_176" bpmnElement="ScriptTask_13">
449 <dc:Bounds x="1064" y="636" width="100" height="80" />
451 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_26" bpmnElement="SequenceFlow_26" sourceElement="_BPMNShape_ScriptTask_174" targetElement="_BPMNShape_ScriptTask_175">
452 <di:waypoint x="804" y="676" />
453 <di:waypoint x="884" y="676" />
455 <dc:Bounds x="695" y="674" width="6" height="6" />
458 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_27" bpmnElement="SequenceFlow_27" sourceElement="_BPMNShape_ScriptTask_175" targetElement="_BPMNShape_ScriptTask_176">
459 <di:waypoint x="984" y="676" />
460 <di:waypoint x="1064" y="676" />
462 <dc:Bounds x="902" y="676" width="6" height="6" />
465 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_162" bpmnElement="EndEvent_1">
466 <dc:Bounds x="1288" y="906" width="36" height="36" />
468 <dc:Bounds x="1287" y="947" width="38" height="14" />
471 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_21" bpmnElement="SubProcess_1" isExpanded="true">
472 <dc:Bounds x="319" y="924" width="475" height="198" />
474 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_179" bpmnElement="ScriptTask_16">
475 <dc:Bounds x="479" y="984" width="100" height="80" />
477 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_163" bpmnElement="EndEvent_3">
478 <dc:Bounds x="697" y="1006" width="36" height="36" />
480 <dc:Bounds x="635" y="1047" width="0" height="0" />
483 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_35" bpmnElement="SequenceFlow_35" sourceElement="_BPMNShape_ScriptTask_179" targetElement="_BPMNShape_EndEvent_163">
484 <di:waypoint x="579" y="1024" />
485 <di:waypoint x="697" y="1024" />
487 <dc:Bounds x="555" y="1024" width="6" height="6" />
490 <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_46" bpmnElement="BoundaryEvent_1">
491 <dc:Bounds x="776" y="1005" width="36" height="36" />
493 <dc:Bounds x="711" y="1046" width="6" height="6" />
496 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_164" bpmnElement="EndEvent_5">
497 <dc:Bounds x="894" y="1005" width="36" height="36" />
499 <dc:Bounds x="832" y="1046" width="0" height="0" />
502 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_36" bpmnElement="SequenceFlow_36" sourceElement="_BPMNShape_BoundaryEvent_46" targetElement="_BPMNShape_EndEvent_164">
503 <di:waypoint x="812" y="1023" />
504 <di:waypoint x="894" y="1023" />
506 <dc:Bounds x="770" y="1023" width="6" height="6" />
509 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_56" bpmnElement="StartEvent_3">
510 <dc:Bounds x="385" y="1006" width="36" height="36" />
512 <dc:Bounds x="323" y="1047" width="0" height="0" />
515 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_StartEvent_56" targetElement="_BPMNShape_ScriptTask_179">
516 <di:waypoint x="421" y="1024" />
517 <di:waypoint x="479" y="1024" />
519 <dc:Bounds x="302" y="1084" width="6" height="6" />
522 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_180" bpmnElement="ScriptTask_17">
523 <dc:Bounds x="1256" y="768" width="100" height="80" />
525 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ScriptTask_180" targetElement="_BPMNShape_EndEvent_162">
526 <di:waypoint x="1306" y="848" />
527 <di:waypoint x="1306" y="906" />
529 <dc:Bounds x="1223" y="868" width="6" height="6" />
532 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_219" bpmnElement="ScriptTask_14">
533 <dc:Bounds x="224" y="636" width="100" height="80" />
535 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_2" bpmnElement="CallActivity_1">
536 <dc:Bounds x="380" y="636" width="100" height="80" />
538 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_CallActivity_2" targetElement="_BPMNShape_ScriptTask_173">
539 <di:waypoint x="480" y="676" />
540 <di:waypoint x="546" y="676" />
542 <dc:Bounds x="431" y="676" width="6" height="6" />
545 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ScriptTask_219" targetElement="_BPMNShape_ExclusiveGateway_213">
546 <di:waypoint x="274" y="716" />
547 <di:waypoint x="275" y="793" />
548 <di:waypoint x="364" y="793" />
549 <di:waypoint x="404" y="793" />
551 <dc:Bounds x="191" y="746" width="6" height="6" />
554 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_213" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
555 <dc:Bounds x="404" y="768" width="50" height="50" />
557 <dc:Bounds x="397" y="823" width="65" height="40" />
560 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ExclusiveGateway_213" targetElement="_BPMNShape_CallActivity_2">
561 <di:waypoint x="429" y="768" />
562 <di:waypoint x="430" y="716" />
564 <dc:Bounds x="442" y="733" width="70" height="14" />
567 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_ExclusiveGateway_213" targetElement="_BPMNShape_ScriptTask_173">
568 <di:waypoint x="454" y="793" />
569 <di:waypoint x="595" y="793" />
570 <di:waypoint x="596" y="716" />
572 <dc:Bounds x="470" y="768" width="77" height="14" />
575 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_220" bpmnElement="ScriptTask_15">
576 <dc:Bounds x="920" y="420" width="100" height="80" />
578 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_221" bpmnElement="ScriptTask_18">
579 <dc:Bounds x="464" y="420" width="100" height="80" />
581 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_168" targetElement="_BPMNShape_ScriptTask_221">
582 <di:waypoint x="419" y="460" />
583 <di:waypoint x="464" y="460" />
585 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_221" targetElement="_BPMNShape_ScriptTask_169">
586 <di:waypoint x="564" y="460" />
587 <di:waypoint x="615" y="460" />
589 <dc:Bounds x="511" y="460" width="6" height="6" />
592 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_22" sourceElement="_BPMNShape_ScriptTask_170" targetElement="_BPMNShape_ScriptTask_220">
593 <di:waypoint x="864" y="460" />
594 <di:waypoint x="920" y="460" />
596 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ScriptTask_220" targetElement="_BPMNShape_ScriptTask_171">
597 <di:waypoint x="1020" y="460" />
598 <di:waypoint x="1076" y="460" />
600 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_214" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
601 <dc:Bounds x="1045" y="206" width="50" height="50" />
603 <dc:Bounds x="990" y="261" width="0" height="0" />
606 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_215" bpmnElement="IsBaseVfModule" isMarkerVisible="true">
607 <dc:Bounds x="850" y="206" width="50" height="50" />
609 <dc:Bounds x="848" y="261" width="55" height="27" />
612 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_285" bpmnElement="QueryAAIVfModule">
613 <dc:Bounds x="929" y="72" width="100" height="80" />
615 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_15" sourceElement="_BPMNShape_ScriptTask_164" targetElement="_BPMNShape_ExclusiveGateway_215">
616 <di:waypoint x="804" y="232" />
617 <di:waypoint x="827" y="232" />
618 <di:waypoint x="827" y="231" />
619 <di:waypoint x="850" y="231" />
621 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_28" bpmnElement="SequenceFlow_28" sourceElement="_BPMNShape_ExclusiveGateway_215" targetElement="_BPMNShape_ExclusiveGateway_214">
622 <di:waypoint x="900" y="231" />
623 <di:waypoint x="1045" y="231" />
625 <dc:Bounds x="963" y="231" width="17" height="14" />
628 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_29" bpmnElement="SequenceFlow_29" sourceElement="_BPMNShape_ExclusiveGateway_214" targetElement="_BPMNShape_ExclusiveGateway_88">
629 <di:waypoint x="1095" y="231" />
630 <di:waypoint x="1119" y="231" />
632 <dc:Bounds x="1015" y="231" width="6" height="6" />
635 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_30" bpmnElement="SequenceFlow_30" sourceElement="_BPMNShape_ExclusiveGateway_215" targetElement="_BPMNShape_ScriptTask_285">
636 <di:waypoint x="875" y="206" />
637 <di:waypoint x="875" y="112" />
638 <di:waypoint x="929" y="112" />
640 <dc:Bounds x="854" y="151" width="13" height="14" />
643 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_34" bpmnElement="SequenceFlow_34" sourceElement="_BPMNShape_ScriptTask_285" targetElement="_BPMNShape_ExclusiveGateway_214">
644 <di:waypoint x="1029" y="112" />
645 <di:waypoint x="1046" y="112" />
646 <di:waypoint x="1070" y="112" />
647 <di:waypoint x="1070" y="206" />
649 <dc:Bounds x="987" y="136" width="6" height="6" />
652 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_286" bpmnElement="ScriptTask_19">
653 <dc:Bounds x="1256" y="636" width="100" height="80" />
655 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_176" targetElement="_BPMNShape_ScriptTask_286">
656 <di:waypoint x="1164" y="676" />
657 <di:waypoint x="1256" y="676" />
659 <dc:Bounds x="1121" y="676" width="6" height="6" />
662 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_20" sourceElement="_BPMNShape_ScriptTask_286" targetElement="_BPMNShape_ScriptTask_180">
663 <di:waypoint x="1306" y="716" />
664 <di:waypoint x="1306" y="768" />
667 </bpmndi:BPMNDiagram>