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.4.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.openecomp.mso.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.openecomp.mso.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.openecomp.mso.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="Prepare Create Vnf Payload" 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.openecomp.mso.bpmn.infrastructure.scripts.*
93 DoCreateVnf createVnf = new DoCreateVnf()
94 createVnf.prepareCreateGenericVnf(execution)]]></bpmn2:script>
96 <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="prepareCreateGenericVnf" targetRef="callPutVnf" />
97 <bpmn2:callActivity id="callPutVnf" name="Create (Put) Generic Vnf" calledElement="GenericPutVnf">
98 <bpmn2:extensionElements>
99 <camunda:in source="DoCVNF_genericVnfPayload" target="GENPV_vnfPayload" />
100 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
101 <camunda:in source="DoCVNF_vnfId" target="GENPV_vnfId" />
102 <camunda:out source="GENPV_SuccessIndicator" target="GENPV_SuccessIndicator" />
103 <camunda:out source="WorkflowException" target="WorkflowException" />
104 <camunda:in source="DoCVNF_type" target="GENPV_type" />
105 </bpmn2:extensionElements>
106 <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
107 <bpmn2:outgoing>SequenceFlow_0seif8n</bpmn2:outgoing>
108 </bpmn2:callActivity>
109 <bpmn2:subProcess id="javaErrorHandlingSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
110 <bpmn2:scriptTask id="processJavaError" name="Process Error" scriptFormat="groovy">
111 <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
112 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
113 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
114 ExceptionUtil exceptionUtil = new ExceptionUtil()
115 exceptionUtil.processJavaException(execution)]]></bpmn2:script>
117 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="processJavaError" targetRef="EndEvent_4" />
118 <bpmn2:endEvent id="EndEvent_4">
119 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
121 <bpmn2:startEvent id="StartEvent_2">
122 <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
123 <bpmn2:errorEventDefinition id="ErrorEventDefinition_3" errorRef="Error_1" />
125 <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="StartEvent_2" targetRef="processJavaError" />
127 <bpmn2:endEvent id="EndEvent_3">
128 <bpmn2:incoming>SdncInteractionNotEnabled</bpmn2:incoming>
129 <bpmn2:incoming>SequenceFlow_0bj7c4s</bpmn2:incoming>
130 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_35" />
132 <bpmn2:sequenceFlow id="SequenceFlow_1q6udwm" sourceRef="preProcessSDNCAssignRequest" targetRef="callSDNCAdapterVNFTopologyAssign" />
133 <bpmn2:sequenceFlow id="SequenceFlow_15knw0q" sourceRef="callSDNCAdapterVNFTopologyAssign" targetRef="postProcessSDNCAssignRequest" />
134 <bpmn2:sequenceFlow id="SequenceFlow_1lalmvp" sourceRef="preProcessSDNCActivateRequest" targetRef="callSDNCAdapterVNFTopologyActivate" />
135 <bpmn2:sequenceFlow id="SequenceFlow_0eb41vb" sourceRef="callSDNCAdapterVNFTopologyActivate" targetRef="postProcessSDNCActivateRequest" />
136 <bpmn2:sequenceFlow id="SequenceFlow_15z3gpq" sourceRef="postProcessSDNCActivateRequest" targetRef="Task_053tb0h" />
137 <bpmn2:scriptTask id="preProcessSDNCAssignRequest" name="PreProcess SDNC Assign Request" scriptFormat="groovy">
138 <bpmn2:incoming>SdncInteractionEnabled</bpmn2:incoming>
139 <bpmn2:outgoing>SequenceFlow_1q6udwm</bpmn2:outgoing>
140 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
141 DoCreateVnf createVnf = new DoCreateVnf()
142 createVnf.preProcessSDNCAssignRequest(execution)]]></bpmn2:script>
144 <bpmn2:callActivity id="callSDNCAdapterVNFTopologyAssign" name="Call SDNC Adapter VNF Topology Assign" calledElement="sdncAdapter">
145 <bpmn2:extensionElements>
146 <camunda:in source="DoCVNF_assignSDNCRequest" target="sdncAdapterWorkflowRequest" />
147 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
148 <camunda:in source="mso-request-id" target="mso-request-id" />
149 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
150 <camunda:out source="WorkflowException" target="WorkflowException" />
151 <camunda:out source="sdncAdapterResponse" target="DoCVNF_assignSDNCAdapterResponse" />
152 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
153 </bpmn2:extensionElements>
154 <bpmn2:incoming>SequenceFlow_1q6udwm</bpmn2:incoming>
155 <bpmn2:outgoing>SequenceFlow_15knw0q</bpmn2:outgoing>
156 </bpmn2:callActivity>
157 <bpmn2:scriptTask id="postProcessSDNCAssignRequest" name="PostProcess SDNC Assign Request" scriptFormat="groovy">
158 <bpmn2:incoming>SequenceFlow_15knw0q</bpmn2:incoming>
159 <bpmn2:outgoing>SequenceFlow_0lnh79j</bpmn2:outgoing>
160 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
161 String response = execution.getVariable("DoCVNF_assignSDNCAdapterResponse")
163 def createVnfInfra = new DoCreateVnf()
164 createVnfInfra.validateSDNCResponse(execution, response, "assign")]]></bpmn2:script>
166 <bpmn2:scriptTask id="preProcessSDNCActivateRequest" name="PreProcess SDNC Activate Request" scriptFormat="groovy">
167 <bpmn2:incoming>SequenceFlow_1q1poly</bpmn2:incoming>
168 <bpmn2:incoming>VnfNameSpecified2</bpmn2:incoming>
169 <bpmn2:outgoing>SequenceFlow_1lalmvp</bpmn2:outgoing>
170 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
171 DoCreateVnf createVnf = new DoCreateVnf()
172 createVnf.preProcessSDNCActivateRequest(execution)]]></bpmn2:script>
174 <bpmn2:callActivity id="callSDNCAdapterVNFTopologyActivate" name="Call SDNC Adapter VNF Topology Activate" calledElement="sdncAdapter">
175 <bpmn2:extensionElements>
176 <camunda:in source="DoCVNF_activateSDNCRequest" target="sdncAdapterWorkflowRequest" />
177 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
178 <camunda:in source="mso-reqeuest-id" target="mso-request-id" />
179 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
180 <camunda:out source="WorkflowException" target="WorkflowException" />
181 <camunda:out source="sdncAdapterResponse" target="DoCVNF_activateSDNCAdapterResponse" />
182 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
183 </bpmn2:extensionElements>
184 <bpmn2:incoming>SequenceFlow_1lalmvp</bpmn2:incoming>
185 <bpmn2:outgoing>SequenceFlow_0eb41vb</bpmn2:outgoing>
186 </bpmn2:callActivity>
187 <bpmn2:scriptTask id="postProcessSDNCActivateRequest" name="PostProcess SDNC Activate Request" scriptFormat="groovy">
188 <bpmn2:incoming>SequenceFlow_0eb41vb</bpmn2:incoming>
189 <bpmn2:outgoing>SequenceFlow_15z3gpq</bpmn2:outgoing>
190 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
192 String response = execution.getVariable("DoCVNF_assignSDNCAdapterResponse")
194 def createVnfInfra = new DoCreateVnf()
195 createVnfInfra.validateSDNCResponse(execution, response, "activate")]]></bpmn2:script>
197 <bpmn2:exclusiveGateway id="ExclusiveGateway_045rm8i" name="Is SDNC Interaction Enabled?" default="SdncInteractionNotEnabled">
198 <bpmn2:incoming>SequenceFlow_1gc18ih</bpmn2:incoming>
199 <bpmn2:outgoing>SdncInteractionEnabled</bpmn2:outgoing>
200 <bpmn2:outgoing>SdncInteractionNotEnabled</bpmn2:outgoing>
201 </bpmn2:exclusiveGateway>
202 <bpmn2:sequenceFlow id="SdncInteractionEnabled" name="Yes" sourceRef="ExclusiveGateway_045rm8i" targetRef="preProcessSDNCAssignRequest">
203 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DoCVNF_sdncVersion" ) != '1702'}]]></bpmn2:conditionExpression>
204 </bpmn2:sequenceFlow>
205 <bpmn2:sequenceFlow id="SdncInteractionNotEnabled" name="No" sourceRef="ExclusiveGateway_045rm8i" targetRef="EndEvent_3" />
206 <bpmn2:sequenceFlow id="SequenceFlow_0seif8n" sourceRef="callPutVnf" targetRef="postProcessCreateGenericVnf" />
207 <bpmn2:sequenceFlow id="SequenceFlow_1gc18ih" sourceRef="postProcessCreateGenericVnf" targetRef="ExclusiveGateway_045rm8i" />
208 <bpmn2:scriptTask id="postProcessCreateGenericVnf" name="PostProcess Create Generic Vnf" scriptFormat="groovy">
209 <bpmn2:incoming>SequenceFlow_0seif8n</bpmn2:incoming>
210 <bpmn2:outgoing>SequenceFlow_1gc18ih</bpmn2:outgoing>
211 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
212 DoCreateVnf createVnf = new DoCreateVnf()
213 createVnf.postProcessCreateGenericVnf(execution)]]></bpmn2:script>
215 <bpmn2:exclusiveGateway id="ExclusiveGateway_0j73e7c" name="Vnf-name specified?" default="VnfNameSpecified1">
216 <bpmn2:incoming>found</bpmn2:incoming>
217 <bpmn2:outgoing>VnfNameNotSpecified1</bpmn2:outgoing>
218 <bpmn2:outgoing>VnfNameSpecified1</bpmn2:outgoing>
219 </bpmn2:exclusiveGateway>
220 <bpmn2:sequenceFlow id="VnfNameNotSpecified1" name="No" sourceRef="ExclusiveGateway_0j73e7c" targetRef="prepareCreateGenericVnf">
221 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DoCVNF_vnfName" ) == null}]]></bpmn2:conditionExpression>
222 </bpmn2:sequenceFlow>
223 <bpmn2:sequenceFlow id="VnfNameSpecified1" name="Yes" sourceRef="ExclusiveGateway_0j73e7c" targetRef="callGetVnf" />
224 <bpmn2:sequenceFlow id="SequenceFlow_1h9jdgr" sourceRef="PreProcessSDNCGetRequest" targetRef="CallSDNCAdapterVNFTopologyGet" />
225 <bpmn2:sequenceFlow id="SequenceFlow_14xac2y" sourceRef="CallSDNCAdapterVNFTopologyGet" targetRef="PostProcessSDNCGetRequest" />
226 <bpmn2:sequenceFlow id="SequenceFlow_1q1poly" sourceRef="PostProcessSDNCGetRequest" targetRef="preProcessSDNCActivateRequest" />
227 <bpmn2:exclusiveGateway id="ExclusiveGateway_0qnhlm1" name="Vnf-name specified?" default="VnfNameSpecified2">
228 <bpmn2:incoming>SequenceFlow_0lnh79j</bpmn2:incoming>
229 <bpmn2:outgoing>VnfNameNotSpecified2</bpmn2:outgoing>
230 <bpmn2:outgoing>VnfNameSpecified2</bpmn2:outgoing>
231 </bpmn2:exclusiveGateway>
232 <bpmn2:sequenceFlow id="SequenceFlow_0lnh79j" sourceRef="postProcessSDNCAssignRequest" targetRef="ExclusiveGateway_0qnhlm1" />
233 <bpmn2:sequenceFlow id="VnfNameNotSpecified2" name="No" sourceRef="ExclusiveGateway_0qnhlm1" targetRef="PreProcessSDNCGetRequest">
234 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DoCVNF_vnfName" ) == null}]]></bpmn2:conditionExpression>
235 </bpmn2:sequenceFlow>
236 <bpmn2:sequenceFlow id="VnfNameSpecified2" name="Yes" sourceRef="ExclusiveGateway_0qnhlm1" targetRef="preProcessSDNCActivateRequest" />
237 <bpmn2:scriptTask id="PreProcessSDNCGetRequest" name="PreProcess SDNC Get Request" scriptFormat="groovy">
238 <bpmn2:incoming>VnfNameNotSpecified2</bpmn2:incoming>
239 <bpmn2:outgoing>SequenceFlow_1h9jdgr</bpmn2:outgoing>
240 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
241 DoCreateVnf createVnf = new DoCreateVnf()
242 createVnf.preProcessSDNCGetRequest(execution)]]></bpmn2:script>
244 <bpmn2:callActivity id="CallSDNCAdapterVNFTopologyGet" name="Call SDNC Adapter VNF Topology Get" calledElement="sdncAdapter">
245 <bpmn2:extensionElements>
246 <camunda:in source="DoCVNF_getSDNCRequest" target="sdncAdapterWorkflowRequest" />
247 <camunda:in source="mso-request-id" target="mso-request-id" />
248 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
249 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
250 <camunda:out source="WorkflowException" target="WorkflowException" />
251 <camunda:out source="sdncAdapterResponse" target="DoCVNF_getSDNCAdapterResponse" />
252 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
253 </bpmn2:extensionElements>
254 <bpmn2:incoming>SequenceFlow_1h9jdgr</bpmn2:incoming>
255 <bpmn2:outgoing>SequenceFlow_14xac2y</bpmn2:outgoing>
256 </bpmn2:callActivity>
257 <bpmn2:scriptTask id="PostProcessSDNCGetRequest" name="PostProcess SDNC Get Request" scriptFormat="groovy">
258 <bpmn2:incoming>SequenceFlow_14xac2y</bpmn2:incoming>
259 <bpmn2:outgoing>SequenceFlow_1q1poly</bpmn2:outgoing>
260 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
262 String response = execution.getVariable("DoCVNF_getSDNCAdapterResponse")
264 def createVnfInfra = new DoCreateVnf()
265 createVnfInfra.validateSDNCResponse(execution, response, "get")]]></bpmn2:script>
267 <bpmn2:sequenceFlow id="SequenceFlow_0bj7c4s" sourceRef="UpdateAAIOrchestrationStatus" targetRef="EndEvent_3" />
268 <bpmn2:callActivity id="UpdateAAIOrchestrationStatus" name="Update AAI Orchestration Status to Active" calledElement="UpdateAAIGenericVnf">
269 <bpmn2:extensionElements>
270 <camunda:in source="DoCVNF_updateAAIGenericVnfRequest" target="UpdateAAIGenericVnfRequest" />
271 <camunda:in source="mso-request-id" target="mso-request-id" />
272 <camunda:in source="mso-service-id" target="mso-service-id" />
273 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
274 <camunda:out source="WorkflowException" target="WorkflowException" />
275 </bpmn2:extensionElements>
276 <bpmn2:incoming>SequenceFlow_0nhsdmj</bpmn2:incoming>
277 <bpmn2:outgoing>SequenceFlow_0bj7c4s</bpmn2:outgoing>
278 </bpmn2:callActivity>
279 <bpmn2:sequenceFlow id="SequenceFlow_0nhsdmj" sourceRef="Task_053tb0h" targetRef="UpdateAAIOrchestrationStatus" />
280 <bpmn2:scriptTask id="Task_053tb0h" name="Prepare Update AAI Generic VNF" scriptFormat="groovy">
281 <bpmn2:incoming>SequenceFlow_15z3gpq</bpmn2:incoming>
282 <bpmn2:outgoing>SequenceFlow_0nhsdmj</bpmn2:outgoing>
283 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
284 def doCreateVnf = new DoCreateVnf()
285 doCreateVnf.prepUpdateAAIGenericVnf(execution)]]></bpmn2:script>
288 <bpmn2:error id="Error_1" name="Java Lang Exception" errorCode="java.lang.Exception" />
289 <bpmn2:error id="Error_2" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
290 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
291 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoCreateVnf">
292 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_68" bpmnElement="StartEvent_1">
293 <dc:Bounds x="96" y="222" width="36" height="36" />
295 <dc:Bounds x="114" y="263" width="0" height="0" />
298 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_285" bpmnElement="initialization">
299 <dc:Bounds x="216" y="200" width="100" height="80" />
301 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_68" targetElement="_BPMNShape_ScriptTask_285">
302 <di:waypoint xsi:type="dc:Point" x="132" y="240" />
303 <di:waypoint xsi:type="dc:Point" x="216" y="240" />
305 <dc:Bounds x="165" y="240" width="6" height="6" />
308 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_285">
309 <di:waypoint xsi:type="dc:Point" x="316" y="240" />
310 <di:waypoint xsi:type="dc:Point" x="406" y="240" />
312 <dc:Bounds x="361" y="225" width="0" height="0" />
315 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_59" bpmnElement="callGetService">
316 <dc:Bounds x="406" y="200" width="100" height="80" />
318 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_229" bpmnElement="serviceInstanceFound" isMarkerVisible="true">
319 <dc:Bounds x="552" y="215" width="50" height="50" />
321 <dc:Bounds x="536" y="267" width="82" height="24" />
324 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_CallActivity_59" targetElement="_BPMNShape_ExclusiveGateway_229">
325 <di:waypoint xsi:type="dc:Point" x="506" y="240" />
326 <di:waypoint xsi:type="dc:Point" x="552" y="240" />
328 <dc:Bounds x="529" y="225" width="0" height="0" />
331 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_293" bpmnElement="buildWorkflowException">
332 <dc:Bounds x="720" y="115" width="100" height="80" />
334 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="notFound" sourceElement="_BPMNShape_ExclusiveGateway_229" targetElement="_BPMNShape_ScriptTask_293">
335 <di:waypoint xsi:type="dc:Point" x="577" y="215" />
336 <di:waypoint xsi:type="dc:Point" x="577" y="155" />
337 <di:waypoint xsi:type="dc:Point" x="720" y="155" />
339 <dc:Bounds x="580" y="174.4237288135593" width="14" height="12" />
342 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_225" bpmnElement="EndEvent_1">
343 <dc:Bounds x="876" y="137" width="36" height="36" />
345 <dc:Bounds x="894" y="178" width="0" height="0" />
348 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ScriptTask_293" targetElement="_BPMNShape_EndEvent_225">
349 <di:waypoint xsi:type="dc:Point" x="820" y="155" />
350 <di:waypoint xsi:type="dc:Point" x="876" y="155" />
352 <dc:Bounds x="846" y="155" width="6" height="6" />
355 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="found" sourceElement="_BPMNShape_ExclusiveGateway_229" targetElement="_BPMNShape_CallActivity_60">
356 <di:waypoint xsi:type="dc:Point" x="602" y="240" />
357 <di:waypoint xsi:type="dc:Point" x="646" y="240" />
359 <dc:Bounds x="614" y="216.01288698145387" width="18" height="12" />
362 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_60" bpmnElement="callGetVnf">
363 <dc:Bounds x="720" y="288" width="100" height="80" />
365 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_232" bpmnElement="vnfExist" isMarkerVisible="true">
366 <dc:Bounds x="854" y="302" width="50" height="50" />
368 <dc:Bounds x="890" y="332" width="114" height="22" />
371 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_CallActivity_60" targetElement="_BPMNShape_ExclusiveGateway_232">
372 <di:waypoint xsi:type="dc:Point" x="820" y="328" />
373 <di:waypoint xsi:type="dc:Point" x="854" y="327" />
375 <dc:Bounds x="804" y="330" width="6" height="6" />
378 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_299" bpmnElement="vnfExistWorkflowException">
379 <dc:Bounds x="926" y="367" width="100" height="80" />
381 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_300" bpmnElement="prepareCreateGenericVnf">
382 <dc:Bounds x="935" y="200" width="100" height="80" />
384 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="vnfExistYes" sourceElement="_BPMNShape_ExclusiveGateway_232" targetElement="_BPMNShape_ScriptTask_299">
385 <di:waypoint xsi:type="dc:Point" x="879" y="352" />
386 <di:waypoint xsi:type="dc:Point" x="879" y="407" />
387 <di:waypoint xsi:type="dc:Point" x="926" y="407" />
389 <dc:Bounds x="880" y="367" width="29" height="22" />
392 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="vnfExistNo" sourceElement="_BPMNShape_ExclusiveGateway_232" targetElement="_BPMNShape_ScriptTask_300">
393 <di:waypoint xsi:type="dc:Point" x="879" y="302" />
394 <di:waypoint xsi:type="dc:Point" x="879" y="240" />
395 <di:waypoint xsi:type="dc:Point" x="935" y="240" />
397 <dc:Bounds x="880" y="254" width="22" height="22" />
400 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_227" bpmnElement="EndEvent_2">
401 <dc:Bounds x="1092" y="389" width="36" height="36" />
403 <dc:Bounds x="1110" y="430" width="0" height="0" />
406 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ScriptTask_299" targetElement="_BPMNShape_EndEvent_227">
407 <di:waypoint xsi:type="dc:Point" x="1026" y="407" />
408 <di:waypoint xsi:type="dc:Point" x="1092" y="407" />
410 <dc:Bounds x="1034" y="407" width="6" height="6" />
413 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_228" bpmnElement="EndEvent_3">
414 <dc:Bounds x="1765" y="537" width="36" height="36" />
416 <dc:Bounds x="1783" y="578" width="0" height="0" />
419 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ScriptTask_300" targetElement="_BPMNShape_CallActivity_61">
420 <di:waypoint xsi:type="dc:Point" x="1035" y="240" />
421 <di:waypoint xsi:type="dc:Point" x="1080" y="240" />
423 <dc:Bounds x="1058" y="225" width="0" height="0" />
426 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_61" bpmnElement="callPutVnf">
427 <dc:Bounds x="1080" y="200" width="100" height="80" />
429 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_32" bpmnElement="javaErrorHandlingSubProcess" isExpanded="true">
430 <dc:Bounds x="109" y="668" width="313" height="169" />
432 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_76" bpmnElement="StartEvent_2">
433 <dc:Bounds x="133" y="735" width="36" height="36" />
435 <dc:Bounds x="151" y="776" width="0" height="0" />
438 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_308" bpmnElement="processJavaError">
439 <dc:Bounds x="216" y="713" width="100" height="80" />
441 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_234" bpmnElement="EndEvent_4">
442 <dc:Bounds x="361" y="735" width="36" height="36" />
444 <dc:Bounds x="379" y="776" width="0" height="0" />
447 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_StartEvent_76" targetElement="_BPMNShape_ScriptTask_308">
448 <di:waypoint xsi:type="dc:Point" x="169" y="753" />
449 <di:waypoint xsi:type="dc:Point" x="216" y="753" />
451 <dc:Bounds x="190" y="753" width="0" height="0" />
454 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_308" targetElement="_BPMNShape_EndEvent_234">
455 <di:waypoint xsi:type="dc:Point" x="316" y="753" />
456 <di:waypoint xsi:type="dc:Point" x="361" y="753" />
458 <dc:Bounds x="336" y="753" width="0" height="0" />
461 <bpmndi:BPMNEdge id="SequenceFlow_1q6udwm_di" bpmnElement="SequenceFlow_1q6udwm">
462 <di:waypoint xsi:type="dc:Point" x="306" y="555" />
463 <di:waypoint xsi:type="dc:Point" x="346" y="555" />
465 <dc:Bounds x="326" y="540" width="0" height="0" />
468 <bpmndi:BPMNEdge id="SequenceFlow_15knw0q_di" bpmnElement="SequenceFlow_15knw0q">
469 <di:waypoint xsi:type="dc:Point" x="446" y="555" />
470 <di:waypoint xsi:type="dc:Point" x="493" y="555" />
472 <dc:Bounds x="470" y="540" width="0" height="0" />
475 <bpmndi:BPMNEdge id="SequenceFlow_1lalmvp_di" bpmnElement="SequenceFlow_1lalmvp">
476 <di:waypoint xsi:type="dc:Point" x="1100" y="555" />
477 <di:waypoint xsi:type="dc:Point" x="1156" y="555" />
479 <dc:Bounds x="1128" y="540" width="0" height="0" />
482 <bpmndi:BPMNEdge id="SequenceFlow_0eb41vb_di" bpmnElement="SequenceFlow_0eb41vb">
483 <di:waypoint xsi:type="dc:Point" x="1256" y="555" />
484 <di:waypoint xsi:type="dc:Point" x="1304" y="555" />
486 <dc:Bounds x="1280" y="540" width="0" height="0" />
489 <bpmndi:BPMNEdge id="SequenceFlow_15z3gpq_di" bpmnElement="SequenceFlow_15z3gpq">
490 <di:waypoint xsi:type="dc:Point" x="1404" y="555" />
491 <di:waypoint xsi:type="dc:Point" x="1445" y="555" />
493 <dc:Bounds x="1425" y="540" width="0" height="0" />
496 <bpmndi:BPMNShape id="ScriptTask_01h1rx2_di" bpmnElement="preProcessSDNCAssignRequest">
497 <dc:Bounds x="206" y="515" width="100" height="80" />
499 <bpmndi:BPMNShape id="CallActivity_0p5ncd0_di" bpmnElement="callSDNCAdapterVNFTopologyAssign">
500 <dc:Bounds x="346" y="515" width="100" height="80" />
502 <bpmndi:BPMNShape id="ScriptTask_1qa39wn_di" bpmnElement="postProcessSDNCAssignRequest">
503 <dc:Bounds x="493" y="515" width="100" height="80" />
505 <bpmndi:BPMNShape id="ScriptTask_1rr2xrc_di" bpmnElement="preProcessSDNCActivateRequest">
506 <dc:Bounds x="1000" y="515" width="100" height="80" />
508 <bpmndi:BPMNShape id="CallActivity_1ieo30p_di" bpmnElement="callSDNCAdapterVNFTopologyActivate">
509 <dc:Bounds x="1156" y="515" width="100" height="80" />
511 <bpmndi:BPMNShape id="ScriptTask_04votlb_di" bpmnElement="postProcessSDNCActivateRequest">
512 <dc:Bounds x="1304" y="515" width="100" height="80" />
514 <bpmndi:BPMNShape id="ExclusiveGateway_045rm8i_di" bpmnElement="ExclusiveGateway_045rm8i" isMarkerVisible="true">
515 <dc:Bounds x="1758" y="215" width="50" height="50" />
517 <dc:Bounds x="1756" y="163" width="54" height="36" />
520 <bpmndi:BPMNEdge id="SequenceFlow_0ttqcwx_di" bpmnElement="SdncInteractionEnabled">
521 <di:waypoint xsi:type="dc:Point" x="1783" y="265" />
522 <di:waypoint xsi:type="dc:Point" x="1783" y="475" />
523 <di:waypoint xsi:type="dc:Point" x="106" y="475" />
524 <di:waypoint xsi:type="dc:Point" x="106" y="555" />
525 <di:waypoint xsi:type="dc:Point" x="206" y="555" />
527 <dc:Bounds x="941" y="460" width="18" height="12" />
530 <bpmndi:BPMNEdge id="SequenceFlow_0ay5l4b_di" bpmnElement="SdncInteractionNotEnabled">
531 <di:waypoint xsi:type="dc:Point" x="1783" y="265" />
532 <di:waypoint xsi:type="dc:Point" x="1783" y="401" />
533 <di:waypoint xsi:type="dc:Point" x="1783" y="401" />
534 <di:waypoint xsi:type="dc:Point" x="1783" y="537" />
536 <dc:Bounds x="1812" y="431.09791911764705" width="14" height="12" />
539 <bpmndi:BPMNEdge id="SequenceFlow_0seif8n_di" bpmnElement="SequenceFlow_0seif8n">
540 <di:waypoint xsi:type="dc:Point" x="1180" y="240" />
541 <di:waypoint xsi:type="dc:Point" x="1213" y="240" />
543 <dc:Bounds x="1197" y="225" width="0" height="0" />
546 <bpmndi:BPMNEdge id="SequenceFlow_1gc18ih_di" bpmnElement="SequenceFlow_1gc18ih">
547 <di:waypoint xsi:type="dc:Point" x="1313" y="240" />
548 <di:waypoint xsi:type="dc:Point" x="1758" y="240" />
550 <dc:Bounds x="1536" y="225" width="0" height="0" />
553 <bpmndi:BPMNShape id="ScriptTask_0y55cyz_di" bpmnElement="postProcessCreateGenericVnf">
554 <dc:Bounds x="1213" y="200" width="100" height="80" />
556 <bpmndi:BPMNShape id="ExclusiveGateway_0j73e7c_di" bpmnElement="ExclusiveGateway_0j73e7c" isMarkerVisible="true">
557 <dc:Bounds x="646" y="215" width="50" height="50" />
559 <dc:Bounds x="653" y="184" width="51" height="24" />
562 <bpmndi:BPMNEdge id="SequenceFlow_0k2oavy_di" bpmnElement="VnfNameNotSpecified1">
563 <di:waypoint xsi:type="dc:Point" x="696" y="240" />
564 <di:waypoint xsi:type="dc:Point" x="935" y="240" />
566 <dc:Bounds x="809" y="215" width="14" height="12" />
569 <bpmndi:BPMNEdge id="SequenceFlow_1pwgmrg_di" bpmnElement="VnfNameSpecified1">
570 <di:waypoint xsi:type="dc:Point" x="671" y="265" />
571 <di:waypoint xsi:type="dc:Point" x="671" y="328" />
572 <di:waypoint xsi:type="dc:Point" x="720" y="328" />
574 <dc:Bounds x="677" y="286.5" width="18" height="12" />
577 <bpmndi:BPMNEdge id="SequenceFlow_1h9jdgr_di" bpmnElement="SequenceFlow_1h9jdgr">
578 <di:waypoint xsi:type="dc:Point" x="777" y="693" />
579 <di:waypoint xsi:type="dc:Point" x="799" y="693" />
581 <dc:Bounds x="788" y="678" width="0" height="0" />
584 <bpmndi:BPMNEdge id="SequenceFlow_14xac2y_di" bpmnElement="SequenceFlow_14xac2y">
585 <di:waypoint xsi:type="dc:Point" x="899" y="693" />
586 <di:waypoint xsi:type="dc:Point" x="926" y="693" />
588 <dc:Bounds x="913" y="678" width="0" height="0" />
591 <bpmndi:BPMNEdge id="SequenceFlow_1q1poly_di" bpmnElement="SequenceFlow_1q1poly">
592 <di:waypoint xsi:type="dc:Point" x="1026" y="693" />
593 <di:waypoint xsi:type="dc:Point" x="1050" y="693" />
594 <di:waypoint xsi:type="dc:Point" x="1050" y="595" />
596 <dc:Bounds x="1038" y="678" width="0" height="0" />
599 <bpmndi:BPMNShape id="ExclusiveGateway_0qnhlm1_di" bpmnElement="ExclusiveGateway_0qnhlm1" isMarkerVisible="true">
600 <dc:Bounds x="625" y="530" width="50" height="50" />
602 <dc:Bounds x="624" y="495" width="51" height="24" />
605 <bpmndi:BPMNEdge id="SequenceFlow_0lnh79j_di" bpmnElement="SequenceFlow_0lnh79j">
606 <di:waypoint xsi:type="dc:Point" x="593" y="555" />
607 <di:waypoint xsi:type="dc:Point" x="625" y="555" />
609 <dc:Bounds x="609" y="530" width="0" height="0" />
612 <bpmndi:BPMNEdge id="SequenceFlow_1mh1y3w_di" bpmnElement="VnfNameNotSpecified2">
613 <di:waypoint xsi:type="dc:Point" x="650" y="580" />
614 <di:waypoint xsi:type="dc:Point" x="650" y="693" />
615 <di:waypoint xsi:type="dc:Point" x="677" y="693" />
617 <dc:Bounds x="626" y="622" width="14" height="12" />
620 <bpmndi:BPMNEdge id="SequenceFlow_175qbtt_di" bpmnElement="VnfNameSpecified2">
621 <di:waypoint xsi:type="dc:Point" x="675" y="555" />
622 <di:waypoint xsi:type="dc:Point" x="1000" y="555" />
624 <dc:Bounds x="829" y="530" width="18" height="12" />
627 <bpmndi:BPMNShape id="ScriptTask_1cpb0sg_di" bpmnElement="PreProcessSDNCGetRequest">
628 <dc:Bounds x="677" y="653" width="100" height="80" />
630 <bpmndi:BPMNShape id="CallActivity_0h8tpji_di" bpmnElement="CallSDNCAdapterVNFTopologyGet">
631 <dc:Bounds x="799" y="653" width="100" height="80" />
633 <bpmndi:BPMNShape id="ScriptTask_1orism0_di" bpmnElement="PostProcessSDNCGetRequest">
634 <dc:Bounds x="926" y="653" width="100" height="80" />
636 <bpmndi:BPMNEdge id="SequenceFlow_0bj7c4s_di" bpmnElement="SequenceFlow_0bj7c4s">
637 <di:waypoint xsi:type="dc:Point" x="1700" y="555" />
638 <di:waypoint xsi:type="dc:Point" x="1765" y="555" />
640 <dc:Bounds x="1733" y="540" width="0" height="0" />
643 <bpmndi:BPMNShape id="CallActivity_0a4a9lx_di" bpmnElement="UpdateAAIOrchestrationStatus">
644 <dc:Bounds x="1600" y="515" width="100" height="80" />
646 <bpmndi:BPMNEdge id="SequenceFlow_0nhsdmj_di" bpmnElement="SequenceFlow_0nhsdmj">
647 <di:waypoint xsi:type="dc:Point" x="1545" y="555" />
648 <di:waypoint xsi:type="dc:Point" x="1600" y="555" />
650 <dc:Bounds x="1573" y="540" width="0" height="0" />
653 <bpmndi:BPMNShape id="ScriptTask_0aonzix_di" bpmnElement="Task_053tb0h">
654 <dc:Bounds x="1445" y="515" width="100" height="80" />
657 </bpmndi:BPMNDiagram>