3 "id": "9d8f9fa5.439ad",
8 "y": 59.999999046325684,
9 "z": "27f64d8c.2cf692",
17 "id": "999b7749.bb2828",
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": 346.00391006469727,
26 "y": 132.00001621246338,
27 "z": "27f64d8c.2cf692",
35 "id": "a889b861.30b858",
37 "name": "sotn-attachment-topology-operation-create",
38 "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 334.0040283203125,
42 "y": 219.99999904632568,
43 "z": "27f64d8c.2cf692",
51 "id": "a434e8ee.221048",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 254.00395965576172,
59 "y": 969.000247001648,
60 "z": "27f64d8c.2cf692",
90 "id": "aad4b525.c81b28",
92 "name": "Set allotted resource id if not sent by SO",
95 "x": 725.0805969238281,
96 "y": 144.43391513824463,
97 "z": "27f64d8c.2cf692",
103 "id": "c342578d.28b708",
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": 684.0039367675781,
110 "y": 184.99999141693115,
111 "z": "27f64d8c.2cf692",
120 "id": "3dca0ad4.c31f16",
123 "xml": "<outcome value=''>",
126 "x": 935.0039863586426,
127 "y": 146.9999783039093,
128 "z": "27f64d8c.2cf692",
136 "id": "5f732a2c.880594",
139 "xml": "<outcome value='Other'>\n",
143 "y": 206.99998688697815,
144 "z": "27f64d8c.2cf692",
152 "id": "e2d02082.677af",
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": 1168.003890991211,
158 "y": 206.99999165534973,
159 "z": "27f64d8c.2cf692",
165 "id": "efa6ad20.d82ee",
167 "name": "set tmp.ar.self-link",
168 "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",
170 "x": 656.0038299560547,
171 "y": 420.00005626678467,
172 "z": "27f64d8c.2cf692",
178 "id": "269c43d6.56387c",
180 "name": "execute Properties",
181 "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",
184 "x": 662.2657508850098,
185 "y": 505.66673374176025,
186 "z": "27f64d8c.2cf692",
194 "id": "3e97601e.a0c21",
196 "name": "generate allotted-resource tmp.ar-url",
197 "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",
200 "x": 709.2657318115234,
201 "y": 589.6667013168335,
202 "z": "27f64d8c.2cf692",
210 "id": "d23cb383.a5008",
212 "name": "execute tmp.ar.allotted-resource-id",
213 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
216 "x": 1150.003963470459,
217 "y": 147.9999840259552,
218 "z": "27f64d8c.2cf692",
226 "id": "6e27cc35.c13c74",
229 "xml": "<outcome value='failure'>\n",
232 "x": 1368.004005432129,
233 "y": 147.99994778633118,
234 "z": "27f64d8c.2cf692",
242 "id": "e6eb33a1.9cd3b",
243 "type": "returnFailure",
244 "name": "return failure",
245 "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",
247 "x": 1534.0039596557617,
248 "y": 147.99996209144592,
249 "z": "27f64d8c.2cf692",
255 "id": "a1d6ff56.9c99d",
256 "type": "get-resource",
257 "name": "get-resource connection-attachment-allotted-resource",
258 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='connection-attachment-allotted-resources/connection-attachment-allotted-resource/$tmp.ar.allotted-resource-id/' pfx='mdsal-ar' >\n",
262 "y": 684.7778043746948,
263 "z": "27f64d8c.2cf692",
271 "id": "69156564.0efd4c",
274 "xml": "<outcome value='success'>\n",
277 "x": 1077.0039863586426,
278 "y": 686.7777614593506,
279 "z": "27f64d8c.2cf692",
287 "id": "8474d88f.5c62c8",
288 "type": "returnFailure",
289 "name": "return failure",
290 "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",
292 "x": 1810.5223655700684,
293 "y": 687.8438329696655,
294 "z": "27f64d8c.2cf692",
300 "id": "57300b8d.590704",
302 "name": "Check for non existence of allotted resource",
305 "x": 721.0039443969727,
306 "y": 650.7778549194336,
307 "z": "27f64d8c.2cf692",
313 "id": "d079c407.4d6f78",
315 "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
316 "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
319 "x": 1619.6705627441406,
320 "y": 883.0000419616699,
321 "z": "27f64d8c.2cf692",
329 "id": "52744f96.8455f",
330 "type": "switchNode",
331 "name": "switch service-data.consumed-allotted-resources_length",
332 "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
335 "x": 772.6699485778809,
336 "y": 843.71404337883,
337 "z": "27f64d8c.2cf692",
346 "id": "8264b400.beda08",
348 "name": "outcome Null",
349 "xml": "<outcome value=''>\n",
352 "x": 1094.812831878662,
353 "y": 846.57146525383,
354 "z": "27f64d8c.2cf692",
362 "id": "7056a183.5603b",
365 "xml": "<outcome value='Other'>\n",
368 "x": 1082.8128356933594,
369 "y": 889.5714666843414,
370 "z": "27f64d8c.2cf692",
378 "id": "138cce38.a61662",
380 "name": "block : atomic",
381 "xml": "<block atomic=\"true\">",
384 "x": 1242.939926147461,
385 "y": 887.6974432468414,
386 "z": "27f64d8c.2cf692",
396 "id": "11ae1967.44e4c7",
399 "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",
401 "x": 1253.6698036193848,
402 "y": 846.2855279445648,
403 "z": "27f64d8c.2cf692",
409 "id": "361e33ee.17369c",
411 "name": "set consumed allotted resources",
412 "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",
414 "x": 698.527229309082,
415 "y": 916.2856435775757,
416 "z": "27f64d8c.2cf692",
422 "id": "1d2e79f7.7a22f6",
423 "type": "switchNode",
424 "name": "switch tmp.found-cidx",
425 "xml": "<switch test='`$tmp.found-cidx`'>\n",
428 "x": 1432.054973602295,
429 "y": 919.7089660167694,
430 "z": "27f64d8c.2cf692",
438 "id": "5635489a.7ffbc8",
439 "type": "outcomeTrue",
441 "xml": "<outcome value='false'>\n",
444 "x": 1622.0549278259277,
445 "y": 919.7089030742645,
446 "z": "27f64d8c.2cf692",
454 "id": "66ad5d1b.da3ab4",
456 "name": "block : atomic",
457 "xml": "<block atomic=\"true\">",
460 "x": 1788.0549278259277,
461 "y": 919.7089030742645,
462 "z": "27f64d8c.2cf692",
470 "id": "a651bfa.1352c4",
471 "type": "switchNode",
472 "name": "switch allotted-resource-id",
473 "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
476 "x": 2093.7820434570312,
477 "y": 883.0000257492065,
478 "z": "27f64d8c.2cf692",
486 "id": "54bb5ed6.70da5",
487 "type": "outcomeTrue",
489 "xml": "<outcome value='true'>\n",
492 "x": 2318.591772079468,
493 "y": 885.4644467830658,
494 "z": "27f64d8c.2cf692",
502 "id": "f92757e1.e50008",
504 "name": "set tmp.cidx",
505 "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
507 "x": 2033.928274154663,
508 "y": 920.2205998897552,
509 "z": "27f64d8c.2cf692",
515 "id": "57bdcf73.d7aa8",
517 "name": "Add to consumed service consumed-allotted-resources in mdsal",
518 "info": "Prepare data and add to service-data",
520 "x": 791.6711463928223,
521 "y": 772.9999761581421,
522 "z": "27f64d8c.2cf692",
528 "id": "f0cc7d17.67dd7",
530 "name": "This set resource will be added to MDSAL by provider code",
531 "info": "Below we add to service-data.consumed-allotted-resource at last index",
533 "x": 774.0040016174316,
534 "y": 880.7781000137329,
535 "z": "27f64d8c.2cf692",
541 "id": "b58ada11.db1438",
543 "name": "update AAI allotted-resource",
544 "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\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-tag-entry\" value=\"`$prop.connection-attachment.cVLAN`\" />\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",
547 "x": 674.6947441101074,
548 "y": 1909.531907916069,
549 "z": "27f64d8c.2cf692",
558 "id": "a1860cc7.e0b1b",
561 "xml": "<outcome value='failure'>\n",
564 "x": 930.4566535949707,
565 "y": 1892.484411597252,
566 "z": "27f64d8c.2cf692",
574 "id": "3f25cd5e.443c92",
575 "type": "returnFailure",
576 "name": "return failure",
577 "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",
579 "x": 1096.9805335998535,
580 "y": 1904.1034826040268,
581 "z": "27f64d8c.2cf692",
587 "id": "e37a2480.b51108",
590 "xml": "<outcome value='not-found'>\n",
593 "x": 937.5519409179688,
594 "y": 1925.2463792562485,
595 "z": "27f64d8c.2cf692",
603 "id": "b9aa3657.c52d58",
605 "name": "Save Resource to AAI",
608 "x": 649.5043678283691,
609 "y": 1874.8337998390198,
610 "z": "27f64d8c.2cf692",
616 "id": "af36f779.0f72d8",
618 "name": "Set allotted resource type if not sent by SO",
621 "x": 728.0038757324219,
622 "y": 263.9999933242798,
623 "z": "27f64d8c.2cf692",
629 "id": "1cbd957b.be039b",
630 "type": "switchNode",
631 "name": "switch allotted-resource-type",
632 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
635 "x": 688.9271774291992,
636 "y": 297.56605434417725,
637 "z": "27f64d8c.2cf692",
646 "id": "51e4f8bb.15fd98",
649 "xml": "<outcome value=''>",
652 "x": 933.9272804260254,
653 "y": 268.56605529785156,
654 "z": "27f64d8c.2cf692",
662 "id": "9bc5979.dbcfa68",
665 "xml": "<outcome value='Other'>\n",
668 "x": 934.9272003173828,
669 "y": 328.5660638809204,
670 "z": "27f64d8c.2cf692",
678 "id": "8168f22d.0df79",
680 "name": "set tmp.ar.allotted-resource-type",
681 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
683 "x": 1166.9271850585938,
684 "y": 328.566068649292,
685 "z": "27f64d8c.2cf692",
691 "id": "965843c3.6889f",
693 "name": "For storage in AAI connection-attachment-topology",
696 "x": 750.0038604736328,
697 "y": 388.00001430511475,
698 "z": "27f64d8c.2cf692",
704 "id": "eb60ce1a.0aef2",
706 "name": "Obtain different URL, template location etc",
707 "info": "For saving resource information to MDSAL & for AAI",
709 "x": 728.0038566589355,
710 "y": 470.88889503479004,
711 "z": "27f64d8c.2cf692",
717 "id": "ef74607d.036b",
719 "name": "Used for Put AR by id to MDSAL",
722 "x": 692.0038909912109,
723 "y": 554.8888864517212,
724 "z": "27f64d8c.2cf692",
730 "id": "dddb900f.8862d",
732 "name": "Obtain the last index in services",
733 "info": "ServiceData is added by Provider code",
735 "x": 690.4483680725098,
736 "y": 808.8888585567474,
737 "z": "27f64d8c.2cf692",
743 "id": "65b342f3.64d6cc",
745 "name": "TODO: Rework after confirmation from AAI",
748 "x": 949.8632774353027,
749 "y": 1852.4048385620117,
750 "z": "27f64d8c.2cf692",
756 "id": "4298e590.a1603c",
758 "name": "set output to api handler",
759 "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",
761 "x": 663.2720336914062,
762 "y": 1822.3591704368591,
763 "z": "27f64d8c.2cf692",
769 "id": "d0bb4427.716f08",
770 "type": "returnSuccess",
771 "name": "return success",
772 "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",
774 "x": 632.6851463317871,
775 "y": 1956.9750332832336,
776 "z": "27f64d8c.2cf692",
782 "id": "8d4b5605.e44fb8",
784 "name": "set tmp.ar.allotted-resource-type",
785 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
787 "x": 1173.0039672851562,
788 "y": 268.999981880188,
789 "z": "27f64d8c.2cf692",
795 "id": "bdd1fffd.ca081",
797 "name": "call GENERIC-RESOURCE-API:sotn-get-request-input-param",
798 "xml": "<call module='GENERIC-RESOURCE-API' rpc='connection-attachment-get-request-input-param' mode='sync' >\n",
801 "x": 787.9980621337891,
802 "y": 1653.4938340187073,
803 "z": "27f64d8c.2cf692",
811 "id": "e28f7f9f.51996",
813 "name": "execute RestApiCallNode - PUT AR by id",
814 "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",
817 "x": 723.0041427612305,
818 "y": 1694.0000214576721,
819 "z": "27f64d8c.2cf692",
829 "id": "56bb7e95.f927f",
832 "xml": "<outcome value='not-found'>\n",
835 "x": 991.6455192565918,
836 "y": 1745.331433199346,
837 "z": "27f64d8c.2cf692",
845 "id": "74711000.f0575",
848 "xml": "<outcome value='failure'>\n",
851 "x": 982.6455688476562,
852 "y": 1713.8314589485526,
853 "z": "27f64d8c.2cf692",
861 "id": "579344a.ffcc7bc",
864 "xml": "<outcome value='success'>\n",
867 "x": 986.3956069946289,
868 "y": 1684.1885638237,
869 "z": "27f64d8c.2cf692",
877 "id": "e2257359.1b116",
878 "type": "returnFailure",
879 "name": "return failure",
880 "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",
882 "x": 1152.395606994629,
883 "y": 1714.5814827904105,
884 "z": "27f64d8c.2cf692",
890 "id": "7d6eb53b.d4c13c",
897 "x": 1128.0515747070312,
898 "y": 1680.380733013153,
899 "z": "27f64d8c.2cf692",
907 "id": "e6716760.631bc8",
909 "name": "execute RestApiCallNode - Update parent provided service AR",
910 "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",
913 "x": 788.0038719177246,
914 "y": 1214.0001440048218,
915 "z": "27f64d8c.2cf692",
925 "id": "f5b61314.7a9ea",
928 "xml": "<outcome value='not-found'>\n",
931 "x": 1110.3118896484375,
932 "y": 1258.9983615875244,
933 "z": "27f64d8c.2cf692",
941 "id": "7f95a527.cea04c",
944 "xml": "<outcome value='failure'>\n",
947 "x": 1101.311939239502,
948 "y": 1227.498387336731,
949 "z": "27f64d8c.2cf692",
957 "id": "6554700.9ffd59",
960 "xml": "<outcome value='success'>\n",
963 "x": 1105.0619773864746,
964 "y": 1197.8554922118783,
965 "z": "27f64d8c.2cf692",
973 "id": "adbe2b8f.bcb438",
974 "type": "returnFailure",
975 "name": "return failure",
976 "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",
978 "x": 1271.0619773864746,
979 "y": 1228.2484111785889,
980 "z": "27f64d8c.2cf692",
986 "id": "f1effaa7.98cb08",
993 "x": 1246.717945098877,
994 "y": 1194.0476614013314,
995 "z": "27f64d8c.2cf692",
1003 "id": "8ad1638f.48f57",
1005 "name": "Put the parent allotted resource in mdsal",
1008 "x": 712.0038070678711,
1009 "y": 1182.0000429153442,
1010 "z": "27f64d8c.2cf692",
1016 "id": "272d789b.464298",
1018 "name": "set connection-attachment-ar-identifiers",
1019 "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",
1021 "x": 712.3609619140625,
1022 "y": 1416.5716543197632,
1023 "z": "27f64d8c.2cf692",
1029 "id": "8217a995.1a4f18",
1031 "name": "set ar-data",
1032 "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.` \" />",
1034 "x": 623.2177734375,
1035 "y": 1375.3809804916382,
1036 "z": "27f64d8c.2cf692",
1042 "id": "de9004ee.8e65a8",
1044 "name": "set identifiers in overall structure",
1045 "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",
1047 "x": 689.1707611083984,
1048 "y": 1458.6668643951416,
1049 "z": "27f64d8c.2cf692",
1055 "id": "61510de6.6b5a64",
1057 "name": "execute getTime",
1058 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1061 "x": 640.5036277770996,
1062 "y": 1541.0004243850708,
1063 "z": "27f64d8c.2cf692",
1071 "id": "a9832c0c.edf5c",
1073 "name": "set allotted-resource-oper-status",
1074 "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",
1076 "x": 691.4906883239746,
1077 "y": 1576.9515752792358,
1078 "z": "27f64d8c.2cf692",
1084 "id": "fc645855.78a1f8",
1086 "name": "set model-data",
1087 "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.` \" />",
1089 "x": 633.0592803955078,
1090 "y": 1495.5557231903076,
1091 "z": "27f64d8c.2cf692",
1097 "id": "e28fb6e1.570bc8",
1099 "name": "Prepare data for allotted-resource addition to MDSAL",
1100 "info": "This will add to allotted-resource which is present inside service.",
1102 "x": 750.3927764892578,
1103 "y": 1335.555583000183,
1104 "z": "27f64d8c.2cf692",
1110 "id": "908d0f20.3dc3f",
1112 "name": "generate parent-ar url - replace allotted-resource-id",
1113 "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",
1116 "x": 753.5039024353027,
1117 "y": 1145.0000400543213,
1118 "z": "27f64d8c.2cf692",
1126 "id": "d5a721b9.32552",
1128 "name": "generate parent-ar url - replace service-instance-id",
1129 "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",
1132 "x": 754.5038414001465,
1133 "y": 1107.0000896453857,
1134 "z": "27f64d8c.2cf692",
1142 "id": "4df22418.3a53fc",
1144 "name": "Prepare Parent AR URL",
1145 "info": "Preparation to set provided-allotted-resource in parent service instance",
1147 "x": 661.5042572021484,
1148 "y": 1035.0000867843628,
1149 "z": "27f64d8c.2cf692",
1155 "id": "8340ac1e.8db72",
1157 "name": "set tmp.ar.parent-service-instance-id",
1158 "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",
1160 "x": 706.5040893554688,
1161 "y": 1071.4999990463257,
1162 "z": "27f64d8c.2cf692",
1168 "id": "c17a3b14.014a38",
1170 "name": "Required for filling template values",
1171 "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1173 "x": 696.0042877197266,
1174 "y": 1622.4997611045837,
1175 "z": "27f64d8c.2cf692",
1181 "id": "d7b2b6d3.cadeb8",
1182 "type": "returnFailure",
1183 "name": "return failure",
1184 "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",
1186 "x": 2506.7607421875,
1187 "y": 883.6458120346069,
1188 "z": "27f64d8c.2cf692",
1194 "id": "caba0b91.36a608",
1196 "name": "set tmp.found-cidx",
1197 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1199 "x": 1422.6500091552734,
1200 "y": 840.3125638961792,
1201 "z": "27f64d8c.2cf692",
1207 "id": "88129b22.08bd88",
1209 "name": "Add to parent services provided-allotted-resources in mdsal",
1212 "x": 771.2053833007812,
1213 "y": 995.9792184829712,
1214 "z": "27f64d8c.2cf692",
1220 "id": "209aa5b9.f006fa",
1222 "name": "Add to allotted-resources in mdsal",
1225 "x": 691.9726028442383,
1226 "y": 1302.9688847064972,
1227 "z": "27f64d8c.2cf692",
1233 "id": "852fc020.79a93",
1235 "name": "block: atomic",
1236 "xml": "<block atomic=\"true\">\n",
1240 "x": 1239.003807067871,
1241 "y": 686.2776508331299,
1242 "z": "27f64d8c.2cf692",
1250 "id": "f33868e5.1acfb8",
1251 "type": "switchNode",
1252 "name": "switch cr length",
1253 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1256 "x": 1426.8611869812012,
1257 "y": 686.8967862129211,
1258 "z": "27f64d8c.2cf692",
1266 "id": "71e1d814.25e938",
1268 "name": "outcome 1",
1269 "xml": "<outcome value='1'>\n",
1272 "x": 1626.1943092346191,
1273 "y": 686.8968648910522,
1274 "z": "27f64d8c.2cf692",