blob: c110580f5ca4b719bf46607746386c4e5e0ba136 [file] [log] [blame]
Arthur Martella62cd6aa2017-09-08 13:27:46 -04001<?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="_9MhrcHqVEea26OhQB97uCQ" 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="DoUpdateVnfAndModules" name="DoUpdateVnfAndModules" isExecutable="true">
4 <bpmn2:startEvent id="StartEvent_1">
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
6 </bpmn2:startEvent>
7 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="intialization" />
8 <bpmn2:scriptTask id="intialization" name="Intialization" scriptFormat="groovy">
9 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
10 <bpmn2:outgoing>SequenceFlow_08nd69s</bpmn2:outgoing>
11 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
12DoUpdateVnfAndModules updateVnfAndModules = new DoUpdateVnfAndModules()
13updateVnfAndModules.preProcessRequest(execution)]]></bpmn2:script>
14 </bpmn2:scriptTask>
15 <bpmn2:subProcess id="javaErrorHandlingSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
16 <bpmn2:endEvent id="EndEvent_4">
17 <bpmn2:incoming>SequenceFlow_19</bpmn2:incoming>
18 </bpmn2:endEvent>
19 <bpmn2:startEvent id="StartEvent_3">
20 <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>
21 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_95" errorRef="Error_2" />
22 </bpmn2:startEvent>
23 <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="StartEvent_3" targetRef="processJavaException" />
24 <bpmn2:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">
25 <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>
26 <bpmn2:outgoing>SequenceFlow_19</bpmn2:outgoing>
27 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
28ExceptionUtil exceptionUtil = new ExceptionUtil()
29exceptionUtil.processJavaException(execution)]]></bpmn2:script>
30 </bpmn2:scriptTask>
31 <bpmn2:sequenceFlow id="SequenceFlow_19" name="" sourceRef="processJavaException" targetRef="EndEvent_4" />
32 </bpmn2:subProcess>
33 <bpmn2:endEvent id="EndEvent_2">
34 <bpmn2:incoming>SequenceFlow_0of4kmm</bpmn2:incoming>
35 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_36" />
36 </bpmn2:endEvent>
37 <bpmn2:exclusiveGateway id="ExclusiveGateway_1amun4k" name="Are there VF modules to update?" default="SequenceFlow_19c7hcw">
38 <bpmn2:incoming>SequenceFlow_0t4yszi</bpmn2:incoming>
39 <bpmn2:incoming>SequenceFlow_1f4mbkc</bpmn2:incoming>
40 <bpmn2:outgoing>SequenceFlow_1qrkdn3</bpmn2:outgoing>
41 <bpmn2:outgoing>SequenceFlow_19c7hcw</bpmn2:outgoing>
42 </bpmn2:exclusiveGateway>
43 <bpmn2:sequenceFlow id="SequenceFlow_08nd69s" sourceRef="intialization" targetRef="QueryVnf" />
44 <bpmn2:sequenceFlow id="SequenceFlow_1qrkdn3" name="yes" sourceRef="ExclusiveGateway_1amun4k" targetRef="PrepareModuleList">
45 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="groovy"><![CDATA[execution.getVariable("DUVAM_nextModule") < execution.getVariable("DUVAM_moduleCount")]]></bpmn2:conditionExpression>
46 </bpmn2:sequenceFlow>
47 <bpmn2:callActivity id="UpdateVFModule" name="Do Update VF Module" calledElement="DoUpdateVfModule">
48 <bpmn2:extensionElements>
49 <camunda:in source="msoRequestId" target="msoRequestId" />
50 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
51 <camunda:out source="WorkflowException" target="WorkflowException" />
52 <camunda:in source="isVidRequest" target="isVidRequest" />
53 <camunda:in source="vnfType" target="vnfType" />
54 <camunda:in source="vnfName" target="vnfName" />
55 <camunda:in source="vnfId" target="vnfId" />
56 <camunda:in source="DUVAM_vfModuleName" target="vfModuleName" />
57 <camunda:in source="DUVAM_vfModuleId" target="vfModuleId" />
58 <camunda:in source="DUVAM_volumeGroupId" target="volumeGroupId" />
59 <camunda:in source="DUVAM_volumeGroupName" target="volumeGroupName" />
60 <camunda:in source="DUVAM_isBaseVfModule" target="isBaseVfModule" />
61 <camunda:in source="asdcServiceModelVersion" target="asdcServiceModelVersion" />
62 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
63 <camunda:in source="serviceModelInfo" target="serviceModelInfo" />
64 <camunda:in source="vnfModelInfo" target="vnfModelInfo" />
65 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
66 <camunda:in source="lcpCloudRegionId" target="lcpCloudRegionId" />
67 <camunda:in source="tenantId" target="tenantId" />
68 <camunda:in source="sdncVersion" target="sdncVersion" />
69 <camunda:in source="DUVAM_vfModuleModelInfo" target="vfModuleModelInfo" />
70 <camunda:in source="usePreload" target="usePreload" />
71 </bpmn2:extensionElements>
72 <bpmn2:incoming>SequenceFlow_04o61yk</bpmn2:incoming>
73 <bpmn2:outgoing>SequenceFlow_1p4ycii</bpmn2:outgoing>
74 </bpmn2:callActivity>
75 <bpmn2:sequenceFlow id="SequenceFlow_1p4ycii" sourceRef="UpdateVFModule" targetRef="PostProcessUpdateVfModule" />
76 <bpmn2:sequenceFlow id="SequenceFlow_0t4yszi" sourceRef="PostProcessUpdateVfModule" targetRef="ExclusiveGateway_1amun4k" />
77 <bpmn2:scriptTask id="QueryVnf" name="Query VNF" scriptFormat="groovy">
78 <bpmn2:incoming>SequenceFlow_08nd69s</bpmn2:incoming>
79 <bpmn2:outgoing>SequenceFlow_1f4mbkc</bpmn2:outgoing>
80 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
81def duvam = new DoUpdateVnfAndModules()
82duvam.queryAAIVfModule(execution)]]></bpmn2:script>
83 </bpmn2:scriptTask>
84 <bpmn2:scriptTask id="PrepareModuleList" name="Prepare Next Module To Update" scriptFormat="groovy">
85 <bpmn2:incoming>SequenceFlow_1qrkdn3</bpmn2:incoming>
86 <bpmn2:outgoing>SequenceFlow_04o61yk</bpmn2:outgoing>
87 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
88def duvam = new DoUpdateVnfAndModules()
89duvam.prepareNextModuleToUpdate(execution)]]></bpmn2:script>
90 </bpmn2:scriptTask>
91 <bpmn2:scriptTask id="PostProcessUpdateVfModule" name="PostProcess Update VF Module" scriptFormat="groovy">
92 <bpmn2:incoming>SequenceFlow_1p4ycii</bpmn2:incoming>
93 <bpmn2:outgoing>SequenceFlow_0t4yszi</bpmn2:outgoing>
94 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
95int nextModule = execution.getVariable("DUVAM_nextModule")
96 execution.setVariable("DUVAM_nextModule", nextModule + 1)]]></bpmn2:script>
97 </bpmn2:scriptTask>
98 <bpmn2:sequenceFlow id="SequenceFlow_04o61yk" sourceRef="PrepareModuleList" targetRef="UpdateVFModule" />
99 <bpmn2:sequenceFlow id="SequenceFlow_19c7hcw" name="no" sourceRef="ExclusiveGateway_1amun4k" targetRef="PreProcessUpdateAAIGenericVNF" />
100 <bpmn2:sequenceFlow id="SequenceFlow_0of4kmm" sourceRef="UpdateAAIGenericVNFTask" targetRef="EndEvent_2" />
101 <bpmn2:sequenceFlow id="SequenceFlow_1ltycz6" sourceRef="PreProcessUpdateAAIGenericVNF" targetRef="UpdateAAIGenericVNFTask" />
102 <bpmn2:callActivity id="UpdateAAIGenericVNFTask" name="Update AAI Generic VNF" calledElement="UpdateAAIGenericVnf">
103 <bpmn2:extensionElements>
104 <camunda:in source="DUVAM_updateAAIGenericVnfRequest" target="UpdateAAIGenericVnfRequest" />
105 <camunda:in source="mso-request-id" target="mso-request-id" />
106 <camunda:in source="mso-service-id" target="mso-service-id" />
107 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
108 <camunda:out source="WorkflowException" target="WorkflowException" />
109 </bpmn2:extensionElements>
110 <bpmn2:incoming>SequenceFlow_1ltycz6</bpmn2:incoming>
111 <bpmn2:outgoing>SequenceFlow_0of4kmm</bpmn2:outgoing>
112 </bpmn2:callActivity>
113 <bpmn2:scriptTask id="PreProcessUpdateAAIGenericVNF" name="PreProcess Update AAI Generic VNF" scriptFormat="groovy">
114 <bpmn2:incoming>SequenceFlow_19c7hcw</bpmn2:incoming>
115 <bpmn2:outgoing>SequenceFlow_1ltycz6</bpmn2:outgoing>
116 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
117def duvam = new DoUpdateVnfAndModules()
118duvam.prepUpdateAAIGenericVnf(execution)]]></bpmn2:script>
119 </bpmn2:scriptTask>
120 <bpmn2:sequenceFlow id="SequenceFlow_1f4mbkc" sourceRef="QueryVnf" targetRef="ExclusiveGateway_1amun4k" />
121 </bpmn2:process>
122 <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
123 <bpmn2:error id="Error_2" name="Java Lang Exception" errorCode="java.lang.Exception" />
124 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
125 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoUpdateVnfAndModules">
126 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_79" bpmnElement="StartEvent_1">
127 <dc:Bounds x="238" y="209" width="36" height="36" />
128 <bpmndi:BPMNLabel>
129 <dc:Bounds x="256" y="250" width="0" height="0" />
130 </bpmndi:BPMNLabel>
131 </bpmndi:BPMNShape>
132 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_311" bpmnElement="intialization">
133 <dc:Bounds x="344" y="187" width="100" height="80" />
134 </bpmndi:BPMNShape>
135 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_79" targetElement="_BPMNShape_ScriptTask_311">
136 <di:waypoint xsi:type="dc:Point" x="274" y="227" />
137 <di:waypoint xsi:type="dc:Point" x="344" y="228" />
138 <bpmndi:BPMNLabel>
139 <dc:Bounds x="309" y="212.5" width="0" height="0" />
140 </bpmndi:BPMNLabel>
141 </bpmndi:BPMNEdge>
142 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_237" bpmnElement="EndEvent_2">
143 <dc:Bounds x="1441" y="279" width="36" height="36" />
144 <bpmndi:BPMNLabel>
145 <dc:Bounds x="1459" y="320" width="0" height="0" />
146 </bpmndi:BPMNLabel>
147 </bpmndi:BPMNShape>
148 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_35" bpmnElement="javaErrorHandlingSubProcess" isExpanded="true">
149 <dc:Bounds x="242" y="457" width="431" height="157" />
150 </bpmndi:BPMNShape>
151 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_81" bpmnElement="StartEvent_3">
152 <dc:Bounds x="390" y="518" width="36" height="36" />
153 <bpmndi:BPMNLabel>
154 <dc:Bounds x="408" y="559" width="0" height="0" />
155 </bpmndi:BPMNLabel>
156 </bpmndi:BPMNShape>
157 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_239" bpmnElement="EndEvent_4">
158 <dc:Bounds x="606" y="518" width="36" height="36" />
159 <bpmndi:BPMNLabel>
160 <dc:Bounds x="624" y="559" width="0" height="0" />
161 </bpmndi:BPMNLabel>
162 </bpmndi:BPMNShape>
163 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_319" bpmnElement="processJavaException">
164 <dc:Bounds x="460" y="496" width="100" height="80" />
165 </bpmndi:BPMNShape>
166 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_StartEvent_81" targetElement="_BPMNShape_ScriptTask_319">
167 <di:waypoint xsi:type="dc:Point" x="426" y="536" />
168 <di:waypoint xsi:type="dc:Point" x="460" y="536" />
169 <bpmndi:BPMNLabel>
170 <dc:Bounds x="443" y="521" width="0" height="0" />
171 </bpmndi:BPMNLabel>
172 </bpmndi:BPMNEdge>
173 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_21" bpmnElement="SequenceFlow_19" sourceElement="_BPMNShape_ScriptTask_319" targetElement="_BPMNShape_EndEvent_239">
174 <di:waypoint xsi:type="dc:Point" x="560" y="536" />
175 <di:waypoint xsi:type="dc:Point" x="606" y="536" />
176 <bpmndi:BPMNLabel>
177 <dc:Bounds x="583" y="521" width="0" height="0" />
178 </bpmndi:BPMNLabel>
179 </bpmndi:BPMNEdge>
180 <bpmndi:BPMNShape id="ExclusiveGateway_1amun4k_di" bpmnElement="ExclusiveGateway_1amun4k" isMarkerVisible="true">
181 <dc:Bounds x="706" y="201" width="50" height="50" />
182 <bpmndi:BPMNLabel>
183 <dc:Bounds x="660" y="248" width="65" height="36" />
184 </bpmndi:BPMNLabel>
185 </bpmndi:BPMNShape>
186 <bpmndi:BPMNEdge id="SequenceFlow_08nd69s_di" bpmnElement="SequenceFlow_08nd69s">
187 <di:waypoint xsi:type="dc:Point" x="444" y="227" />
188 <di:waypoint xsi:type="dc:Point" x="512" y="227" />
189 <bpmndi:BPMNLabel>
190 <dc:Bounds x="478" y="212" width="0" height="0" />
191 </bpmndi:BPMNLabel>
192 </bpmndi:BPMNEdge>
193 <bpmndi:BPMNEdge id="SequenceFlow_1qrkdn3_di" bpmnElement="SequenceFlow_1qrkdn3">
194 <di:waypoint xsi:type="dc:Point" x="731" y="201" />
195 <di:waypoint xsi:type="dc:Point" x="731" y="92" />
196 <di:waypoint xsi:type="dc:Point" x="816" y="92" />
197 <bpmndi:BPMNLabel>
198 <dc:Bounds x="737" y="151" width="18" height="12" />
199 </bpmndi:BPMNLabel>
200 </bpmndi:BPMNEdge>
201 <bpmndi:BPMNShape id="CallActivity_0qmp9y5_di" bpmnElement="UpdateVFModule">
202 <dc:Bounds x="983" y="52" width="100" height="80" />
203 </bpmndi:BPMNShape>
204 <bpmndi:BPMNEdge id="SequenceFlow_1p4ycii_di" bpmnElement="SequenceFlow_1p4ycii">
205 <di:waypoint xsi:type="dc:Point" x="1083" y="92" />
206 <di:waypoint xsi:type="dc:Point" x="1164" y="92" />
207 <bpmndi:BPMNLabel>
208 <dc:Bounds x="1124" y="77" width="0" height="0" />
209 </bpmndi:BPMNLabel>
210 </bpmndi:BPMNEdge>
211 <bpmndi:BPMNEdge id="SequenceFlow_0t4yszi_di" bpmnElement="SequenceFlow_0t4yszi">
212 <di:waypoint xsi:type="dc:Point" x="1214" y="132" />
213 <di:waypoint xsi:type="dc:Point" x="1214" y="226" />
214 <di:waypoint xsi:type="dc:Point" x="756" y="226" />
215 <bpmndi:BPMNLabel>
216 <dc:Bounds x="1229" y="179" width="0" height="0" />
217 </bpmndi:BPMNLabel>
218 </bpmndi:BPMNEdge>
219 <bpmndi:BPMNShape id="ScriptTask_12xsp2f_di" bpmnElement="QueryVnf">
220 <dc:Bounds x="512" y="187" width="100" height="80" />
221 </bpmndi:BPMNShape>
222 <bpmndi:BPMNShape id="ScriptTask_01c9qas_di" bpmnElement="PrepareModuleList">
223 <dc:Bounds x="816" y="52" width="100" height="80" />
224 </bpmndi:BPMNShape>
225 <bpmndi:BPMNShape id="ScriptTask_11i0rnd_di" bpmnElement="PostProcessUpdateVfModule">
226 <dc:Bounds x="1164" y="52" width="100" height="80" />
227 </bpmndi:BPMNShape>
228 <bpmndi:BPMNEdge id="SequenceFlow_04o61yk_di" bpmnElement="SequenceFlow_04o61yk">
229 <di:waypoint xsi:type="dc:Point" x="916" y="92" />
230 <di:waypoint xsi:type="dc:Point" x="983" y="92" />
231 <bpmndi:BPMNLabel>
232 <dc:Bounds x="950" y="77" width="0" height="0" />
233 </bpmndi:BPMNLabel>
234 </bpmndi:BPMNEdge>
235 <bpmndi:BPMNEdge id="SequenceFlow_19c7hcw_di" bpmnElement="SequenceFlow_19c7hcw">
236 <di:waypoint xsi:type="dc:Point" x="731" y="251" />
237 <di:waypoint xsi:type="dc:Point" x="731" y="295" />
238 <di:waypoint xsi:type="dc:Point" x="1111" y="297" />
239 <bpmndi:BPMNLabel>
240 <dc:Bounds x="908" y="273" width="12" height="12" />
241 </bpmndi:BPMNLabel>
242 </bpmndi:BPMNEdge>
243 <bpmndi:BPMNEdge id="SequenceFlow_0of4kmm_di" bpmnElement="SequenceFlow_0of4kmm">
244 <di:waypoint xsi:type="dc:Point" x="1367" y="297" />
245 <di:waypoint xsi:type="dc:Point" x="1404" y="297" />
246 <di:waypoint xsi:type="dc:Point" x="1404" y="297" />
247 <di:waypoint xsi:type="dc:Point" x="1441" y="297" />
248 <bpmndi:BPMNLabel>
249 <dc:Bounds x="1419" y="297" width="0" height="0" />
250 </bpmndi:BPMNLabel>
251 </bpmndi:BPMNEdge>
252 <bpmndi:BPMNEdge id="SequenceFlow_1ltycz6_di" bpmnElement="SequenceFlow_1ltycz6">
253 <di:waypoint xsi:type="dc:Point" x="1211" y="297" />
254 <di:waypoint xsi:type="dc:Point" x="1267" y="297" />
255 <bpmndi:BPMNLabel>
256 <dc:Bounds x="1239" y="282" width="0" height="0" />
257 </bpmndi:BPMNLabel>
258 </bpmndi:BPMNEdge>
259 <bpmndi:BPMNShape id="CallActivity_1cem00f_di" bpmnElement="UpdateAAIGenericVNFTask">
260 <dc:Bounds x="1267" y="257" width="100" height="80" />
261 </bpmndi:BPMNShape>
262 <bpmndi:BPMNShape id="ScriptTask_0snu9sv_di" bpmnElement="PreProcessUpdateAAIGenericVNF">
263 <dc:Bounds x="1111" y="257" width="100" height="80" />
264 </bpmndi:BPMNShape>
265 <bpmndi:BPMNEdge id="SequenceFlow_1f4mbkc_di" bpmnElement="SequenceFlow_1f4mbkc">
266 <di:waypoint xsi:type="dc:Point" x="612" y="227" />
267 <di:waypoint xsi:type="dc:Point" x="706" y="226" />
268 <bpmndi:BPMNLabel>
269 <dc:Bounds x="659" y="211.5" width="0" height="0" />
270 </bpmndi:BPMNLabel>
271 </bpmndi:BPMNEdge>
272 </bpmndi:BPMNPlane>
273 </bpmndi:BPMNDiagram>
274</bpmn2:definitions>