3 "id": "3bf0dc2d.c14a24",
\r
7 "x": 162.50001525878906,
\r
8 "y": 72.41365623474121,
\r
9 "z": "8bfceefc.af82b",
\r
17 "id": "b55ba40.7ee5d6",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
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}'>",
\r
25 "x": 276.7857208251953,
\r
26 "y": 112.65176773071289,
\r
27 "z": "8bfceefc.af82b",
\r
35 "id": "7d6aee59.8eda9",
\r
37 "name": "method vnf-topology-operation-unassign",
\r
38 "xml": "<method rpc='vnf-topology-operation-unassign' mode='sync'>\n",
\r
41 "x": 258.9286422729492,
\r
42 "y": 152.4136562347412,
\r
43 "z": "8bfceefc.af82b",
\r
51 "id": "6fec93f5.86db2c",
\r
53 "name": "vnf-topology-operation-unassign",
\r
56 "x": 556.8448715209961,
\r
58 "z": "8bfceefc.af82b",
\r
62 "id": "9aaca2e2.beb78",
\r
63 "type": "switchNode",
\r
64 "name": "switch request-action",
\r
65 "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
\r
68 "x": 509.77383041381836,
\r
69 "y": 240.02079010009766,
\r
70 "z": "8bfceefc.af82b",
\r
79 "id": "abd8c261.c46b3",
\r
81 "name": "DeleteVnfInstance",
\r
82 "xml": "<outcome value='DeleteVnfInstance'>\n",
\r
85 "x": 730.1547660827637,
\r
86 "y": 215.49699878692627,
\r
87 "z": "8bfceefc.af82b",
\r
95 "id": "d2221c3e.90c3f",
\r
98 "xml": "<outcome value='Other'>\n",
\r
101 "x": 692.1547317504883,
\r
102 "y": 261.2113265991211,
\r
103 "z": "8bfceefc.af82b",
\r
111 "id": "a6409d9.036606",
\r
114 "xml": "<block>\n",
\r
118 "x": 915.0118942260742,
\r
119 "y": 215.49702835083008,
\r
120 "z": "8bfceefc.af82b",
\r
126 "id": "306935db.f49bda",
\r
127 "type": "returnFailure",
\r
128 "name": "return failure",
\r
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",
\r
131 "x": 932.1547393798828,
\r
132 "y": 261.2112846374512,
\r
133 "z": "8bfceefc.af82b",
\r
137 "id": "4d74d1bc.2ae89",
\r
139 "name": "block : atomic",
\r
140 "xml": "<block atomic=\"true\">",
\r
144 "x": 269.58336639404297,
\r
145 "y": 303.2470169067383,
\r
146 "z": "8bfceefc.af82b",
\r
155 "id": "4345ea8f.58f384",
\r
156 "type": "switchNode",
\r
157 "name": "switch vnf_length",
\r
158 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
161 "x": 498.3333206176758,
\r
162 "y": 359.49701499938965,
\r
163 "z": "8bfceefc.af82b",
\r
172 "id": "728fa904.537908",
\r
175 "xml": "<outcome value=''>\n",
\r
178 "x": 682.9166831970215,
\r
179 "y": 308.83031368255615,
\r
180 "z": "8bfceefc.af82b",
\r
188 "id": "ea2e0eca.99875",
\r
190 "name": "for each vnf",
\r
191 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
194 "x": 1021.2500038146973,
\r
195 "y": 388.49698543548584,
\r
196 "z": "8bfceefc.af82b",
\r
204 "id": "ff75cb52.105748",
\r
205 "type": "switchNode",
\r
206 "name": "switch this vnf-id == input vnf-id",
\r
207 "xml": "<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`' >\n",
\r
210 "x": 1276.2500915527344,
\r
211 "y": 388.16365337371826,
\r
212 "z": "8bfceefc.af82b",
\r
220 "id": "49e6f7a3.488758",
\r
221 "type": "outcomeTrue",
\r
223 "xml": "<outcome value='true'>\n",
\r
226 "x": 1514.5833778381348,
\r
227 "y": 387.163631439209,
\r
228 "z": "8bfceefc.af82b",
\r
236 "id": "d7731519.ea37c8",
\r
238 "name": "set vnf-index",
\r
239 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
241 "x": 1682.9165725708008,
\r
242 "y": 387.16365337371826,
\r
243 "z": "8bfceefc.af82b",
\r
247 "id": "59efadd9.34ff64",
\r
248 "type": "switchNode",
\r
249 "name": "switch vnf-index",
\r
250 "xml": "<switch test='`$vnf-index`'>\n",
\r
253 "x": 1031.2500114440918,
\r
254 "y": 456.16367626190186,
\r
255 "z": "8bfceefc.af82b",
\r
264 "id": "4275fe83.7bd96",
\r
267 "xml": "<outcome value=''>\n",
\r
270 "x": 1214.5832862854004,
\r
271 "y": 435.49698543548584,
\r
272 "z": "8bfceefc.af82b",
\r
280 "id": "e72eb007.b4761",
\r
281 "type": "returnSuccess",
\r
282 "name": "return success",
\r
283 "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",
\r
285 "x": 2001.8175811767578,
\r
286 "y": 1314.9729461669922,
\r
287 "z": "8bfceefc.af82b",
\r
291 "id": "ea9f2a97.ca1f08",
\r
293 "name": "for each vnf",
\r
294 "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
\r
297 "x": 2601.8189582824707,
\r
298 "y": 898.5644903182983,
\r
299 "z": "8bfceefc.af82b",
\r
307 "id": "f463cdaa.41559",
\r
309 "name": "Remove VNF from service data",
\r
312 "x": 1943.6204223632812,
\r
313 "y": 862.3146209716797,
\r
314 "z": "8bfceefc.af82b",
\r
318 "id": "97d940c.f7414c",
\r
320 "name": "move vnf to remove one",
\r
321 "xml": "<set>\n<parameter name=\"service-data.vnfs.vnf[$tmpidx].\" value=\"$service-data.vnfs.vnf[$idx].\" />\n\t\n",
\r
323 "x": 2932.0769996643066,
\r
324 "y": 935.9216842651367,
\r
325 "z": "8bfceefc.af82b",
\r
329 "id": "9db43d1a.80b5b",
\r
330 "type": "switchNode",
\r
331 "name": "switch vnf_length",
\r
332 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
335 "x": 2030.5766677856445,
\r
336 "y": 903.8940572738647,
\r
337 "z": "8bfceefc.af82b",
\r
346 "id": "9205be14.b6c51",
\r
349 "xml": "<outcome value='1'>\n",
\r
352 "x": 2207.5767097473145,
\r
353 "y": 864.5606441497803,
\r
354 "z": "8bfceefc.af82b",
\r
362 "id": "80c57b23.9a7b78",
\r
364 "name": "Remove vnfs",
\r
365 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
\r
367 "x": 2371.24320602417,
\r
368 "y": 864.5607433319092,
\r
369 "z": "8bfceefc.af82b",
\r
373 "id": "a23b009d.a038",
\r
376 "xml": "<outcome value='Other'>\n",
\r
379 "x": 2209.100601196289,
\r
380 "y": 945.0367832183838,
\r
381 "z": "8bfceefc.af82b",
\r
389 "id": "632aab75.bfd5f4",
\r
391 "name": "set new vnf length",
\r
392 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
\r
394 "x": 2621.373092651367,
\r
395 "y": 1037.4774322509766,
\r
396 "z": "8bfceefc.af82b",
\r
400 "id": "cc9aa5c.d39c258",
\r
402 "name": "Remove the last vnf in the list",
\r
403 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length - 1].\" value=\"\"/>\n\n",
\r
405 "x": 2657.076747894287,
\r
406 "y": 992.5884532928467,
\r
407 "z": "8bfceefc.af82b",
\r
411 "id": "9a322bdb.0d3758",
\r
413 "name": "block : atomic",
\r
414 "xml": "<block atomic=\"true\">",
\r
417 "x": 2374.909942626953,
\r
418 "y": 948.5605640411377,
\r
419 "z": "8bfceefc.af82b",
\r
429 "id": "422a0307.b6e26c",
\r
430 "type": "switchNode",
\r
431 "name": "switch current vf-module_length",
\r
432 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`\">\n",
\r
435 "x": 1405.4999160766602,
\r
436 "y": 677.8303089141846,
\r
437 "z": "8bfceefc.af82b",
\r
447 "id": "cb71008a.a8f54",
\r
450 "xml": "<outcome value='0'>\n",
\r
453 "x": 1634.1665573120117,
\r
454 "y": 634.4969501495361,
\r
455 "z": "8bfceefc.af82b",
\r
463 "id": "281b69c0.91b136",
\r
466 "xml": "<outcome value=''>",
\r
469 "x": 1632.7379684448242,
\r
470 "y": 675.9256076812744,
\r
471 "z": "8bfceefc.af82b",
\r
479 "id": "c599e4d6.59a018",
\r
482 "xml": "<block>\n",
\r
486 "x": 1781.309482574463,
\r
487 "y": 655.9256086349487,
\r
488 "z": "8bfceefc.af82b",
\r
494 "id": "b3e6a6da.0a0b88",
\r
497 "xml": "<outcome value='Other'>\n",
\r
500 "x": 1632.7380180358887,
\r
501 "y": 717.3541955947876,
\r
502 "z": "8bfceefc.af82b",
\r
510 "id": "46457f5b.3ef86",
\r
511 "type": "returnFailure",
\r
512 "name": "return failure",
\r
513 "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 VF modules defined\" />\n",
\r
515 "x": 1799.8809127807617,
\r
516 "y": 716.9255838394165,
\r
517 "z": "8bfceefc.af82b",
\r
521 "id": "1b063d0f.a0a6e3",
\r
523 "name": "call GENERIC-RESOURCE-API:naming-policy-generate-name",
\r
524 "xml": "<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n",
\r
527 "x": 2149.9602127075195,
\r
528 "y": 1258.7499952316284,
\r
529 "z": "8bfceefc.af82b",
\r
535 "id": "85b7a9d.afa5c58",
\r
537 "name": "set variables for deleting name",
\r
538 "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",
\r
540 "x": 2051.388832092285,
\r
541 "y": 1211.60706615448,
\r
542 "z": "8bfceefc.af82b",
\r
546 "id": "f601bfcd.e4487",
\r
548 "name": "block : atomic",
\r
549 "xml": "<block atomic=\"true\">",
\r
552 "x": 1765.6427841186523,
\r
553 "y": 1094.7024116516113,
\r
554 "z": "8bfceefc.af82b",
\r
565 "id": "9f240acf.f10968",
\r
567 "name": "call self-serve-vnf-forking-logic",
\r
568 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n",
\r
571 "x": 1389.7857284545898,
\r
572 "y": 904.7023048400879,
\r
573 "z": "8bfceefc.af82b",
\r
579 "id": "c939b04c.c627d",
\r
580 "type": "switchNode",
\r
581 "name": "switch ss.self-serve-flag",
\r
582 "xml": "<switch test=\"`$ss.self-serve-flag`\">\n",
\r
585 "x": 1372.4999465942383,
\r
586 "y": 1094.5594997406006,
\r
587 "z": "8bfceefc.af82b",
\r
596 "id": "7a49c72e.1fe9c8",
\r
597 "type": "outcomeFalse",
\r
599 "xml": "<outcome value='false'>\n",
\r
602 "x": 1588.4999465942383,
\r
603 "y": 1094.9880847930908,
\r
604 "z": "8bfceefc.af82b",
\r
612 "id": "4db0d0cc.fcf23",
\r
614 "name": "call self-serve-vnf-unassign",
\r
615 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-unassign' mode='sync' >\n",
\r
618 "x": 1804.214210510254,
\r
619 "y": 1410.4166460037231,
\r
620 "z": "8bfceefc.af82b",
\r
629 "id": "a8b8d4da.ba5e58",
\r
632 "xml": "<outcome value='failure'>\n",
\r
635 "x": 2011.9641952514648,
\r
636 "y": 1410.6666345596313,
\r
637 "z": "8bfceefc.af82b",
\r
645 "id": "58a86c05.a04eb4",
\r
646 "type": "returnFailure",
\r
647 "name": "return failure",
\r
648 "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",
\r
650 "x": 2177.5356216430664,
\r
651 "y": 1410.3095293045044,
\r
652 "z": "8bfceefc.af82b",
\r
656 "id": "1a3f330c.4838ed",
\r
659 "xml": "<outcome value='success'>\n",
\r
662 "x": 2016.5713691711426,
\r
663 "y": 1461.2221689224243,
\r
664 "z": "8bfceefc.af82b",
\r
672 "id": "ecc5218b.461db",
\r
673 "type": "outcomeTrue",
\r
675 "xml": "<outcome value='true'>\n",
\r
678 "x": 1589.7856254577637,
\r
679 "y": 1410.8452253341675,
\r
680 "z": "8bfceefc.af82b",
\r
688 "id": "46619b61.b2e6d4",
\r
689 "type": "get-resource",
\r
690 "name": "get-resource VF_MODEL",
\r
691 "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'>\n\n",
\r
694 "x": 1376.7856369018555,
\r
695 "y": 800.4166660308838,
\r
696 "z": "8bfceefc.af82b",
\r
705 "id": "db921505.1ecab8",
\r
708 "xml": "<outcome value='failure'>\n",
\r
711 "x": 1601.5713348388672,
\r
712 "y": 780.7975034713745,
\r
713 "z": "8bfceefc.af82b",
\r
721 "id": "2ad253ad.07e3dc",
\r
722 "type": "not-found",
\r
723 "name": "not-found",
\r
724 "xml": "<outcome value='not-found'>\n",
\r
727 "x": 1610.142765045166,
\r
728 "y": 825.0832166671753,
\r
729 "z": "8bfceefc.af82b",
\r
737 "id": "c42726a5.5f0838",
\r
739 "name": "Query is needed by forking logic",
\r
742 "x": 1353.9285202026367,
\r
743 "y": 761.8452005386353,
\r
744 "z": "8bfceefc.af82b",
\r
748 "id": "c8299496.706828",
\r
749 "type": "returnSuccess",
\r
750 "name": "return success",
\r
751 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",
\r
753 "x": 1371.2499885559082,
\r
754 "y": 434.49694538116455,
\r
755 "z": "8bfceefc.af82b",
\r
759 "id": "f32a75d4.e72c28",
\r
760 "type": "returnSuccess",
\r
761 "name": "return success",
\r
762 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",
\r
764 "x": 836.2499809265137,
\r
765 "y": 307.83032417297363,
\r
766 "z": "8bfceefc.af82b",
\r
770 "id": "23bd57ed.5c2f68",
\r
773 "xml": "<outcome value='Other'>\n",
\r
776 "x": 679.5834007263184,
\r
777 "y": 417.83028984069824,
\r
778 "z": "8bfceefc.af82b",
\r
786 "id": "c5c57fb4.bffa4",
\r
788 "name": "block : atomic",
\r
789 "xml": "<block atomic=\"true\">",
\r
792 "x": 837.9166374206543,
\r
793 "y": 417.8302993774414,
\r
794 "z": "8bfceefc.af82b",
\r
803 "id": "5d1e4a8b.33a764",
\r
805 "name": "block : atomic",
\r
806 "xml": "<block atomic=\"true\">",
\r
809 "x": 1060.4166412353516,
\r
810 "y": 843.2469615936279,
\r
811 "z": "8bfceefc.af82b",
\r
822 "id": "d296558f.79c2f8",
\r
825 "xml": "<outcome value='Other'>\n",
\r
828 "x": 1211.2500839233398,
\r
829 "y": 481.16366958618164,
\r
830 "z": "8bfceefc.af82b",
\r
838 "id": "168141b9.a5a37e",
\r
841 "xml": "<block>\n",
\r
845 "x": 2738.6907691955566,
\r
846 "y": 897.5328073501587,
\r
847 "z": "8bfceefc.af82b",
\r
857 "id": "5253081e.499f08",
\r
859 "name": "set tmpidx",
\r
860 "xml": "<set>\n<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n",
\r
862 "x": 2888.6904487609863,
\r
863 "y": 854.1993503570557,
\r
864 "z": "8bfceefc.af82b",
\r
868 "id": "4cab7b3.6b48784",
\r
870 "name": "erase entry at tmpidx",
\r
871 "xml": "<set>\n<parameter name=\"service-data.vnfs.vnf[$tmpidx].\" value=\"\" />\n\t\n",
\r
873 "x": 2923.6903648376465,
\r
874 "y": 895.8660793304443,
\r
875 "z": "8bfceefc.af82b",
\r
879 "id": "6896f0e8.60f06",
\r
882 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"`'No model found for VNF customization UUID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\"/>",
\r
885 "x": 1758.4999923706055,
\r
886 "y": 825.7500009536743,
\r
887 "z": "8bfceefc.af82b",
\r
893 "id": "b4171d9d.62fd",
\r
896 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"Error reading VF_MODEL table\"/>",
\r
899 "x": 1741.4999923706055,
\r
900 "y": 780.7500009536743,
\r
901 "z": "8bfceefc.af82b",
\r