3 "id": "41c5caea.9adc34",
7 "x": 95.54763793945312,
8 "y": 109.41365623474121,
9 "z": "67a3081a.032478",
17 "id": "cc320d31.bccdf",
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}'>",
26 "y": 149.6517686843872,
27 "z": "67a3081a.032478",
35 "id": "82b10f50.5d8e8",
37 "name": "network-topology-operation",
38 "xml": "<method rpc='network-topology-operation' mode='sync'>\n",
41 "x": 173.97626495361328,
42 "y": 189.4136505126953,
43 "z": "67a3081a.032478",
51 "id": "17ece3ab.35321c",
53 "name": " NETWORK-TOPOLOGY-OPERATION ",
56 "x": 489.89249420166016,
58 "z": "67a3081a.032478",
62 "id": "bf4f5344.1024c8",
64 "name": "block : atomic",
65 "xml": "<block atomic=\"true\">",
68 "x": 209.54766845703125,
69 "y": 272.85713958740234,
70 "z": "67a3081a.032478",
81 "id": "d50c5a2a.c0cea",
82 "type": "returnSuccess",
83 "name": "return success",
84 "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",
86 "x": 439.6310272216797,
87 "y": 896.6997756958008,
88 "z": "67a3081a.032478",
92 "id": "b762591f.2fb7a",
94 "name": "switch svc-action",
95 "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
98 "x": 436.26190185546875,
99 "y": 503.2708339691162,
100 "z": "67a3081a.032478",
114 "id": "38a30397.7f9c64",
117 "xml": "<outcome value='assign'>\n",
120 "x": 656.7380981445312,
121 "y": 365.5564842224121,
122 "z": "67a3081a.032478",
130 "id": "7047d313.0a4e84",
132 "name": "block : atomic",
133 "xml": "<block atomic=\"true\">",
136 "x": 837.9762573242188,
137 "y": 366.5566062927246,
138 "z": "67a3081a.032478",
146 "id": "f06b8960.155ea8",
148 "name": "call GENERIC-RESOURCE-API:validate-network-input",
149 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n",
152 "x": 567.5476379394531,
153 "y": 273.4136562347412,
154 "z": "67a3081a.032478",
160 "id": "fbc9882f.656ad8",
162 "name": "call GENERIC-RESOURCE-API:network-topology-operation-assign",
163 "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n",
166 "x": 1209.547607421875,
167 "y": 363.4136619567871,
168 "z": "67a3081a.032478",
174 "id": "5b59ca66.3fadec",
177 "xml": "<outcome value='activate'>\n",
180 "x": 658.5476379394531,
181 "y": 453.4136562347412,
182 "z": "67a3081a.032478",
190 "id": "73ce8c08.c3845c",
192 "name": "block : atomic",
193 "xml": "<block atomic=\"true\">",
196 "x": 842.7857971191406,
197 "y": 454.4137783050537,
198 "z": "67a3081a.032478",
207 "id": "ee7e53d1.6aac9",
209 "name": "call GENERIC-RESOURCE-API:network-topology-operation-activate",
210 "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n",
213 "x": 1975.3572082519531,
214 "y": 616.2708282470703,
215 "z": "67a3081a.032478",
221 "id": "7a4b792c.22588",
223 "name": "deactivate",
224 "xml": "<outcome value='deactivate'>\n",
227 "x": 647.5476379394531,
228 "y": 613.4136810302734,
229 "z": "67a3081a.032478",
237 "id": "72ac187b.b86c38",
239 "name": "block : atomic",
240 "xml": "<block atomic=\"true\">",
243 "x": 828.7857971191406,
244 "y": 614.4138031005859,
245 "z": "67a3081a.032478",
254 "id": "65e2e00c.98fae8",
256 "name": "call GENERIC-RESOURCE-API:network-topology-operation-deactivate",
257 "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n",
260 "x": 1981.8571166992188,
261 "y": 732.0208282470703,
262 "z": "67a3081a.032478",
268 "id": "b22e57ce.c6aee8",
271 "xml": "<outcome value='unassign'>\n",
274 "x": 655.5476379394531,
275 "y": 678.4136810302734,
276 "z": "67a3081a.032478",
284 "id": "4894d2ca.1278e4",
286 "name": "block : atomic",
287 "xml": "<block atomic=\"true\">",
290 "x": 836.7857971191406,
291 "y": 679.4138031005859,
292 "z": "67a3081a.032478",
301 "id": "40a123a7.613904",
303 "name": "call GENERIC-RESOURCE-API:network-topology-operation-unassign",
304 "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n",
307 "x": 1988.6071166992188,
308 "y": 844.7708282470703,
309 "z": "67a3081a.032478",
315 "id": "10c582cc.cfd665",
318 "xml": "<outcome value='Other'>\n",
321 "x": 646.5476417541504,
322 "y": 738.4136714935303,
323 "z": "67a3081a.032478",
331 "id": "9b7e6225.5d79d",
332 "type": "returnFailure",
333 "name": "return failure",
334 "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=\"sdnc-request-header.svc-action is a required input\" />\n",
336 "x": 828.5476379394531,
337 "y": 737.4136810302734,
338 "z": "67a3081a.032478",
342 "id": "f1b5981d.bfa858",
344 "name": "Set final indicator to Y",
345 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
347 "x": 458.6587219238281,
348 "y": 855.8581142425537,
349 "z": "67a3081a.032478",
353 "id": "e4027dbf.f06578",
355 "name": "for nidx..service-data.networks.network[]",
356 "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
359 "x": 1877.2779998779297,
360 "y": 510.1755828857422,
361 "z": "67a3081a.032478",
369 "id": "a003c0d6.5a0d8",
370 "type": "switchNode",
371 "name": "switch service-data.networks.network_length",
372 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
375 "x": 1210.9920959472656,
376 "y": 474.74696350097656,
377 "z": "67a3081a.032478",
386 "id": "9e3ec1fd.ad5b98",
388 "name": "outcome Null",
389 "xml": "<outcome value=''>\n",
392 "x": 1453.9920349121094,
393 "y": 476.7469730377197,
394 "z": "67a3081a.032478",
402 "id": "47eae2b1.438c54",
405 "xml": "<outcome value='Other'>\n",
408 "x": 1407.9920654296875,
409 "y": 509.7469940185547,
410 "z": "67a3081a.032478",
418 "id": "ac917046.066bc",
419 "type": "switchNode",
420 "name": "switch networkid found",
421 "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
424 "x": 2167.7065505981445,
425 "y": 509.42566680908203,
426 "z": "67a3081a.032478",
434 "id": "6f4b90eb.3d488",
435 "type": "outcomeTrue",
437 "xml": "<outcome value='true'>\n",
440 "x": 2356.658905029297,
441 "y": 510.3184051513672,
442 "z": "67a3081a.032478",
450 "id": "9e191d8a.ab6c4",
452 "name": "set tmp.nidx and ctx.network-data",
453 "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
455 "x": 2590.190673828125,
456 "y": 509.0684127807617,
457 "z": "67a3081a.032478",
461 "id": "7b13cf65.3164b",
463 "name": "Find the index to service data for this network - save id in tmp.nidx, save service-data",
466 "x": 1334.1031799316406,
467 "y": 443.74698638916016,
468 "z": "67a3081a.032478",
472 "id": "1ed6801d.d2f0c8",
474 "name": "service-data will not be stored until we have a network-id",
477 "x": 1177.2142333984375,
478 "y": 331.63589096069336,
479 "z": "67a3081a.032478",
483 "id": "f460d6cb.ffd978",
484 "type": "returnFailure",
485 "name": "return failure",
486 "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
488 "x": 1645.7695922851562,
489 "y": 474.63597106933594,
490 "z": "67a3081a.032478",
494 "id": "e10cc477.9b0f2",
496 "name": "block : atomic",
497 "xml": "<block atomic=\"true\">",
500 "x": 1575.2620315551758,
501 "y": 509.301570892334,
502 "z": "67a3081a.032478",
511 "id": "8872fa92.c2a47",
512 "type": "switchNode",
513 "name": "switch tmp.nidx ",
514 "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
517 "x": 1795.5794296264648,
518 "y": 552.1587896347046,
519 "z": "67a3081a.032478",
527 "id": "6b0a8e46.af7a78",
528 "type": "returnFailure",
529 "name": "return failure",
530 "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
532 "x": 2148.4364128112793,
533 "y": 547.8730316162109,
534 "z": "67a3081a.032478",
538 "id": "90030fdf.45af7",
541 "xml": "<outcome value=''>\n",
544 "x": 1967.0079650878906,
545 "y": 550.7301750183105,
546 "z": "67a3081a.032478",
554 "id": "61a363af.ee55bc",
555 "type": "switchNode",
556 "name": "switch network-level-oper-status",
557 "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
560 "x": 1188.325439453125,
561 "y": 616.2222290039062,
562 "z": "67a3081a.032478",
571 "id": "a0dc1668.8be6a8",
573 "name": "outcome PendingCreate",
574 "xml": "<outcome value='PendingCreate'>\n",
577 "x": 1553.3254191080723,
578 "y": 616.2222137451171,
579 "z": "67a3081a.032478",
587 "id": "e9825cb2.5deff",
590 "xml": "<outcome value='Other'>\n",
593 "x": 1503.3254661560059,
594 "y": 656.2222442626953,
595 "z": "67a3081a.032478",
603 "id": "44229861.ecaaa8",
604 "type": "returnFailure",
605 "name": "return failure",
606 "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=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
608 "x": 1673.3254661560059,
609 "y": 656.2222442626953,
610 "z": "67a3081a.032478",
614 "id": "831644e8.e13cc",
615 "type": "switchNode",
616 "name": "switch network-level-oper-status",
617 "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
620 "x": 1195.6269226074219,
621 "y": 732.1736297607422,
622 "z": "67a3081a.032478",
631 "id": "1181976c.1aed59",
633 "name": "outcome Created",
634 "xml": "<outcome value='Created'>\n",
637 "x": 1558.6268920898438,
638 "y": 732.1736602783203,
639 "z": "67a3081a.032478",
647 "id": "1843fe0b.3bf1d2",
650 "xml": "<outcome value='Other'>\n",
653 "x": 1528.6268920898438,
654 "y": 772.1736602783203,
655 "z": "67a3081a.032478",
663 "id": "420607f9.76c808",
664 "type": "returnFailure",
665 "name": "return failure",
666 "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=\"`'Network is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
668 "x": 1694.6268920898438,
669 "y": 774.1736602783203,
670 "z": "67a3081a.032478",
674 "id": "2108d22b.ae9926",
675 "type": "switchNode",
676 "name": "switch network-level-oper-status",
677 "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
680 "x": 1195.4284973144531,
681 "y": 846.3750305175781,
682 "z": "67a3081a.032478",
692 "id": "e2213711.520dd",
694 "name": "outcome PendingCreate",
695 "xml": "<outcome value='PendingCreate'>\n",
698 "x": 1555.428466796875,
699 "y": 846.3750610351562,
700 "z": "67a3081a.032478",
708 "id": "6c464ada.030e1c",
711 "xml": "<outcome value='Other'>\n",
714 "x": 1512.4284057617188,
715 "y": 930.3750762939453,
716 "z": "67a3081a.032478",
724 "id": "138a0d17.b239e3",
725 "type": "returnFailure",
726 "name": "return failure",
727 "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=\"`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
729 "x": 1703.7618255615234,
730 "y": 929.0417051315308,
731 "z": "67a3081a.032478",
735 "id": "457e18b7.6ac5a8",
737 "name": "outcome PendingDelete",
738 "xml": "<outcome value='PendingDelete'>\n",
741 "x": 1558.65869140625,
742 "y": 884.2222290039062,
743 "z": "67a3081a.032478",
751 "id": "de74faab.3a2ae",
754 "xml": "<outcome value='create'>\n",
759 "z": "67a3081a.032478",
767 "id": "9bc3f97c.14bbf8",
770 "xml": "<outcome value='delete'>\n",
775 "z": "67a3081a.032478",
783 "id": "326c42d2.bec496",
785 "name": "block : atomic",
786 "xml": "<block atomic=\"true\">",
791 "z": "67a3081a.032478",
799 "id": "58d15587.e02aec",
801 "name": "block : atomic",
802 "xml": "<block atomic=\"true\">",
807 "z": "67a3081a.032478",
815 "id": "4ece5b87.0ed32c",
817 "name": "call GENERIC-RESOURCE-API:network-topology-operation-create",
818 "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n",
823 "z": "67a3081a.032478",
829 "id": "b37ff23e.4b78c8",
831 "name": "call GENERIC-RESOURCE-API:network-topology-operation-delete",
832 "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n",
837 "z": "67a3081a.032478",