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