3 "id": "8760ee4d.bacba",
8 "y": 101.16365623474121,
17 "id": "a9ae8cec.2004d",
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": 235.53570556640625,
26 "y": 141.4017677307129,
27 "z": "b679ce73.4725c",
35 "id": "3dac1de6.47703a",
37 "name": "method vnf-topology-operation-unassign",
38 "xml": "<method rpc='vnf-topology-operation-unassign' mode='sync'>\n",
41 "x": 217.67862701416016,
42 "y": 181.1636562347412,
43 "z": "b679ce73.4725c",
51 "id": "287c593d.cb7aa6",
53 "name": "vnf-topology-operation-unassign",
56 "x": 515.594856262207,
58 "z": "b679ce73.4725c",
62 "id": "da8ed21c.290538",
64 "name": "switch request-action",
65 "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
68 "x": 524.773811340332,
69 "y": 280.0207939147949,
70 "z": "b679ce73.4725c",
79 "id": "50a65b42.041c0c",
81 "name": "DeleteVnfInstance",
82 "xml": "<outcome value='DeleteVnfInstance'>\n",
85 "x": 778.4881057739258,
86 "y": 257.16367530822754,
87 "z": "b679ce73.4725c",
95 "id": "85a5b069.51ff2",
98 "xml": "<outcome value='Other'>\n",
101 "x": 740.4880714416504,
102 "y": 302.87800312042236,
103 "z": "b679ce73.4725c",
111 "id": "93688742.285b9",
118 "x": 963.3452339172363,
119 "y": 257.16370487213135,
120 "z": "b679ce73.4725c",
126 "id": "bfa2ad9d.0bdb1",
127 "type": "returnFailure",
128 "name": "return failure",
129 "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=\"If svc-action is 'deactivate' then request-action must be 'DeleteVnfInstance'\" />\n",
131 "x": 980.4880790710449,
132 "y": 302.87796115875244,
133 "z": "b679ce73.4725c",
137 "id": "8aa731f2.f78648",
139 "name": "block : atomic",
140 "xml": "<block atomic=\"true\">",
143 "x": 199.58333587646484,
144 "y": 574.4969902038574,
145 "z": "b679ce73.4725c",
160 "id": "9b073e31.2b9548",
161 "type": "switchNode",
162 "name": "switch vnf_length",
163 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
166 "x": 511.24998474121094,
167 "y": 349.49701976776123,
168 "z": "b679ce73.4725c",
176 "id": "835264a.de01c98",
179 "xml": "<outcome value=''>\n",
182 "x": 697.9166641235352,
183 "y": 348.8303174972534,
184 "z": "b679ce73.4725c",
192 "id": "43688a60.e15ccc",
193 "type": "returnFailure",
194 "name": "return failure",
195 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n",
197 "x": 879.5832901000977,
198 "y": 348.8303174972534,
199 "z": "b679ce73.4725c",
203 "id": "230a1984.7eb2de",
205 "name": "for each vnf",
206 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
209 "x": 492.91666412353516,
210 "y": 397.83033752441406,
211 "z": "b679ce73.4725c",
219 "id": "11f49056.b848d",
220 "type": "switchNode",
221 "name": "switch this vnf-id == input vnf-id",
222 "xml": "<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`' >\n",
225 "x": 747.9167518615723,
226 "y": 396.4970054626465,
227 "z": "b679ce73.4725c",
235 "id": "2be53867.ef76e8",
236 "type": "outcomeTrue",
238 "xml": "<outcome value='true'>\n",
241 "x": 986.2500381469727,
242 "y": 395.4969835281372,
243 "z": "b679ce73.4725c",
251 "id": "e4f701ed.1bfb3",
253 "name": "set vnf-index",
254 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
256 "x": 1154.5832328796387,
257 "y": 395.4970054626465,
258 "z": "b679ce73.4725c",
262 "id": "1570abd0.28319c",
263 "type": "switchNode",
264 "name": "switch vnf-index",
265 "xml": "<switch test='`$vnf-index`'>\n",
268 "x": 504.5833282470703,
269 "y": 444.4970073699951,
270 "z": "b679ce73.4725c",
278 "id": "29a81e7f.f25dfa",
281 "xml": "<outcome value=''>\n",
284 "x": 686.2499465942383,
285 "y": 443.83033752441406,
286 "z": "b679ce73.4725c",
294 "id": "f6710847.bb5d",
295 "type": "returnFailure",
296 "name": "return failure",
297 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"'Could not find VNF ' + $vnf-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'\" />\n",
299 "x": 852.916633605957,
300 "y": 443.49696350097656,
301 "z": "b679ce73.4725c",
305 "id": "8ffa54f2.b78158",
306 "type": "returnSuccess",
307 "name": "return success",
308 "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",
310 "x": 1154.3770751953125,
311 "y": 1079.0205762386322,
312 "z": "b679ce73.4725c",
316 "id": "54c41547.567a8c",
318 "name": "for each vnf",
319 "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
322 "x": 1674.8546524047852,
323 "y": 824.576345205307,
324 "z": "b679ce73.4725c",
332 "id": "3f28287f.120ca",
334 "name": "Remove VNF from service data",
337 "x": 1117.0134201049805,
338 "y": 783.1479976177216,
339 "z": "b679ce73.4725c",
343 "id": "c8a587bb.5748d8",
345 "name": "move vnf to remove one",
346 "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",
348 "x": 1908.445785522461,
349 "y": 823.6002967357635,
350 "z": "b679ce73.4725c",
354 "id": "c879ce9c.9d72a",
355 "type": "switchNode",
356 "name": "switch vnf_length",
357 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
360 "x": 1161.1125144958496,
361 "y": 826.155974149704,
362 "z": "b679ce73.4725c",
371 "id": "9f8acc10.c48f28",
374 "xml": "<outcome value='1'>\n",
377 "x": 1338.1125564575195,
378 "y": 786.8225610256195,
379 "z": "b679ce73.4725c",
387 "id": "4a1274f6.357d5c",
389 "name": "Remove vnfs",
390 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
392 "x": 1501.779052734375,
393 "y": 786.8226602077484,
394 "z": "b679ce73.4725c",
398 "id": "901a2ab8.48409",
401 "xml": "<outcome value='Other'>\n",
404 "x": 1339.6364479064941,
405 "y": 867.298700094223,
406 "z": "b679ce73.4725c",
414 "id": "cd8767d7.87479",
416 "name": "set new vnf length",
417 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
419 "x": 1694.4087409973145,
420 "y": 915.1559188365936,
421 "z": "b679ce73.4725c",
425 "id": "e2f2c18b.32612",
427 "name": "Remove the last vnf in the list",
428 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length-1].\" value=\"\"/>\n\n",
430 "x": 1730.1123962402344,
431 "y": 870.2669398784637,
432 "z": "b679ce73.4725c",
436 "id": "209c0646.4c650a",
438 "name": "block : atomic",
439 "xml": "<block atomic=\"true\">",
442 "x": 1505.4457893371582,
443 "y": 870.8224809169769,
444 "z": "b679ce73.4725c",
454 "id": "793a50a1.0d6658",
455 "type": "switchNode",
456 "name": "switch current vnf-level-oper-status == Created",
457 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status == 'Created'`\">\n",
460 "x": 603.9166412353516,
461 "y": 490.1636772155762,
462 "z": "b679ce73.4725c",
470 "id": "33d47343.98cc6c",
471 "type": "outcomeFalse",
473 "xml": "<outcome value='true'>\n",
476 "x": 908.5833587646484,
477 "y": 489.8303165435791,
478 "z": "b679ce73.4725c",
486 "id": "6c7a81eb.1c4e68",
487 "type": "returnFailure",
488 "name": "return failure",
489 "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",
491 "x": 1066.916633605957,
492 "y": 489.16364097595215,
493 "z": "b679ce73.4725c",
497 "id": "d811a825.e4506",
498 "type": "switchNode",
499 "name": "switch current vf-module_length",
500 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`\">\n",
503 "x": 554.2499847412109,
504 "y": 576.1636428833008,
505 "z": "b679ce73.4725c",
515 "id": "973bc91a.8f52e8",
518 "xml": "<outcome value='0'>\n",
521 "x": 782.9166259765625,
522 "y": 532.8302841186523,
523 "z": "b679ce73.4725c",
531 "id": "d0ced9dc.3f8238",
534 "xml": "<outcome value=''>",
537 "x": 781.488037109375,
538 "y": 574.2589416503906,
539 "z": "b679ce73.4725c",
547 "id": "cb334531.9a038",
554 "x": 930.0595512390137,
555 "y": 554.2589426040649,
556 "z": "b679ce73.4725c",
562 "id": "2b82476d.deb568",
565 "xml": "<outcome value='Other'>\n",
568 "x": 781.4880867004395,
569 "y": 615.6875295639038,
570 "z": "b679ce73.4725c",
578 "id": "7cec3149.76d4d",
579 "type": "returnFailure",
580 "name": "return failure",
581 "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",
583 "x": 948.6309814453125,
584 "y": 615.2589178085327,
585 "z": "b679ce73.4725c",
589 "id": "88d07f29.c5dc6",
591 "name": "call GENERIC-RESOURCE-API:naming-policy-generate-name",
592 "xml": "<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n",
595 "x": 1302.5197067260742,
596 "y": 1022.7976253032684,
597 "z": "b679ce73.4725c",
603 "id": "b74c2ae7.ae87a",
605 "name": "set variables for deleting name",
606 "xml": "<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n",
608 "x": 1203.9483261108398,
609 "y": 975.65469622612,
610 "z": "b679ce73.4725c",
614 "id": "8a7b5d97.e8b09",
616 "name": "check removed with US622450",
619 "x": 1274.1070098876953,
620 "y": 488.75002670288086,
621 "z": "b679ce73.4725c",
625 "id": "484f70af.519a08",
627 "name": "block : atomic",
628 "xml": "<block atomic=\"true\">",
631 "x": 911.5357208251953,
632 "y": 908.7500398159027,
633 "z": "b679ce73.4725c",
644 "id": "91a3386a.faef3",
646 "name": "call self-serve-vnf-forking-logic",
647 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n",
650 "x": 548.3572998046875,
651 "y": 722.4999084472656,
652 "z": "b679ce73.4725c",
658 "id": "12606f3f.12bf41",
659 "type": "switchNode",
660 "name": "switch ss.self-serve-flag",
661 "xml": "<switch test=\"`$ss.self-serve-flag`\">\n",
664 "x": 518.3928833007812,
665 "y": 908.607127904892,
666 "z": "b679ce73.4725c",
675 "id": "69816793.5f1658",
676 "type": "outcomeFalse",
678 "xml": "<outcome value='false'>\n",
681 "x": 734.3928833007812,
682 "y": 909.0357129573822,
683 "z": "b679ce73.4725c",
691 "id": "f6d24b45.0d4258",
693 "name": "call self-serve-vnf-unassign",
694 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-unassign' mode='sync' >\n",
697 "x": 950.1071472167969,
698 "y": 1224.4642741680145,
699 "z": "b679ce73.4725c",
708 "id": "b5167dbe.7d8bf8",
711 "xml": "<outcome value='failure'>\n",
714 "x": 1157.8571319580078,
715 "y": 1224.7142627239227,
716 "z": "b679ce73.4725c",
724 "id": "9c54474e.6dc798",
725 "type": "returnFailure",
726 "name": "return failure",
727 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error while unassigning self-serve resources with error: '+ $error-message`\" />\n",
729 "x": 1323.4285583496094,
730 "y": 1224.3571574687958,
731 "z": "b679ce73.4725c",
735 "id": "a7770dc.3f6cef",
738 "xml": "<outcome value='success'>\n",
741 "x": 1162.4643058776855,
742 "y": 1275.2697970867157,
743 "z": "b679ce73.4725c",
751 "id": "f989b85.ea14548",
752 "type": "returnSuccess",
753 "name": "return success",
754 "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",
756 "x": 1331.0357208251953,
757 "y": 1274.8412387371063,
758 "z": "b679ce73.4725c",
762 "id": "77171191.032938",
763 "type": "outcomeTrue",
765 "xml": "<outcome value='true'>\n",
768 "x": 735.6785621643066,
769 "y": 1224.8928534984589,
770 "z": "b679ce73.4725c",
778 "id": "a2ededb3.20eb68",
779 "type": "get-resource",
780 "name": "get VF_MODEL.sdnc_model_name",
781 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>",
786 "z": "b679ce73.4725c",