3 "id": "96001a8c.4d0748",
7 "x": 101.66666412353516,
8 "y": 81.66666412353516,
9 "z": "ff974913.290918",
17 "id": "7c64b7f3.ff25c8",
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": 176.9523696899414,
26 "y": 121.90477561950684,
27 "z": "ff974913.290918",
35 "id": "e77f5801.4ec068",
37 "name": "method vnf-topology-operation-unassign",
38 "xml": "<method rpc='vnf-topology-operation-unassign' mode='sync'>\n",
41 "x": 200.0952911376953,
42 "y": 161.66666412353516,
43 "z": "ff974913.290918",
51 "id": "97471b5d.533f18",
53 "name": "vnf-topology-operation-unassign",
56 "x": 496.0115203857422,
57 "y": 29.253007888793945,
58 "z": "ff974913.290918",
62 "id": "7ffc5961.3c2bf8",
64 "name": "switch request-action",
65 "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
68 "x": 505.1904754638672,
69 "y": 260.52380180358887,
70 "z": "ff974913.290918",
79 "id": "88a6a6b8.f339b8",
81 "name": "DeleteVnfInstance",
82 "xml": "<outcome value='DeleteVnfInstance'>\n",
85 "x": 758.9047698974609,
86 "y": 237.66668319702148,
87 "z": "ff974913.290918",
95 "id": "bae1be9d.b2504",
98 "xml": "<outcome value='Other'>\n",
101 "x": 720.9047355651855,
102 "y": 283.3810110092163,
103 "z": "ff974913.290918",
111 "id": "69c905eb.131a1c",
118 "x": 943.7618980407715,
119 "y": 237.6667127609253,
120 "z": "ff974913.290918",
126 "id": "3461fef6.36d722",
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": 960.9047431945801,
132 "y": 283.3809690475464,
133 "z": "ff974913.290918",
137 "id": "3346143.6ec13ec",
139 "name": "block : atomic",
140 "xml": "<block atomic=\"true\">",
144 "y": 554.9999980926514,
145 "z": "ff974913.290918",
160 "id": "c3ee1f54.e9c49",
161 "type": "switchNode",
162 "name": "switch vnf_length",
163 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
166 "x": 491.6666488647461,
167 "y": 330.0000276565552,
168 "z": "ff974913.290918",
176 "id": "14653468.3f5d1c",
179 "xml": "<outcome value=''>\n",
182 "x": 678.3333282470703,
183 "y": 329.33332538604736,
184 "z": "ff974913.290918",
192 "id": "15374e8a.9b3331",
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": 859.9999542236328,
198 "y": 329.33332538604736,
199 "z": "ff974913.290918",
203 "id": "6b1e8937.811c58",
205 "name": "for each vnf",
206 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
209 "x": 473.3333282470703,
210 "y": 378.333345413208,
211 "z": "ff974913.290918",
219 "id": "ac39155f.e69998",
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": 728.3334159851074,
226 "y": 377.00001335144043,
227 "z": "ff974913.290918",
235 "id": "2a9affc9.05758",
236 "type": "outcomeTrue",
238 "xml": "<outcome value='true'>\n",
241 "x": 966.6667022705078,
242 "y": 375.99999141693115,
243 "z": "ff974913.290918",
251 "id": "f089091c.aad928",
253 "name": "set vnf-index",
254 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
256 "x": 1134.9998970031738,
257 "y": 376.00001335144043,
258 "z": "ff974913.290918",
262 "id": "796a94e1.89abac",
263 "type": "switchNode",
264 "name": "switch vnf-index",
265 "xml": "<switch test='`$vnf-index`'>\n",
268 "x": 484.99999237060547,
269 "y": 425.00001525878906,
270 "z": "ff974913.290918",
278 "id": "7c43e234.9e600c",
281 "xml": "<outcome value=''>\n",
284 "x": 666.6666107177734,
285 "y": 424.333345413208,
286 "z": "ff974913.290918",
294 "id": "54a44960.3d1bc8",
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": 833.3332977294922,
300 "y": 423.9999713897705,
301 "z": "ff974913.290918",
305 "id": "6f08ad34.331214",
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": 476.3333168029785,
311 "y": 843.3332319259644,
312 "z": "ff974913.290918",
316 "id": "28425fad.bcfa3",
318 "name": "for each vnf",
319 "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
322 "x": 999.1126251220703,
323 "y": 683.3332605361938,
324 "z": "ff974913.290918",
332 "id": "fcd23488.435248",
334 "name": "Remove VNF from service data",
337 "x": 441.2713928222656,
338 "y": 641.9049129486084,
339 "z": "ff974913.290918",
343 "id": "95eae07b.ee605",
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": 1232.703758239746,
349 "y": 682.3572120666504,
350 "z": "ff974913.290918",
354 "id": "51b5c082.75d5f",
355 "type": "switchNode",
356 "name": "switch vnf_length",
357 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
360 "x": 485.37048721313477,
361 "y": 684.9128894805908,
362 "z": "ff974913.290918",
371 "id": "7b55138b.dcab3c",
374 "xml": "<outcome value='1'>\n",
377 "x": 662.3705291748047,
378 "y": 645.5794763565063,
379 "z": "ff974913.290918",
387 "id": "4cc25dc3.e0aa74",
389 "name": "Remove vnfs",
390 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
392 "x": 826.0370254516602,
393 "y": 645.5795755386353,
394 "z": "ff974913.290918",
398 "id": "75e73554.80932c",
401 "xml": "<outcome value='Other'>\n",
404 "x": 661.0372734069824,
405 "y": 728.9127492904663,
406 "z": "ff974913.290918",
414 "id": "9a214120.4a1eb",
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": 1018.6667137145996,
420 "y": 773.9128341674805,
421 "z": "ff974913.290918",
425 "id": "4989e0b1.ae7b3",
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": 1054.3703689575195,
431 "y": 729.0238552093506,
432 "z": "ff974913.290918",
436 "id": "ac4d3a04.d29a88",
438 "name": "block : atomic",
439 "xml": "<block atomic=\"true\">",
442 "x": 829.7037620544434,
443 "y": 729.5793962478638,
444 "z": "ff974913.290918",
454 "id": "9a9f9c4c.fbd22",
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": 584.3333053588867,
461 "y": 470.6666851043701,
462 "z": "ff974913.290918",
470 "id": "11283b53.5e5e25",
471 "type": "outcomeFalse",
473 "xml": "<outcome value='true'>\n",
476 "x": 889.0000228881836,
477 "y": 470.33332443237305,
478 "z": "ff974913.290918",
486 "id": "54f5d0c9.b7a0e",
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": 1047.3332977294922,
492 "y": 469.6666488647461,
493 "z": "ff974913.290918",
497 "id": "f989a9a8.a235a8",
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": 534.6666488647461,
504 "y": 556.6666507720947,
505 "z": "ff974913.290918",
515 "id": "5339c0a3.6e70e",
518 "xml": "<outcome value='0'>\n",
521 "x": 763.3332901000977,
522 "y": 513.3332920074463,
523 "z": "ff974913.290918",
531 "id": "4bffbedb.077b6",
534 "xml": "<outcome value=''>",
537 "x": 761.9047012329102,
538 "y": 554.7619495391846,
539 "z": "ff974913.290918",
547 "id": "8ae2c8.5df55d38",
554 "x": 910.4762153625488,
555 "y": 534.7619504928589,
556 "z": "ff974913.290918",
562 "id": "58060ac1.258e84",
565 "xml": "<outcome value='Other'>\n",
568 "x": 761.9047508239746,
569 "y": 596.1905374526978,
570 "z": "ff974913.290918",
578 "id": "90982233.8ef03",
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": 929.0476455688477,
584 "y": 595.7619256973267,
585 "z": "ff974913.290918",