3 "id": "61863820.711ea8",
9 "z": "8a925a2b.b01bd8",
17 "id": "14f9537d.79772d",
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": 271.00000381469727,
26 "y": 110.00001811981201,
27 "z": "8a925a2b.b01bd8",
35 "id": "d19b9445.194798",
37 "name": "sdwan-attachment-topology-operation-create",
38 "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 259.0001220703125,
42 "y": 198.00000095367432,
43 "z": "8a925a2b.b01bd8",
51 "id": "3526110c.60448e",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 179.00005340576172,
59 "y": 947.0002489089966,
60 "z": "8a925a2b.b01bd8",
89 "id": "aa8c6e8b.e30e",
91 "name": "Set allotted resource id if not sent by SO",
94 "x": 663.0767517089844,
95 "y": 107.43391990661621,
96 "z": "8a925a2b.b01bd8",
100 "id": "99952776.e81ae8",
101 "type": "switchNode",
102 "name": "switch allotted-resource-id",
103 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
106 "x": 609.0000305175781,
107 "y": 162.99999332427979,
108 "z": "8a925a2b.b01bd8",
117 "id": "6811d51c.3757dc",
120 "xml": "<outcome value=''>",
123 "x": 807.0001182556152,
124 "y": 132.999981880188,
125 "z": "8a925a2b.b01bd8",
133 "id": "513b9b13.594134",
136 "xml": "<outcome value='Other'>\n",
139 "x": 806.0000267028809,
140 "y": 169.99999237060547,
141 "z": "8a925a2b.b01bd8",
149 "id": "28a76577.73245a",
151 "name": "set tmp.ar.allotted-resource-id",
152 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
154 "x": 1004.0000152587891,
155 "y": 167.0000114440918,
156 "z": "8a925a2b.b01bd8",
160 "id": "9b94537c.a4dfa",
162 "name": "set tmp.ar.self-link",
163 "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",
165 "x": 576.9999542236328,
166 "y": 384.0001001358032,
167 "z": "8a925a2b.b01bd8",
171 "id": "9596dbd6.648298",
173 "name": "execute Properties",
174 "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",
177 "x": 577.2618713378906,
178 "y": 465.6667814254761,
179 "z": "8a925a2b.b01bd8",
185 "id": "636ccd57.e35144",
187 "name": "generate allotted-resource tmp.ar-url",
188 "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",
191 "x": 630.2619323730469,
192 "y": 552.6666994094849,
193 "z": "8a925a2b.b01bd8",
199 "id": "7f9fc121.cd5a5",
201 "name": "execute tmp.ar.allotted-resource-id",
202 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
205 "x": 1022.0000953674316,
206 "y": 133.9999876022339,
207 "z": "8a925a2b.b01bd8",
215 "id": "88221720.7c95b8",
218 "xml": "<outcome value='failure'>\n",
221 "x": 1240.0001373291016,
222 "y": 133.99995136260986,
223 "z": "8a925a2b.b01bd8",
231 "id": "aa4b0ebd.72265",
232 "type": "returnFailure",
233 "name": "return failure",
234 "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",
236 "x": 1406.0000915527344,
237 "y": 133.9999656677246,
238 "z": "8a925a2b.b01bd8",
242 "id": "1ec18fe8.aa439",
245 "xml": "<outcome value='success'>\n",
248 "x": 1136.0002307891846,
249 "y": 624.7778720855713,
250 "z": "8a925a2b.b01bd8",
258 "id": "9378fa3a.19c018",
259 "type": "returnFailure",
260 "name": "return failure",
261 "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",
263 "x": 1869.5186100006104,
264 "y": 625.8439435958862,
265 "z": "8a925a2b.b01bd8",
269 "id": "b12c1e8e.81e23",
271 "name": "Check for non existence of allotted resource",
274 "x": 992.0001525878906,
275 "y": 558.7779388427734,
276 "z": "8a925a2b.b01bd8",
280 "id": "da203e6.ea028c",
282 "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
283 "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
286 "x": 1512.6666984558105,
287 "y": 769.0000512599945,
288 "z": "8a925a2b.b01bd8",
296 "id": "4e3d9f6f.e48ca",
297 "type": "switchNode",
298 "name": "switch service-data.consumed-allotted-resources_length",
299 "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
302 "x": 694.6660232543945,
303 "y": 745.7140836715698,
304 "z": "8a925a2b.b01bd8",
313 "id": "210abe50.d12562",
315 "name": "outcome Null",
316 "xml": "<outcome value=''>\n",
319 "x": 998.8089218139648,
320 "y": 714.5715208053589,
321 "z": "8a925a2b.b01bd8",
329 "id": "fd87de34.5f561",
332 "xml": "<outcome value='Other'>\n",
335 "x": 975.8089714050293,
336 "y": 775.571475982666,
337 "z": "8a925a2b.b01bd8",
345 "id": "6fcbf8ba.f19558",
347 "name": "block : atomic",
348 "xml": "<block atomic=\"true\">",
351 "x": 1135.9360618591309,
352 "y": 773.697452545166,
353 "z": "8a925a2b.b01bd8",
363 "id": "230c326a.73559e",
366 "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",
368 "x": 1148.6659049987793,
369 "y": 712.2855710983276,
370 "z": "8a925a2b.b01bd8",
374 "id": "a91b49df.3ab368",
376 "name": "set consumed allotted resources",
377 "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",
379 "x": 623.5233154296875,
380 "y": 849.2856483459473,
381 "z": "8a925a2b.b01bd8",
385 "id": "aac67e51.e0669",
386 "type": "switchNode",
387 "name": "switch tmp.found-cidx",
388 "xml": "<switch test='`$tmp.found-cidx`'>\n",
391 "x": 1325.0511093139648,
392 "y": 805.708975315094,
393 "z": "8a925a2b.b01bd8",
401 "id": "83192091.f2dbe",
402 "type": "outcomeTrue",
404 "xml": "<outcome value='false'>\n",
407 "x": 1515.0510635375977,
408 "y": 805.7089123725891,
409 "z": "8a925a2b.b01bd8",
417 "id": "edcd9f1b.5f174",
419 "name": "block : atomic",
420 "xml": "<block atomic=\"true\">",
423 "x": 1681.0510635375977,
424 "y": 805.7089123725891,
425 "z": "8a925a2b.b01bd8",
433 "id": "98ae415a.0e4e6",
434 "type": "switchNode",
435 "name": "switch allotted-resource-id",
436 "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
439 "x": 1929.7783279418945,
440 "y": 766.000078201294,
441 "z": "8a925a2b.b01bd8",
449 "id": "f6ba2e93.3a869",
450 "type": "outcomeTrue",
452 "xml": "<outcome value='true'>\n",
455 "x": 2111.587902069092,
456 "y": 766.4645252227783,
457 "z": "8a925a2b.b01bd8",
465 "id": "41ea1034.cd583",
467 "name": "set tmp.cidx",
468 "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
470 "x": 1842.924446105957,
471 "y": 805.2206134796143,
472 "z": "8a925a2b.b01bd8",
476 "id": "3a0c681c.87b8c8",
478 "name": "Add to consumed service consumed-allotted-resources in mdsal",
479 "info": "Prepare data and add to service-data",
481 "x": 715.667236328125,
482 "y": 676.0000476837158,
483 "z": "8a925a2b.b01bd8",
487 "id": "4601b662.be85f8",
489 "name": "This set resource will be added to MDSAL by provider code",
490 "info": "Below we add to service-data.consumed-allotted-resource at last index",
492 "x": 703.0001525878906,
493 "y": 814.7781400680542,
494 "z": "8a925a2b.b01bd8",
498 "id": "6c13b6ba.f1d808",
500 "name": "update AAI allotted-resource",
501 "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",
504 "x": 613.6908569335938,
505 "y": 1774.531904220581,
506 "z": "8a925a2b.b01bd8",
515 "id": "cc11f86f.a05c98",
518 "xml": "<outcome value='failure'>\n",
521 "x": 808.4527931213379,
522 "y": 1765.4845056533813,
523 "z": "8a925a2b.b01bd8",
531 "id": "ad7d0ba7.e370e8",
532 "type": "returnFailure",
533 "name": "return failure",
534 "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",
536 "x": 974.9766731262207,
537 "y": 1777.1035766601562,
538 "z": "8a925a2b.b01bd8",
542 "id": "2748d678.9b155a",
545 "xml": "<outcome value='not-found'>\n",
548 "x": 815.5480804443359,
549 "y": 1798.246473312378,
550 "z": "8a925a2b.b01bd8",
558 "id": "65ec4e22.c3de6",
560 "name": "Save Resource to AAI",
563 "x": 647.5005340576172,
564 "y": 1742.833875656128,
565 "z": "8a925a2b.b01bd8",
569 "id": "cf325757.026c08",
571 "name": "Set allotted resource type if not sent by SO",
575 "y": 216.00000095367432,
576 "z": "8a925a2b.b01bd8",
580 "id": "43bd9b90.f9bb04",
581 "type": "switchNode",
582 "name": "switch allotted-resource-type",
583 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
586 "x": 610.9233093261719,
587 "y": 256.5660572052002,
588 "z": "8a925a2b.b01bd8",
597 "id": "b8faf677.a88b58",
600 "xml": "<outcome value=''>",
603 "x": 813.9234619140625,
604 "y": 241.56606006622314,
605 "z": "8a925a2b.b01bd8",
613 "id": "cb37a8ac.844d88",
616 "xml": "<outcome value='Other'>\n",
619 "x": 806.9232902526855,
620 "y": 281.5660800933838,
621 "z": "8a925a2b.b01bd8",
629 "id": "46a12ee1.3eb2e",
631 "name": "set tmp.ar.allotted-resource-type",
632 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
634 "x": 1038.9232749938965,
635 "y": 281.56608486175537,
636 "z": "8a925a2b.b01bd8",
640 "id": "e0d4b358.f0111",
642 "name": "For storage in AAI connection-attachment-topology",
645 "x": 673.9999618530273,
646 "y": 351.0000009536743,
647 "z": "8a925a2b.b01bd8",
651 "id": "2c1dc14e.d8696e",
653 "name": "Obtain different URL, template location etc",
654 "info": "For saving resource information to MDSAL & for AAI",
656 "x": 648.9999465942383,
657 "y": 432.8889102935791,
658 "z": "8a925a2b.b01bd8",
662 "id": "41be4404.2062fc",
664 "name": "Used for Put AR by id to MDSAL",
667 "x": 615.0000305175781,
668 "y": 521.8889274597168,
669 "z": "8a925a2b.b01bd8",
673 "id": "e088f78d.0cd8b8",
675 "name": "Obtain the last index in services",
676 "info": "ServiceData is added by Provider code",
678 "x": 616.4444732666016,
679 "y": 707.8888721466064,
680 "z": "8a925a2b.b01bd8",
684 "id": "9077e61b.e6a3a8",
686 "name": "set output to api handler",
687 "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",
689 "x": 599.2681427001953,
690 "y": 1681.359203338623,
691 "z": "8a925a2b.b01bd8",
695 "id": "8e980e4e.121e8",
696 "type": "returnSuccess",
697 "name": "return success",
698 "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",
700 "x": 567.6812286376953,
701 "y": 1843.9749298095703,
702 "z": "8a925a2b.b01bd8",
706 "id": "fb16264e.206978",
708 "name": "set tmp.ar.allotted-resource-type",
709 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
711 "x": 1053.0001487731934,
712 "y": 241.99998664855957,
713 "z": "8a925a2b.b01bd8",
717 "id": "7955fe12.58b57",
719 "name": "execute RestApiCallNode - PUT AR by id",
720 "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",
723 "x": 650.0002746582031,
724 "y": 1615.00013256073,
725 "z": "8a925a2b.b01bd8",
735 "id": "7e102bff.eb07f4",
738 "xml": "<outcome value='not-found'>\n",
741 "x": 899.6416282653809,
742 "y": 1653.3314628601074,
743 "z": "8a925a2b.b01bd8",
751 "id": "11a3c1ef.0f585e",
754 "xml": "<outcome value='failure'>\n",
757 "x": 890.6416778564453,
758 "y": 1621.831488609314,
759 "z": "8a925a2b.b01bd8",
767 "id": "cbe02c45.fd392",
770 "xml": "<outcome value='success'>\n",
773 "x": 894.391716003418,
774 "y": 1592.1885934844613,
775 "z": "8a925a2b.b01bd8",
783 "id": "d199a2ac.4c653",
784 "type": "returnFailure",
785 "name": "return failure",
786 "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",
788 "x": 1060.391716003418,
789 "y": 1622.5815124511719,
790 "z": "8a925a2b.b01bd8",
794 "id": "d05ce36c.67312",
801 "x": 1036.0476837158203,
802 "y": 1588.3807626739144,
803 "z": "8a925a2b.b01bd8",
809 "id": "27a69ba7.020164",
811 "name": "execute RestApiCallNode - Update parent provided service AR",
812 "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",
815 "x": 714.9999542236328,
816 "y": 1131.000165939331,
817 "z": "8a925a2b.b01bd8",
827 "id": "2ac08c5a.9ea264",
830 "xml": "<outcome value='not-found'>\n",
833 "x": 1023.3080139160156,
834 "y": 1162.998441696167,
835 "z": "8a925a2b.b01bd8",
843 "id": "9091e2db.32589",
846 "xml": "<outcome value='failure'>\n",
849 "x": 1014.3080635070801,
850 "y": 1131.4984674453735,
851 "z": "8a925a2b.b01bd8",
859 "id": "bcd16107.cb13d",
862 "xml": "<outcome value='success'>\n",
865 "x": 1018.0581016540527,
866 "y": 1101.8555723205209,
867 "z": "8a925a2b.b01bd8",
875 "id": "900f543a.444328",
876 "type": "returnFailure",
877 "name": "return failure",
878 "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",
880 "x": 1184.0581016540527,
881 "y": 1132.2484912872314,
882 "z": "8a925a2b.b01bd8",
886 "id": "1404ab79.5b1245",
893 "x": 1159.714069366455,
894 "y": 1098.047741509974,
895 "z": "8a925a2b.b01bd8",
901 "id": "39d4184a.092378",
903 "name": "Put the parent allotted resource in mdsal",
906 "x": 643.9999008178711,
907 "y": 1093.000072479248,
908 "z": "8a925a2b.b01bd8",
912 "id": "a85450f9.54be5",
914 "name": "set connection-attachment-ar-identifiers",
915 "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",
917 "x": 640.3570861816406,
918 "y": 1295.5716915130615,
919 "z": "8a925a2b.b01bd8",
923 "id": "e417171b.b17d78",
925 "name": "set ar-data",
926 "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.` \" />",
928 "x": 560.2139129638672,
929 "y": 1263.381194114685,
930 "z": "8a925a2b.b01bd8",
934 "id": "8337596d.6afa48",
936 "name": "set identifiers in overall structure",
937 "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",
939 "x": 619.1668853759766,
940 "y": 1329.6668767929077,
941 "z": "8a925a2b.b01bd8",
945 "id": "5db0bc82.831f24",
947 "name": "execute getTime",
948 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
951 "x": 571.4997253417969,
952 "y": 1403.0004043579102,
953 "z": "8a925a2b.b01bd8",
959 "id": "757f6754.1033f8",
961 "name": "set allotted-resource-oper-status",
962 "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",
964 "x": 622.4867630004883,
965 "y": 1458.9516372680664,
966 "z": "8a925a2b.b01bd8",
970 "id": "e6e8c666.3550b8",
972 "name": "set model-data",
973 "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.` \" />",
975 "x": 567.0553817749023,
976 "y": 1364.5557622909546,
977 "z": "8a925a2b.b01bd8",
981 "id": "99a7dd56.4fb72",
983 "name": "Prepare data for allotted-resource addition to MDSAL",
984 "info": "This will add to allotted-resource which is present inside service.",
986 "x": 684.3888702392578,
987 "y": 1229.5556087493896,
988 "z": "8a925a2b.b01bd8",
992 "id": "86a651b6.fa2c1",
994 "name": "generate parent-ar url - replace allotted-resource-id",
995 "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",
998 "x": 679.5000152587891,
999 "y": 1057.0000114440918,
1000 "z": "8a925a2b.b01bd8",
1006 "id": "a399f576.497928",
1008 "name": "generate parent-ar url - replace service-instance-id",
1009 "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",
1012 "x": 675.4999389648438,
1013 "y": 1014.000147819519,
1014 "z": "8a925a2b.b01bd8",
1020 "id": "b106df9f.5ad7c",
1022 "name": "Prepare Parent AR URL",
1023 "info": "Preparation to set provided-allotted-resource in parent service instance",
1025 "x": 593.5003967285156,
1026 "y": 943.0001010894775,
1027 "z": "8a925a2b.b01bd8",
1031 "id": "af03f775.1849d8",
1033 "name": "set tmp.ar.parent-service-instance-id",
1034 "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",
1036 "x": 632.5001907348633,
1037 "y": 976.5000405311584,
1038 "z": "8a925a2b.b01bd8",
1042 "id": "135a37d3.398c28",
1043 "type": "returnFailure",
1044 "name": "return failure",
1045 "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",
1047 "x": 2189.7569732666016,
1048 "y": 814.645830154419,
1049 "z": "8a925a2b.b01bd8",
1053 "id": "1472489a.f6dd67",
1055 "name": "set tmp.found-cidx",
1056 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1058 "x": 1315.6461448669434,
1059 "y": 726.3125731945038,
1060 "z": "8a925a2b.b01bd8",
1064 "id": "a78b3889.5b8998",
1066 "name": "Add to parent services provided-allotted-resources in mdsal",
1069 "x": 704.2015075683594,
1070 "y": 910.9792575836182,
1071 "z": "8a925a2b.b01bd8",
1075 "id": "67269130.185f5",
1077 "name": "Add to allotted-resources in mdsal",
1080 "x": 624.9686965942383,
1081 "y": 1196.9689378738403,
1082 "z": "8a925a2b.b01bd8",
1086 "id": "14fc1138.5da1ef",
1088 "name": "block: atomic",
1089 "xml": "<block atomic=\"true\">\n",
1093 "x": 1298.000051498413,
1094 "y": 624.2777614593506,
1095 "z": "8a925a2b.b01bd8",
1103 "id": "4695b038.898f5",
1104 "type": "switchNode",
1105 "name": "switch cr length",
1106 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1109 "x": 1485.8574314117432,
1110 "y": 624.8968968391418,
1111 "z": "8a925a2b.b01bd8",
1119 "id": "207b23e6.6bd71c",
1121 "name": "outcome 1",
1122 "xml": "<outcome value='1'>\n",
1125 "x": 1685.1905536651611,
1126 "y": 624.896975517273,
1127 "z": "8a925a2b.b01bd8",
1135 "id": "8bf022a6.d0cbb",
1137 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1138 "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",
1141 "x": 770.0000534057617,
1142 "y": 619.0000371932983,
1143 "z": "8a925a2b.b01bd8",
1152 "id": "a8c0bcfd.baccb",
1155 "xml": "<outcome value='failure'>\n",
1158 "x": 1138.0000839233398,
1159 "y": 589.0000352859497,
1160 "z": "8a925a2b.b01bd8",
1168 "id": "e7c1d5d7.6402e8",
1175 "x": 1290.0000839233398,
1176 "y": 588.0000352859497,
1177 "z": "8a925a2b.b01bd8",
1183 "id": "3aa5d5fd.f4649a",
1185 "name": "block : atomic",
1186 "xml": "<block atomic=\"true\">",
1189 "x": 576.0039215087891,
1190 "y": 1534.2500038146973,
1191 "z": "8a925a2b.b01bd8",
1200 "id": "eae96cd9.5875e",
1202 "name": "for each sdwan-get-request-input-param",
1203 "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1206 "x": 911.0041198730469,
1207 "y": 1480.2501260638237,
1208 "z": "8a925a2b.b01bd8",
1216 "id": "b45075fd.7aae48",
1218 "name": "Required for filling template values",
1219 "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1221 "x": 933.4486236572266,
1222 "y": 1514.0832867622375,
1223 "z": "8a925a2b.b01bd8",
1227 "id": "933f50a4.98d0e",
1229 "name": "Remove VNFC prefix",
1232 "x": 994.003963470459,
1233 "y": 1436.6944618225098,
1234 "z": "8a925a2b.b01bd8",
1238 "id": "34a921aa.b7fb2e",
1240 "name": "block : atomic",
1241 "xml": "<block atomic=\"true\">",
1244 "x": 1158.0039672851562,
1245 "y": 1481.6943712234497,
1246 "z": "8a925a2b.b01bd8",
1255 "id": "f68facaa.6f9bc",
1257 "name": "Take the parameter names by removing prefix",
1260 "x": 1426.0038146972656,
1261 "y": 1397.250369310379,
1262 "z": "8a925a2b.b01bd8",
1266 "id": "d1aee21e.a2d11",
1268 "name": "execute split parameterName",
1269 "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",
1272 "x": 1377.0384826660156,
1273 "y": 1432.2294654846191,
1274 "z": "8a925a2b.b01bd8",
1280 "id": "7c70d1bd.e91da",
1282 "name": "set parameterName",
1283 "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",
1285 "x": 1365.4829559326172,
1286 "y": 1536.2294359207153,
1287 "z": "8a925a2b.b01bd8",
1291 "id": "23f6c134.a5bc8e",
1293 "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
1294 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
1297 "x": 952.0039672851562,
1298 "y": 1554.2500658035278,
1299 "z": "8a925a2b.b01bd8",