3 "id": "ad2ef973.e6a378",
9 "z": "77e7049e.a5a37c",
17 "id": "151183ce.27c78c",
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": 314.00000381469727,
26 "y": 129.000018119812,
27 "z": "77e7049e.a5a37c",
35 "id": "89afc74f.956348",
37 "name": "sdwan-attachment-topology-operation-create",
38 "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 302.0001220703125,
42 "y": 217.00000095367432,
43 "z": "77e7049e.a5a37c",
51 "id": "580de8c5.e06e78",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 222.00005340576172,
59 "y": 966.0002489089966,
60 "z": "77e7049e.a5a37c",
90 "id": "74beb7.011b0148",
92 "name": "Set allotted resource id if not sent by SO",
95 "x": 706.0767517089844,
96 "y": 126.43391990661621,
97 "z": "77e7049e.a5a37c",
101 "id": "1fbb291d.155017",
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": 652.0000305175781,
108 "y": 181.99999332427979,
109 "z": "77e7049e.a5a37c",
118 "id": "4a85a033.b553c",
121 "xml": "<outcome value=''>",
124 "x": 850.0001182556152,
125 "y": 151.999981880188,
126 "z": "77e7049e.a5a37c",
134 "id": "de2e876a.0ba078",
137 "xml": "<outcome value='Other'>\n",
140 "x": 849.0000267028809,
141 "y": 188.99999237060547,
142 "z": "77e7049e.a5a37c",
150 "id": "eef884cd.26a128",
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": 1047.000015258789,
156 "y": 186.0000114440918,
157 "z": "77e7049e.a5a37c",
161 "id": "f8c6b86f.980db8",
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.9999542236328,
167 "y": 403.0001001358032,
168 "z": "77e7049e.a5a37c",
172 "id": "655b6d38.675514",
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": 620.2618713378906,
179 "y": 484.6667814254761,
180 "z": "77e7049e.a5a37c",
186 "id": "87b8ca30.cf86e8",
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": 673.2619323730469,
193 "y": 571.6666994094849,
194 "z": "77e7049e.a5a37c",
200 "id": "63eb9d84.765954",
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": 1065.0000953674316,
207 "y": 152.9999876022339,
208 "z": "77e7049e.a5a37c",
216 "id": "7fcc0333.e4b76c",
219 "xml": "<outcome value='failure'>\n",
222 "x": 1283.0001373291016,
223 "y": 152.99995136260986,
224 "z": "77e7049e.a5a37c",
232 "id": "dc8faa82.0a80d8",
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": 1449.0000915527344,
238 "y": 152.9999656677246,
239 "z": "77e7049e.a5a37c",
243 "id": "83948a24.3af768",
246 "xml": "<outcome value='success'>\n",
249 "x": 1179.0002307891846,
250 "y": 643.7778720855713,
251 "z": "77e7049e.a5a37c",
259 "id": "fd6c452f.f52a18",
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": 1912.5186100006104,
265 "y": 644.8439435958862,
266 "z": "77e7049e.a5a37c",
270 "id": "df1c313d.a9cf4",
272 "name": "Check for non existence of allotted resource",
275 "x": 1035.0001525878906,
276 "y": 577.7779388427734,
277 "z": "77e7049e.a5a37c",
281 "id": "3c6b3ac8.5f54b6",
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": 1555.6666984558105,
288 "y": 788.0000512599945,
289 "z": "77e7049e.a5a37c",
297 "id": "3fc33b48.8d6bf4",
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": 737.6660232543945,
304 "y": 764.7140836715698,
305 "z": "77e7049e.a5a37c",
314 "id": "98246edb.9d503",
316 "name": "outcome Null",
317 "xml": "<outcome value=''>\n",
320 "x": 1041.8089218139648,
321 "y": 733.5715208053589,
322 "z": "77e7049e.a5a37c",
330 "id": "303d6837.0384d8",
333 "xml": "<outcome value='Other'>\n",
336 "x": 1018.8089714050293,
337 "y": 794.571475982666,
338 "z": "77e7049e.a5a37c",
346 "id": "b930de42.50a21",
348 "name": "block : atomic",
349 "xml": "<block atomic=\"true\">",
352 "x": 1178.9360618591309,
353 "y": 792.697452545166,
354 "z": "77e7049e.a5a37c",
364 "id": "1bc15eed.fd45b1",
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": 1191.6659049987793,
370 "y": 731.2855710983276,
371 "z": "77e7049e.a5a37c",
375 "id": "15c0d821.288668",
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": 666.5233154296875,
381 "y": 868.2856483459473,
382 "z": "77e7049e.a5a37c",
386 "id": "7d532296.0d9bfc",
387 "type": "switchNode",
388 "name": "switch tmp.found-cidx",
389 "xml": "<switch test='`$tmp.found-cidx`'>\n",
392 "x": 1368.0511093139648,
393 "y": 824.708975315094,
394 "z": "77e7049e.a5a37c",
402 "id": "106270aa.e9c6ff",
403 "type": "outcomeTrue",
405 "xml": "<outcome value='false'>\n",
408 "x": 1558.0510635375977,
409 "y": 824.7089123725891,
410 "z": "77e7049e.a5a37c",
418 "id": "e1144596.6d5ba8",
420 "name": "block : atomic",
421 "xml": "<block atomic=\"true\">",
424 "x": 1724.0510635375977,
425 "y": 824.7089123725891,
426 "z": "77e7049e.a5a37c",
434 "id": "e0e0a661.74b9e8",
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": 1972.7783279418945,
441 "y": 785.000078201294,
442 "z": "77e7049e.a5a37c",
450 "id": "326d00a0.76b6c",
451 "type": "outcomeTrue",
453 "xml": "<outcome value='true'>\n",
456 "x": 2154.587902069092,
457 "y": 785.4645252227783,
458 "z": "77e7049e.a5a37c",
466 "id": "b93f3869.6459e8",
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": 1885.924446105957,
472 "y": 824.2206134796143,
473 "z": "77e7049e.a5a37c",
477 "id": "9dc9afd9.071d8",
479 "name": "Add to consumed service consumed-allotted-resources in mdsal",
480 "info": "Prepare data and add to service-data",
482 "x": 758.667236328125,
483 "y": 695.0000476837158,
484 "z": "77e7049e.a5a37c",
488 "id": "79d72e28.e5bf",
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": 746.0001525878906,
494 "y": 833.7781400680542,
495 "z": "77e7049e.a5a37c",
499 "id": "7ee858c0.930c58",
501 "name": "save AAI allotted-resource",
502 "xml": "<save 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.service-information.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=\"role\" value=\"`$prop.connection-attachment.role`\" />\t\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sdwanVpnName`\" />\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": 656.6908569335938,
506 "y": 1793.531904220581,
507 "z": "77e7049e.a5a37c",
516 "id": "54e2f563.b3af5c",
519 "xml": "<outcome value='failure'>\n",
522 "x": 851.4527931213379,
523 "y": 1784.4845056533813,
524 "z": "77e7049e.a5a37c",
532 "id": "a3778d99.3c015",
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": 1017.9766731262207,
538 "y": 1796.1035766601562,
539 "z": "77e7049e.a5a37c",
543 "id": "291816ed.18393a",
546 "xml": "<outcome value='not-found'>\n",
549 "x": 858.5480804443359,
550 "y": 1817.246473312378,
551 "z": "77e7049e.a5a37c",
559 "id": "ac365c56.4b2",
561 "name": "Save Resource to AAI",
564 "x": 690.5005340576172,
565 "y": 1761.833875656128,
566 "z": "77e7049e.a5a37c",
570 "id": "81ef7e04.cd917",
572 "name": "Set allotted resource type if not sent by SO",
576 "y": 235.00000095367432,
577 "z": "77e7049e.a5a37c",
581 "id": "3718c342.00f4ac",
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": 653.9233093261719,
588 "y": 275.5660572052002,
589 "z": "77e7049e.a5a37c",
598 "id": "64aa0e9c.b1d09",
601 "xml": "<outcome value=''>",
604 "x": 856.9234619140625,
605 "y": 260.56606006622314,
606 "z": "77e7049e.a5a37c",
614 "id": "7800ea8d.a7f124",
617 "xml": "<outcome value='Other'>\n",
620 "x": 849.9232902526855,
621 "y": 300.5660800933838,
622 "z": "77e7049e.a5a37c",
630 "id": "7a986711.0ca2d8",
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": 1081.9232749938965,
636 "y": 300.56608486175537,
637 "z": "77e7049e.a5a37c",
641 "id": "369cb772.706cb8",
643 "name": "For storage in AAI connection-attachment-topology",
646 "x": 716.9999618530273,
647 "y": 370.0000009536743,
648 "z": "77e7049e.a5a37c",
652 "id": "492255d4.2adf4c",
654 "name": "Obtain different URL, template location etc",
655 "info": "For saving resource information to MDSAL & for AAI",
657 "x": 691.9999465942383,
658 "y": 451.8889102935791,
659 "z": "77e7049e.a5a37c",
663 "id": "ddea3893.c96cd8",
665 "name": "Used for Put AR by id to MDSAL",
668 "x": 658.0000305175781,
669 "y": 540.8889274597168,
670 "z": "77e7049e.a5a37c",
674 "id": "a440e95e.3176f8",
676 "name": "Obtain the last index in services",
677 "info": "ServiceData is added by Provider code",
679 "x": 659.4444732666016,
680 "y": 726.8888721466064,
681 "z": "77e7049e.a5a37c",
685 "id": "a79587b.c624178",
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": 642.2681427001953,
691 "y": 1700.359203338623,
692 "z": "77e7049e.a5a37c",
696 "id": "9d0211a4.58ce8",
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": 610.6812286376953,
702 "y": 1862.9749298095703,
703 "z": "77e7049e.a5a37c",
707 "id": "f530af4a.706e5",
709 "name": "set tmp.ar.allotted-resource-type",
710 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
712 "x": 1096.0001487731934,
713 "y": 260.99998664855957,
714 "z": "77e7049e.a5a37c",
718 "id": "30825693.105b0a",
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": 693.0002746582031,
725 "y": 1634.00013256073,
726 "z": "77e7049e.a5a37c",
736 "id": "7725804e.b7ea",
739 "xml": "<outcome value='not-found'>\n",
742 "x": 942.6416282653809,
743 "y": 1672.3314628601074,
744 "z": "77e7049e.a5a37c",
752 "id": "ff126c78.d9f65",
755 "xml": "<outcome value='failure'>\n",
758 "x": 933.6416778564453,
759 "y": 1640.831488609314,
760 "z": "77e7049e.a5a37c",
768 "id": "34ce7aa1.c96186",
771 "xml": "<outcome value='success'>\n",
774 "x": 937.391716003418,
775 "y": 1611.1885934844613,
776 "z": "77e7049e.a5a37c",
784 "id": "d7cd6db2.d2286",
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": 1103.391716003418,
790 "y": 1641.5815124511719,
791 "z": "77e7049e.a5a37c",
795 "id": "6ccc24c6.03b4dc",
802 "x": 1079.0476837158203,
803 "y": 1607.3807626739144,
804 "z": "77e7049e.a5a37c",
810 "id": "7c0d6a4c.141ba4",
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.9999542236328,
817 "y": 1150.000165939331,
818 "z": "77e7049e.a5a37c",
828 "id": "494a716e.866ba",
831 "xml": "<outcome value='not-found'>\n",
834 "x": 1066.3080139160156,
835 "y": 1181.998441696167,
836 "z": "77e7049e.a5a37c",
844 "id": "227c3021.44dc4",
847 "xml": "<outcome value='failure'>\n",
850 "x": 1057.30806350708,
851 "y": 1150.4984674453735,
852 "z": "77e7049e.a5a37c",
860 "id": "ff8b452c.8d9bc8",
863 "xml": "<outcome value='success'>\n",
866 "x": 1061.0581016540527,
867 "y": 1120.8555723205209,
868 "z": "77e7049e.a5a37c",
876 "id": "aaeb645f.80fed8",
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": 1227.0581016540527,
882 "y": 1151.2484912872314,
883 "z": "77e7049e.a5a37c",
887 "id": "74f3a310.0128fc",
894 "x": 1202.714069366455,
895 "y": 1117.047741509974,
896 "z": "77e7049e.a5a37c",
902 "id": "9405156b.c649a8",
904 "name": "Put the parent allotted resource in mdsal",
907 "x": 686.9999008178711,
908 "y": 1112.000072479248,
909 "z": "77e7049e.a5a37c",
913 "id": "cf809c65.e205f",
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": 683.3570861816406,
919 "y": 1314.5716915130615,
920 "z": "77e7049e.a5a37c",
924 "id": "605ed84a.e90ef8",
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": 603.2139129638672,
930 "y": 1282.381194114685,
931 "z": "77e7049e.a5a37c",
935 "id": "5ffc39de.e33178",
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": 662.1668853759766,
941 "y": 1348.6668767929077,
942 "z": "77e7049e.a5a37c",
946 "id": "b70e6d89.61807",
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": 614.4997253417969,
953 "y": 1422.0004043579102,
954 "z": "77e7049e.a5a37c",
960 "id": "2fe0bf35.0314b",
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": 665.4867630004883,
966 "y": 1477.9516372680664,
967 "z": "77e7049e.a5a37c",
971 "id": "4b90a515.ea737c",
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": 610.0553817749023,
977 "y": 1383.5557622909546,
978 "z": "77e7049e.a5a37c",
982 "id": "a3fd3ef0.9cf2",
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": 727.3888702392578,
988 "y": 1248.5556087493896,
989 "z": "77e7049e.a5a37c",
993 "id": "aec371b2.f4eb6",
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": 722.5000152587891,
1000 "y": 1076.0000114440918,
1001 "z": "77e7049e.a5a37c",
1007 "id": "cc1d8a7e.c8e908",
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": 718.4999389648438,
1014 "y": 1033.000147819519,
1015 "z": "77e7049e.a5a37c",
1021 "id": "af622d17.e96e6",
1023 "name": "Prepare Parent AR URL",
1024 "info": "Preparation to set provided-allotted-resource in parent service instance",
1026 "x": 636.5003967285156,
1027 "y": 962.0001010894775,
1028 "z": "77e7049e.a5a37c",
1032 "id": "99b25b64.985da8",
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": 675.5001907348633,
1038 "y": 995.5000405311584,
1039 "z": "77e7049e.a5a37c",
1043 "id": "cec76fbc.ec734",
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": 2232.7569732666016,
1049 "y": 833.645830154419,
1050 "z": "77e7049e.a5a37c",
1054 "id": "6dd5cf93.f0258",
1056 "name": "set tmp.found-cidx",
1057 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1059 "x": 1358.6461448669434,
1060 "y": 745.3125731945038,
1061 "z": "77e7049e.a5a37c",
1065 "id": "fcf58d3f.726c9",
1067 "name": "Add to parent services provided-allotted-resources in mdsal",
1070 "x": 747.2015075683594,
1071 "y": 929.9792575836182,
1072 "z": "77e7049e.a5a37c",
1076 "id": "edb39741.2151b8",
1078 "name": "Add to allotted-resources in mdsal",
1081 "x": 667.9686965942383,
1082 "y": 1215.9689378738403,
1083 "z": "77e7049e.a5a37c",
1087 "id": "64a66d0e.2cab24",
1089 "name": "block: atomic",
1090 "xml": "<block atomic=\"true\">\n",
1094 "x": 1341.000051498413,
1095 "y": 643.2777614593506,
1096 "z": "77e7049e.a5a37c",
1104 "id": "c5b1dd9f.c626c",
1105 "type": "switchNode",
1106 "name": "switch cr length",
1107 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1110 "x": 1528.8574314117432,
1111 "y": 643.8968968391418,
1112 "z": "77e7049e.a5a37c",
1120 "id": "dea64b0a.33d1a8",
1122 "name": "outcome 1",
1123 "xml": "<outcome value='1'>\n",
1126 "x": 1728.1905536651611,
1127 "y": 643.896975517273,
1128 "z": "77e7049e.a5a37c",
1136 "id": "5c590a79.9e0264",
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": 813.0000534057617,
1143 "y": 638.0000371932983,
1144 "z": "77e7049e.a5a37c",
1153 "id": "a688402e.6a3a9",
1156 "xml": "<outcome value='failure'>\n",
1159 "x": 1181.0000839233398,
1160 "y": 608.0000352859497,
1161 "z": "77e7049e.a5a37c",
1169 "id": "a6697dc2.ce9f3",
1176 "x": 1333.0000839233398,
1177 "y": 607.0000352859497,
1178 "z": "77e7049e.a5a37c",
1184 "id": "adeabb6e.cf7758",
1186 "name": "block : atomic",
1187 "xml": "<block atomic=\"true\">",
1190 "x": 619.0039215087891,
1191 "y": 1553.2500038146973,
1192 "z": "77e7049e.a5a37c",
1201 "id": "96f36120.1f9af",
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": 954.0041198730469,
1208 "y": 1499.2501260638237,
1209 "z": "77e7049e.a5a37c",
1217 "id": "4e61fb49.c94114",
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": 976.4486236572266,
1223 "y": 1533.0832867622375,
1224 "z": "77e7049e.a5a37c",
1228 "id": "d4660c0f.147f3",
1230 "name": "Remove VNFC prefix",
1233 "x": 1037.003963470459,
1234 "y": 1455.6944618225098,
1235 "z": "77e7049e.a5a37c",
1239 "id": "7401fe63.179e9",
1241 "name": "block : atomic",
1242 "xml": "<block atomic=\"true\">",
1245 "x": 1201.0039672851562,
1246 "y": 1500.6943712234497,
1247 "z": "77e7049e.a5a37c",
1256 "id": "50ce4566.040d7c",
1258 "name": "Take the parameter names by removing prefix",
1261 "x": 1469.0038146972656,
1262 "y": 1416.250369310379,
1263 "z": "77e7049e.a5a37c",
1267 "id": "6a638cf5.ebb554",
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": 1420.0384826660156,
1274 "y": 1451.2294654846191,
1275 "z": "77e7049e.a5a37c",
1281 "id": "3e399a15.de4336",
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": 1408.4829559326172,
1287 "y": 1555.2294359207153,
1288 "z": "77e7049e.a5a37c",
1292 "id": "6b505cd5.c78924",
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": 995.0039672851562,
1299 "y": 1573.2500658035278,
1300 "z": "77e7049e.a5a37c",