3 "id": "a2b91e00.0dacb",
9 "z": "7bfb2dad.3744a4",
17 "id": "17fbd1a8.a9b4ce",
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": 194.28570556640625,
26 "y": 77.23811149597168,
27 "z": "7bfb2dad.3744a4",
35 "id": "cd1ac734.4667a8",
37 "name": "method site-vnf-topology-operation-delete",
38 "xml": "<method rpc='site-vnf-topology-operation-delete' mode='sync'>\n",
41 "x": 215.42861938476562,
43 "z": "7bfb2dad.3744a4",
51 "id": "8f642f93.2a801",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 347.6666564941406,
58 "y": 226.66668701171875,
59 "z": "7bfb2dad.3744a4",
72 "id": "76c48b79.d84cf4",
74 "name": "switch service-data.vnfs.vnf_length",
75 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
78 "x": 668.9895935058594,
79 "y": 73.98958587646484,
80 "z": "7bfb2dad.3744a4",
90 "id": "e84dd0b6.bd49f",
93 "xml": "<outcome value=''>\n",
96 "x": 1081.9895935058594,
97 "y": 66.9896469116211,
98 "z": "7bfb2dad.3744a4",
106 "id": "1e4a1529.eacc1b",
107 "type": "returnFailure",
108 "name": "return failure",
109 "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",
111 "x": 1300.7670593261719,
112 "y": 42.87859344482422,
113 "z": "7bfb2dad.3744a4",
119 "id": "6abf3e26.6123e",
122 "xml": "<outcome value='Other'>\n",
125 "x": 993.9899597167969,
126 "y": 120.98966217041016,
127 "z": "7bfb2dad.3744a4",
135 "id": "8e41da85.f0c968",
137 "name": "block : atomic",
138 "xml": "<block atomic=\"true\">",
141 "x": 1165.2594909667969,
142 "y": 104.54419708251953,
143 "z": "7bfb2dad.3744a4",
152 "id": "40ff91c4.16b8c",
154 "name": "for vidx..service-data.vnfs.vnf_length[]",
155 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
158 "x": 1463.2754821777344,
159 "y": 85.41820526123047,
160 "z": "7bfb2dad.3744a4",
168 "id": "901feb4d.552588",
169 "type": "switchNode",
170 "name": "switch tmp.vidx ",
171 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
174 "x": 1384.5768737792969,
175 "y": 128.4013900756836,
176 "z": "7bfb2dad.3744a4",
184 "id": "ee9e043e.1f4d08",
187 "xml": "<outcome value=''>\n",
190 "x": 1585.0054626464844,
191 "y": 133.9728012084961,
192 "z": "7bfb2dad.3744a4",
200 "id": "21662e74.a22c42",
201 "type": "switchNode",
202 "name": "switch vnfid found",
203 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
206 "x": 1773.7040710449219,
207 "y": 83.66829681396484,
208 "z": "7bfb2dad.3744a4",
216 "id": "b08c7bb.174c688",
217 "type": "returnFailure",
218 "name": "return failure",
219 "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",
221 "x": 1756.4339294433594,
222 "y": 134.11565399169922,
223 "z": "7bfb2dad.3744a4",
229 "id": "c6e29244.22831",
230 "type": "outcomeTrue",
232 "xml": "<outcome value='true'>\n",
235 "x": 1979.6563415527344,
236 "y": 82.56102752685547,
237 "z": "7bfb2dad.3744a4",
245 "id": "34cb4af6.5dade6",
247 "name": "set tmp.vidx and ctx.vnf-data",
248 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
250 "x": 2218.1880798339844,
251 "y": 78.31102752685547,
252 "z": "7bfb2dad.3744a4",
258 "id": "cad37430.9a8ae8",
261 "xml": "<outcome value='0'>\n",
264 "x": 1075.9583435058594,
265 "y": 30.958335876464844,
266 "z": "7bfb2dad.3744a4",
274 "id": "4dc3e987.9fd4e8",
276 "name": "TODO: Check validation",
279 "x": 625.9895935058594,
280 "y": 25.989585876464844,
281 "z": "7bfb2dad.3744a4",
287 "id": "bfaa0886.4026e8",
288 "type": "returnSuccess",
289 "name": "return success",
290 "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",
292 "x": 590.333251953125,
293 "y": 562.3333740234375,
294 "z": "7bfb2dad.3744a4",
300 "id": "728d2d28.940264",
302 "name": "for each vnf",
303 "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
306 "x": 1117.7793083190918,
307 "y": 393.66661167144775,
308 "z": "7bfb2dad.3744a4",
316 "id": "347e4d01.6da902",
318 "name": "Remove VNF from service data",
321 "x": 640.9380798339844,
322 "y": 342.2382507324219,
323 "z": "7bfb2dad.3744a4",
329 "id": "7caecd51.491534",
331 "name": "move vnf to remove one",
332 "xml": "<set>\n\t<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n\t<parameter name=\"service-data.vnfs.vnf[$tmpidx].\" value=\"$service-data.vnfs.vnf[$idx].\" />\n\t\n",
334 "x": 1351.3704414367676,
335 "y": 392.6905632019043,
336 "z": "7bfb2dad.3744a4",
342 "id": "d6cddc91.15c3a",
343 "type": "switchNode",
344 "name": "switch vnf_length",
345 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
348 "x": 604.0371704101562,
349 "y": 395.2462406158447,
350 "z": "7bfb2dad.3744a4",
359 "id": "f6c22b0f.9c87a8",
362 "xml": "<outcome value='1'>\n",
365 "x": 781.0372123718262,
366 "y": 355.91282749176025,
367 "z": "7bfb2dad.3744a4",
375 "id": "489f0baa.cc5474",
377 "name": "Remove vnfs",
378 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
380 "x": 944.7037086486816,
381 "y": 355.91292667388916,
382 "z": "7bfb2dad.3744a4",
388 "id": "3909fa08.1288e6",
391 "xml": "<outcome value='Other'>\n",
394 "x": 779.7039566040039,
395 "y": 439.2461004257202,
396 "z": "7bfb2dad.3744a4",
404 "id": "e0ce4e15.0694e",
406 "name": "set new vnf length",
407 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
409 "x": 1137.333396911621,
410 "y": 484.2461853027344,
411 "z": "7bfb2dad.3744a4",
417 "id": "1b0c5771.6e6a79",
419 "name": "Remove the last vnf in the list",
420 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length-1].\" value=\"\"/>\n\n",
422 "x": 1173.037052154541,
423 "y": 439.3572063446045,
424 "z": "7bfb2dad.3744a4",
430 "id": "1459edc6.fe9a92",
432 "name": "block : atomic",
433 "xml": "<block atomic=\"true\">",
436 "x": 948.3704452514648,
437 "y": 439.9127473831177,
438 "z": "7bfb2dad.3744a4",
448 "id": "d0626629.81a8c8",
449 "type": "switchNode",
450 "name": "switch current vnf-level-oper-status == PendingDelete",
451 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status == 'PendingDelete'`\">\n",
454 "x": 702.9999885559082,
455 "y": 181.00003623962402,
456 "z": "7bfb2dad.3744a4",
464 "id": "350728d2.6ecb38",
465 "type": "returnFailure",
466 "name": "return failure",
467 "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=\"Cannot delete a VNF in a Created state\" />\n",
469 "x": 1165.9999809265137,
471 "z": "7bfb2dad.3744a4",
477 "id": "a00c6468.40dc18",
478 "type": "switchNode",
479 "name": "switch current vf-module_length",
480 "xml": "<switch test=\"`$ctx.vnf-data.vf-modules.vf-module_length`\">\n",
483 "x": 653.3333320617676,
484 "y": 267.00000190734863,
485 "z": "7bfb2dad.3744a4",
495 "id": "e2c40a8f.28c2e8",
498 "xml": "<outcome value='0'>\n",
501 "x": 881.9999732971191,
502 "y": 223.6666431427002,
503 "z": "7bfb2dad.3744a4",
511 "id": "efcade27.df8a7",
514 "xml": "<outcome value=''>",
517 "x": 880.5713844299316,
518 "y": 265.0953006744385,
519 "z": "7bfb2dad.3744a4",
527 "id": "4056136c.450bfc",
534 "x": 1029.1428985595703,
535 "y": 245.0953016281128,
536 "z": "7bfb2dad.3744a4",
544 "id": "fdf813a0.7dec9",
547 "xml": "<outcome value='Other'>\n",
550 "x": 880.5714340209961,
551 "y": 306.52388858795166,
552 "z": "7bfb2dad.3744a4",
560 "id": "dbbd756.2a74488",
561 "type": "returnFailure",
562 "name": "return failure",
563 "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=\"Cannot delete the VNF because there are VFs defined\" />\n",
565 "x": 1047.7143287658691,
566 "y": 306.09527683258057,
567 "z": "7bfb2dad.3744a4",
573 "id": "aa414c85.4ebad",
574 "type": "outcomeTrue",
576 "xml": "<outcome value='false'>\n",
581 "z": "7bfb2dad.3744a4",
589 "id": "1aa89ef4.371e21",
591 "name": "delete Site in AAI",
592 "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf' \n key='generic-vnf.vnf-id = $prop.vnf-index' >",
597 "z": "7bfb2dad.3744a4",
605 "id": "e61bcb70.9a5e48",
612 "z": "7bfb2dad.3744a4",