3 "id": "e71077a5.449178",
7 "x": 94.00001907348633,
17 "id": "e230874f.1ced38",
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": 269.0000228881836,
26 "y": 139.0001163482666,
27 "z": "ab45b2a0.2d254",
35 "id": "fda28de9.a9688",
37 "name": "sotn-attachment-topology-operation-create",
38 "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 257.0001411437988,
42 "y": 227.0000991821289,
43 "z": "ab45b2a0.2d254",
51 "id": "8e26551b.7dfe18",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 177.00007247924805,
59 "y": 976.0003471374512,
60 "z": "ab45b2a0.2d254",
92 "id": "c90f1d50.24dc",
94 "name": "Set allotted resource id if not sent by SO",
97 "x": 661.0767707824707,
98 "y": 136.4340181350708,
99 "z": "ab45b2a0.2d254",
103 "id": "c93c04d7.3e5348",
104 "type": "switchNode",
105 "name": "switch allotted-resource-id",
106 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
109 "x": 607.0000495910645,
110 "y": 192.00009155273438,
111 "z": "ab45b2a0.2d254",
120 "id": "213269bc.4275f6",
123 "xml": "<outcome value=''>",
126 "x": 805.0001373291016,
127 "y": 162.00008010864258,
128 "z": "ab45b2a0.2d254",
136 "id": "6419db5e.a2c0c4",
139 "xml": "<outcome value='Other'>\n",
142 "x": 804.0000457763672,
143 "y": 199.00009059906006,
144 "z": "ab45b2a0.2d254",
152 "id": "4ab8dc05.8f0984",
154 "name": "set tmp.ar.allotted-resource-id",
155 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
157 "x": 1002.0000343322754,
158 "y": 196.0001096725464,
159 "z": "ab45b2a0.2d254",
163 "id": "9950e65d.3636a8",
165 "name": "set tmp.ar.self-link",
166 "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",
168 "x": 574.9999732971191,
169 "y": 413.0001983642578,
170 "z": "ab45b2a0.2d254",
174 "id": "1ae547a2.eaba88",
176 "name": "execute Properties",
177 "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",
180 "x": 575.261890411377,
181 "y": 494.66687965393066,
182 "z": "ab45b2a0.2d254",
188 "id": "65f23dcc.6522b4",
190 "name": "generate allotted-resource tmp.ar-url",
191 "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",
194 "x": 628.2619514465332,
195 "y": 581.6667976379395,
196 "z": "ab45b2a0.2d254",
202 "id": "eccd2036.554d7",
204 "name": "execute tmp.ar.allotted-resource-id",
205 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
208 "x": 1020.000114440918,
209 "y": 163.00008583068848,
210 "z": "ab45b2a0.2d254",
218 "id": "90c2cdec.e7c9c",
221 "xml": "<outcome value='failure'>\n",
224 "x": 1238.000156402588,
225 "y": 163.00004959106445,
226 "z": "ab45b2a0.2d254",
234 "id": "a192b9fd.7610f8",
235 "type": "returnFailure",
236 "name": "return failure",
237 "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",
239 "x": 1404.0001106262207,
240 "y": 163.0000638961792,
241 "z": "ab45b2a0.2d254",
245 "id": "66a512c5.0faacc",
248 "xml": "<outcome value='success'>\n",
251 "x": 1134.000249862671,
252 "y": 653.7779703140259,
253 "z": "ab45b2a0.2d254",
261 "id": "2a3354d7.ee765c",
262 "type": "returnFailure",
263 "name": "return failure",
264 "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",
266 "x": 1867.5186290740967,
267 "y": 654.8440418243408,
268 "z": "ab45b2a0.2d254",
272 "id": "70da4f2f.1d3ca",
274 "name": "Check for non existence of allotted resource",
277 "x": 990.000171661377,
278 "y": 587.778037071228,
279 "z": "ab45b2a0.2d254",
283 "id": "66ac283c.bd2348",
285 "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
286 "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
289 "x": 1510.6667175292969,
290 "y": 798.0001494884491,
291 "z": "ab45b2a0.2d254",
299 "id": "aa28416d.6d08a",
300 "type": "switchNode",
301 "name": "switch service-data.consumed-allotted-resources_length",
302 "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
305 "x": 692.6660423278809,
306 "y": 774.7141819000244,
307 "z": "ab45b2a0.2d254",
316 "id": "ae723a2a.13be98",
318 "name": "outcome Null",
319 "xml": "<outcome value=''>\n",
322 "x": 996.8089408874512,
323 "y": 743.5716190338135,
324 "z": "ab45b2a0.2d254",
332 "id": "1678938e.1bfafc",
335 "xml": "<outcome value='Other'>\n",
338 "x": 973.8089904785156,
339 "y": 804.5715742111206,
340 "z": "ab45b2a0.2d254",
348 "id": "79d1a933.7fd6a8",
350 "name": "block : atomic",
351 "xml": "<block atomic=\"true\">",
354 "x": 1133.9360809326172,
355 "y": 802.6975507736206,
356 "z": "ab45b2a0.2d254",
366 "id": "9ff14f9b.0b3b",
369 "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",
371 "x": 1146.6659240722656,
372 "y": 741.2856693267822,
373 "z": "ab45b2a0.2d254",
377 "id": "15ca2e29.9a7dd2",
379 "name": "set consumed allotted resources",
380 "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",
382 "x": 621.5233345031738,
383 "y": 878.2857465744019,
384 "z": "ab45b2a0.2d254",
388 "id": "3b659fae.e519",
389 "type": "switchNode",
390 "name": "switch tmp.found-cidx",
391 "xml": "<switch test='`$tmp.found-cidx`'>\n",
394 "x": 1323.0511283874512,
395 "y": 834.7090735435486,
396 "z": "ab45b2a0.2d254",
404 "id": "966db31a.47786",
405 "type": "outcomeTrue",
407 "xml": "<outcome value='false'>\n",
410 "x": 1513.051082611084,
411 "y": 834.7090106010437,
412 "z": "ab45b2a0.2d254",
420 "id": "b95410b0.660fd",
422 "name": "block : atomic",
423 "xml": "<block atomic=\"true\">",
426 "x": 1679.051082611084,
427 "y": 834.7090106010437,
428 "z": "ab45b2a0.2d254",
436 "id": "c03dacc1.547db",
437 "type": "switchNode",
438 "name": "switch allotted-resource-id",
439 "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
442 "x": 1927.7783470153809,
443 "y": 795.0001764297485,
444 "z": "ab45b2a0.2d254",
452 "id": "ba9ad589.8abb58",
453 "type": "outcomeTrue",
455 "xml": "<outcome value='true'>\n",
458 "x": 2109.587921142578,
459 "y": 795.4646234512329,
460 "z": "ab45b2a0.2d254",
468 "id": "2ab57899.a130b8",
470 "name": "set tmp.cidx",
471 "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
473 "x": 1840.9244651794434,
474 "y": 834.2207117080688,
475 "z": "ab45b2a0.2d254",
479 "id": "e6f158d3.3c83a8",
481 "name": "Add to consumed service consumed-allotted-resources in mdsal",
482 "info": "Prepare data and add to service-data",
484 "x": 713.6672554016113,
485 "y": 705.0001459121704,
486 "z": "ab45b2a0.2d254",
490 "id": "464592d5.7d3adc",
492 "name": "This set resource will be added to MDSAL by provider code",
493 "info": "Below we add to service-data.consumed-allotted-resource at last index",
495 "x": 701.000171661377,
496 "y": 843.7782382965088,
497 "z": "ab45b2a0.2d254",
501 "id": "a63f9a77.c174a8",
503 "name": "save AAI allotted-resource",
504 "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.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",
507 "x": 577.6909523010254,
508 "y": 1914.5320167541504,
509 "z": "ab45b2a0.2d254",
518 "id": "8865c331.63809",
521 "xml": "<outcome value='failure'>\n",
524 "x": 801.4528045654297,
525 "y": 1884.4845905303955,
526 "z": "ab45b2a0.2d254",
534 "id": "4e95350f.9bd78c",
535 "type": "returnFailure",
536 "name": "return failure",
537 "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",
539 "x": 967.9766845703125,
540 "y": 1896.1036615371704,
541 "z": "ab45b2a0.2d254",
545 "id": "3795c6dc.0749ba",
548 "xml": "<outcome value='not-found'>\n",
551 "x": 808.5480918884277,
552 "y": 1917.246558189392,
553 "z": "ab45b2a0.2d254",
561 "id": "e8bcac4.3e63b5",
563 "name": "Save Resource to AAI",
566 "x": 583.5005073547363,
567 "y": 1836.8339614868164,
568 "z": "ab45b2a0.2d254",
572 "id": "9ada057d.8d0ed8",
574 "name": "Set allotted resource type if not sent by SO",
577 "x": 647.0000190734863,
578 "y": 245.0000991821289,
579 "z": "ab45b2a0.2d254",
583 "id": "3e30e763.22be28",
584 "type": "switchNode",
585 "name": "switch allotted-resource-type",
586 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
589 "x": 608.9233283996582,
590 "y": 285.5661554336548,
591 "z": "ab45b2a0.2d254",
600 "id": "1b1ef42.aa2a50c",
603 "xml": "<outcome value=''>",
606 "x": 811.9234809875488,
607 "y": 270.56615829467773,
608 "z": "ab45b2a0.2d254",
616 "id": "5b1a6ad6.d32444",
619 "xml": "<outcome value='Other'>\n",
622 "x": 804.9233093261719,
623 "y": 310.5661783218384,
624 "z": "ab45b2a0.2d254",
632 "id": "e101a8fa.94ec78",
634 "name": "set tmp.ar.allotted-resource-type",
635 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
637 "x": 1036.9232940673828,
638 "y": 310.56618309020996,
639 "z": "ab45b2a0.2d254",
643 "id": "535c3465.db6a5c",
645 "name": "For storage in AAI connection-attachment-topology",
648 "x": 671.9999809265137,
649 "y": 380.0000991821289,
650 "z": "ab45b2a0.2d254",
654 "id": "7158b402.34b20c",
656 "name": "Obtain different URL, template location etc",
657 "info": "For saving resource information to MDSAL & for AAI",
659 "x": 646.9999656677246,
660 "y": 461.8890085220337,
661 "z": "ab45b2a0.2d254",
665 "id": "8b7046e5.63a738",
667 "name": "Used for Put AR by id to MDSAL",
670 "x": 613.0000495910645,
671 "y": 550.8890256881714,
672 "z": "ab45b2a0.2d254",
676 "id": "41e867cd.171798",
678 "name": "Obtain the last index in services",
679 "info": "ServiceData is added by Provider code",
681 "x": 614.4444923400879,
682 "y": 736.888970375061,
683 "z": "ab45b2a0.2d254",
687 "id": "abedf313.5d507",
689 "name": "set output to api handler",
690 "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",
692 "x": 592.2681541442871,
693 "y": 1800.3592882156372,
694 "z": "ab45b2a0.2d254",
698 "id": "fac542dd.1d112",
699 "type": "returnSuccess",
700 "name": "return success",
701 "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",
703 "x": 536.6813507080078,
704 "y": 2033.975341796875,
705 "z": "ab45b2a0.2d254",
709 "id": "23a0059d.3f004a",
711 "name": "set tmp.ar.allotted-resource-type",
712 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
714 "x": 1051.0001678466797,
715 "y": 271.00008487701416,
716 "z": "ab45b2a0.2d254",
720 "id": "77c2c758.5059b8",
722 "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
723 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
726 "x": 893.9941749572754,
727 "y": 1649.4938287734985,
728 "z": "ab45b2a0.2d254",
734 "id": "8bddffb6.5284",
736 "name": "execute RestApiCallNode - PUT AR by id",
737 "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",
740 "x": 643.0002861022949,
741 "y": 1734.0002174377441,
742 "z": "ab45b2a0.2d254",
752 "id": "d13a7894.7c9648",
755 "xml": "<outcome value='not-found'>\n",
758 "x": 892.6416397094727,
759 "y": 1772.3315477371216,
760 "z": "ab45b2a0.2d254",
768 "id": "a17ed53e.8a7c48",
771 "xml": "<outcome value='failure'>\n",
774 "x": 883.6416893005371,
775 "y": 1740.8315734863281,
776 "z": "ab45b2a0.2d254",
784 "id": "2a45ba4f.903ad6",
787 "xml": "<outcome value='success'>\n",
790 "x": 887.3917274475098,
791 "y": 1711.1886783614755,
792 "z": "ab45b2a0.2d254",
800 "id": "2a58bb37.857ca4",
801 "type": "returnFailure",
802 "name": "return failure",
803 "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",
805 "x": 1053.3917274475098,
806 "y": 1741.581597328186,
807 "z": "ab45b2a0.2d254",
811 "id": "4b685690.de2cf8",
818 "x": 1029.047695159912,
819 "y": 1707.3808475509286,
820 "z": "ab45b2a0.2d254",
826 "id": "ab5d9313.ad157",
828 "name": "execute RestApiCallNode - Update parent provided service AR",
829 "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",
832 "x": 712.9999732971191,
833 "y": 1160.0002641677856,
834 "z": "ab45b2a0.2d254",
844 "id": "9094ff9e.53d26",
847 "xml": "<outcome value='not-found'>\n",
850 "x": 1021.308032989502,
851 "y": 1191.9985399246216,
852 "z": "ab45b2a0.2d254",
860 "id": "43bc3599.27bffc",
863 "xml": "<outcome value='failure'>\n",
866 "x": 1012.3080825805664,
867 "y": 1160.4985656738281,
868 "z": "ab45b2a0.2d254",
876 "id": "fc9fd873.a374e8",
879 "xml": "<outcome value='success'>\n",
882 "x": 1016.0581207275391,
883 "y": 1130.8556705489755,
884 "z": "ab45b2a0.2d254",
892 "id": "421ec30a.485b8c",
893 "type": "returnFailure",
894 "name": "return failure",
895 "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",
897 "x": 1182.058120727539,
898 "y": 1161.248589515686,
899 "z": "ab45b2a0.2d254",
903 "id": "c6163b00.f85308",
910 "x": 1157.7140884399414,
911 "y": 1127.0478397384286,
912 "z": "ab45b2a0.2d254",
918 "id": "f91628dc.a22298",
920 "name": "Put the parent allotted resource in mdsal",
923 "x": 641.9999198913574,
924 "y": 1122.0001707077026,
925 "z": "ab45b2a0.2d254",
929 "id": "8b5e7723.d59fc8",
931 "name": "set connection-attachment-ar-identifiers",
932 "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",
934 "x": 638.357105255127,
935 "y": 1324.571789741516,
936 "z": "ab45b2a0.2d254",
940 "id": "6c39c83c.d7b048",
942 "name": "set ar-data",
943 "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.` \" />",
945 "x": 552.2138862609863,
946 "y": 1292.3811464309692,
947 "z": "ab45b2a0.2d254",
951 "id": "6b976d2c.2711d4",
953 "name": "set identifiers in overall structure",
954 "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",
956 "x": 617.1669044494629,
957 "y": 1358.6669750213623,
958 "z": "ab45b2a0.2d254",
962 "id": "c9e7bba5.2bcb28",
964 "name": "execute getTime",
965 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
968 "x": 569.4997444152832,
969 "y": 1432.0005025863647,
970 "z": "ab45b2a0.2d254",
976 "id": "5aa40ff8.faf21",
978 "name": "set allotted-resource-oper-status",
979 "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",
981 "x": 620.4867820739746,
982 "y": 1487.951735496521,
983 "z": "ab45b2a0.2d254",
987 "id": "46cb4068.e43d3",
989 "name": "set model-data",
990 "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.` \" />",
992 "x": 565.0554008483887,
993 "y": 1393.5558605194092,
994 "z": "ab45b2a0.2d254",
998 "id": "b1148074.b83dc",
1000 "name": "Prepare data for allotted-resource addition to MDSAL",
1001 "info": "This will add to allotted-resource which is present inside service.",
1003 "x": 682.3888893127441,
1004 "y": 1258.5557069778442,
1005 "z": "ab45b2a0.2d254",
1009 "id": "a64f1b8.759c3e8",
1011 "name": "generate parent-ar url - replace allotted-resource-id",
1012 "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",
1015 "x": 677.5000343322754,
1016 "y": 1086.0001096725464,
1017 "z": "ab45b2a0.2d254",
1023 "id": "f24b78b1.fdc468",
1025 "name": "generate parent-ar url - replace service-instance-id",
1026 "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",
1029 "x": 673.4999580383301,
1030 "y": 1043.0002460479736,
1031 "z": "ab45b2a0.2d254",
1037 "id": "5c890ede.9091d",
1039 "name": "Prepare Parent AR URL",
1040 "info": "Preparation to set provided-allotted-resource in parent service instance",
1042 "x": 591.500415802002,
1043 "y": 972.0001993179321,
1044 "z": "ab45b2a0.2d254",
1048 "id": "9b1a0521.5c3978",
1050 "name": "set tmp.ar.parent-service-instance-id",
1051 "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",
1053 "x": 630.5002098083496,
1054 "y": 1005.500138759613,
1055 "z": "ab45b2a0.2d254",
1059 "id": "1dce57cb.3a2f28",
1061 "name": "Required for filling template values",
1062 "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1064 "x": 820.0003776550293,
1065 "y": 1612.4999017715454,
1066 "z": "ab45b2a0.2d254",
1070 "id": "ef75ff36.6e6a8",
1071 "type": "returnFailure",
1072 "name": "return failure",
1073 "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",
1075 "x": 2187.756992340088,
1076 "y": 843.6459283828735,
1077 "z": "ab45b2a0.2d254",
1081 "id": "a32862a8.8af3d",
1083 "name": "set tmp.found-cidx",
1084 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1086 "x": 1313.6461639404297,
1087 "y": 755.3126714229584,
1088 "z": "ab45b2a0.2d254",
1092 "id": "46efcfd6.a7a1a",
1094 "name": "Add to parent services provided-allotted-resources in mdsal",
1097 "x": 702.2015266418457,
1098 "y": 939.9793558120728,
1099 "z": "ab45b2a0.2d254",
1103 "id": "b6eb1599.cd85e8",
1105 "name": "Add to allotted-resources in mdsal",
1108 "x": 622.9687156677246,
1109 "y": 1225.969036102295,
1110 "z": "ab45b2a0.2d254",
1114 "id": "19566392.15832c",
1116 "name": "block: atomic",
1117 "xml": "<block atomic=\"true\">\n",
1121 "x": 1296.0000705718994,
1122 "y": 653.2778596878052,
1123 "z": "ab45b2a0.2d254",
1131 "id": "be105cba.576f",
1132 "type": "switchNode",
1133 "name": "switch cr length",
1134 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1137 "x": 1483.8574504852295,
1138 "y": 653.8969950675964,
1139 "z": "ab45b2a0.2d254",
1147 "id": "a5af4603.e786b8",
1149 "name": "outcome 1",
1150 "xml": "<outcome value='1'>\n",
1153 "x": 1683.1905727386475,
1154 "y": 653.8970737457275,
1155 "z": "ab45b2a0.2d254",
1163 "id": "b07d75d2.a2b088",
1165 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1166 "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",
1169 "x": 768.000072479248,
1170 "y": 648.0001354217529,
1171 "z": "ab45b2a0.2d254",
1180 "id": "9a3ff920.b9ec88",
1183 "xml": "<outcome value='failure'>\n",
1186 "x": 1136.0001029968262,
1187 "y": 618.0001335144043,
1188 "z": "ab45b2a0.2d254",
1196 "id": "9cab679f.f79248",
1203 "x": 1288.0001029968262,
1204 "y": 617.0001335144043,
1205 "z": "ab45b2a0.2d254",
1211 "id": "26fdc495.60ac0c",
1213 "name": "block : atomic",
1214 "xml": "<block atomic=\"true\">",
1217 "x": 564.5556297302246,
1218 "y": 1567.6667528152466,
1219 "z": "ab45b2a0.2d254",
1228 "id": "3267c7d4.904798",
1230 "name": "for each sotn-get-request-input-param",
1231 "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1234 "x": 834.5556945800781,
1235 "y": 1567.6668004989624,
1236 "z": "ab45b2a0.2d254",
1244 "id": "2051e6d6.e5a81a",
1246 "name": "Take the parameter names by removing prefix",
1249 "x": 1374.555477142334,
1250 "y": 1523.6668338775635,
1251 "z": "ab45b2a0.2d254",
1255 "id": "43dec0c4.9aa5a",
1257 "name": "execute split parameterName",
1258 "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",
1261 "x": 1332.590145111084,
1262 "y": 1558.6459770202637,
1263 "z": "ab45b2a0.2d254",
1269 "id": "e2d39b7e.8a6eb8",
1271 "name": "set parameterName",
1272 "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",
1274 "x": 1303.0346717834473,
1275 "y": 1591.6459770202637,
1276 "z": "ab45b2a0.2d254",
1280 "id": "36eb754f.ed7b4a",
1282 "name": "Remove VNFC prefix",
1285 "x": 775.5556221008301,
1286 "y": 1535.1111145019531,
1287 "z": "ab45b2a0.2d254",
1291 "id": "2605999a.01d556",
1293 "name": "block : atomic",
1294 "xml": "<block atomic=\"true\">",
1297 "x": 1081.5555305480957,
1298 "y": 1566.1111450195312,
1299 "z": "ab45b2a0.2d254",
1308 "id": "e02c5c21.82a2",
1310 "name": "save srcLTP relationship in AAI",
1311 "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.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\" \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $prop.connection-attachment.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
1314 "x": 590.0041046142578,
1315 "y": 1988.0046367645264,
1316 "z": "ab45b2a0.2d254",
1322 "id": "bde5bdf6.37338",
1324 "name": "set src-ltpId",
1325 "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $prop.connection-attachment.access-node-id + '-ltpId-' + $prop.connection-attachment.access-ltp-id`\" />\n",
1327 "x": 534.0001983642578,
1328 "y": 1952.0004014968872,
1329 "z": "ab45b2a0.2d254",