3 "id": "2cedcd37.fe8ab2",
7 "x": 174.57137298583984,
9 "z": "cee53bf1.d63798",
17 "id": "d0b308e8.cdee18",
18 "type": "service-logic",
19 "name": "VNF-API ${project.version}",
21 "version": "${project.version}",
23 "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
25 "x": 339.73802947998047,
26 "y": 71.59526062011719,
27 "z": "cee53bf1.d63798",
35 "id": "7508dd9c.f543d4",
37 "name": "method vnf-instance-topology-assign",
38 "xml": "<method rpc='vnf-instance-topology-assign' mode='sync'>\n",
41 "x": 289.16661834716797,
42 "y": 118.59525680541992,
43 "z": "cee53bf1.d63798",
51 "id": "df9a3175.c6c8d",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 235.07138061523438,
59 "y": 174.4285888671875,
60 "z": "cee53bf1.d63798",
75 "id": "da24c094.d6258",
77 "name": "set: order-status = PendingCreate",
78 "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.order-status\" value=\"PendingCreate\"/>",
81 "x": 502.96221923828125,
82 "y": 595.6208057403564,
83 "z": "cee53bf1.d63798",
89 "id": "7e403afc.ca86f4",
90 "type": "returnSuccess",
91 "name": "return success",
92 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
94 "x": 442.1050567626953,
95 "y": 681.3254375457764,
96 "z": "cee53bf1.d63798",
100 "id": "c1bd5bbc.d08278",
102 "name": "request-action = VNFActivateRequest",
105 "x": 681.738037109375,
106 "y": 91.53970336914062,
107 "z": "cee53bf1.d63798",
111 "id": "2983e427.e89c6c",
114 "xml": "<outcome value='failure'>\n",
117 "x": 820.0119781494141,
118 "y": 546.6433296203613,
119 "z": "cee53bf1.d63798",
127 "id": "5785fdd6.aeaed4",
128 "type": "returnFailure",
129 "name": "return failure",
130 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"An error occurred while updating vnf-instance orchestration-status in AnAI\"/>",
132 "x": 1204.1549072265625,
133 "y": 546.6434001922607,
134 "z": "cee53bf1.d63798",
138 "id": "67bf7768.b620d8",
140 "name": "save relationship: l3-network",
141 "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" >\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />",
144 "x": 822.3174667358398,
145 "y": 389.54354763031006,
146 "z": "cee53bf1.d63798",
154 "id": "a997a0b4.695d1",
157 "xml": "<outcome value='failure'>\n",
160 "x": 1034.9617385864258,
161 "y": 389.59056186676025,
162 "z": "cee53bf1.d63798",
170 "id": "db6cf5b9.be6428",
172 "name": "for i : SERVICE_DATA vnf-networks",
173 "xml": "<for index=\"i\" start=\"0\" end=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length`\">",
176 "x": 507.96427154541016,
177 "y": 389.51202869415283,
178 "z": "cee53bf1.d63798",
186 "id": "12eea8c7.978027",
187 "type": "returnFailure",
188 "name": "return failure",
189 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while saving generic-vnf l3-network relationship in AnAI with network-id = ' + $vnf-instance.service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks[$i].network-id`\"/>",
191 "x": 1204.0118026733398,
192 "y": 499.60688877105713,
193 "z": "cee53bf1.d63798",
197 "id": "aea10b11.934cb8",
199 "name": "block : atomic",
200 "xml": "<block atomic='true'>",
204 "x": 993.726188659668,
205 "y": 451.8927421569824,
206 "z": "cee53bf1.d63798",
215 "id": "98086e0f.3b64d",
217 "name": "delete vnf-instance: l3-network relationship",
218 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
221 "x": 1287.15478515625,
222 "y": 452.32148838043213,
223 "z": "cee53bf1.d63798",
229 "id": "41693571.36e60c",
231 "name": "update AnAI - vnf-instance.orchestration-status",
232 "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" >\n\t<parameter name=\"orchestration-status\" value=\"pending-create\" />",
235 "x": 544.4881210327148,
236 "y": 546.6548271179199,
237 "z": "cee53bf1.d63798",
245 "id": "6e9f230e.fe328c",
247 "name": "block: atomic",
248 "xml": "<block atomic=\"true\">\n",
252 "x": 978.4405517578125,
253 "y": 546.7500886917114,
254 "z": "cee53bf1.d63798",
263 "id": "8723af06.8912c",
265 "name": "call: vnf-instance-topology-assign-vnf-networks",
266 "xml": "<call module='VNF-API' rpc='vnf-instance-topology-assign-vnf-networks' mode='sync' >",
269 "x": 542.2380599975586,
270 "y": 279.17860412597656,
271 "z": "cee53bf1.d63798",
277 "id": "4e11edf0.dd1024",
279 "name": "Set final indicator to Y",
280 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
283 "x": 466.1428680419922,
284 "y": 640.7500247955322,
285 "z": "cee53bf1.d63798",
291 "id": "33375972.3ee9b6",
292 "type": "switchNode",
293 "name": "switch ...SERVICE-DATA vnf-networks[]",
294 "xml": "<switch test=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length`\">",
297 "x": 520.321418762207,
298 "y": 329.7500343322754,
299 "z": "cee53bf1.d63798",
307 "id": "de2601f5.481bb",
310 "xml": "<outcome value=''>",
312 "x": 766.7658920288086,
313 "y": 329.2777442932129,
314 "z": "cee53bf1.d63798",
322 "id": "bc89e7d4.363558",
324 "name": "set SERVICE-DATA vnf-networks[] = 0",
325 "xml": "<set>\n<parameter name='vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length' value='0' />\n",
328 "x": 1012.321500990126,
329 "y": 329.27776495615626,
330 "z": "cee53bf1.d63798",
336 "id": "88fc01a3.bf7a3",
338 "name": "GET AnAI - vnf-instance",
339 "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" \n\tpfx=\"tmp.AnAI.vnf-instance\" >",
342 "x": 465.8213882446289,
343 "y": 173.92859935760498,
344 "z": "cee53bf1.d63798",
353 "id": "544d350b.3602ec",
356 "xml": "<outcome value='failure'>\n",
359 "x": 666.8213882446289,
360 "y": 173.67859935760498,
361 "z": "cee53bf1.d63798",
369 "id": "2400a64e.19d90a",
372 "xml": "<outcome value='not-found'>\n",
375 "x": 674.321403503418,
376 "y": 213.67860984802246,
377 "z": "cee53bf1.d63798",
385 "id": "24cc16d1.2a783a",
386 "type": "returnFailure",
387 "name": "return failure",
388 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while querying generic-vnf from AnAI with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\"/>",
390 "x": 833.0713882446289,
391 "y": 173.42859935760498,
392 "z": "cee53bf1.d63798",
396 "id": "e96a9f54.0d0cd",
397 "type": "returnFailure",
398 "name": "return failure",
399 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'generic-vnf not found in AnAI with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\"/>",
401 "x": 834.5713882446289,
402 "y": 213.92859935760498,
403 "z": "cee53bf1.d63798",