3 "id": "b2b2fc12.cf96d",
7 "x": 96.50000190734863,
8 "y": 38.00000286102295,
9 "z": "f5fcb4a8.869698",
17 "id": "6e50c528.de9a7c",
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": 237.50000381469727,
26 "y": 115.0000171661377,
27 "z": "f5fcb4a8.869698",
35 "id": "f4bf8d69.ecd28",
37 "name": "sotn-attachment-topology-operation-create",
38 "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 225.5001220703125,
43 "z": "f5fcb4a8.869698",
51 "id": "3bd3ace.6bd7c54",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 145.50005340576172,
59 "y": 952.0002479553223,
60 "z": "f5fcb4a8.869698",
92 "id": "bc77dabb.b8dfe8",
94 "name": "Set allotted resource id if not sent by SO",
97 "x": 629.5767517089844,
98 "y": 112.4339189529419,
99 "z": "f5fcb4a8.869698",
103 "id": "e49d7cd0.24623",
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": 575.5000305175781,
110 "y": 167.99999237060547,
111 "z": "f5fcb4a8.869698",
120 "id": "ede8227d.3da0a",
123 "xml": "<outcome value=''>",
126 "x": 773.5001182556152,
127 "y": 137.99998092651367,
128 "z": "f5fcb4a8.869698",
136 "id": "871d8b04.92b798",
139 "xml": "<outcome value='Other'>\n",
142 "x": 772.5000267028809,
143 "y": 174.99999141693115,
144 "z": "f5fcb4a8.869698",
152 "id": "4fdaace7.615964",
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": 970.5000152587891,
158 "y": 172.00001049041748,
159 "z": "f5fcb4a8.869698",
163 "id": "4a92eb0d.67e9c4",
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": 543.4999542236328,
169 "y": 389.0000991821289,
170 "z": "f5fcb4a8.869698",
174 "id": "2dd15073.0da3b",
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": 543.7618713378906,
181 "y": 470.66678047180176,
182 "z": "f5fcb4a8.869698",
188 "id": "5e1f3d4f.82c794",
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": 596.7619323730469,
195 "y": 557.6666984558105,
196 "z": "f5fcb4a8.869698",
202 "id": "8efccbca.23f2f8",
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": 988.5000953674316,
209 "y": 138.99998664855957,
210 "z": "f5fcb4a8.869698",
218 "id": "d4c15c7f.c9c6b",
221 "xml": "<outcome value='failure'>\n",
224 "x": 1206.5001373291016,
225 "y": 138.99995040893555,
226 "z": "f5fcb4a8.869698",
234 "id": "4780ce03.07d49",
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": 1372.5000915527344,
240 "y": 138.9999647140503,
241 "z": "f5fcb4a8.869698",
245 "id": "cd668aab.887ef8",
248 "xml": "<outcome value='success'>\n",
251 "x": 1102.5002307891846,
252 "y": 629.777871131897,
253 "z": "f5fcb4a8.869698",
261 "id": "fff5fcf9.b91b7",
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": 1836.0186100006104,
267 "y": 630.8439426422119,
268 "z": "f5fcb4a8.869698",
272 "id": "ae16b108.dde0f",
274 "name": "Check for non existence of allotted resource",
277 "x": 958.5001525878906,
278 "y": 563.7779378890991,
279 "z": "f5fcb4a8.869698",
283 "id": "ada117fc.11b638",
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": 1479.1666984558105,
290 "y": 774.0000503063202,
291 "z": "f5fcb4a8.869698",
299 "id": "7d9ca6fb.249298",
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": 661.1660232543945,
306 "y": 750.7140827178955,
307 "z": "f5fcb4a8.869698",
316 "id": "6fbc583.8ed6aa8",
318 "name": "outcome Null",
319 "xml": "<outcome value=''>\n",
322 "x": 965.3089218139648,
323 "y": 719.5715198516846,
324 "z": "f5fcb4a8.869698",
332 "id": "2f545e93.6ba8a2",
335 "xml": "<outcome value='Other'>\n",
338 "x": 942.3089714050293,
339 "y": 780.5714750289917,
340 "z": "f5fcb4a8.869698",
348 "id": "7d9f20d0.5505c",
350 "name": "block : atomic",
351 "xml": "<block atomic=\"true\">",
354 "x": 1102.4360618591309,
355 "y": 778.6974515914917,
356 "z": "f5fcb4a8.869698",
366 "id": "a95f5b55.d6e9b8",
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": 1115.1659049987793,
372 "y": 717.2855701446533,
373 "z": "f5fcb4a8.869698",
377 "id": "f5e2658.10ace98",
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": 590.0233154296875,
383 "y": 854.285647392273,
384 "z": "f5fcb4a8.869698",
388 "id": "67b14806.59d9a8",
389 "type": "switchNode",
390 "name": "switch tmp.found-cidx",
391 "xml": "<switch test='`$tmp.found-cidx`'>\n",
394 "x": 1291.5511093139648,
395 "y": 810.7089743614197,
396 "z": "f5fcb4a8.869698",
404 "id": "b4f07caa.1eece",
405 "type": "outcomeTrue",
407 "xml": "<outcome value='false'>\n",
410 "x": 1481.5510635375977,
411 "y": 810.7089114189148,
412 "z": "f5fcb4a8.869698",
420 "id": "9b5a2a9b.791398",
422 "name": "block : atomic",
423 "xml": "<block atomic=\"true\">",
426 "x": 1647.5510635375977,
427 "y": 810.7089114189148,
428 "z": "f5fcb4a8.869698",
436 "id": "e40e8409.36d7f8",
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": 1896.2783279418945,
443 "y": 771.0000772476196,
444 "z": "f5fcb4a8.869698",
452 "id": "f29e0cd9.704ae",
453 "type": "outcomeTrue",
455 "xml": "<outcome value='true'>\n",
458 "x": 2078.087902069092,
459 "y": 771.464524269104,
460 "z": "f5fcb4a8.869698",
468 "id": "82e04cf1.4917b",
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": 1809.424446105957,
474 "y": 810.2206125259399,
475 "z": "f5fcb4a8.869698",
479 "id": "9b1a4b9d.344fd8",
481 "name": "Add to consumed service consumed-allotted-resources in mdsal",
482 "info": "Prepare data and add to service-data",
484 "x": 682.167236328125,
485 "y": 681.0000467300415,
486 "z": "f5fcb4a8.869698",
490 "id": "57f62d80.43fe94",
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": 669.5001525878906,
496 "y": 819.7781391143799,
497 "z": "f5fcb4a8.869698",
501 "id": "8fb59fb4.b6b0c",
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": 556.1909332275391,
508 "y": 1876.5319156646729,
509 "z": "f5fcb4a8.869698",
518 "id": "a1966a3.5032b98",
521 "xml": "<outcome value='failure'>\n",
524 "x": 769.9527854919434,
525 "y": 1860.4844913482666,
526 "z": "f5fcb4a8.869698",
534 "id": "9c3ee63e.5c5548",
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": 936.4766654968262,
540 "y": 1872.1035623550415,
541 "z": "f5fcb4a8.869698",
545 "id": "3409a13c.09f89e",
548 "xml": "<outcome value='not-found'>\n",
551 "x": 777.0480728149414,
552 "y": 1893.2464590072632,
553 "z": "f5fcb4a8.869698",
561 "id": "72ae40d1.ad37d",
563 "name": "Save Resource to AAI",
566 "x": 552.00048828125,
567 "y": 1812.8338623046875,
568 "z": "f5fcb4a8.869698",
572 "id": "a332d2fb.609ff",
574 "name": "Set allotted resource type if not sent by SO",
579 "z": "f5fcb4a8.869698",
583 "id": "afc1bdf5.4b836",
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": 577.4233093261719,
590 "y": 261.5660562515259,
591 "z": "f5fcb4a8.869698",
600 "id": "cf33bc7c.594b3",
603 "xml": "<outcome value=''>",
606 "x": 780.4234619140625,
607 "y": 246.56605911254883,
608 "z": "f5fcb4a8.869698",
616 "id": "977436f5.c716c8",
619 "xml": "<outcome value='Other'>\n",
622 "x": 773.4232902526855,
623 "y": 286.5660791397095,
624 "z": "f5fcb4a8.869698",
632 "id": "2162049e.dcac4c",
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": 1005.4232749938965,
638 "y": 286.56608390808105,
639 "z": "f5fcb4a8.869698",
643 "id": "689a35d2.e3d7ac",
645 "name": "For storage in AAI connection-attachment-topology",
648 "x": 640.4999618530273,
650 "z": "f5fcb4a8.869698",
654 "id": "adaba0c1.0cdca",
656 "name": "Obtain different URL, template location etc",
657 "info": "For saving resource information to MDSAL & for AAI",
659 "x": 615.4999465942383,
660 "y": 437.8889093399048,
661 "z": "f5fcb4a8.869698",
665 "id": "bdfc2cb5.718fd",
667 "name": "Used for Put AR by id to MDSAL",
670 "x": 581.5000305175781,
671 "y": 526.8889265060425,
672 "z": "f5fcb4a8.869698",
676 "id": "882372f2.e4c61",
678 "name": "Obtain the last index in services",
679 "info": "ServiceData is added by Provider code",
681 "x": 582.9444732666016,
682 "y": 712.8888711929321,
683 "z": "f5fcb4a8.869698",
687 "id": "9a473067.67045",
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": 560.7681350708008,
693 "y": 1776.3591890335083,
694 "z": "f5fcb4a8.869698",
698 "id": "91b59706.e4cdc8",
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": 510.18128967285156,
704 "y": 2026.9751167297363,
705 "z": "f5fcb4a8.869698",
709 "id": "382edb8d.38df44",
711 "name": "set tmp.ar.allotted-resource-type",
712 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
714 "x": 1019.5001487731934,
715 "y": 246.99998569488525,
716 "z": "f5fcb4a8.869698",
720 "id": "7cc17548.dbfedc",
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": 862.4941558837891,
727 "y": 1625.4937295913696,
728 "z": "f5fcb4a8.869698",
734 "id": "d7ef6ed3.36d06",
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": 611.5002670288086,
741 "y": 1710.0001182556152,
742 "z": "f5fcb4a8.869698",
752 "id": "5ed47414.f6a9ec",
755 "xml": "<outcome value='not-found'>\n",
758 "x": 861.1416206359863,
759 "y": 1748.3314485549927,
760 "z": "f5fcb4a8.869698",
768 "id": "9d623053.1780e",
771 "xml": "<outcome value='failure'>\n",
774 "x": 852.1416702270508,
775 "y": 1716.8314743041992,
776 "z": "f5fcb4a8.869698",
784 "id": "f8eb328d.71989",
787 "xml": "<outcome value='success'>\n",
790 "x": 855.8917083740234,
791 "y": 1687.1885791793466,
792 "z": "f5fcb4a8.869698",
800 "id": "ee36b0d3.645c5",
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": 1021.8917083740234,
806 "y": 1717.5814981460571,
807 "z": "f5fcb4a8.869698",
811 "id": "3e7a6f90.4daaf",
818 "x": 997.5476760864258,
819 "y": 1683.3807483687997,
820 "z": "f5fcb4a8.869698",
826 "id": "ca1aa6f6.be5228",
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": 681.4999542236328,
833 "y": 1136.0001649856567,
834 "z": "f5fcb4a8.869698",
844 "id": "10d6c8ff.30a7e7",
847 "xml": "<outcome value='not-found'>\n",
850 "x": 989.8080139160156,
851 "y": 1167.9984407424927,
852 "z": "f5fcb4a8.869698",
860 "id": "fdb9bed8.ececf",
863 "xml": "<outcome value='failure'>\n",
866 "x": 980.8080635070801,
867 "y": 1136.4984664916992,
868 "z": "f5fcb4a8.869698",
876 "id": "d7a65ee0.6afc7",
879 "xml": "<outcome value='success'>\n",
882 "x": 984.5581016540527,
883 "y": 1106.8555713668466,
884 "z": "f5fcb4a8.869698",
892 "id": "c03cc053.bc771",
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": 1150.5581016540527,
898 "y": 1137.2484903335571,
899 "z": "f5fcb4a8.869698",
903 "id": "c4688568.f7e6a8",
910 "x": 1126.214069366455,
911 "y": 1103.0477405562997,
912 "z": "f5fcb4a8.869698",
918 "id": "8a0df30e.6ab87",
920 "name": "Put the parent allotted resource in mdsal",
923 "x": 610.4999008178711,
924 "y": 1098.0000715255737,
925 "z": "f5fcb4a8.869698",
929 "id": "2adeb8b.a94ce48",
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": 606.8570861816406,
935 "y": 1300.5716905593872,
936 "z": "f5fcb4a8.869698",
940 "id": "a07927be.544a08",
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.` \" />",
946 "y": 1268.3810472488403,
947 "z": "f5fcb4a8.869698",
951 "id": "c51e932f.b0db6",
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": 585.6668853759766,
957 "y": 1334.6668758392334,
958 "z": "f5fcb4a8.869698",
962 "id": "16ace716.f64f39",
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": 537.9997253417969,
969 "y": 1408.0004034042358,
970 "z": "f5fcb4a8.869698",
976 "id": "91c11379.3848",
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": 588.9867630004883,
982 "y": 1463.951636314392,
983 "z": "f5fcb4a8.869698",
987 "id": "c018ef66.ea6f",
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": 533.5553817749023,
993 "y": 1369.5557613372803,
994 "z": "f5fcb4a8.869698",
998 "id": "34c8d9e7.5935d6",
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": 650.8888702392578,
1004 "y": 1234.5556077957153,
1005 "z": "f5fcb4a8.869698",
1009 "id": "506bd024.3cd4a",
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": 646.0000152587891,
1016 "y": 1062.0000104904175,
1017 "z": "f5fcb4a8.869698",
1023 "id": "458e8426.a4810c",
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": 641.9999389648438,
1030 "y": 1019.0001468658447,
1031 "z": "f5fcb4a8.869698",
1037 "id": "cd63ec4b.ff1cb",
1039 "name": "Prepare Parent AR URL",
1040 "info": "Preparation to set provided-allotted-resource in parent service instance",
1042 "x": 560.0003967285156,
1043 "y": 948.0001001358032,
1044 "z": "f5fcb4a8.869698",
1048 "id": "3342f593.51121a",
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": 599.0001907348633,
1054 "y": 981.5000395774841,
1055 "z": "f5fcb4a8.869698",
1059 "id": "367a31a2.e26f2e",
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": 788.500358581543,
1065 "y": 1588.4998025894165,
1066 "z": "f5fcb4a8.869698",
1070 "id": "60273371.090a2c",
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": 2156.2569732666016,
1076 "y": 819.6458292007446,
1077 "z": "f5fcb4a8.869698",
1081 "id": "458ffc55.d5db04",
1083 "name": "set tmp.found-cidx",
1084 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1086 "x": 1282.1461448669434,
1087 "y": 731.3125722408295,
1088 "z": "f5fcb4a8.869698",
1092 "id": "9861d990.de9418",
1094 "name": "Add to parent services provided-allotted-resources in mdsal",
1097 "x": 670.7015075683594,
1098 "y": 915.9792566299438,
1099 "z": "f5fcb4a8.869698",
1103 "id": "3b543dd4.ce0012",
1105 "name": "Add to allotted-resources in mdsal",
1108 "x": 591.4686965942383,
1109 "y": 1201.968936920166,
1110 "z": "f5fcb4a8.869698",
1114 "id": "43f948c5.8e3c48",
1116 "name": "block: atomic",
1117 "xml": "<block atomic=\"true\">\n",
1121 "x": 1264.500051498413,
1122 "y": 629.2777605056763,
1123 "z": "f5fcb4a8.869698",
1131 "id": "8dd70ad1.fb4fc8",
1132 "type": "switchNode",
1133 "name": "switch cr length",
1134 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1137 "x": 1452.3574314117432,
1138 "y": 629.8968958854675,
1139 "z": "f5fcb4a8.869698",
1147 "id": "fbc1bfeb.141c9",
1149 "name": "outcome 1",
1150 "xml": "<outcome value='1'>\n",
1153 "x": 1651.6905536651611,
1154 "y": 629.8969745635986,
1155 "z": "f5fcb4a8.869698",
1163 "id": "cfbbadf0.d1c3a",
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": 736.5000534057617,
1170 "y": 624.000036239624,
1171 "z": "f5fcb4a8.869698",
1180 "id": "bae083e9.e29fb",
1183 "xml": "<outcome value='failure'>\n",
1186 "x": 1104.5000839233398,
1187 "y": 594.0000343322754,
1188 "z": "f5fcb4a8.869698",
1196 "id": "3e8fa261.9dd48e",
1203 "x": 1256.5000839233398,
1204 "y": 593.0000343322754,
1205 "z": "f5fcb4a8.869698",
1211 "id": "e88d2834.1fdcf8",
1213 "name": "block : atomic",
1214 "xml": "<block atomic=\"true\">",
1217 "x": 533.0556106567383,
1218 "y": 1543.6666536331177,
1219 "z": "f5fcb4a8.869698",
1228 "id": "89eae9c8.150108",
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": 803.0556755065918,
1235 "y": 1543.6667013168335,
1236 "z": "f5fcb4a8.869698",
1244 "id": "2789cf1d.918af",
1246 "name": "Take the parameter names by removing prefix",
1249 "x": 1343.0554580688477,
1250 "y": 1499.6667346954346,
1251 "z": "f5fcb4a8.869698",
1255 "id": "b944f1f.576e11",
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": 1301.0901260375977,
1262 "y": 1534.6458778381348,
1263 "z": "f5fcb4a8.869698",
1269 "id": "ab8b4370.c5cdb",
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": 1271.534652709961,
1275 "y": 1567.6458778381348,
1276 "z": "f5fcb4a8.869698",
1280 "id": "426abdbb.ca9194",
1282 "name": "Remove VNFC prefix",
1285 "x": 744.0556030273438,
1286 "y": 1511.1110153198242,
1287 "z": "f5fcb4a8.869698",
1291 "id": "a8e3f2e1.dc676",
1293 "name": "block : atomic",
1294 "xml": "<block atomic=\"true\">",
1297 "x": 1050.0555114746094,
1298 "y": 1542.1110458374023,
1299 "z": "f5fcb4a8.869698",
1308 "id": "c224a6bb.b7b288",
1310 "name": "save srcLTP relationship in AAI",
1311 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource:relationship-list\" \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": 569.5040016174316,
1315 "y": 1976.004249572754,
1316 "z": "f5fcb4a8.869698",
1322 "id": "c765719e.98d15",
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": 509.5000991821289,
1328 "y": 1933.0003423690796,
1329 "z": "f5fcb4a8.869698",