3 "id": "e1802764.010338",
8 "y": 55.999998688697815,
9 "z": "2de7bdd3.0e47b2",
17 "id": "cfe32243.1a54",
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": 287.00391006469727,
26 "y": 128.0000158548355,
27 "z": "2de7bdd3.0e47b2",
35 "id": "f32ba3f6.6902c",
37 "name": "sotn-attachment-topology-operation-create",
38 "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 275.0040283203125,
42 "y": 215.99999868869781,
43 "z": "2de7bdd3.0e47b2",
51 "id": "7c54b5b2.a3083c",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 195.00395965576172,
59 "y": 965.0002466440201,
60 "z": "2de7bdd3.0e47b2",
90 "id": "d194eb73.9913d8",
92 "name": "Set allotted resource id if not sent by SO",
95 "x": 679.0806579589844,
96 "y": 125.43391764163971,
97 "z": "2de7bdd3.0e47b2",
101 "id": "3de219b6.a5b006",
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": 625.0039367675781,
108 "y": 180.99999105930328,
109 "z": "2de7bdd3.0e47b2",
118 "id": "c41cb638.52f6f8",
121 "xml": "<outcome value=''>",
124 "x": 823.0040245056152,
125 "y": 150.9999796152115,
126 "z": "2de7bdd3.0e47b2",
134 "id": "e38afa57.231908",
137 "xml": "<outcome value='Other'>\n",
140 "x": 822.0039329528809,
141 "y": 187.99999010562897,
142 "z": "2de7bdd3.0e47b2",
150 "id": "3ee7f443.e400dc",
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": 1020.0039215087891,
156 "y": 185.0000091791153,
157 "z": "2de7bdd3.0e47b2",
161 "id": "2c7c8b4.5796074",
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": 593.0038604736328,
167 "y": 402.0000978708267,
168 "z": "2de7bdd3.0e47b2",
172 "id": "9525b61d.f44608",
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": 593.2657775878906,
179 "y": 483.6667791604996,
180 "z": "2de7bdd3.0e47b2",
186 "id": "45124265.84320c",
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": 646.2658386230469,
193 "y": 570.6666971445084,
194 "z": "2de7bdd3.0e47b2",
200 "id": "1f1d00d8.31b19f",
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": 1038.0040016174316,
207 "y": 151.99998533725739,
208 "z": "2de7bdd3.0e47b2",
216 "id": "febe994.1667068",
219 "xml": "<outcome value='failure'>\n",
222 "x": 1256.0040435791016,
223 "y": 151.99994909763336,
224 "z": "2de7bdd3.0e47b2",
232 "id": "39c9fb3d.bda924",
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": 1422.0039978027344,
238 "y": 151.9999634027481,
239 "z": "2de7bdd3.0e47b2",
243 "id": "a969345.5e133c8",
246 "xml": "<outcome value='success'>\n",
249 "x": 1152.0041370391846,
250 "y": 642.7778698205948,
251 "z": "2de7bdd3.0e47b2",
259 "id": "50f962fe.84264c",
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": 1885.5225162506104,
265 "y": 643.8439413309097,
266 "z": "2de7bdd3.0e47b2",
270 "id": "a49d5ad5.f5a9d8",
272 "name": "Check for non existence of allotted resource",
275 "x": 1008.0040588378906,
276 "y": 576.7779365777969,
277 "z": "2de7bdd3.0e47b2",
281 "id": "d5f1890a.be37b8",
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": 1528.6706047058105,
288 "y": 787.000048995018,
289 "z": "2de7bdd3.0e47b2",
297 "id": "efb9af7d.38a8c",
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": 710.6699295043945,
304 "y": 763.7140814065933,
305 "z": "2de7bdd3.0e47b2",
314 "id": "82a04eb.e5042b",
316 "name": "outcome Null",
317 "xml": "<outcome value=''>\n",
320 "x": 1014.8128280639648,
321 "y": 732.5715185403824,
322 "z": "2de7bdd3.0e47b2",
330 "id": "c28a32d1.b979",
333 "xml": "<outcome value='Other'>\n",
336 "x": 991.8128776550293,
337 "y": 793.5714737176895,
338 "z": "2de7bdd3.0e47b2",
346 "id": "7748cb78.c02984",
348 "name": "block : atomic",
349 "xml": "<block atomic=\"true\">",
352 "x": 1151.9399681091309,
353 "y": 791.6974502801895,
354 "z": "2de7bdd3.0e47b2",
364 "id": "9ed3f44e.0ef248",
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": 1164.6698112487793,
370 "y": 730.2855688333511,
371 "z": "2de7bdd3.0e47b2",
375 "id": "67a07981.adb6b8",
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": 639.5272216796875,
381 "y": 867.2856460809708,
382 "z": "2de7bdd3.0e47b2",
386 "id": "6c68e940.a09698",
387 "type": "switchNode",
388 "name": "switch tmp.found-cidx",
389 "xml": "<switch test='`$tmp.found-cidx`'>\n",
392 "x": 1341.0550155639648,
393 "y": 823.7089730501175,
394 "z": "2de7bdd3.0e47b2",
402 "id": "e6bed7c6.008fc8",
403 "type": "outcomeTrue",
405 "xml": "<outcome value='false'>\n",
408 "x": 1531.0549697875977,
409 "y": 823.7089101076126,
410 "z": "2de7bdd3.0e47b2",
418 "id": "c94cbc62.004a2",
420 "name": "block : atomic",
421 "xml": "<block atomic=\"true\">",
424 "x": 1697.0549697875977,
425 "y": 823.7089101076126,
426 "z": "2de7bdd3.0e47b2",
434 "id": "f2c143a3.1f8e7",
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": 1945.7822341918945,
441 "y": 784.0000759363174,
442 "z": "2de7bdd3.0e47b2",
450 "id": "22afa8c.31c5058",
451 "type": "outcomeTrue",
453 "xml": "<outcome value='true'>\n",
456 "x": 2127.591808319092,
457 "y": 784.4645229578018,
458 "z": "2de7bdd3.0e47b2",
466 "id": "f71f33c4.6780f",
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": 1858.928352355957,
472 "y": 823.2206112146378,
473 "z": "2de7bdd3.0e47b2",
477 "id": "8d32b4a4.1a9fd8",
479 "name": "Add to consumed service consumed-allotted-resources in mdsal",
480 "info": "Prepare data and add to service-data",
482 "x": 731.671142578125,
483 "y": 694.0000454187393,
484 "z": "2de7bdd3.0e47b2",
488 "id": "fc9006c6.395558",
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": 719.0040588378906,
494 "y": 832.7781378030777,
495 "z": "2de7bdd3.0e47b2",
499 "id": "d769ff10.bfeae",
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": 629.6947631835938,
506 "y": 1792.5319019556046,
507 "z": "2de7bdd3.0e47b2",
516 "id": "e5663fd7.08761",
519 "xml": "<outcome value='failure'>\n",
522 "x": 824.4566993713379,
523 "y": 1783.4845033884048,
524 "z": "2de7bdd3.0e47b2",
532 "id": "345b8d51.157ff2",
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": 990.9805793762207,
538 "y": 1795.1035743951797,
539 "z": "2de7bdd3.0e47b2",
543 "id": "b7403b0d.cfc148",
546 "xml": "<outcome value='not-found'>\n",
549 "x": 831.5519866943359,
550 "y": 1816.2464710474014,
551 "z": "2de7bdd3.0e47b2",
559 "id": "ff8e9cff.e34a3",
561 "name": "Save Resource to AAI",
564 "x": 605.50439453125,
565 "y": 1754.8338733911514,
566 "z": "2de7bdd3.0e47b2",
570 "id": "5f517bd0.1d2334",
572 "name": "Set allotted resource type if not sent by SO",
576 "y": 233.99999868869781,
577 "z": "2de7bdd3.0e47b2",
581 "id": "3e0bbdc4.8ce3d2",
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": 626.9272155761719,
588 "y": 274.5660549402237,
589 "z": "2de7bdd3.0e47b2",
598 "id": "ff0b47c3.5cf7f8",
601 "xml": "<outcome value=''>",
604 "x": 829.9273681640625,
605 "y": 259.56605780124664,
606 "z": "2de7bdd3.0e47b2",
614 "id": "8dd15a77.fb7568",
617 "xml": "<outcome value='Other'>\n",
620 "x": 822.9271965026855,
621 "y": 299.5660778284073,
622 "z": "2de7bdd3.0e47b2",
630 "id": "c7c46784.6950a8",
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": 1054.9271812438965,
636 "y": 299.56608259677887,
637 "z": "2de7bdd3.0e47b2",
641 "id": "e793c2ca.7f688",
643 "name": "For storage in AAI connection-attachment-topology",
646 "x": 690.0038681030273,
647 "y": 368.9999986886978,
648 "z": "2de7bdd3.0e47b2",
652 "id": "a57110f9.dcd37",
654 "name": "Obtain different URL, template location etc",
655 "info": "For saving resource information to MDSAL & for AAI",
657 "x": 665.0038528442383,
658 "y": 450.8889080286026,
659 "z": "2de7bdd3.0e47b2",
663 "id": "9489b4d2.52d1b8",
665 "name": "Used for Put AR by id to MDSAL",
668 "x": 631.0039367675781,
669 "y": 539.8889251947403,
670 "z": "2de7bdd3.0e47b2",
674 "id": "454699aa.1f7a38",
676 "name": "Obtain the last index in services",
677 "info": "ServiceData is added by Provider code",
679 "x": 632.4483795166016,
680 "y": 725.88886988163,
681 "z": "2de7bdd3.0e47b2",
685 "id": "54b45ac5.3b96f4",
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": 615.2720489501953,
691 "y": 1699.3592010736465,
692 "z": "2de7bdd3.0e47b2",
696 "id": "6f9dfa46.6d74e4",
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": 583.6851272583008,
702 "y": 1840.9749876260757,
703 "z": "2de7bdd3.0e47b2",
707 "id": "aae71526.aed0c8",
709 "name": "set tmp.ar.allotted-resource-type",
710 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
712 "x": 1069.0040550231934,
713 "y": 259.99998438358307,
714 "z": "2de7bdd3.0e47b2",
718 "id": "d0d20150.466f4",
720 "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
721 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
724 "x": 716.9980697631836,
725 "y": 1559.4938122034073,
726 "z": "2de7bdd3.0e47b2",
732 "id": "d25d451e.0f6438",
734 "name": "execute RestApiCallNode - PUT AR by id",
735 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-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",
738 "x": 666.0041809082031,
739 "y": 1633.0001302957535,
740 "z": "2de7bdd3.0e47b2",
750 "id": "a217bcb.4b0424",
753 "xml": "<outcome value='not-found'>\n",
756 "x": 915.6455345153809,
757 "y": 1671.331460595131,
758 "z": "2de7bdd3.0e47b2",
766 "id": "c7307e94.33922",
769 "xml": "<outcome value='failure'>\n",
772 "x": 906.6455841064453,
773 "y": 1639.8314863443375,
774 "z": "2de7bdd3.0e47b2",
782 "id": "88ae5959.9952c8",
785 "xml": "<outcome value='success'>\n",
788 "x": 910.395622253418,
789 "y": 1610.1885912194848,
790 "z": "2de7bdd3.0e47b2",
798 "id": "45489cfb.5ec6b4",
799 "type": "returnFailure",
800 "name": "return failure",
801 "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",
803 "x": 1076.395622253418,
804 "y": 1640.5815101861954,
805 "z": "2de7bdd3.0e47b2",
809 "id": "b883302d.2867d",
816 "x": 1052.0515899658203,
817 "y": 1606.380760408938,
818 "z": "2de7bdd3.0e47b2",
824 "id": "1db7126.81503ee",
826 "name": "execute RestApiCallNode - Update parent provided service AR",
827 "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",
830 "x": 731.0038604736328,
831 "y": 1149.0001636743546,
832 "z": "2de7bdd3.0e47b2",
842 "id": "8baa1385.678c1",
845 "xml": "<outcome value='not-found'>\n",
848 "x": 1039.3119201660156,
849 "y": 1180.9984394311905,
850 "z": "2de7bdd3.0e47b2",
858 "id": "f79c7ce6.35926",
861 "xml": "<outcome value='failure'>\n",
864 "x": 1030.31196975708,
865 "y": 1149.498465180397,
866 "z": "2de7bdd3.0e47b2",
874 "id": "8ab7afc7.379db",
877 "xml": "<outcome value='success'>\n",
880 "x": 1034.0620079040527,
881 "y": 1119.8555700555444,
882 "z": "2de7bdd3.0e47b2",
890 "id": "1986b301.84772d",
891 "type": "returnFailure",
892 "name": "return failure",
893 "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",
895 "x": 1200.0620079040527,
896 "y": 1150.248489022255,
897 "z": "2de7bdd3.0e47b2",
901 "id": "c35b2d72.8a40a",
908 "x": 1175.717975616455,
909 "y": 1116.0477392449975,
910 "z": "2de7bdd3.0e47b2",
916 "id": "373cdeec.8a9792",
918 "name": "Put the parent allotted resource in mdsal",
921 "x": 660.0038070678711,
922 "y": 1111.0000702142715,
923 "z": "2de7bdd3.0e47b2",
927 "id": "b18196af.f3d2c8",
929 "name": "set connection-attachment-ar-identifiers",
930 "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",
932 "x": 656.3609924316406,
933 "y": 1313.571689248085,
934 "z": "2de7bdd3.0e47b2",
938 "id": "279f61dd.0cdaee",
940 "name": "set ar-data",
941 "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.` \" />",
944 "y": 1281.3810459375381,
945 "z": "2de7bdd3.0e47b2",
949 "id": "d586facb.6928c8",
951 "name": "set identifiers in overall structure",
952 "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",
954 "x": 635.1707916259766,
955 "y": 1347.6668745279312,
956 "z": "2de7bdd3.0e47b2",
960 "id": "83c4b03a.da76",
962 "name": "execute getTime",
963 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
966 "x": 587.5036315917969,
967 "y": 1421.0004020929337,
968 "z": "2de7bdd3.0e47b2",
974 "id": "aeb52a03.a21508",
976 "name": "set allotted-resource-oper-status",
977 "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",
979 "x": 638.4906692504883,
980 "y": 1476.95163500309,
981 "z": "2de7bdd3.0e47b2",
985 "id": "3704681e.a28308",
987 "name": "set model-data",
988 "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.` \" />",
990 "x": 583.0592880249023,
991 "y": 1382.555760025978,
992 "z": "2de7bdd3.0e47b2",
996 "id": "9f0192ed.a3fed",
998 "name": "Prepare data for allotted-resource addition to MDSAL",
999 "info": "This will add to allotted-resource which is present inside service.",
1001 "x": 700.3927764892578,
1002 "y": 1247.5556064844131,
1003 "z": "2de7bdd3.0e47b2",
1007 "id": "9c36769e.3b9b78",
1009 "name": "generate parent-ar url - replace allotted-resource-id",
1010 "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",
1013 "x": 695.5039215087891,
1014 "y": 1075.0000091791153,
1015 "z": "2de7bdd3.0e47b2",
1021 "id": "482be69b.e1e678",
1023 "name": "generate parent-ar url - replace service-instance-id",
1024 "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",
1027 "x": 691.5038452148438,
1028 "y": 1032.0001455545425,
1029 "z": "2de7bdd3.0e47b2",
1035 "id": "db2548a3.2d9d88",
1037 "name": "Prepare Parent AR URL",
1038 "info": "Preparation to set provided-allotted-resource in parent service instance",
1040 "x": 609.5043029785156,
1041 "y": 961.000098824501,
1042 "z": "2de7bdd3.0e47b2",
1046 "id": "238da366.150bec",
1048 "name": "set tmp.ar.parent-service-instance-id",
1049 "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",
1051 "x": 648.5040969848633,
1052 "y": 994.500038266182,
1053 "z": "2de7bdd3.0e47b2",
1057 "id": "62fbf7be.c1d928",
1059 "name": "Required for filling template values",
1060 "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1062 "x": 643.0042724609375,
1063 "y": 1522.4998852014542,
1064 "z": "2de7bdd3.0e47b2",
1068 "id": "349f45ed.6a61aa",
1069 "type": "returnFailure",
1070 "name": "return failure",
1071 "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",
1073 "x": 2205.7608795166016,
1074 "y": 832.6458278894424,
1075 "z": "2de7bdd3.0e47b2",
1079 "id": "9bbf5449.409148",
1081 "name": "set tmp.found-cidx",
1082 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1084 "x": 1331.6500511169434,
1085 "y": 744.3125709295273,
1086 "z": "2de7bdd3.0e47b2",
1090 "id": "de27f2ed.26659",
1092 "name": "Add to parent services provided-allotted-resources in mdsal",
1095 "x": 720.2054138183594,
1096 "y": 928.9792553186417,
1097 "z": "2de7bdd3.0e47b2",
1101 "id": "a649f8c3.5ee428",
1103 "name": "Add to allotted-resources in mdsal",
1106 "x": 640.9726028442383,
1107 "y": 1214.9689356088638,
1108 "z": "2de7bdd3.0e47b2",
1112 "id": "d1ab386a.e79358",
1114 "name": "block: atomic",
1115 "xml": "<block atomic=\"true\">\n",
1119 "x": 1314.003957748413,
1120 "y": 642.2777591943741,
1121 "z": "2de7bdd3.0e47b2",
1129 "id": "4f0a5d33.427474",
1130 "type": "switchNode",
1131 "name": "switch cr length",
1132 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1135 "x": 1501.8613376617432,
1136 "y": 642.8968945741653,
1137 "z": "2de7bdd3.0e47b2",
1145 "id": "d605048c.9bb9e8",
1147 "name": "outcome 1",
1148 "xml": "<outcome value='1'>\n",
1151 "x": 1701.1944599151611,
1152 "y": 642.8969732522964,
1153 "z": "2de7bdd3.0e47b2",
1161 "id": "5a5883b8.a68a6c",
1163 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1164 "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",
1167 "x": 786.0039596557617,
1168 "y": 637.0000349283218,
1169 "z": "2de7bdd3.0e47b2",
1178 "id": "ca5d3b75.7711f8",
1181 "xml": "<outcome value='failure'>\n",
1184 "x": 1154.0039901733398,
1185 "y": 607.0000330209732,
1186 "z": "2de7bdd3.0e47b2",
1194 "id": "9eb0da65.d80ea8",
1201 "x": 1306.0039901733398,
1202 "y": 606.0000330209732,
1203 "z": "2de7bdd3.0e47b2",