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="_DkzPAHB4EeaJwpcpVN5gXw" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="DoCreateVnf" name="DoCreateVnf" isExecutable="true">
4 <bpmn2:startEvent id="StartEvent_1">
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
7 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="initialization" />
8 <bpmn2:scriptTask id="initialization" name="Initialization" scriptFormat="groovy">
9 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
10 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
11 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
12 DoCreateVnf createVnf = new DoCreateVnf()
13 createVnf.preProcessRequest(execution)]]></bpmn2:script>
15 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="initialization" targetRef="callGetService" />
16 <bpmn2:scriptTask id="buildWorkflowException" name="Create Workflow Exception" scriptFormat="groovy">
17 <bpmn2:incoming>notFound</bpmn2:incoming>
18 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
19 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
20 ExceptionUtil exceptionUtil = new ExceptionUtil()
21 exceptionUtil.buildWorkflowException(execution, 404, "Service Instance Not Found")]]></bpmn2:script>
23 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="buildWorkflowException" targetRef="EndEvent_1" />
24 <bpmn2:callActivity id="callGetService" name="Get Service Instance" calledElement="GenericGetService">
25 <bpmn2:extensionElements>
26 <camunda:in source="DoCVNF_serviceInstanceId" target="GENGS_serviceInstanceId" />
27 <camunda:out source="GENGS_FoundIndicator" target="GENGS_FoundIndicator" />
28 <camunda:out source="GENGS_SuccessIndicator" target="GENGS_SuccessIndicator" />
29 <camunda:out source="GENGS_serviceInstance" target="CRTVI_serviceInstance" />
30 <camunda:out source="WorkflowException" target="WorkflowException" />
31 <camunda:out source="GENGS_siResourceLink" target="GENGS_siResourceLink" />
32 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
33 <camunda:in source="GENGS_type" target="GENGS_type" />
34 <camunda:in source="DoCVNF_serviceInstanceName" target="GENGS_serviceInstanceName" />
35 </bpmn2:extensionElements>
36 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
37 <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
39 <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="callGetService" targetRef="serviceInstanceFound" />
40 <bpmn2:exclusiveGateway id="serviceInstanceFound" name="Service Instance Found?" default="notFound">
41 <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
42 <bpmn2:outgoing>notFound</bpmn2:outgoing>
43 <bpmn2:outgoing>found</bpmn2:outgoing>
44 </bpmn2:exclusiveGateway>
45 <bpmn2:sequenceFlow id="notFound" name="No" sourceRef="serviceInstanceFound" targetRef="buildWorkflowException" />
46 <bpmn2:sequenceFlow id="found" name="Yes" sourceRef="serviceInstanceFound" targetRef="ExclusiveGateway_0j73e7c">
47 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENGS_FoundIndicator" ) == true && execution.getVariable("GENGS_SuccessIndicator" ) == true}]]></bpmn2:conditionExpression>
49 <bpmn2:exclusiveGateway id="vnfExist" name="Vnf Already Exist?" default="vnfExistYes">
50 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
51 <bpmn2:outgoing>vnfExistYes</bpmn2:outgoing>
52 <bpmn2:outgoing>vnfExistNo</bpmn2:outgoing>
53 </bpmn2:exclusiveGateway>
54 <bpmn2:sequenceFlow id="vnfExistYes" name="Yes" sourceRef="vnfExist" targetRef="vnfExistWorkflowException" />
55 <bpmn2:sequenceFlow id="vnfExistNo" name="No" sourceRef="vnfExist" targetRef="prepareCreateGenericVnf">
56 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENGV_FoundIndicator" ) == false && execution.getVariable("GENGV_SuccessIndicator" ) == true}]]></bpmn2:conditionExpression>
58 <bpmn2:callActivity id="callGetVnf" name="Get Generic Vnf" calledElement="GenericGetVnf">
59 <bpmn2:extensionElements>
60 <camunda:in source="DoCVNF_vnfName" target="GENGV_vnfName" />
61 <camunda:in source="DoCVNF_type" target="GENGV_type" />
62 <camunda:out source="GENGV_vnf" target="CRTVI_genericVnf" />
63 <camunda:out source="GENGV_FoundIndicator" target="GENGV_FoundIndicator" />
64 <camunda:out source="GENGV_SuccessIndicator" target="GENGV_SuccessIndicator" />
65 <camunda:out source="WorkflowException" target="WorkflowException" />
66 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
67 </bpmn2:extensionElements>
68 <bpmn2:incoming>VnfNameSpecified1</bpmn2:incoming>
69 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
71 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="callGetVnf" targetRef="vnfExist" />
72 <bpmn2:scriptTask id="vnfExistWorkflowException" name="Create Workflow Exception" scriptFormat="groovy">
73 <bpmn2:incoming>vnfExistYes</bpmn2:incoming>
74 <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
75 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
76 ExceptionUtil exceptionUtil = new ExceptionUtil()
77 exceptionUtil.buildWorkflowException(execution, 5000, "Generic Vnf Already Exist.")]]></bpmn2:script>
79 <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="vnfExistWorkflowException" targetRef="EndEvent_2" />
80 <bpmn2:endEvent id="EndEvent_1">
81 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
82 <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" errorRef="Error_2" />
84 <bpmn2:endEvent id="EndEvent_2">
85 <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
86 <bpmn2:errorEventDefinition id="ErrorEventDefinition_2" errorRef="Error_2" />
88 <bpmn2:scriptTask id="prepareCreateGenericVnf" name=" AAI Create (generic vnf) " scriptFormat="groovy">
89 <bpmn2:incoming>vnfExistNo</bpmn2:incoming>
90 <bpmn2:incoming>VnfNameNotSpecified1</bpmn2:incoming>
91 <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
92 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
93 DoCreateVnf createVnf = new DoCreateVnf()
94 createVnf.createGenericVnf(execution)]]></bpmn2:script>
96 <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="prepareCreateGenericVnf" targetRef="postProcessCreateGenericVnf" />
97 <bpmn2:subProcess id="javaErrorHandlingSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
98 <bpmn2:scriptTask id="processJavaError" name="Process Error" scriptFormat="groovy">
99 <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
100 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
101 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
102 ExceptionUtil exceptionUtil = new ExceptionUtil()
103 exceptionUtil.processJavaException(execution)]]></bpmn2:script>
105 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="processJavaError" targetRef="EndEvent_4" />
106 <bpmn2:endEvent id="EndEvent_4">
107 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
109 <bpmn2:startEvent id="StartEvent_2">
110 <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
111 <bpmn2:errorEventDefinition id="ErrorEventDefinition_3" errorRef="Error_1" />
113 <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="StartEvent_2" targetRef="processJavaError" />
115 <bpmn2:endEvent id="EndEvent_3">
116 <bpmn2:incoming>SdncInteractionNotEnabled</bpmn2:incoming>
117 <bpmn2:incoming>SequenceFlow_0bj7c4s</bpmn2:incoming>
118 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_35" />
120 <bpmn2:sequenceFlow id="SequenceFlow_1q6udwm" sourceRef="preProcessSDNCAssignRequest" targetRef="callSDNCAdapterVNFTopologyAssign" />
121 <bpmn2:sequenceFlow id="SequenceFlow_15knw0q" sourceRef="callSDNCAdapterVNFTopologyAssign" targetRef="postProcessSDNCAssignRequest" />
122 <bpmn2:sequenceFlow id="SequenceFlow_1lalmvp" sourceRef="preProcessSDNCActivateRequest" targetRef="callSDNCAdapterVNFTopologyActivate" />
123 <bpmn2:sequenceFlow id="SequenceFlow_0eb41vb" sourceRef="callSDNCAdapterVNFTopologyActivate" targetRef="postProcessSDNCActivateRequest" />
124 <bpmn2:sequenceFlow id="SequenceFlow_15z3gpq" sourceRef="postProcessSDNCActivateRequest" targetRef="Task_053tb0h" />
125 <bpmn2:scriptTask id="preProcessSDNCAssignRequest" name="PreProcess SDNC Assign Request" scriptFormat="groovy">
126 <bpmn2:incoming>SdncInteractionEnabled</bpmn2:incoming>
127 <bpmn2:outgoing>SequenceFlow_1q6udwm</bpmn2:outgoing>
128 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
129 DoCreateVnf createVnf = new DoCreateVnf()
130 createVnf.preProcessSDNCAssignRequest(execution)]]></bpmn2:script>
132 <bpmn2:callActivity id="callSDNCAdapterVNFTopologyAssign" name="Call SDNC Adapter VNF Topology Assign" calledElement="sdncAdapter">
133 <bpmn2:extensionElements>
134 <camunda:in source="DoCVNF_assignSDNCRequest" target="sdncAdapterWorkflowRequest" />
135 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
136 <camunda:in source="mso-request-id" target="mso-request-id" />
137 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
138 <camunda:out source="WorkflowException" target="WorkflowException" />
139 <camunda:out source="sdncAdapterResponse" target="DoCVNF_assignSDNCAdapterResponse" />
140 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
141 </bpmn2:extensionElements>
142 <bpmn2:incoming>SequenceFlow_1q6udwm</bpmn2:incoming>
143 <bpmn2:outgoing>SequenceFlow_15knw0q</bpmn2:outgoing>
144 </bpmn2:callActivity>
145 <bpmn2:scriptTask id="postProcessSDNCAssignRequest" name="PostProcess SDNC Assign Request" scriptFormat="groovy">
146 <bpmn2:incoming>SequenceFlow_15knw0q</bpmn2:incoming>
147 <bpmn2:outgoing>SequenceFlow_0lnh79j</bpmn2:outgoing>
148 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
149 String response = execution.getVariable("DoCVNF_assignSDNCAdapterResponse")
151 def createVnfInfra = new DoCreateVnf()
152 createVnfInfra.validateSDNCResponse(execution, response, "assign")]]></bpmn2:script>
154 <bpmn2:scriptTask id="preProcessSDNCActivateRequest" name="PreProcess SDNC Activate Request" scriptFormat="groovy">
155 <bpmn2:incoming>SequenceFlow_1q1poly</bpmn2:incoming>
156 <bpmn2:incoming>VnfNameSpecified2</bpmn2:incoming>
157 <bpmn2:outgoing>SequenceFlow_1lalmvp</bpmn2:outgoing>
158 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
159 DoCreateVnf createVnf = new DoCreateVnf()
160 createVnf.preProcessSDNCActivateRequest(execution)]]></bpmn2:script>
162 <bpmn2:callActivity id="callSDNCAdapterVNFTopologyActivate" name="Call SDNC Adapter VNF Topology Activate" calledElement="sdncAdapter">
163 <bpmn2:extensionElements>
164 <camunda:in source="DoCVNF_activateSDNCRequest" target="sdncAdapterWorkflowRequest" />
165 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
166 <camunda:in source="mso-reqeuest-id" target="mso-request-id" />
167 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
168 <camunda:out source="WorkflowException" target="WorkflowException" />
169 <camunda:out source="sdncAdapterResponse" target="DoCVNF_activateSDNCAdapterResponse" />
170 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
171 </bpmn2:extensionElements>
172 <bpmn2:incoming>SequenceFlow_1lalmvp</bpmn2:incoming>
173 <bpmn2:outgoing>SequenceFlow_0eb41vb</bpmn2:outgoing>
174 </bpmn2:callActivity>
175 <bpmn2:scriptTask id="postProcessSDNCActivateRequest" name="PostProcess SDNC Activate Request" scriptFormat="groovy">
176 <bpmn2:incoming>SequenceFlow_0eb41vb</bpmn2:incoming>
177 <bpmn2:outgoing>SequenceFlow_15z3gpq</bpmn2:outgoing>
178 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
180 String response = execution.getVariable("DoCVNF_assignSDNCAdapterResponse")
182 def createVnfInfra = new DoCreateVnf()
183 createVnfInfra.validateSDNCResponse(execution, response, "activate")]]></bpmn2:script>
185 <bpmn2:exclusiveGateway id="ExclusiveGateway_045rm8i" name="Is SDNC Interaction Enabled?" default="SdncInteractionNotEnabled">
186 <bpmn2:incoming>SequenceFlow_1gc18ih</bpmn2:incoming>
187 <bpmn2:outgoing>SdncInteractionEnabled</bpmn2:outgoing>
188 <bpmn2:outgoing>SdncInteractionNotEnabled</bpmn2:outgoing>
189 </bpmn2:exclusiveGateway>
190 <bpmn2:sequenceFlow id="SdncInteractionEnabled" name="Yes" sourceRef="ExclusiveGateway_045rm8i" targetRef="preProcessSDNCAssignRequest">
191 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DoCVNF_sdncVersion" ) != '1702'}]]></bpmn2:conditionExpression>
192 </bpmn2:sequenceFlow>
193 <bpmn2:sequenceFlow id="SdncInteractionNotEnabled" name="No" sourceRef="ExclusiveGateway_045rm8i" targetRef="EndEvent_3" />
194 <bpmn2:sequenceFlow id="SequenceFlow_1gc18ih" sourceRef="postProcessCreateGenericVnf" targetRef="ExclusiveGateway_045rm8i" />
195 <bpmn2:scriptTask id="postProcessCreateGenericVnf" name="PostProcess Create Generic Vnf" scriptFormat="groovy">
196 <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
197 <bpmn2:outgoing>SequenceFlow_1gc18ih</bpmn2:outgoing>
198 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
199 DoCreateVnf createVnf = new DoCreateVnf()
200 createVnf.postProcessCreateGenericVnf(execution)]]></bpmn2:script>
202 <bpmn2:exclusiveGateway id="ExclusiveGateway_0j73e7c" name="Vnf-name specified?" default="VnfNameSpecified1">
203 <bpmn2:incoming>found</bpmn2:incoming>
204 <bpmn2:outgoing>VnfNameNotSpecified1</bpmn2:outgoing>
205 <bpmn2:outgoing>VnfNameSpecified1</bpmn2:outgoing>
206 </bpmn2:exclusiveGateway>
207 <bpmn2:sequenceFlow id="VnfNameNotSpecified1" name="No" sourceRef="ExclusiveGateway_0j73e7c" targetRef="prepareCreateGenericVnf">
208 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DoCVNF_vnfName" ) == null}]]></bpmn2:conditionExpression>
209 </bpmn2:sequenceFlow>
210 <bpmn2:sequenceFlow id="VnfNameSpecified1" name="Yes" sourceRef="ExclusiveGateway_0j73e7c" targetRef="callGetVnf" />
211 <bpmn2:sequenceFlow id="SequenceFlow_1h9jdgr" sourceRef="PreProcessSDNCGetRequest" targetRef="CallSDNCAdapterVNFTopologyGet" />
212 <bpmn2:sequenceFlow id="SequenceFlow_14xac2y" sourceRef="CallSDNCAdapterVNFTopologyGet" targetRef="PostProcessSDNCGetRequest" />
213 <bpmn2:sequenceFlow id="SequenceFlow_1q1poly" sourceRef="PostProcessSDNCGetRequest" targetRef="preProcessSDNCActivateRequest" />
214 <bpmn2:exclusiveGateway id="ExclusiveGateway_0qnhlm1" name="Vnf-name specified?" default="VnfNameSpecified2">
215 <bpmn2:incoming>SequenceFlow_0lnh79j</bpmn2:incoming>
216 <bpmn2:outgoing>VnfNameNotSpecified2</bpmn2:outgoing>
217 <bpmn2:outgoing>VnfNameSpecified2</bpmn2:outgoing>
218 </bpmn2:exclusiveGateway>
219 <bpmn2:sequenceFlow id="SequenceFlow_0lnh79j" sourceRef="postProcessSDNCAssignRequest" targetRef="ExclusiveGateway_0qnhlm1" />
220 <bpmn2:sequenceFlow id="VnfNameNotSpecified2" name="No" sourceRef="ExclusiveGateway_0qnhlm1" targetRef="PreProcessSDNCGetRequest">
221 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DoCVNF_vnfName" ) == null}]]></bpmn2:conditionExpression>
222 </bpmn2:sequenceFlow>
223 <bpmn2:sequenceFlow id="VnfNameSpecified2" name="Yes" sourceRef="ExclusiveGateway_0qnhlm1" targetRef="preProcessSDNCActivateRequest" />
224 <bpmn2:scriptTask id="PreProcessSDNCGetRequest" name="PreProcess SDNC Get Request" scriptFormat="groovy">
225 <bpmn2:incoming>VnfNameNotSpecified2</bpmn2:incoming>
226 <bpmn2:outgoing>SequenceFlow_1h9jdgr</bpmn2:outgoing>
227 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
228 DoCreateVnf createVnf = new DoCreateVnf()
229 createVnf.preProcessSDNCGetRequest(execution)]]></bpmn2:script>
231 <bpmn2:callActivity id="CallSDNCAdapterVNFTopologyGet" name="Call SDNC Adapter VNF Topology Get" calledElement="sdncAdapter">
232 <bpmn2:extensionElements>
233 <camunda:in source="DoCVNF_getSDNCRequest" target="sdncAdapterWorkflowRequest" />
234 <camunda:in source="mso-request-id" target="mso-request-id" />
235 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
236 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
237 <camunda:out source="WorkflowException" target="WorkflowException" />
238 <camunda:out source="sdncAdapterResponse" target="DoCVNF_getSDNCAdapterResponse" />
239 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
240 </bpmn2:extensionElements>
241 <bpmn2:incoming>SequenceFlow_1h9jdgr</bpmn2:incoming>
242 <bpmn2:outgoing>SequenceFlow_14xac2y</bpmn2:outgoing>
243 </bpmn2:callActivity>
244 <bpmn2:scriptTask id="PostProcessSDNCGetRequest" name="PostProcess SDNC Get Request" scriptFormat="groovy">
245 <bpmn2:incoming>SequenceFlow_14xac2y</bpmn2:incoming>
246 <bpmn2:outgoing>SequenceFlow_1q1poly</bpmn2:outgoing>
247 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
249 String response = execution.getVariable("DoCVNF_getSDNCAdapterResponse")
251 def createVnfInfra = new DoCreateVnf()
252 createVnfInfra.validateSDNCResponse(execution, response, "get")]]></bpmn2:script>
254 <bpmn2:sequenceFlow id="SequenceFlow_0bj7c4s" sourceRef="UpdateAAIOrchestrationStatus" targetRef="EndEvent_3" />
255 <bpmn2:callActivity id="UpdateAAIOrchestrationStatus" name="Update AAI Orchestration Status to Active" calledElement="UpdateAAIGenericVnf">
256 <bpmn2:extensionElements>
257 <camunda:in source="DoCVNF_updateAAIGenericVnfRequest" target="UpdateAAIGenericVnfRequest" />
258 <camunda:in source="mso-request-id" target="mso-request-id" />
259 <camunda:in source="mso-service-id" target="mso-service-id" />
260 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
261 <camunda:out source="WorkflowException" target="WorkflowException" />
262 </bpmn2:extensionElements>
263 <bpmn2:incoming>SequenceFlow_0nhsdmj</bpmn2:incoming>
264 <bpmn2:outgoing>SequenceFlow_0bj7c4s</bpmn2:outgoing>
265 </bpmn2:callActivity>
266 <bpmn2:sequenceFlow id="SequenceFlow_0nhsdmj" sourceRef="Task_053tb0h" targetRef="UpdateAAIOrchestrationStatus" />
267 <bpmn2:scriptTask id="Task_053tb0h" name="Prepare Update AAI Generic VNF" scriptFormat="groovy">
268 <bpmn2:incoming>SequenceFlow_15z3gpq</bpmn2:incoming>
269 <bpmn2:outgoing>SequenceFlow_0nhsdmj</bpmn2:outgoing>
270 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
271 def doCreateVnf = new DoCreateVnf()
272 doCreateVnf.prepUpdateAAIGenericVnf(execution)]]></bpmn2:script>
275 <bpmn2:error id="Error_1" name="Java Lang Exception" errorCode="java.lang.Exception" />
276 <bpmn2:error id="Error_2" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
277 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
278 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoCreateVnf">
279 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_68" bpmnElement="StartEvent_1">
280 <dc:Bounds x="96" y="222" width="36" height="36" />
282 <dc:Bounds x="114" y="263" width="0" height="0" />
285 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_285" bpmnElement="initialization">
286 <dc:Bounds x="216" y="200" width="100" height="80" />
288 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_68" targetElement="_BPMNShape_ScriptTask_285">
289 <di:waypoint xsi:type="dc:Point" x="132" y="240" />
290 <di:waypoint xsi:type="dc:Point" x="216" y="240" />
292 <dc:Bounds x="165" y="240" width="6" height="6" />
295 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_285">
296 <di:waypoint xsi:type="dc:Point" x="316" y="240" />
297 <di:waypoint xsi:type="dc:Point" x="406" y="240" />
299 <dc:Bounds x="361" y="225" width="0" height="0" />
302 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_59" bpmnElement="callGetService">
303 <dc:Bounds x="406" y="200" width="100" height="80" />
305 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_229" bpmnElement="serviceInstanceFound" isMarkerVisible="true">
306 <dc:Bounds x="552" y="215" width="50" height="50" />
308 <dc:Bounds x="536" y="267" width="82" height="24" />
311 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_CallActivity_59" targetElement="_BPMNShape_ExclusiveGateway_229">
312 <di:waypoint xsi:type="dc:Point" x="506" y="240" />
313 <di:waypoint xsi:type="dc:Point" x="552" y="240" />
315 <dc:Bounds x="529" y="225" width="0" height="0" />
318 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_293" bpmnElement="buildWorkflowException">
319 <dc:Bounds x="720" y="115" width="100" height="80" />
321 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="notFound" sourceElement="_BPMNShape_ExclusiveGateway_229" targetElement="_BPMNShape_ScriptTask_293">
322 <di:waypoint xsi:type="dc:Point" x="577" y="215" />
323 <di:waypoint xsi:type="dc:Point" x="577" y="155" />
324 <di:waypoint xsi:type="dc:Point" x="720" y="155" />
326 <dc:Bounds x="580" y="174.4237288135593" width="14" height="12" />
329 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_225" bpmnElement="EndEvent_1">
330 <dc:Bounds x="876" y="137" width="36" height="36" />
332 <dc:Bounds x="894" y="178" width="0" height="0" />
335 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ScriptTask_293" targetElement="_BPMNShape_EndEvent_225">
336 <di:waypoint xsi:type="dc:Point" x="820" y="155" />
337 <di:waypoint xsi:type="dc:Point" x="876" y="155" />
339 <dc:Bounds x="846" y="155" width="6" height="6" />
342 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="found" sourceElement="_BPMNShape_ExclusiveGateway_229" targetElement="_BPMNShape_CallActivity_60">
343 <di:waypoint xsi:type="dc:Point" x="602" y="240" />
344 <di:waypoint xsi:type="dc:Point" x="646" y="240" />
346 <dc:Bounds x="614" y="216.01288698145387" width="18" height="12" />
349 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_60" bpmnElement="callGetVnf">
350 <dc:Bounds x="720" y="288" width="100" height="80" />
352 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_232" bpmnElement="vnfExist" isMarkerVisible="true">
353 <dc:Bounds x="854" y="302" width="50" height="50" />
355 <dc:Bounds x="890" y="332" width="114" height="22" />
358 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_CallActivity_60" targetElement="_BPMNShape_ExclusiveGateway_232">
359 <di:waypoint xsi:type="dc:Point" x="820" y="328" />
360 <di:waypoint xsi:type="dc:Point" x="854" y="327" />
362 <dc:Bounds x="804" y="330" width="6" height="6" />
365 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_299" bpmnElement="vnfExistWorkflowException">
366 <dc:Bounds x="926" y="367" width="100" height="80" />
368 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_300" bpmnElement="prepareCreateGenericVnf">
369 <dc:Bounds x="959" y="200" width="100" height="80" />
371 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="vnfExistYes" sourceElement="_BPMNShape_ExclusiveGateway_232" targetElement="_BPMNShape_ScriptTask_299">
372 <di:waypoint xsi:type="dc:Point" x="879" y="352" />
373 <di:waypoint xsi:type="dc:Point" x="879" y="407" />
374 <di:waypoint xsi:type="dc:Point" x="926" y="407" />
376 <dc:Bounds x="880" y="367" width="29" height="22" />
379 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="vnfExistNo" sourceElement="_BPMNShape_ExclusiveGateway_232" targetElement="_BPMNShape_ScriptTask_300">
380 <di:waypoint xsi:type="dc:Point" x="879" y="302" />
381 <di:waypoint xsi:type="dc:Point" x="879" y="240" />
382 <di:waypoint xsi:type="dc:Point" x="959" y="240" />
384 <dc:Bounds x="884" y="254" width="14" height="12" />
387 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_227" bpmnElement="EndEvent_2">
388 <dc:Bounds x="1092" y="389" width="36" height="36" />
390 <dc:Bounds x="1110" y="430" width="0" height="0" />
393 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ScriptTask_299" targetElement="_BPMNShape_EndEvent_227">
394 <di:waypoint xsi:type="dc:Point" x="1026" y="407" />
395 <di:waypoint xsi:type="dc:Point" x="1092" y="407" />
397 <dc:Bounds x="1034" y="407" width="6" height="6" />
400 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_228" bpmnElement="EndEvent_3">
401 <dc:Bounds x="1765" y="537" width="36" height="36" />
403 <dc:Bounds x="1783" y="578" width="0" height="0" />
406 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ScriptTask_300" targetElement="ScriptTask_0y55cyz_di">
407 <di:waypoint xsi:type="dc:Point" x="1059" y="240" />
408 <di:waypoint xsi:type="dc:Point" x="1146" y="240" />
410 <dc:Bounds x="1057.5" y="225" width="90" height="0" />
413 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_32" bpmnElement="javaErrorHandlingSubProcess" isExpanded="true">
414 <dc:Bounds x="109" y="668" width="313" height="169" />
416 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_76" bpmnElement="StartEvent_2">
417 <dc:Bounds x="133" y="735" width="36" height="36" />
419 <dc:Bounds x="151" y="776" width="0" height="0" />
422 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_308" bpmnElement="processJavaError">
423 <dc:Bounds x="216" y="713" width="100" height="80" />
425 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_234" bpmnElement="EndEvent_4">
426 <dc:Bounds x="361" y="735" width="36" height="36" />
428 <dc:Bounds x="379" y="776" width="0" height="0" />
431 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_StartEvent_76" targetElement="_BPMNShape_ScriptTask_308">
432 <di:waypoint xsi:type="dc:Point" x="169" y="753" />
433 <di:waypoint xsi:type="dc:Point" x="216" y="753" />
435 <dc:Bounds x="190" y="753" width="0" height="0" />
438 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_308" targetElement="_BPMNShape_EndEvent_234">
439 <di:waypoint xsi:type="dc:Point" x="316" y="753" />
440 <di:waypoint xsi:type="dc:Point" x="361" y="753" />
442 <dc:Bounds x="336" y="753" width="0" height="0" />
445 <bpmndi:BPMNEdge id="SequenceFlow_1q6udwm_di" bpmnElement="SequenceFlow_1q6udwm">
446 <di:waypoint xsi:type="dc:Point" x="306" y="555" />
447 <di:waypoint xsi:type="dc:Point" x="346" y="555" />
449 <dc:Bounds x="326" y="540" width="0" height="0" />
452 <bpmndi:BPMNEdge id="SequenceFlow_15knw0q_di" bpmnElement="SequenceFlow_15knw0q">
453 <di:waypoint xsi:type="dc:Point" x="446" y="555" />
454 <di:waypoint xsi:type="dc:Point" x="493" y="555" />
456 <dc:Bounds x="470" y="540" width="0" height="0" />
459 <bpmndi:BPMNEdge id="SequenceFlow_1lalmvp_di" bpmnElement="SequenceFlow_1lalmvp">
460 <di:waypoint xsi:type="dc:Point" x="1100" y="555" />
461 <di:waypoint xsi:type="dc:Point" x="1156" y="555" />
463 <dc:Bounds x="1128" y="540" width="0" height="0" />
466 <bpmndi:BPMNEdge id="SequenceFlow_0eb41vb_di" bpmnElement="SequenceFlow_0eb41vb">
467 <di:waypoint xsi:type="dc:Point" x="1256" y="555" />
468 <di:waypoint xsi:type="dc:Point" x="1304" y="555" />
470 <dc:Bounds x="1280" y="540" width="0" height="0" />
473 <bpmndi:BPMNEdge id="SequenceFlow_15z3gpq_di" bpmnElement="SequenceFlow_15z3gpq">
474 <di:waypoint xsi:type="dc:Point" x="1404" y="555" />
475 <di:waypoint xsi:type="dc:Point" x="1445" y="555" />
477 <dc:Bounds x="1425" y="540" width="0" height="0" />
480 <bpmndi:BPMNShape id="ScriptTask_01h1rx2_di" bpmnElement="preProcessSDNCAssignRequest">
481 <dc:Bounds x="206" y="515" width="100" height="80" />
483 <bpmndi:BPMNShape id="CallActivity_0p5ncd0_di" bpmnElement="callSDNCAdapterVNFTopologyAssign">
484 <dc:Bounds x="346" y="515" width="100" height="80" />
486 <bpmndi:BPMNShape id="ScriptTask_1qa39wn_di" bpmnElement="postProcessSDNCAssignRequest">
487 <dc:Bounds x="493" y="515" width="100" height="80" />
489 <bpmndi:BPMNShape id="ScriptTask_1rr2xrc_di" bpmnElement="preProcessSDNCActivateRequest">
490 <dc:Bounds x="1000" y="515" width="100" height="80" />
492 <bpmndi:BPMNShape id="CallActivity_1ieo30p_di" bpmnElement="callSDNCAdapterVNFTopologyActivate">
493 <dc:Bounds x="1156" y="515" width="100" height="80" />
495 <bpmndi:BPMNShape id="ScriptTask_04votlb_di" bpmnElement="postProcessSDNCActivateRequest">
496 <dc:Bounds x="1304" y="515" width="100" height="80" />
498 <bpmndi:BPMNShape id="ExclusiveGateway_045rm8i_di" bpmnElement="ExclusiveGateway_045rm8i" isMarkerVisible="true">
499 <dc:Bounds x="1758" y="215" width="50" height="50" />
501 <dc:Bounds x="1756" y="163" width="54" height="36" />
504 <bpmndi:BPMNEdge id="SequenceFlow_0ttqcwx_di" bpmnElement="SdncInteractionEnabled">
505 <di:waypoint xsi:type="dc:Point" x="1783" y="265" />
506 <di:waypoint xsi:type="dc:Point" x="1783" y="475" />
507 <di:waypoint xsi:type="dc:Point" x="106" y="475" />
508 <di:waypoint xsi:type="dc:Point" x="106" y="555" />
509 <di:waypoint xsi:type="dc:Point" x="206" y="555" />
511 <dc:Bounds x="941" y="460" width="18" height="12" />
514 <bpmndi:BPMNEdge id="SequenceFlow_0ay5l4b_di" bpmnElement="SdncInteractionNotEnabled">
515 <di:waypoint xsi:type="dc:Point" x="1783" y="265" />
516 <di:waypoint xsi:type="dc:Point" x="1783" y="401" />
517 <di:waypoint xsi:type="dc:Point" x="1783" y="401" />
518 <di:waypoint xsi:type="dc:Point" x="1783" y="537" />
520 <dc:Bounds x="1812" y="431.09791911764705" width="14" height="12" />
523 <bpmndi:BPMNEdge id="SequenceFlow_1gc18ih_di" bpmnElement="SequenceFlow_1gc18ih">
524 <di:waypoint xsi:type="dc:Point" x="1246" y="240" />
525 <di:waypoint xsi:type="dc:Point" x="1758" y="240" />
527 <dc:Bounds x="1457" y="225" width="90" height="0" />
530 <bpmndi:BPMNShape id="ScriptTask_0y55cyz_di" bpmnElement="postProcessCreateGenericVnf">
531 <dc:Bounds x="1146" y="200" width="100" height="80" />
533 <bpmndi:BPMNShape id="ExclusiveGateway_0j73e7c_di" bpmnElement="ExclusiveGateway_0j73e7c" isMarkerVisible="true">
534 <dc:Bounds x="646" y="215" width="50" height="50" />
536 <dc:Bounds x="653" y="184" width="51" height="24" />
539 <bpmndi:BPMNEdge id="SequenceFlow_0k2oavy_di" bpmnElement="VnfNameNotSpecified1">
540 <di:waypoint xsi:type="dc:Point" x="696" y="240" />
541 <di:waypoint xsi:type="dc:Point" x="959" y="240" />
543 <dc:Bounds x="821.0502092050209" y="215" width="14" height="12" />
546 <bpmndi:BPMNEdge id="SequenceFlow_1pwgmrg_di" bpmnElement="VnfNameSpecified1">
547 <di:waypoint xsi:type="dc:Point" x="671" y="265" />
548 <di:waypoint xsi:type="dc:Point" x="671" y="328" />
549 <di:waypoint xsi:type="dc:Point" x="720" y="328" />
551 <dc:Bounds x="677" y="286.5" width="18" height="12" />
554 <bpmndi:BPMNEdge id="SequenceFlow_1h9jdgr_di" bpmnElement="SequenceFlow_1h9jdgr">
555 <di:waypoint xsi:type="dc:Point" x="777" y="693" />
556 <di:waypoint xsi:type="dc:Point" x="799" y="693" />
558 <dc:Bounds x="788" y="678" width="0" height="0" />
561 <bpmndi:BPMNEdge id="SequenceFlow_14xac2y_di" bpmnElement="SequenceFlow_14xac2y">
562 <di:waypoint xsi:type="dc:Point" x="899" y="693" />
563 <di:waypoint xsi:type="dc:Point" x="926" y="693" />
565 <dc:Bounds x="913" y="678" width="0" height="0" />
568 <bpmndi:BPMNEdge id="SequenceFlow_1q1poly_di" bpmnElement="SequenceFlow_1q1poly">
569 <di:waypoint xsi:type="dc:Point" x="1026" y="693" />
570 <di:waypoint xsi:type="dc:Point" x="1050" y="693" />
571 <di:waypoint xsi:type="dc:Point" x="1050" y="595" />
573 <dc:Bounds x="1038" y="678" width="0" height="0" />
576 <bpmndi:BPMNShape id="ExclusiveGateway_0qnhlm1_di" bpmnElement="ExclusiveGateway_0qnhlm1" isMarkerVisible="true">
577 <dc:Bounds x="625" y="530" width="50" height="50" />
579 <dc:Bounds x="624" y="495" width="51" height="24" />
582 <bpmndi:BPMNEdge id="SequenceFlow_0lnh79j_di" bpmnElement="SequenceFlow_0lnh79j">
583 <di:waypoint xsi:type="dc:Point" x="593" y="555" />
584 <di:waypoint xsi:type="dc:Point" x="625" y="555" />
586 <dc:Bounds x="609" y="530" width="0" height="0" />
589 <bpmndi:BPMNEdge id="SequenceFlow_1mh1y3w_di" bpmnElement="VnfNameNotSpecified2">
590 <di:waypoint xsi:type="dc:Point" x="650" y="580" />
591 <di:waypoint xsi:type="dc:Point" x="650" y="693" />
592 <di:waypoint xsi:type="dc:Point" x="677" y="693" />
594 <dc:Bounds x="626" y="622" width="14" height="12" />
597 <bpmndi:BPMNEdge id="SequenceFlow_175qbtt_di" bpmnElement="VnfNameSpecified2">
598 <di:waypoint xsi:type="dc:Point" x="675" y="555" />
599 <di:waypoint xsi:type="dc:Point" x="1000" y="555" />
601 <dc:Bounds x="829" y="530" width="18" height="12" />
604 <bpmndi:BPMNShape id="ScriptTask_1cpb0sg_di" bpmnElement="PreProcessSDNCGetRequest">
605 <dc:Bounds x="677" y="653" width="100" height="80" />
607 <bpmndi:BPMNShape id="CallActivity_0h8tpji_di" bpmnElement="CallSDNCAdapterVNFTopologyGet">
608 <dc:Bounds x="799" y="653" width="100" height="80" />
610 <bpmndi:BPMNShape id="ScriptTask_1orism0_di" bpmnElement="PostProcessSDNCGetRequest">
611 <dc:Bounds x="926" y="653" width="100" height="80" />
613 <bpmndi:BPMNEdge id="SequenceFlow_0bj7c4s_di" bpmnElement="SequenceFlow_0bj7c4s">
614 <di:waypoint xsi:type="dc:Point" x="1700" y="555" />
615 <di:waypoint xsi:type="dc:Point" x="1765" y="555" />
617 <dc:Bounds x="1733" y="540" width="0" height="0" />
620 <bpmndi:BPMNShape id="CallActivity_0a4a9lx_di" bpmnElement="UpdateAAIOrchestrationStatus">
621 <dc:Bounds x="1600" y="515" width="100" height="80" />
623 <bpmndi:BPMNEdge id="SequenceFlow_0nhsdmj_di" bpmnElement="SequenceFlow_0nhsdmj">
624 <di:waypoint xsi:type="dc:Point" x="1545" y="555" />
625 <di:waypoint xsi:type="dc:Point" x="1600" y="555" />
627 <dc:Bounds x="1573" y="540" width="0" height="0" />
630 <bpmndi:BPMNShape id="ScriptTask_0aonzix_di" bpmnElement="Task_053tb0h">
631 <dc:Bounds x="1445" y="515" width="100" height="80" />
634 </bpmndi:BPMNDiagram>