3 "id": "d0edaee0.371d2",
8 "y": 68.99999856948853,
9 "z": "28b033ee.a901cc",
17 "id": "ccac73a.016209",
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": 313.00391006469727,
26 "y": 143.00001668930054,
27 "z": "28b033ee.a901cc",
35 "id": "20c8ba03.7fc266",
37 "name": "sdwan-attachment-topology-operation-create",
38 "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 301.0040283203125,
42 "y": 230.99999952316284,
43 "z": "28b033ee.a901cc",
51 "id": "7fb8a0a8.cc16e",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 221.00395965576172,
59 "y": 980.0002474784851,
60 "z": "28b033ee.a901cc",
90 "id": "ce81891c.9bbbd8",
92 "name": "Set allotted resource id if not sent by SO",
95 "x": 705.0806579589844,
96 "y": 140.43391847610474,
97 "z": "28b033ee.a901cc",
101 "id": "2437dbcf.331264",
102 "type": "switchNode",
103 "name": "switch allotted-resource-id",
104 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
107 "x": 651.0039367675781,
108 "y": 195.9999918937683,
109 "z": "28b033ee.a901cc",
118 "id": "ae4415d.9e44fe8",
121 "xml": "<outcome value=''>",
124 "x": 849.0040245056152,
125 "y": 165.9999804496765,
126 "z": "28b033ee.a901cc",
134 "id": "c8d7b3ce.5e5a2",
137 "xml": "<outcome value='Other'>\n",
140 "x": 848.0039329528809,
141 "y": 202.999990940094,
142 "z": "28b033ee.a901cc",
150 "id": "106c46a5.0a2af9",
152 "name": "set tmp.ar.allotted-resource-id",
153 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
155 "x": 1046.003921508789,
156 "y": 200.00001001358032,
157 "z": "28b033ee.a901cc",
161 "id": "730eea74.2853a4",
163 "name": "set tmp.ar.self-link",
164 "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
166 "x": 619.0038604736328,
167 "y": 417.00009870529175,
168 "z": "28b033ee.a901cc",
172 "id": "3eb4cc5.e84ab34",
174 "name": "execute Properties",
175 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
178 "x": 619.2657775878906,
179 "y": 498.6667799949646,
180 "z": "28b033ee.a901cc",
186 "id": "98a0f1ed.ad821",
188 "name": "generate allotted-resource tmp.ar-url",
189 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
192 "x": 672.2658386230469,
193 "y": 585.6666979789734,
194 "z": "28b033ee.a901cc",
200 "id": "349de4b3.2e578c",
202 "name": "execute tmp.ar.allotted-resource-id",
203 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
206 "x": 1064.0040016174316,
207 "y": 166.9999861717224,
208 "z": "28b033ee.a901cc",
216 "id": "5d37f876.0cc698",
219 "xml": "<outcome value='failure'>\n",
222 "x": 1282.0040435791016,
223 "y": 166.9999499320984,
224 "z": "28b033ee.a901cc",
232 "id": "b5e2a2dc.0d71c",
233 "type": "returnFailure",
234 "name": "return failure",
235 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
237 "x": 1448.0039978027344,
238 "y": 166.99996423721313,
239 "z": "28b033ee.a901cc",
243 "id": "8f7a89d.e442878",
246 "xml": "<outcome value='success'>\n",
249 "x": 1178.0041370391846,
250 "y": 657.7778706550598,
251 "z": "28b033ee.a901cc",
259 "id": "7072a3ba.59cbcc",
260 "type": "returnFailure",
261 "name": "return failure",
262 "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=\"Error: Existing connection attachment allotted resource\" />\n \n",
264 "x": 1911.5225162506104,
265 "y": 658.8439421653748,
266 "z": "28b033ee.a901cc",
270 "id": "3b5bc99a.d557b6",
272 "name": "Check for non existence of allotted resource",
275 "x": 1034.0040588378906,
276 "y": 591.777937412262,
277 "z": "28b033ee.a901cc",
281 "id": "340e57cb.5c86a8",
283 "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
284 "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
287 "x": 1554.6706047058105,
288 "y": 802.000049829483,
289 "z": "28b033ee.a901cc",
297 "id": "5e870da5.d4b9c4",
298 "type": "switchNode",
299 "name": "switch service-data.consumed-allotted-resources_length",
300 "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
303 "x": 736.6699295043945,
304 "y": 778.7140822410583,
305 "z": "28b033ee.a901cc",
314 "id": "9df6142.79785e8",
316 "name": "outcome Null",
317 "xml": "<outcome value=''>\n",
320 "x": 1040.8128280639648,
321 "y": 747.5715193748474,
322 "z": "28b033ee.a901cc",
330 "id": "58099c96.2c7e34",
333 "xml": "<outcome value='Other'>\n",
336 "x": 1017.8128776550293,
337 "y": 808.5714745521545,
338 "z": "28b033ee.a901cc",
346 "id": "96b3b48a.902058",
348 "name": "block : atomic",
349 "xml": "<block atomic=\"true\">",
352 "x": 1177.9399681091309,
353 "y": 806.6974511146545,
354 "z": "28b033ee.a901cc",
364 "id": "be192375.06e28",
367 "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
369 "x": 1190.6698112487793,
370 "y": 745.2855696678162,
371 "z": "28b033ee.a901cc",
375 "id": "f395bfa7.29021",
377 "name": "set consumed allotted resources",
378 "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
380 "x": 665.5272216796875,
381 "y": 882.2856469154358,
382 "z": "28b033ee.a901cc",
386 "id": "718d194e.2e6788",
387 "type": "switchNode",
388 "name": "switch tmp.found-cidx",
389 "xml": "<switch test='`$tmp.found-cidx`'>\n",
392 "x": 1367.0550155639648,
393 "y": 838.7089738845825,
394 "z": "28b033ee.a901cc",
402 "id": "144fdd18.b7f4c3",
403 "type": "outcomeTrue",
405 "xml": "<outcome value='false'>\n",
408 "x": 1557.0549697875977,
409 "y": 838.7089109420776,
410 "z": "28b033ee.a901cc",
418 "id": "67e912a8.6bc78c",
420 "name": "block : atomic",
421 "xml": "<block atomic=\"true\">",
424 "x": 1723.0549697875977,
425 "y": 838.7089109420776,
426 "z": "28b033ee.a901cc",
434 "id": "3cebd63.269772a",
435 "type": "switchNode",
436 "name": "switch allotted-resource-id",
437 "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
440 "x": 1971.7822341918945,
441 "y": 799.0000767707825,
442 "z": "28b033ee.a901cc",
450 "id": "77a3d234.ab1d9c",
451 "type": "outcomeTrue",
453 "xml": "<outcome value='true'>\n",
456 "x": 2153.591808319092,
457 "y": 799.4645237922668,
458 "z": "28b033ee.a901cc",
466 "id": "95e82f8c.b9b06",
468 "name": "set tmp.cidx",
469 "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
471 "x": 1884.928352355957,
472 "y": 838.2206120491028,
473 "z": "28b033ee.a901cc",
477 "id": "f6050ba6.e3a988",
479 "name": "Add to consumed service consumed-allotted-resources in mdsal",
480 "info": "Prepare data and add to service-data",
482 "x": 757.671142578125,
483 "y": 709.0000462532043,
484 "z": "28b033ee.a901cc",
488 "id": "950d939a.d6aa9",
490 "name": "This set resource will be added to MDSAL by provider code",
491 "info": "Below we add to service-data.consumed-allotted-resource at last index",
493 "x": 745.0040588378906,
494 "y": 847.7781386375427,
495 "z": "28b033ee.a901cc",
499 "id": "fdbceac6.217498",
501 "name": "update AAI allotted-resource",
502 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"access-provider-id\" value=\"`$prop.connection-attachment.access-provider-id`\" />\n\t<parameter name=\"access-client-id\" value=\"`$prop.connection-attachment.access-client-id`\" />\n\t<parameter name=\"access-topology-id\" value=\"`$prop.connection-attachment.access-topology-id`\" />\n\t<parameter name=\"access-node-id\" value=\"`$prop.connection-attachment.access-node-id`\" />\n\t<parameter name=\"access-ltp-id\" value=\"`$prop.connection-attachment.access-ltp-id`\" />\t\n\t<parameter name=\"cvlan\" value=\"`$prop.connection-attachment.cVLAN`\" />\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n",
505 "x": 655.6947631835938,
506 "y": 1807.5319027900696,
507 "z": "28b033ee.a901cc",
516 "id": "49ae8647.6b2328",
519 "xml": "<outcome value='failure'>\n",
522 "x": 850.4566993713379,
523 "y": 1798.4845042228699,
524 "z": "28b033ee.a901cc",
532 "id": "c8a49936.3deaf8",
533 "type": "returnFailure",
534 "name": "return failure",
535 "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=\"AAI failed\" />\n",
537 "x": 1016.9805793762207,
538 "y": 1810.1035752296448,
539 "z": "28b033ee.a901cc",
543 "id": "62f42f4e.42781",
546 "xml": "<outcome value='not-found'>\n",
549 "x": 857.5519866943359,
550 "y": 1831.2464718818665,
551 "z": "28b033ee.a901cc",
559 "id": "f380425c.83892",
561 "name": "Save Resource to AAI",
564 "x": 689.5044403076172,
565 "y": 1775.8338742256165,
566 "z": "28b033ee.a901cc",
570 "id": "c58c2e54.58ab4",
572 "name": "Set allotted resource type if not sent by SO",
576 "y": 248.99999952316284,
577 "z": "28b033ee.a901cc",
581 "id": "48d3a6f4.7a9f68",
582 "type": "switchNode",
583 "name": "switch allotted-resource-type",
584 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
587 "x": 652.9272155761719,
588 "y": 289.5660557746887,
589 "z": "28b033ee.a901cc",
598 "id": "a5628a44.6843d8",
601 "xml": "<outcome value=''>",
604 "x": 855.9273681640625,
605 "y": 274.56605863571167,
606 "z": "28b033ee.a901cc",
614 "id": "9e87888a.c266e8",
617 "xml": "<outcome value='Other'>\n",
620 "x": 848.9271965026855,
621 "y": 314.5660786628723,
622 "z": "28b033ee.a901cc",
630 "id": "1455473e.f663e9",
632 "name": "set tmp.ar.allotted-resource-type",
633 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
635 "x": 1080.9271812438965,
636 "y": 314.5660834312439,
637 "z": "28b033ee.a901cc",
641 "id": "f29b8b09.a0de68",
643 "name": "For storage in AAI connection-attachment-topology",
646 "x": 716.0038681030273,
647 "y": 383.99999952316284,
648 "z": "28b033ee.a901cc",
652 "id": "c8d768ea.3ebd78",
654 "name": "Obtain different URL, template location etc",
655 "info": "For saving resource information to MDSAL & for AAI",
657 "x": 691.0038528442383,
658 "y": 465.8889088630676,
659 "z": "28b033ee.a901cc",
663 "id": "40de4362.ae07ec",
665 "name": "Used for Put AR by id to MDSAL",
668 "x": 657.0039367675781,
669 "y": 554.8889260292053,
670 "z": "28b033ee.a901cc",
674 "id": "1f6351e.76805ae",
676 "name": "Obtain the last index in services",
677 "info": "ServiceData is added by Provider code",
679 "x": 658.4483795166016,
680 "y": 740.888870716095,
681 "z": "28b033ee.a901cc",
685 "id": "7cadc884.11c378",
687 "name": "set output to api handler",
688 "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
690 "x": 641.2720489501953,
691 "y": 1714.3592019081116,
692 "z": "28b033ee.a901cc",
696 "id": "f028e514.462408",
697 "type": "returnSuccess",
698 "name": "return success",
699 "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",
701 "x": 609.6851348876953,
702 "y": 1876.9749283790588,
703 "z": "28b033ee.a901cc",
707 "id": "eafc3b17.674668",
709 "name": "set tmp.ar.allotted-resource-type",
710 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
712 "x": 1095.0040550231934,
713 "y": 274.9999852180481,
714 "z": "28b033ee.a901cc",
718 "id": "273cbd63.ba5da2",
720 "name": "execute RestApiCallNode - PUT AR by id",
721 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
724 "x": 692.0041809082031,
725 "y": 1648.0001311302185,
726 "z": "28b033ee.a901cc",
736 "id": "98032a32.e6e0f8",
739 "xml": "<outcome value='not-found'>\n",
742 "x": 941.6455345153809,
743 "y": 1686.331461429596,
744 "z": "28b033ee.a901cc",
752 "id": "aa969973.4cd018",
755 "xml": "<outcome value='failure'>\n",
758 "x": 932.6455841064453,
759 "y": 1654.8314871788025,
760 "z": "28b033ee.a901cc",
768 "id": "1764b80a.4c5668",
771 "xml": "<outcome value='success'>\n",
774 "x": 936.395622253418,
775 "y": 1625.1885920539498,
776 "z": "28b033ee.a901cc",
784 "id": "2942de2a.1ad962",
785 "type": "returnFailure",
786 "name": "return failure",
787 "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
789 "x": 1102.395622253418,
790 "y": 1655.5815110206604,
791 "z": "28b033ee.a901cc",
795 "id": "801134b3.e6dc28",
802 "x": 1078.0515899658203,
803 "y": 1621.380761243403,
804 "z": "28b033ee.a901cc",
810 "id": "52f115fe.31e7bc",
812 "name": "execute RestApiCallNode - Update parent provided service AR",
813 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
816 "x": 757.0038604736328,
817 "y": 1164.0001645088196,
818 "z": "28b033ee.a901cc",
828 "id": "d67d9a08.605298",
831 "xml": "<outcome value='not-found'>\n",
834 "x": 1065.3119201660156,
835 "y": 1195.9984402656555,
836 "z": "28b033ee.a901cc",
844 "id": "22fe8dcf.9c57d2",
847 "xml": "<outcome value='failure'>\n",
850 "x": 1056.31196975708,
851 "y": 1164.498466014862,
852 "z": "28b033ee.a901cc",
860 "id": "85578012.048c2",
863 "xml": "<outcome value='success'>\n",
866 "x": 1060.0620079040527,
867 "y": 1134.8555708900094,
868 "z": "28b033ee.a901cc",
876 "id": "5c849a0e.1b8584",
877 "type": "returnFailure",
878 "name": "return failure",
879 "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
881 "x": 1226.0620079040527,
882 "y": 1165.24848985672,
883 "z": "28b033ee.a901cc",
887 "id": "6e0abfa0.4ac64",
894 "x": 1201.717975616455,
895 "y": 1131.0477400794625,
896 "z": "28b033ee.a901cc",
902 "id": "d900fe90.080fa",
904 "name": "Put the parent allotted resource in mdsal",
907 "x": 686.0038070678711,
908 "y": 1126.0000710487366,
909 "z": "28b033ee.a901cc",
913 "id": "549597d0.2434c8",
915 "name": "set connection-attachment-ar-identifiers",
916 "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
918 "x": 682.3609924316406,
919 "y": 1328.57169008255,
920 "z": "28b033ee.a901cc",
924 "id": "6a649bce.b1cf84",
926 "name": "set ar-data",
927 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
929 "x": 602.2178192138672,
930 "y": 1296.3811926841736,
931 "z": "28b033ee.a901cc",
935 "id": "b67f723e.a2fdd",
937 "name": "set identifiers in overall structure",
938 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
940 "x": 661.1707916259766,
941 "y": 1362.6668753623962,
942 "z": "28b033ee.a901cc",
946 "id": "e622a70a.fb3f98",
948 "name": "execute getTime",
949 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
952 "x": 613.5036315917969,
953 "y": 1436.0004029273987,
954 "z": "28b033ee.a901cc",
960 "id": "3c5561ef.3b198e",
962 "name": "set allotted-resource-oper-status",
963 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
965 "x": 664.4906692504883,
966 "y": 1491.951635837555,
967 "z": "28b033ee.a901cc",
971 "id": "34b5882f.c7cb48",
973 "name": "set model-data",
974 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
976 "x": 609.0592880249023,
977 "y": 1397.5557608604431,
978 "z": "28b033ee.a901cc",
982 "id": "f1efc3d3.15b9f",
984 "name": "Prepare data for allotted-resource addition to MDSAL",
985 "info": "This will add to allotted-resource which is present inside service.",
987 "x": 726.3927764892578,
988 "y": 1262.5556073188782,
989 "z": "28b033ee.a901cc",
993 "id": "7f796e7c.de4f4",
995 "name": "generate parent-ar url - replace allotted-resource-id",
996 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
999 "x": 721.5039215087891,
1000 "y": 1090.0000100135803,
1001 "z": "28b033ee.a901cc",
1007 "id": "128728fe.ad5877",
1009 "name": "generate parent-ar url - replace service-instance-id",
1010 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
1013 "x": 717.5038452148438,
1014 "y": 1047.0001463890076,
1015 "z": "28b033ee.a901cc",
1021 "id": "6a7cea15.b62614",
1023 "name": "Prepare Parent AR URL",
1024 "info": "Preparation to set provided-allotted-resource in parent service instance",
1026 "x": 635.5043029785156,
1027 "y": 976.0000996589661,
1028 "z": "28b033ee.a901cc",
1032 "id": "a35c1852.b6d228",
1034 "name": "set tmp.ar.parent-service-instance-id",
1035 "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
1037 "x": 674.5040969848633,
1038 "y": 1009.500039100647,
1039 "z": "28b033ee.a901cc",
1043 "id": "c2bb18ee.6afb98",
1044 "type": "returnFailure",
1045 "name": "return failure",
1046 "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=\"Error updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n",
1048 "x": 2231.7608795166016,
1049 "y": 847.6458287239075,
1050 "z": "28b033ee.a901cc",
1054 "id": "a28f94f9.cae788",
1056 "name": "set tmp.found-cidx",
1057 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1059 "x": 1357.6500511169434,
1060 "y": 759.3125717639923,
1061 "z": "28b033ee.a901cc",
1065 "id": "c891031.324ba",
1067 "name": "Add to parent services provided-allotted-resources in mdsal",
1070 "x": 746.2054138183594,
1071 "y": 943.9792561531067,
1072 "z": "28b033ee.a901cc",
1076 "id": "2273a66f.0415ca",
1078 "name": "Add to allotted-resources in mdsal",
1081 "x": 666.9726028442383,
1082 "y": 1229.9689364433289,
1083 "z": "28b033ee.a901cc",
1087 "id": "b23dd04a.37b72",
1089 "name": "block: atomic",
1090 "xml": "<block atomic=\"true\">\n",
1094 "x": 1340.003957748413,
1095 "y": 657.2777600288391,
1096 "z": "28b033ee.a901cc",
1104 "id": "a6dda7d3.822f38",
1105 "type": "switchNode",
1106 "name": "switch cr length",
1107 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1110 "x": 1527.8613376617432,
1111 "y": 657.8968954086304,
1112 "z": "28b033ee.a901cc",
1120 "id": "5bd5d251.e9afcc",
1122 "name": "outcome 1",
1123 "xml": "<outcome value='1'>\n",
1126 "x": 1727.1944599151611,
1127 "y": 657.8969740867615,
1128 "z": "28b033ee.a901cc",
1136 "id": "2fe2b50e.b3feea",
1138 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1139 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1142 "x": 812.0039596557617,
1143 "y": 652.0000357627869,
1144 "z": "28b033ee.a901cc",
1153 "id": "3a286aef.d7f3b6",
1156 "xml": "<outcome value='failure'>\n",
1159 "x": 1180.0039901733398,
1160 "y": 622.0000338554382,
1161 "z": "28b033ee.a901cc",
1169 "id": "13ffa20f.c9e16e",
1176 "x": 1332.0039901733398,
1177 "y": 621.0000338554382,
1178 "z": "28b033ee.a901cc",
1184 "id": "b0371fd5.a7b76",
1186 "name": "block : atomic",
1187 "xml": "<block atomic=\"true\">",
1190 "x": 618.0078277587891,
1191 "y": 1567.2500023841858,
1192 "z": "28b033ee.a901cc",
1201 "id": "54125d93.5f9234",
1203 "name": "for each sdwan-get-request-input-param",
1204 "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1207 "x": 953.0080261230469,
1208 "y": 1513.2501246333122,
1209 "z": "28b033ee.a901cc",
1217 "id": "36f9a762.8e3a68",
1219 "name": "Required for filling template values",
1220 "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1222 "x": 975.4525299072266,
1223 "y": 1547.083285331726,
1224 "z": "28b033ee.a901cc",
1228 "id": "5c5d6d04.0459d4",
1230 "name": "Remove VNFC prefix",
1233 "x": 1036.007869720459,
1234 "y": 1469.6944603919983,
1235 "z": "28b033ee.a901cc",
1239 "id": "e2f37c7a.7e92e",
1241 "name": "block : atomic",
1242 "xml": "<block atomic=\"true\">",
1245 "x": 1200.0078735351562,
1246 "y": 1514.6943697929382,
1247 "z": "28b033ee.a901cc",
1256 "id": "cfd8cad0.68f218",
1258 "name": "Take the parameter names by removing prefix",
1261 "x": 1468.0077209472656,
1262 "y": 1430.2503678798676,
1263 "z": "28b033ee.a901cc",
1267 "id": "c041009d.8b993",
1269 "name": "execute split parameterName",
1270 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
1273 "x": 1419.0423889160156,
1274 "y": 1465.2294640541077,
1275 "z": "28b033ee.a901cc",
1281 "id": "2dcd0480.dbffec",
1283 "name": "set parameterName",
1284 "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
1286 "x": 1407.4868621826172,
1287 "y": 1569.2294344902039,
1288 "z": "28b033ee.a901cc",
1292 "id": "a3376785.58e1f8",
1294 "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
1295 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
1298 "x": 994.0078735351562,
1299 "y": 1587.2500643730164,
1300 "z": "28b033ee.a901cc",