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="_F0omAMXGEeW834CKd-K10Q" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="UpdateVfModuleInfra" name="UpdateVfModuleInfra" isExecutable="true">
4 <bpmn2:scriptTask id="ScriptTask_1" name="Send Synch Response" scriptFormat="groovy">
5 <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
6 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
7 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
8 def uvfm = new UpdateVfModuleInfra()
9 uvfm.sendSynchResponse(execution)]]></bpmn2:script>
11 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="ScriptTask_1" targetRef="ScriptTask_7" />
12 <bpmn2:scriptTask id="ScriptTask_2" name="Pre-Process Request" scriptFormat="groovy">
13 <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
14 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
15 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
16 def uvfm = new UpdateVfModuleInfra()
17 uvfm.preProcessRequest(execution)
20 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="ScriptTask_2" targetRef="ScriptTask_1" />
21 <bpmn2:scriptTask id="ScriptTask_7" name="DoUpdateVfModule (prep)" scriptFormat="groovy">
22 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
23 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
24 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
25 def uvfm = new UpdateVfModuleInfra()
26 uvfm.prepDoUpdateVfModule(execution)]]></bpmn2:script>
28 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="ScriptTask_7" targetRef="ScriptTask_6" />
29 <bpmn2:callActivity id="CallActivity_1" name="Completion Handler" calledElement="CompleteMsoProcess">
30 <bpmn2:extensionElements>
31 <camunda:in source="UPDVfModI_CompletionHandlerRequest" target="CompleteMsoProcessRequest" />
32 <camunda:in source="mso-request-id" target="mso-request-id" />
33 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
34 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
35 </bpmn2:extensionElements>
36 <bpmn2:incoming>SequenceFlow_17</bpmn2:incoming>
37 <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
39 <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="CallActivity_1" targetRef="ScriptTask_4" />
40 <bpmn2:endEvent id="EndEvent_1" name="TheEnd">
41 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
42 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_5" />
44 <bpmn2:scriptTask id="ScriptTask_4" name="Set Success Indicator" scriptFormat="groovy">
45 <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
46 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
47 <bpmn2:script><![CDATA[// The following variable is checked by the unit test
48 execution.setVariable("UpdateVfModuleInfraSuccessIndicator", true)]]></bpmn2:script>
50 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="ScriptTask_4" targetRef="EndEvent_1" />
51 <bpmn2:scriptTask id="ScriptTask_10" name="Completion Handler (prep)" scriptFormat="groovy">
52 <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
53 <bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing>
54 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
55 def uvfm = new UpdateVfModuleInfra()
56 uvfm.completionHandlerPrep(execution, 'UPDVfModI_CompletionHandlerRequest')
59 <bpmn2:sequenceFlow id="SequenceFlow_17" name="" sourceRef="ScriptTask_10" targetRef="CallActivity_1" />
60 <bpmn2:subProcess id="SubProcess_1" name="Error Handler" triggeredByEvent="true">
61 <bpmn2:startEvent id="StartEvent_3" name="Catch All Errors">
62 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
63 <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" />
65 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_3" targetRef="ScriptTask_3" />
66 <bpmn2:scriptTask id="ScriptTask_3" name="Fallout Handler (prep)" scriptFormat="groovy">
67 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
68 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
69 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
70 def uvfm = new UpdateVfModuleInfra()
71 uvfm.falloutHandlerPrep(execution, 'UPDVfModI_FalloutHandlerRequest')
74 <bpmn2:sequenceFlow id="SequenceFlow_7" sourceRef="ScriptTask_3" targetRef="CallActivity_2" />
75 <bpmn2:callActivity id="CallActivity_2" name="Fallout Handler" calledElement="FalloutHandler">
76 <bpmn2:extensionElements>
77 <camunda:in source="UPDVfModI_FalloutHandlerRequest" target="FalloutHandlerRequest" />
78 <camunda:in source="mso-request-id" target="mso-request-id"/>
79 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id"/>
80 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
81 </bpmn2:extensionElements>
82 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
83 <bpmn2:outgoing>SequenceFlow_19</bpmn2:outgoing>
85 <bpmn2:endEvent id="EndEvent_2">
86 <bpmn2:incoming>SequenceFlow_19</bpmn2:incoming>
87 <bpmn2:terminateEventDefinition id="TerminateEventDefinition_1" />
89 <bpmn2:sequenceFlow id="SequenceFlow_19" name="" sourceRef="CallActivity_2" targetRef="EndEvent_2" />
91 <bpmn2:endEvent id="EndEvent_3">
92 <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
93 <bpmn2:terminateEventDefinition id="TerminateEventDefinition_2" />
95 <bpmn2:boundaryEvent id="BoundaryEvent_1" name="" attachedToRef="SubProcess_1">
96 <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
97 <bpmn2:errorEventDefinition id="ErrorEventDefinition_2" />
98 </bpmn2:boundaryEvent>
99 <bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="BoundaryEvent_1" targetRef="EndEvent_3" />
100 <bpmn2:startEvent id="StartEvent_1" name="Start">
101 <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
103 <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="StartEvent_1" targetRef="ScriptTask_2" />
104 <bpmn2:callActivity id="ScriptTask_6" name="DoUpdateVfModule" calledElement="DoUpdateVfModule">
105 <bpmn2:extensionElements>
106 <camunda:in source="UPDVfModI_requestId" target="msoRequestId" />
107 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
108 <camunda:out source="WorkflowException" target="WorkflowException" />
109 <camunda:in source="isVidRequest" target="isVidRequest" />
110 <camunda:in source="UPDVfModI_vnfType" target="vnfType" />
111 <camunda:in source="UPDVfModI_vnfName" target="vnfName" />
112 <camunda:in source="UPDVfModI_vnfId" target="vnfId" />
113 <camunda:in source="UPDVfModI_vfModuleName" target="vfModuleName" />
114 <camunda:in source="UPDVfModI_vfModuleType" target="vfModuleType" />
115 <camunda:in source="UPDVfModI_vfModuleId" target="vfModuleId" />
116 <camunda:in source="UPDVfModI_volumeGroupId" target="volumeGroupId" />
117 <camunda:in source="UPDVfModI_volumeGroupName" target="volumeGroupName" />
118 <camunda:in source="UPDVfModI_isBaseVfModule" target="isBaseVfModule" />
119 <camunda:in source="UPDVfModI_asdcServiceModelVersion" target="asdcServiceModelVersion" />
120 <camunda:in source="UPDVfModI_serviceInstanceId" target="serviceInstanceId" />
121 <camunda:in source="UPDVfModI_serviceModelInfo" target="serviceModelInfo" />
122 <camunda:in source="UPDVfModI_vnfModelInfo" target="vnfModelInfo" />
123 <camunda:in source="UPDVfModI_globalSubscriberId" target="globalSubscriberId" />
124 <camunda:in source="UPDVfModI_lcpCloudRegionId" target="lcpCloudRegionId" />
125 <camunda:in source="UPDVfModI_cloudOwner" target="cloudOwner" />
126 <camunda:in source="UPDVfModI_tenantId" target="tenantId" />
127 <camunda:in source="UPDVfModI_sdncVersion" target="sdncVersion" />
128 <camunda:in source="UPDVfModI_vfModuleModelInfo" target="vfModuleModelInfo" />
129 <camunda:in source="UPDVfModI_usePreload" target="usePreload" />
130 <camunda:in source="UPDVfModI_vfModuleInputParams" target="vfModuleInputParams" />
131 </bpmn2:extensionElements>
132 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
133 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
134 </bpmn2:callActivity>
135 <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="ScriptTask_6" targetRef="ScriptTask_10" />
137 <bpmn2:error id="Error_1" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
138 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
139 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="UpdateVfModuleInfra">
140 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_50" bpmnElement="StartEvent_1">
141 <dc:Bounds x="149" y="72" width="36" height="36" />
143 <dc:Bounds x="150" y="113" width="34" height="22" />
146 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_125" bpmnElement="EndEvent_1">
147 <dc:Bounds x="605" y="370" width="36" height="36" />
149 <dc:Bounds x="598" y="411" width="50" height="22" />
152 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_StartEvent_50" targetElement="_BPMNShape_ScriptTask_124">
153 <di:waypoint xsi:type="dc:Point" x="185" y="90" />
154 <di:waypoint xsi:type="dc:Point" x="299" y="90" />
156 <dc:Bounds x="235" y="90" width="6" height="6" />
159 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_124" bpmnElement="ScriptTask_2">
160 <dc:Bounds x="299" y="50" width="100" height="80" />
162 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_124" targetElement="_BPMNShape_ScriptTask_125">
163 <di:waypoint xsi:type="dc:Point" x="399" y="90" />
164 <di:waypoint xsi:type="dc:Point" x="449" y="90" />
166 <dc:Bounds x="433" y="90" width="6" height="6" />
169 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_125" bpmnElement="ScriptTask_1">
170 <dc:Bounds x="449" y="50" width="100" height="80" />
172 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_125" targetElement="_BPMNShape_ScriptTask_130">
173 <di:waypoint xsi:type="dc:Point" x="498" y="130" />
174 <di:waypoint xsi:type="dc:Point" x="498" y="160" />
175 <di:waypoint xsi:type="dc:Point" x="199" y="160" />
176 <di:waypoint xsi:type="dc:Point" x="199" y="190" />
178 <dc:Bounds x="717" y="169" width="6" height="6" />
181 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_127" bpmnElement="ScriptTask_4">
182 <dc:Bounds x="449" y="348" width="100" height="80" />
184 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ScriptTask_127" targetElement="_BPMNShape_EndEvent_125">
185 <di:waypoint xsi:type="dc:Point" x="549" y="388" />
186 <di:waypoint xsi:type="dc:Point" x="605" y="388" />
188 <dc:Bounds x="723" y="186" width="6" height="6" />
191 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_130" bpmnElement="ScriptTask_7">
192 <dc:Bounds x="149" y="190" width="100" height="80" />
194 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_133" bpmnElement="ScriptTask_10">
195 <dc:Bounds x="149" y="348" width="100" height="80" />
197 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_27" bpmnElement="CallActivity_1">
198 <dc:Bounds x="299" y="348" width="100" height="80" />
200 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_17" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_ScriptTask_133" targetElement="_BPMNShape_CallActivity_27">
201 <di:waypoint xsi:type="dc:Point" x="249" y="388" />
202 <di:waypoint xsi:type="dc:Point" x="299" y="388" />
204 <dc:Bounds x="271" y="394" width="6" height="6" />
207 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_17" bpmnElement="SubProcess_1" isExpanded="true">
208 <dc:Bounds x="65" y="536" width="565" height="241" />
210 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_52" bpmnElement="StartEvent_3">
211 <dc:Bounds x="129" y="630" width="36" height="36" />
213 <dc:Bounds x="98" y="671" width="98" height="22" />
216 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_136" bpmnElement="ScriptTask_3">
217 <dc:Bounds x="209" y="608" width="100" height="80" />
219 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_52" targetElement="_BPMNShape_ScriptTask_136">
220 <di:waypoint xsi:type="dc:Point" x="165" y="648" />
221 <di:waypoint xsi:type="dc:Point" x="209" y="648" />
223 <dc:Bounds x="209" y="948" width="6" height="6" />
226 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_136" targetElement="_BPMNShape_CallActivity_28">
227 <di:waypoint xsi:type="dc:Point" x="309" y="648" />
228 <di:waypoint xsi:type="dc:Point" x="377" y="648" />
230 <dc:Bounds x="325" y="648" width="0" height="0" />
233 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_126" bpmnElement="EndEvent_2">
234 <dc:Bounds x="533" y="630" width="36" height="36" />
236 <dc:Bounds x="551" y="671" width="0" height="0" />
239 <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_43" bpmnElement="BoundaryEvent_1">
240 <dc:Bounds x="612" y="630" width="36" height="36" />
242 <dc:Bounds x="627" y="671" width="6" height="6" />
245 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_127" bpmnElement="EndEvent_3">
246 <dc:Bounds x="704" y="630" width="36" height="36" />
248 <dc:Bounds x="722" y="671" width="0" height="0" />
251 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_BoundaryEvent_43" targetElement="_BPMNShape_EndEvent_127">
252 <di:waypoint xsi:type="dc:Point" x="648" y="648" />
253 <di:waypoint xsi:type="dc:Point" x="704" y="648" />
255 <dc:Bounds x="693" y="948" width="6" height="6" />
258 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_28" bpmnElement="CallActivity_2">
259 <dc:Bounds x="377" y="608" width="100" height="80" />
261 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_CallActivity_27" targetElement="_BPMNShape_ScriptTask_127">
262 <di:waypoint xsi:type="dc:Point" x="399" y="388" />
263 <di:waypoint xsi:type="dc:Point" x="449" y="388" />
265 <dc:Bounds x="439" y="356" width="6" height="6" />
268 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_19" sourceElement="_BPMNShape_CallActivity_28" targetElement="_BPMNShape_EndEvent_126">
269 <di:waypoint xsi:type="dc:Point" x="477" y="648" />
270 <di:waypoint xsi:type="dc:Point" x="533" y="648" />
272 <dc:Bounds x="373" y="456" width="6" height="6" />
275 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_130" targetElement="_BPMNShape_ScriptTask_181">
276 <di:waypoint xsi:type="dc:Point" x="249" y="230" />
277 <di:waypoint xsi:type="dc:Point" x="299" y="230" />
279 <dc:Bounds x="274" y="205" width="0" height="0" />
282 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_181" bpmnElement="ScriptTask_6">
283 <dc:Bounds x="299" y="190" width="100" height="80" />
285 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_181" targetElement="_BPMNShape_ScriptTask_133">
286 <di:waypoint xsi:type="dc:Point" x="399" y="231" />
287 <di:waypoint xsi:type="dc:Point" x="624" y="233" />
288 <di:waypoint xsi:type="dc:Point" x="624" y="294" />
289 <di:waypoint xsi:type="dc:Point" x="99" y="294" />
290 <di:waypoint xsi:type="dc:Point" x="99" y="388" />
291 <di:waypoint xsi:type="dc:Point" x="149" y="388" />
293 <dc:Bounds x="503" y="232" width="0" height="0" />
297 </bpmndi:BPMNDiagram>