blob: 609d630429553595e9d5bcc88e9d92f25231b757 [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" />
Rob Daugherty38f72072018-03-14 02:07:32 -040071 <camunda:in source="vfModuleInputParams" target="vfModuleInputParams" />
Arthur Martella62cd6aa2017-09-08 13:27:46 -040072 </bpmn2:extensionElements>
73 <bpmn2:incoming>SequenceFlow_04o61yk</bpmn2:incoming>
74 <bpmn2:outgoing>SequenceFlow_1p4ycii</bpmn2:outgoing>
75 </bpmn2:callActivity>
76 <bpmn2:sequenceFlow id="SequenceFlow_1p4ycii" sourceRef="UpdateVFModule" targetRef="PostProcessUpdateVfModule" />
77 <bpmn2:sequenceFlow id="SequenceFlow_0t4yszi" sourceRef="PostProcessUpdateVfModule" targetRef="ExclusiveGateway_1amun4k" />
78 <bpmn2:scriptTask id="QueryVnf" name="Query VNF" scriptFormat="groovy">
79 <bpmn2:incoming>SequenceFlow_08nd69s</bpmn2:incoming>
80 <bpmn2:outgoing>SequenceFlow_1f4mbkc</bpmn2:outgoing>
81 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
82def duvam = new DoUpdateVnfAndModules()
83duvam.queryAAIVfModule(execution)]]></bpmn2:script>
84 </bpmn2:scriptTask>
85 <bpmn2:scriptTask id="PrepareModuleList" name="Prepare Next Module To Update" scriptFormat="groovy">
86 <bpmn2:incoming>SequenceFlow_1qrkdn3</bpmn2:incoming>
87 <bpmn2:outgoing>SequenceFlow_04o61yk</bpmn2:outgoing>
88 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
89def duvam = new DoUpdateVnfAndModules()
90duvam.prepareNextModuleToUpdate(execution)]]></bpmn2:script>
91 </bpmn2:scriptTask>
92 <bpmn2:scriptTask id="PostProcessUpdateVfModule" name="PostProcess Update VF Module" scriptFormat="groovy">
93 <bpmn2:incoming>SequenceFlow_1p4ycii</bpmn2:incoming>
94 <bpmn2:outgoing>SequenceFlow_0t4yszi</bpmn2:outgoing>
95 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
96int nextModule = execution.getVariable("DUVAM_nextModule")
97 execution.setVariable("DUVAM_nextModule", nextModule + 1)]]></bpmn2:script>
98 </bpmn2:scriptTask>
99 <bpmn2:sequenceFlow id="SequenceFlow_04o61yk" sourceRef="PrepareModuleList" targetRef="UpdateVFModule" />
100 <bpmn2:sequenceFlow id="SequenceFlow_19c7hcw" name="no" sourceRef="ExclusiveGateway_1amun4k" targetRef="PreProcessUpdateAAIGenericVNF" />
101 <bpmn2:sequenceFlow id="SequenceFlow_0of4kmm" sourceRef="UpdateAAIGenericVNFTask" targetRef="EndEvent_2" />
102 <bpmn2:sequenceFlow id="SequenceFlow_1ltycz6" sourceRef="PreProcessUpdateAAIGenericVNF" targetRef="UpdateAAIGenericVNFTask" />
103 <bpmn2:callActivity id="UpdateAAIGenericVNFTask" name="Update AAI Generic VNF" calledElement="UpdateAAIGenericVnf">
104 <bpmn2:extensionElements>
105 <camunda:in source="DUVAM_updateAAIGenericVnfRequest" target="UpdateAAIGenericVnfRequest" />
106 <camunda:in source="mso-request-id" target="mso-request-id" />
107 <camunda:in source="mso-service-id" target="mso-service-id" />
108 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
109 <camunda:out source="WorkflowException" target="WorkflowException" />
110 </bpmn2:extensionElements>
111 <bpmn2:incoming>SequenceFlow_1ltycz6</bpmn2:incoming>
112 <bpmn2:outgoing>SequenceFlow_0of4kmm</bpmn2:outgoing>
113 </bpmn2:callActivity>
114 <bpmn2:scriptTask id="PreProcessUpdateAAIGenericVNF" name="PreProcess Update AAI Generic VNF" scriptFormat="groovy">
115 <bpmn2:incoming>SequenceFlow_19c7hcw</bpmn2:incoming>
116 <bpmn2:outgoing>SequenceFlow_1ltycz6</bpmn2:outgoing>
117 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
118def duvam = new DoUpdateVnfAndModules()
119duvam.prepUpdateAAIGenericVnf(execution)]]></bpmn2:script>
120 </bpmn2:scriptTask>
121 <bpmn2:sequenceFlow id="SequenceFlow_1f4mbkc" sourceRef="QueryVnf" targetRef="ExclusiveGateway_1amun4k" />
122 </bpmn2:process>
123 <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
124 <bpmn2:error id="Error_2" name="Java Lang Exception" errorCode="java.lang.Exception" />
125 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
126 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoUpdateVnfAndModules">
127 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_79" bpmnElement="StartEvent_1">
128 <dc:Bounds x="238" y="209" width="36" height="36" />
129 <bpmndi:BPMNLabel>
130 <dc:Bounds x="256" y="250" width="0" height="0" />
131 </bpmndi:BPMNLabel>
132 </bpmndi:BPMNShape>
133 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_311" bpmnElement="intialization">
134 <dc:Bounds x="344" y="187" width="100" height="80" />
135 </bpmndi:BPMNShape>
136 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_79" targetElement="_BPMNShape_ScriptTask_311">
137 <di:waypoint xsi:type="dc:Point" x="274" y="227" />
138 <di:waypoint xsi:type="dc:Point" x="344" y="228" />
139 <bpmndi:BPMNLabel>
140 <dc:Bounds x="309" y="212.5" width="0" height="0" />
141 </bpmndi:BPMNLabel>
142 </bpmndi:BPMNEdge>
143 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_237" bpmnElement="EndEvent_2">
144 <dc:Bounds x="1441" y="279" width="36" height="36" />
145 <bpmndi:BPMNLabel>
146 <dc:Bounds x="1459" y="320" width="0" height="0" />
147 </bpmndi:BPMNLabel>
148 </bpmndi:BPMNShape>
149 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_35" bpmnElement="javaErrorHandlingSubProcess" isExpanded="true">
150 <dc:Bounds x="242" y="457" width="431" height="157" />
151 </bpmndi:BPMNShape>
152 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_81" bpmnElement="StartEvent_3">
153 <dc:Bounds x="390" y="518" width="36" height="36" />
154 <bpmndi:BPMNLabel>
155 <dc:Bounds x="408" y="559" width="0" height="0" />
156 </bpmndi:BPMNLabel>
157 </bpmndi:BPMNShape>
158 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_239" bpmnElement="EndEvent_4">
159 <dc:Bounds x="606" y="518" width="36" height="36" />
160 <bpmndi:BPMNLabel>
161 <dc:Bounds x="624" y="559" width="0" height="0" />
162 </bpmndi:BPMNLabel>
163 </bpmndi:BPMNShape>
164 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_319" bpmnElement="processJavaException">
165 <dc:Bounds x="460" y="496" width="100" height="80" />
166 </bpmndi:BPMNShape>
167 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_StartEvent_81" targetElement="_BPMNShape_ScriptTask_319">
168 <di:waypoint xsi:type="dc:Point" x="426" y="536" />
169 <di:waypoint xsi:type="dc:Point" x="460" y="536" />
170 <bpmndi:BPMNLabel>
171 <dc:Bounds x="443" y="521" width="0" height="0" />
172 </bpmndi:BPMNLabel>
173 </bpmndi:BPMNEdge>
174 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_21" bpmnElement="SequenceFlow_19" sourceElement="_BPMNShape_ScriptTask_319" targetElement="_BPMNShape_EndEvent_239">
175 <di:waypoint xsi:type="dc:Point" x="560" y="536" />
176 <di:waypoint xsi:type="dc:Point" x="606" y="536" />
177 <bpmndi:BPMNLabel>
178 <dc:Bounds x="583" y="521" width="0" height="0" />
179 </bpmndi:BPMNLabel>
180 </bpmndi:BPMNEdge>
181 <bpmndi:BPMNShape id="ExclusiveGateway_1amun4k_di" bpmnElement="ExclusiveGateway_1amun4k" isMarkerVisible="true">
182 <dc:Bounds x="706" y="201" width="50" height="50" />
183 <bpmndi:BPMNLabel>
184 <dc:Bounds x="660" y="248" width="65" height="36" />
185 </bpmndi:BPMNLabel>
186 </bpmndi:BPMNShape>
187 <bpmndi:BPMNEdge id="SequenceFlow_08nd69s_di" bpmnElement="SequenceFlow_08nd69s">
188 <di:waypoint xsi:type="dc:Point" x="444" y="227" />
189 <di:waypoint xsi:type="dc:Point" x="512" y="227" />
190 <bpmndi:BPMNLabel>
191 <dc:Bounds x="478" y="212" width="0" height="0" />
192 </bpmndi:BPMNLabel>
193 </bpmndi:BPMNEdge>
194 <bpmndi:BPMNEdge id="SequenceFlow_1qrkdn3_di" bpmnElement="SequenceFlow_1qrkdn3">
195 <di:waypoint xsi:type="dc:Point" x="731" y="201" />
196 <di:waypoint xsi:type="dc:Point" x="731" y="92" />
197 <di:waypoint xsi:type="dc:Point" x="816" y="92" />
198 <bpmndi:BPMNLabel>
199 <dc:Bounds x="737" y="151" width="18" height="12" />
200 </bpmndi:BPMNLabel>
201 </bpmndi:BPMNEdge>
202 <bpmndi:BPMNShape id="CallActivity_0qmp9y5_di" bpmnElement="UpdateVFModule">
203 <dc:Bounds x="983" y="52" width="100" height="80" />
204 </bpmndi:BPMNShape>
205 <bpmndi:BPMNEdge id="SequenceFlow_1p4ycii_di" bpmnElement="SequenceFlow_1p4ycii">
206 <di:waypoint xsi:type="dc:Point" x="1083" y="92" />
207 <di:waypoint xsi:type="dc:Point" x="1164" y="92" />
208 <bpmndi:BPMNLabel>
209 <dc:Bounds x="1124" y="77" width="0" height="0" />
210 </bpmndi:BPMNLabel>
211 </bpmndi:BPMNEdge>
212 <bpmndi:BPMNEdge id="SequenceFlow_0t4yszi_di" bpmnElement="SequenceFlow_0t4yszi">
213 <di:waypoint xsi:type="dc:Point" x="1214" y="132" />
214 <di:waypoint xsi:type="dc:Point" x="1214" y="226" />
215 <di:waypoint xsi:type="dc:Point" x="756" y="226" />
216 <bpmndi:BPMNLabel>
217 <dc:Bounds x="1229" y="179" width="0" height="0" />
218 </bpmndi:BPMNLabel>
219 </bpmndi:BPMNEdge>
220 <bpmndi:BPMNShape id="ScriptTask_12xsp2f_di" bpmnElement="QueryVnf">
221 <dc:Bounds x="512" y="187" width="100" height="80" />
222 </bpmndi:BPMNShape>
223 <bpmndi:BPMNShape id="ScriptTask_01c9qas_di" bpmnElement="PrepareModuleList">
224 <dc:Bounds x="816" y="52" width="100" height="80" />
225 </bpmndi:BPMNShape>
226 <bpmndi:BPMNShape id="ScriptTask_11i0rnd_di" bpmnElement="PostProcessUpdateVfModule">
227 <dc:Bounds x="1164" y="52" width="100" height="80" />
228 </bpmndi:BPMNShape>
229 <bpmndi:BPMNEdge id="SequenceFlow_04o61yk_di" bpmnElement="SequenceFlow_04o61yk">
230 <di:waypoint xsi:type="dc:Point" x="916" y="92" />
231 <di:waypoint xsi:type="dc:Point" x="983" y="92" />
232 <bpmndi:BPMNLabel>
233 <dc:Bounds x="950" y="77" width="0" height="0" />
234 </bpmndi:BPMNLabel>
235 </bpmndi:BPMNEdge>
236 <bpmndi:BPMNEdge id="SequenceFlow_19c7hcw_di" bpmnElement="SequenceFlow_19c7hcw">
237 <di:waypoint xsi:type="dc:Point" x="731" y="251" />
238 <di:waypoint xsi:type="dc:Point" x="731" y="295" />
239 <di:waypoint xsi:type="dc:Point" x="1111" y="297" />
240 <bpmndi:BPMNLabel>
241 <dc:Bounds x="908" y="273" width="12" height="12" />
242 </bpmndi:BPMNLabel>
243 </bpmndi:BPMNEdge>
244 <bpmndi:BPMNEdge id="SequenceFlow_0of4kmm_di" bpmnElement="SequenceFlow_0of4kmm">
245 <di:waypoint xsi:type="dc:Point" x="1367" y="297" />
246 <di:waypoint xsi:type="dc:Point" x="1404" y="297" />
247 <di:waypoint xsi:type="dc:Point" x="1404" y="297" />
248 <di:waypoint xsi:type="dc:Point" x="1441" y="297" />
249 <bpmndi:BPMNLabel>
250 <dc:Bounds x="1419" y="297" width="0" height="0" />
251 </bpmndi:BPMNLabel>
252 </bpmndi:BPMNEdge>
253 <bpmndi:BPMNEdge id="SequenceFlow_1ltycz6_di" bpmnElement="SequenceFlow_1ltycz6">
254 <di:waypoint xsi:type="dc:Point" x="1211" y="297" />
255 <di:waypoint xsi:type="dc:Point" x="1267" y="297" />
256 <bpmndi:BPMNLabel>
257 <dc:Bounds x="1239" y="282" width="0" height="0" />
258 </bpmndi:BPMNLabel>
259 </bpmndi:BPMNEdge>
260 <bpmndi:BPMNShape id="CallActivity_1cem00f_di" bpmnElement="UpdateAAIGenericVNFTask">
261 <dc:Bounds x="1267" y="257" width="100" height="80" />
262 </bpmndi:BPMNShape>
263 <bpmndi:BPMNShape id="ScriptTask_0snu9sv_di" bpmnElement="PreProcessUpdateAAIGenericVNF">
264 <dc:Bounds x="1111" y="257" width="100" height="80" />
265 </bpmndi:BPMNShape>
266 <bpmndi:BPMNEdge id="SequenceFlow_1f4mbkc_di" bpmnElement="SequenceFlow_1f4mbkc">
267 <di:waypoint xsi:type="dc:Point" x="612" y="227" />
268 <di:waypoint xsi:type="dc:Point" x="706" y="226" />
269 <bpmndi:BPMNLabel>
270 <dc:Bounds x="659" y="211.5" width="0" height="0" />
271 </bpmndi:BPMNLabel>
272 </bpmndi:BPMNEdge>
273 </bpmndi:BPMNPlane>
274 </bpmndi:BPMNDiagram>
275</bpmn2:definitions>