3 "id": "44848463.9c03cc",
\r
7 "x": 142.85713958740234,
\r
8 "y": 84.91365146636963,
\r
9 "z": "f1a3b581.3496c8",
\r
17 "id": "f14302be.ebaf1",
\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": 257.1428451538086,
\r
26 "y": 125.15176296234131,
\r
27 "z": "f1a3b581.3496c8",
\r
35 "id": "153fc0f1.cb87df",
\r
37 "name": "method pnf-topology-operation-unassign",
\r
38 "xml": "<method rpc='pnf-topology-operation-unassign' mode='sync'>\n",
\r
41 "x": 265.00006103515625,
\r
42 "y": 177.7707920074463,
\r
43 "z": "f1a3b581.3496c8",
\r
51 "id": "99b1e8a8.435958",
\r
53 "name": "pnf-topology-operation-unassign",
\r
56 "x": 618.6305541992188,
\r
57 "y": 65.35713768005371,
\r
58 "z": "f1a3b581.3496c8",
\r
62 "id": "b8803272.ab828",
\r
63 "type": "switchNode",
\r
64 "name": "switch request-action",
\r
65 "xml": "<switch test='`$pnf-topology-operation-input.request-information.request-action`'>\n",
\r
68 "x": 547.2738151550293,
\r
69 "y": 312.52079010009766,
\r
70 "z": "f1a3b581.3496c8",
\r
79 "id": "dc693389.c0655",
\r
81 "name": "DeletePnfInstance",
\r
82 "xml": "<outcome value='DeletePnfInstance'>\n",
\r
85 "x": 767.6547508239746,
\r
86 "y": 287.99699878692627,
\r
87 "z": "f1a3b581.3496c8",
\r
95 "id": "1ad46da6.a11c82",
\r
98 "xml": "<outcome value='Other'>\n",
\r
101 "x": 729.6547164916992,
\r
102 "y": 333.7113265991211,
\r
103 "z": "f1a3b581.3496c8",
\r
111 "id": "67e9ef57.3e2e3",
\r
114 "xml": "<block>\n",
\r
118 "x": 952.5118789672852,
\r
119 "y": 287.9970283508301,
\r
120 "z": "f1a3b581.3496c8",
\r
126 "id": "3d7b589b.6788d8",
\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 'unassign' then request-action must be 'DeletePnfInstance'\" />\n",
\r
131 "x": 969.6547241210938,
\r
132 "y": 333.7112846374512,
\r
133 "z": "f1a3b581.3496c8",
\r
137 "id": "b956be40.069de",
\r
139 "name": "block : atomic",
\r
140 "xml": "<block atomic=\"true\">",
\r
144 "x": 307.0833511352539,
\r
145 "y": 375.7470169067383,
\r
146 "z": "f1a3b581.3496c8",
\r
155 "id": "472a3863.cadb08",
\r
156 "type": "switchNode",
\r
157 "name": "switch pnf_length",
\r
158 "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",
\r
161 "x": 535.8333053588867,
\r
162 "y": 431.99701499938965,
\r
163 "z": "f1a3b581.3496c8",
\r
172 "id": "30e6e945.388c56",
\r
175 "xml": "<outcome value=''>\n",
\r
178 "x": 720.4166679382324,
\r
179 "y": 381.33031368255615,
\r
180 "z": "f1a3b581.3496c8",
\r
188 "id": "ac223b7b.327ae8",
\r
190 "name": "for each pnf",
\r
191 "xml": "<for index='idx' start='0' end='`$service-data.pnfs.pnf_length`' >\n",
\r
194 "x": 1058.7499885559082,
\r
195 "y": 460.99698543548584,
\r
196 "z": "f1a3b581.3496c8",
\r
204 "id": "863b8b5d.b74bd8",
\r
205 "type": "switchNode",
\r
206 "name": "switch this pnf-id == input pnf-id",
\r
207 "xml": "<switch test='`$service-data.pnfs.pnf[$idx].pnf-id == $pnf-topology-operation-input.pnf-details.pnf-id`' >\n",
\r
210 "x": 1313.7500762939453,
\r
211 "y": 460.66365337371826,
\r
212 "z": "f1a3b581.3496c8",
\r
220 "id": "1a869d86.029822",
\r
221 "type": "outcomeTrue",
\r
223 "xml": "<outcome value='true'>\n",
\r
226 "x": 1552.0833625793457,
\r
227 "y": 459.663631439209,
\r
228 "z": "f1a3b581.3496c8",
\r
236 "id": "89db8fa1.fbfb7",
\r
238 "name": "set pnf-index",
\r
239 "xml": "<set>\n<parameter name='pnf-index' value='`$idx`' />\n",
\r
241 "x": 1720.4165573120117,
\r
242 "y": 459.66365337371826,
\r
243 "z": "f1a3b581.3496c8",
\r
247 "id": "91f7c5d2.aec7c8",
\r
248 "type": "switchNode",
\r
249 "name": "switch pnf-index",
\r
250 "xml": "<switch test='`$pnf-index`'>\n",
\r
253 "x": 1068.7499961853027,
\r
254 "y": 528.6636762619019,
\r
255 "z": "f1a3b581.3496c8",
\r
264 "id": "a73b88c1.d4a938",
\r
267 "xml": "<outcome value=''>\n",
\r
270 "x": 1252.0832710266113,
\r
271 "y": 507.99698543548584,
\r
272 "z": "f1a3b581.3496c8",
\r
280 "id": "2f8817c9.6ff968",
\r
282 "name": "for each pnf",
\r
283 "xml": "<for index='idx' start='`$pnf-index + 1`' end='`$service-data.pnfs.pnf_length`' >\n",
\r
286 "x": 1840.7474479675293,
\r
287 "y": 816.2073278427124,
\r
288 "z": "f1a3b581.3496c8",
\r
296 "id": "ffb94216.e342d",
\r
298 "name": "Remove PNF from service data",
\r
301 "x": 1192.5489654541016,
\r
302 "y": 874.8146324157715,
\r
303 "z": "f1a3b581.3496c8",
\r
307 "id": "1e58255a.651e5b",
\r
309 "name": "move pnf to remove one",
\r
310 "xml": "<set>\n<parameter name=\"service-data.pnfs.pnf[$tmpidx].\" value=\"$service-data.pnfs.pnf[$idx].\" />\n\t\n",
\r
312 "x": 2229.576835632324,
\r
313 "y": 874.1359367370605,
\r
314 "z": "f1a3b581.3496c8",
\r
318 "id": "360a75d1.d30c7a",
\r
319 "type": "switchNode",
\r
320 "name": "switch pnf_length",
\r
321 "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",
\r
324 "x": 1269.5051574707031,
\r
325 "y": 823.5368947982788,
\r
326 "z": "f1a3b581.3496c8",
\r
335 "id": "aaa45fd.40e56a",
\r
338 "xml": "<outcome value='1'>\n",
\r
341 "x": 1457.9338836669922,
\r
342 "y": 752.7748603820801,
\r
343 "z": "f1a3b581.3496c8",
\r
351 "id": "5f59c80c.833558",
\r
353 "name": "Remove pnfs",
\r
354 "xml": "<set>\n\t<parameter name=\"service-data.pnfs.\" value=\"\"/>\n\n",
\r
356 "x": 1621.6003799438477,
\r
357 "y": 752.774959564209,
\r
358 "z": "f1a3b581.3496c8",
\r
362 "id": "1dac6983.f86bf6",
\r
365 "xml": "<outcome value='Other'>\n",
\r
368 "x": 1458.0290985107422,
\r
369 "y": 898.6796436309814,
\r
370 "z": "f1a3b581.3496c8",
\r
378 "id": "4e1f1b16.7137e4",
\r
380 "name": "set new pnf length",
\r
381 "xml": "<set>\n\t<parameter name=\"service-data.pnfs.pnf_length\" value=\"`$service-data.pnfs.pnf_length - 1`\"/>\n\n\t\n",
\r
383 "x": 1863.1589050292969,
\r
384 "y": 988.548994064331,
\r
385 "z": "f1a3b581.3496c8",
\r
389 "id": "30dd49ff.6bcb66",
\r
391 "name": "Remove the last pnf in the list",
\r
392 "xml": "<set>\n\t<parameter name=\"service-data.pnfs.pnf[$service-data.pnfs.pnf_length - 1].\" value=\"\"/>\n\n",
\r
394 "x": 1900.291259765625,
\r
395 "y": 930.8027439117432,
\r
396 "z": "f1a3b581.3496c8",
\r
400 "id": "52f2f529.abde7c",
\r
402 "name": "block : atomic",
\r
403 "xml": "<block atomic=\"true\">",
\r
406 "x": 1623.8384399414062,
\r
407 "y": 898.2034244537354,
\r
408 "z": "f1a3b581.3496c8",
\r
418 "id": "13e0a554.21a0db",
\r
420 "name": "call self-serve-pnf-unassign",
\r
421 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-unassign' mode='sync' >\n",
\r
424 "x": 825.9999084472656,
\r
425 "y": 940.059440612793,
\r
426 "z": "f1a3b581.3496c8",
\r
435 "id": "3f91ac2d.0f5594",
\r
438 "xml": "<outcome value='failure'>\n",
\r
441 "x": 1065.1784286499023,
\r
442 "y": 1058.88090133667,
\r
443 "z": "f1a3b581.3496c8",
\r
451 "id": "35976213.e5e2de",
\r
452 "type": "returnFailure",
\r
453 "name": "return failure",
\r
454 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error while unassigning self-serve pnf resources with error: '+ $error-message`\" />\n",
\r
456 "x": 1230.749855041504,
\r
457 "y": 1058.523796081543,
\r
458 "z": "f1a3b581.3496c8",
\r
462 "id": "a584b92f.61d548",
\r
465 "xml": "<outcome value='success'>\n",
\r
468 "x": 1079.7855987548828,
\r
469 "y": 823.7221164703369,
\r
470 "z": "f1a3b581.3496c8",
\r
478 "id": "3f8e107f.398f6",
\r
479 "type": "returnSuccess",
\r
480 "name": "return success",
\r
481 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",
\r
483 "x": 1408.7499732971191,
\r
484 "y": 506.99694538116455,
\r
485 "z": "f1a3b581.3496c8",
\r
489 "id": "4eb21415.9f088c",
\r
490 "type": "returnSuccess",
\r
491 "name": "return success",
\r
492 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",
\r
494 "x": 873.7499656677246,
\r
495 "y": 380.33032417297363,
\r
496 "z": "f1a3b581.3496c8",
\r
500 "id": "db658b73.14d608",
\r
503 "xml": "<outcome value='Other'>\n",
\r
506 "x": 717.0833854675293,
\r
507 "y": 490.33028984069824,
\r
508 "z": "f1a3b581.3496c8",
\r
516 "id": "417ce772.8c6608",
\r
518 "name": "block : atomic",
\r
519 "xml": "<block atomic=\"true\">",
\r
522 "x": 875.4166221618652,
\r
523 "y": 490.3302993774414,
\r
524 "z": "f1a3b581.3496c8",
\r
533 "id": "d339953b.0b9398",
\r
535 "name": "block : atomic",
\r
536 "xml": "<block atomic=\"true\">",
\r
539 "x": 580.773738861084,
\r
540 "y": 940.4612274169922,
\r
541 "z": "f1a3b581.3496c8",
\r
549 "id": "61ae7a9f.6fa4c4",
\r
552 "xml": "<outcome value='Other'>\n",
\r
555 "x": 1248.7500686645508,
\r
556 "y": 553.6636695861816,
\r
557 "z": "f1a3b581.3496c8",
\r
565 "id": "fbaab91f.ad4ac8",
\r
568 "xml": "<block>\n",
\r
572 "x": 2006.1906929016113,
\r
573 "y": 815.7470827102661,
\r
574 "z": "f1a3b581.3496c8",
\r
584 "id": "dcefa387.6f6e2",
\r
586 "name": "set tmpidx",
\r
587 "xml": "<set>\n<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n",
\r
589 "x": 2180.190361022949,
\r
590 "y": 756.2707481384277,
\r
591 "z": "f1a3b581.3496c8",
\r
595 "id": "1b980290.5651ad",
\r
597 "name": "erase entry at tmpidx",
\r
598 "xml": "<set>\n<parameter name=\"service-data.pnfs.pnf[$tmpidx].\" value=\"\" />\n\t\n",
\r
600 "x": 2218.333023071289,
\r
601 "y": 814.0803489685059,
\r
602 "z": "f1a3b581.3496c8",
\r