3 "id": "1e0cb698.a04019",
7 "x": 107.57138061523438,
8 "y": 61.999998569488525,
9 "z": "4e13a6ca.bd7208",
17 "id": "277c65c2.ed804a",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
23 "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
25 "x": 182.85708618164062,
26 "y": 102.2381100654602,
27 "z": "4e13a6ca.bd7208",
35 "id": "a7e1f73c.bc4948",
37 "name": "method site-vnf-topology-operation-delete",
38 "xml": "<method rpc='site-vnf-topology-operation-delete' mode='sync'>\n",
42 "y": 237.99999856948853,
43 "z": "4e13a6ca.bd7208",
51 "id": "ca44419d.5ab99",
53 "name": "site-vnf-topology-operation-delete",
56 "x": 556.9162979125977,
57 "y": 135.58639764785767,
58 "z": "4e13a6ca.bd7208",
62 "id": "bdf1765.0f24c88",
64 "name": "block : atomic",
65 "xml": "<block atomic=\"true\">",
68 "x": 184.23804473876953,
69 "y": 363.6666703224182,
70 "z": "4e13a6ca.bd7208",
88 "id": "bcc212f6.b90ab",
90 "name": "switch service-data.vnfs.vnf_length",
91 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
94 "x": 645.6660842895508,
95 "y": 297.2611689567566,
96 "z": "4e13a6ca.bd7208",
105 "id": "d5d54ea4.ba5c6",
107 "name": "outcome Null",
108 "xml": "<outcome value=''>\n",
111 "x": 910.3883972167969,
112 "y": 279.81679105758667,
113 "z": "4e13a6ca.bd7208",
121 "id": "30ee642f.b18d2c",
122 "type": "returnFailure",
123 "name": "return failure",
124 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
126 "x": 1091.3882675170898,
127 "y": 274.81666898727417,
128 "z": "4e13a6ca.bd7208",
132 "id": "291bcf0.559d232",
135 "xml": "<outcome value='Other'>\n",
138 "x": 895.8883972167969,
139 "y": 331.81675386428833,
140 "z": "4e13a6ca.bd7208",
148 "id": "fb8a0e1a.913bb",
150 "name": "block : atomic",
151 "xml": "<block atomic=\"true\">",
154 "x": 1067.8881034851074,
155 "y": 331.8167519569397,
156 "z": "4e13a6ca.bd7208",
165 "id": "97fd60bf.39c2c",
166 "type": "switchNode",
167 "name": "switch tmp.nidx ",
168 "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
171 "x": 1242.8882751464844,
172 "y": 350.81667375564575,
173 "z": "4e13a6ca.bd7208",
181 "id": "b76f0527.dbb128",
182 "type": "switchNode",
183 "name": "switch vnf-level-oper-status",
184 "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
187 "x": 616.0550842285156,
188 "y": 371.705632686615,
189 "z": "4e13a6ca.bd7208",
198 "id": "2c1cb407.0b20fc",
200 "name": "outcome PendingDelete",
201 "xml": "<outcome value='PendingDelete'>\n",
204 "x": 906.8883514404297,
205 "y": 375.81675577163696,
206 "z": "4e13a6ca.bd7208",
214 "id": "7a49e612.028b78",
217 "xml": "<outcome value='Other'>\n",
220 "x": 852.8884124755859,
221 "y": 422.81675958633423,
222 "z": "4e13a6ca.bd7208",
230 "id": "cae57504.d32048",
231 "type": "returnFailure",
232 "name": "return failure",
233 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
235 "x": 1012.3881797790527,
236 "y": 425.8167586326599,
237 "z": "4e13a6ca.bd7208",
241 "id": "12ca3dc.2d458c2",
242 "type": "switchNode",
243 "name": "switch vnf-id",
244 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
247 "x": 581.8884010314941,
248 "y": 252.81676244735718,
249 "z": "4e13a6ca.bd7208",
257 "id": "479f1e18.fbfce",
260 "xml": "<outcome value=''>",
263 "x": 779.8884658813477,
264 "y": 242.8167748451233,
265 "z": "4e13a6ca.bd7208",
273 "id": "e26d76c0.5decd8",
274 "type": "returnFailure",
275 "name": "return failure",
276 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf-request-input.vnf-input-parameters.name is a required input\" />\n",
278 "x": 946.3883514404297,
279 "y": 239.8167691230774,
280 "z": "4e13a6ca.bd7208",
284 "id": "c460861f.38f098",
286 "name": "execute requiredParameters",
287 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
290 "x": 639.3884582519531,
291 "y": 192.81676149368286,
292 "z": "4e13a6ca.bd7208",
298 "id": "5412f014.12424",
300 "name": "for nidx..service-data.vnfs.vnf[]",
301 "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
304 "x": 1303.3882789611816,
305 "y": 286.8166699409485,
306 "z": "4e13a6ca.bd7208",
314 "id": "148fbb0c.c24365",
315 "type": "switchNode",
316 "name": "switch vnf-id found",
317 "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
320 "x": 1559.388298034668,
321 "y": 286.8166699409485,
322 "z": "4e13a6ca.bd7208",
330 "id": "b65bbab.9ca2c48",
331 "type": "outcomeTrue",
333 "xml": "<outcome value='true'>\n",
336 "x": 1735.8883514404297,
337 "y": 289.8166699409485,
338 "z": "4e13a6ca.bd7208",
346 "id": "1a4ecfb7.7d8f8",
348 "name": "set tmp.nidx and ctx.vnf-data",
349 "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",
351 "x": 1902.8883666992188,
352 "y": 350.8166699409485,
353 "z": "4e13a6ca.bd7208",
357 "id": "e8e5a7c0.1c4938",
358 "type": "returnFailure",
359 "name": "return failure",
360 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
362 "x": 1548.3882904052734,
363 "y": 350.81667375564575,
364 "z": "4e13a6ca.bd7208",
368 "id": "7e0c16e8.e0d2b8",
371 "xml": "<outcome value=''>\n",
374 "x": 1410.8882904052734,
375 "y": 350.81667375564575,
376 "z": "4e13a6ca.bd7208",
384 "id": "5c8ef11.4d9e21",
386 "name": "set vnfId and vnf-object-path",
387 "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
389 "x": 578.9050178527832,
390 "y": 641.3335304260254,
391 "z": "4e13a6ca.bd7208",
395 "id": "c063c177.c449a",
396 "type": "returnSuccess",
397 "name": "return success",
398 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
400 "x": 538.0161476135254,
401 "y": 759.8890404701233,
402 "z": "4e13a6ca.bd7208",
406 "id": "372cbde7.587372",
408 "name": "delete site instance configuration in AAI",
409 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='site-resource' \n key='site-resource.id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
412 "x": 606.4265480041504,
413 "y": 697.1378149986267,
414 "z": "4e13a6ca.bd7208",
420 "id": "4b86cba0.d35104",
422 "name": "block : atomic",
423 "xml": "<block atomic=\"true\">",
426 "x": 1104.194751739502,
427 "y": 386.14191007614136,
428 "z": "4e13a6ca.bd7208",
434 "id": "6a5ea2dd.9c807c",
436 "name": "set prop.vnfNewidx",
437 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
439 "x": 585.0000762939453,
440 "y": 422.00006771087646,
441 "z": "4e13a6ca.bd7208",
445 "id": "55ed5ce8.2b1ae4",
447 "name": "for lidx..service-data.vnfs.vnf[]",
448 "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
451 "x": 602.0000381469727,
452 "y": 472.00007152557373,
453 "z": "4e13a6ca.bd7208",
461 "id": "1913c26.edfaf3e",
463 "name": "block : atomic",
464 "xml": "<block atomic=\"true\">",
467 "x": 863.000114440918,
468 "y": 476.0001063346863,
469 "z": "4e13a6ca.bd7208",
477 "id": "b02e3feb.ffee3",
478 "type": "switchNode",
479 "name": "switch vnf-id found",
480 "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
483 "x": 1055.0000610351562,
484 "y": 485.000150680542,
485 "z": "4e13a6ca.bd7208",
493 "id": "e6008550.52d2f8",
494 "type": "outcomeFalse",
496 "xml": "<outcome value='false'>\n",
499 "x": 1241.0000762939453,
500 "y": 469.00003719329834,
501 "z": "4e13a6ca.bd7208",
509 "id": "59e45e4c.5156f",
511 "name": "block : atomic",
512 "xml": "<block atomic=\"true\">",
516 "y": 470.00007343292236,
517 "z": "4e13a6ca.bd7208",
526 "id": "9655d3b.ed2503",
528 "name": "set vnf data",
529 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",
531 "x": 1557.0000953674316,
532 "y": 445.00022888183594,
533 "z": "4e13a6ca.bd7208",
537 "id": "ee40dd88.8d1f1",
539 "name": "set prop.vnfNewidx",
540 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
542 "x": 1579.0000953674316,
543 "y": 501.0001926422119,
544 "z": "4e13a6ca.bd7208",
548 "id": "ba708495.2ebbe8",
550 "name": "set new vnf length",
551 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
553 "x": 571.101432800293,
554 "y": 525.8043546676636,
555 "z": "4e13a6ca.bd7208",
559 "id": "4890886d.4993b8",
561 "name": "Remove vnf from ServiceData",
562 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
564 "x": 608.0001106262207,
565 "y": 581.0001163482666,
566 "z": "4e13a6ca.bd7208",