3 "id": "5133686c.68eb98",
7 "x": 103.01040649414062,
8 "y": 42.010414123535156,
9 "z": "3425547d.b4704c",
17 "id": "496791b5.8488d",
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": 315.0104103088379,
26 "y": 114.01043128967285,
27 "z": "3425547d.b4704c",
35 "id": "177388c0.d59117",
37 "name": "sotn-attachment-topology-operation-create",
38 "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
41 "x": 303.0105285644531,
42 "y": 202.01041412353516,
43 "z": "3425547d.b4704c",
51 "id": "f8d7365b.409c58",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 223.01045989990234,
59 "y": 951.0106620788574,
60 "z": "3425547d.b4704c",
90 "id": "f392c1a2.4633e",
92 "name": "Set allotted resource id if not sent by SO",
95 "x": 707.087158203125,
96 "y": 111.44433307647705,
97 "z": "3425547d.b4704c",
101 "id": "9bdb10c1.b2c65",
102 "type": "switchNode",
103 "name": "switch allotted-resource-id",
104 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
107 "x": 653.0104370117188,
108 "y": 167.01040649414062,
109 "z": "3425547d.b4704c",
118 "id": "61aacc9.ea6e934",
121 "xml": "<outcome value=''>",
124 "x": 851.0105247497559,
125 "y": 137.01039505004883,
126 "z": "3425547d.b4704c",
134 "id": "1e985c69.1db8d4",
137 "xml": "<outcome value='Other'>\n",
140 "x": 850.0104331970215,
141 "y": 174.0104055404663,
142 "z": "3425547d.b4704c",
150 "id": "2d11e756.388fd8",
152 "name": "set tmp.ar.allotted-resource-id",
153 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
155 "x": 1048.0104217529297,
156 "y": 171.01042461395264,
157 "z": "3425547d.b4704c",
161 "id": "64a58452.ad453c",
163 "name": "set tmp.ar.self-link",
164 "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
166 "x": 621.0103607177734,
167 "y": 388.01051330566406,
168 "z": "3425547d.b4704c",
172 "id": "e271b8d5.7f00e8",
174 "name": "execute Properties",
175 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
178 "x": 621.2722778320312,
179 "y": 469.6771945953369,
180 "z": "3425547d.b4704c",
186 "id": "1b3c993d.53c997",
188 "name": "generate allotted-resource tmp.ar-url",
189 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
192 "x": 674.2723388671875,
193 "y": 556.6771125793457,
194 "z": "3425547d.b4704c",
200 "id": "89d751a9.4634e",
202 "name": "execute tmp.ar.allotted-resource-id",
203 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
206 "x": 1066.0105018615723,
207 "y": 138.01040077209473,
208 "z": "3425547d.b4704c",
216 "id": "eb62b50e.452978",
219 "xml": "<outcome value='failure'>\n",
222 "x": 1284.0105438232422,
223 "y": 138.0103645324707,
224 "z": "3425547d.b4704c",
232 "id": "21e39486.41c95c",
233 "type": "returnFailure",
234 "name": "return failure",
235 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
237 "x": 1450.010498046875,
238 "y": 138.01037883758545,
239 "z": "3425547d.b4704c",
243 "id": "69607a16.ab23b4",
246 "xml": "<outcome value='success'>\n",
249 "x": 1180.0106372833252,
250 "y": 628.7882852554321,
251 "z": "3425547d.b4704c",
259 "id": "ff29c66f.d0c078",
260 "type": "returnFailure",
261 "name": "return failure",
262 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error: Existing connection attachment allotted resource\" />\n \n",
264 "x": 1913.529016494751,
265 "y": 629.8543567657471,
266 "z": "3425547d.b4704c",
270 "id": "988573f5.64b22",
272 "name": "Check for non existence of allotted resource",
275 "x": 1036.0105590820312,
276 "y": 562.7883520126343,
277 "z": "3425547d.b4704c",
281 "id": "ae4a4ff0.de2",
283 "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
284 "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
287 "x": 1556.6771049499512,
288 "y": 773.0104644298553,
289 "z": "3425547d.b4704c",
297 "id": "52397993.71f7e8",
298 "type": "switchNode",
299 "name": "switch service-data.consumed-allotted-resources_length",
300 "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
303 "x": 738.6764297485352,
304 "y": 749.7244968414307,
305 "z": "3425547d.b4704c",
314 "id": "ae3cba2c.22d388",
316 "name": "outcome Null",
317 "xml": "<outcome value=''>\n",
320 "x": 1042.8193283081055,
321 "y": 718.5819339752197,
322 "z": "3425547d.b4704c",
330 "id": "70e9802d.1c53d",
333 "xml": "<outcome value='Other'>\n",
336 "x": 1019.8193778991699,
337 "y": 779.5818891525269,
338 "z": "3425547d.b4704c",
346 "id": "11ff47a3.643388",
348 "name": "block : atomic",
349 "xml": "<block atomic=\"true\">",
352 "x": 1179.9464683532715,
353 "y": 777.7078657150269,
354 "z": "3425547d.b4704c",
364 "id": "b72b861c.815eb8",
367 "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
369 "x": 1192.67631149292,
370 "y": 716.2959842681885,
371 "z": "3425547d.b4704c",
375 "id": "e6318980.74cd38",
377 "name": "set consumed allotted resources",
378 "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
380 "x": 667.5337219238281,
381 "y": 853.2960615158081,
382 "z": "3425547d.b4704c",
386 "id": "73e79a71.cfae24",
387 "type": "switchNode",
388 "name": "switch tmp.found-cidx",
389 "xml": "<switch test='`$tmp.found-cidx`'>\n",
392 "x": 1369.0615158081055,
393 "y": 809.7193884849548,
394 "z": "3425547d.b4704c",
402 "id": "c00df3d6.a23ca",
403 "type": "outcomeTrue",
405 "xml": "<outcome value='false'>\n",
408 "x": 1559.0614700317383,
409 "y": 809.71932554245,
410 "z": "3425547d.b4704c",
418 "id": "210f1d5f.874d72",
420 "name": "block : atomic",
421 "xml": "<block atomic=\"true\">",
424 "x": 1725.0614700317383,
425 "y": 809.71932554245,
426 "z": "3425547d.b4704c",
434 "id": "79ba7554.7b000c",
435 "type": "switchNode",
436 "name": "switch allotted-resource-id",
437 "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
440 "x": 1973.7887344360352,
441 "y": 770.0104913711548,
442 "z": "3425547d.b4704c",
450 "id": "6f5753b3.9563cc",
451 "type": "outcomeTrue",
453 "xml": "<outcome value='true'>\n",
456 "x": 2155.5983085632324,
457 "y": 770.4749383926392,
458 "z": "3425547d.b4704c",
466 "id": "9f784ab7.a1a108",
468 "name": "set tmp.cidx",
469 "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
471 "x": 1886.9348526000977,
472 "y": 809.2310266494751,
473 "z": "3425547d.b4704c",
477 "id": "829f78ea.771c88",
479 "name": "Add to consumed service consumed-allotted-resources in mdsal",
480 "info": "Prepare data and add to service-data",
482 "x": 759.6776428222656,
483 "y": 680.0104608535767,
484 "z": "3425547d.b4704c",
488 "id": "8b9e14b0.ee2668",
490 "name": "This set resource will be added to MDSAL by provider code",
491 "info": "Below we add to service-data.consumed-allotted-resource at last index",
493 "x": 747.0105590820312,
494 "y": 818.788553237915,
495 "z": "3425547d.b4704c",
499 "id": "13637009.f57bd",
501 "name": "update AAI allotted-resource",
502 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"access-provider-id\" value=\"`$prop.connection-attachment.access-provider-id`\" />\n\t<parameter name=\"access-client-id\" value=\"`$prop.connection-attachment.access-client-id`\" />\n\t<parameter name=\"access-topology-id\" value=\"`$prop.connection-attachment.access-topology-id`\" />\n\t<parameter name=\"access-node-id\" value=\"`$prop.connection-attachment.access-node-id`\" />\n\t<parameter name=\"access-ltp-id\" value=\"`$prop.connection-attachment.access-ltp-id`\" />\t\n\t<parameter name=\"cvlan\" value=\"`$prop.connection-attachment.cVLAN`\" />\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n",
505 "x": 652.7012557983398,
506 "y": 1868.5423040390015,
507 "z": "3425547d.b4704c",
516 "id": "2383f0f.fe77a1",
519 "xml": "<outcome value='failure'>\n",
522 "x": 847.463191986084,
523 "y": 1859.4949054718018,
524 "z": "3425547d.b4704c",
532 "id": "bfb0685f.193b68",
533 "type": "returnFailure",
534 "name": "return failure",
535 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
537 "x": 1013.9870719909668,
538 "y": 1871.1139764785767,
539 "z": "3425547d.b4704c",
543 "id": "1726f753.540739",
546 "xml": "<outcome value='not-found'>\n",
549 "x": 854.558479309082,
550 "y": 1892.2568731307983,
551 "z": "3425547d.b4704c",
559 "id": "da5dd301.64278",
561 "name": "Save Resource to AAI",
564 "x": 628.5108871459961,
565 "y": 1830.8442754745483,
566 "z": "3425547d.b4704c",
570 "id": "d50db86.5001548",
572 "name": "Set allotted resource type if not sent by SO",
575 "x": 693.0104064941406,
576 "y": 220.01041412353516,
577 "z": "3425547d.b4704c",
581 "id": "e93d7aa8.8afc58",
582 "type": "switchNode",
583 "name": "switch allotted-resource-type",
584 "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
587 "x": 654.9337158203125,
588 "y": 260.57647037506104,
589 "z": "3425547d.b4704c",
598 "id": "f6469c6d.d6d7c",
601 "xml": "<outcome value=''>",
604 "x": 857.9338684082031,
605 "y": 245.57647323608398,
606 "z": "3425547d.b4704c",
614 "id": "6b6259b5.f45218",
617 "xml": "<outcome value='Other'>\n",
620 "x": 850.9336967468262,
621 "y": 285.57649326324463,
622 "z": "3425547d.b4704c",
630 "id": "6a7aae3b.c248e",
632 "name": "set tmp.ar.allotted-resource-type",
633 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
635 "x": 1082.933681488037,
636 "y": 285.5764980316162,
637 "z": "3425547d.b4704c",
641 "id": "9d9d583f.dbc9c8",
643 "name": "For storage in AAI connection-attachment-topology",
646 "x": 718.010368347168,
647 "y": 355.01041412353516,
648 "z": "3425547d.b4704c",
652 "id": "2787339d.0e091c",
654 "name": "Obtain different URL, template location etc",
655 "info": "For saving resource information to MDSAL & for AAI",
657 "x": 693.0103530883789,
658 "y": 436.89932346343994,
659 "z": "3425547d.b4704c",
663 "id": "da385e9d.31c6e",
665 "name": "Used for Put AR by id to MDSAL",
668 "x": 659.0104370117188,
669 "y": 525.8993406295776,
670 "z": "3425547d.b4704c",
674 "id": "fb746d4c.98d2e",
676 "name": "Obtain the last index in services",
677 "info": "ServiceData is added by Provider code",
679 "x": 660.4548797607422,
680 "y": 711.8992853164673,
681 "z": "3425547d.b4704c",
685 "id": "c3e71ac5.708158",
687 "name": "set output to api handler",
688 "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
690 "x": 638.2785415649414,
691 "y": 1775.3696031570435,
692 "z": "3425547d.b4704c",
696 "id": "8031bd9b.aa492",
697 "type": "returnSuccess",
698 "name": "return success",
699 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
701 "x": 606.6916198730469,
702 "y": 1916.9853897094727,
703 "z": "3425547d.b4704c",
707 "id": "9e957e4b.c63b4",
709 "name": "set tmp.ar.allotted-resource-type",
710 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
712 "x": 1097.010555267334,
713 "y": 246.0103998184204,
714 "z": "3425547d.b4704c",
718 "id": "31ce0f6c.4be64",
720 "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
721 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
724 "x": 940.0045623779297,
725 "y": 1624.5041437149048,
726 "z": "3425547d.b4704c",
732 "id": "aee1a7c1.04af88",
734 "name": "execute RestApiCallNode - PUT AR by id",
735 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
738 "x": 689.0106735229492,
739 "y": 1709.0105323791504,
740 "z": "3425547d.b4704c",
750 "id": "8776bfe5.59d94",
753 "xml": "<outcome value='not-found'>\n",
756 "x": 938.652027130127,
757 "y": 1747.3418626785278,
758 "z": "3425547d.b4704c",
766 "id": "d7639202.15d54",
769 "xml": "<outcome value='failure'>\n",
772 "x": 929.6520767211914,
773 "y": 1715.8418884277344,
774 "z": "3425547d.b4704c",
782 "id": "3089b749.6674a8",
785 "xml": "<outcome value='success'>\n",
788 "x": 933.4021148681641,
789 "y": 1686.1989933028817,
790 "z": "3425547d.b4704c",
798 "id": "7514cc17.dfede4",
799 "type": "returnFailure",
800 "name": "return failure",
801 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
803 "x": 1099.402114868164,
804 "y": 1716.5919122695923,
805 "z": "3425547d.b4704c",
809 "id": "e2b27745.660088",
816 "x": 1075.0580825805664,
817 "y": 1682.3911624923348,
818 "z": "3425547d.b4704c",
824 "id": "8e35b842.c7d4f8",
826 "name": "execute RestApiCallNode - Update parent provided service AR",
827 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
830 "x": 759.0103607177734,
831 "y": 1135.010579109192,
832 "z": "3425547d.b4704c",
842 "id": "4a784746.dec008",
845 "xml": "<outcome value='not-found'>\n",
848 "x": 1067.3184204101562,
849 "y": 1167.0088548660278,
850 "z": "3425547d.b4704c",
858 "id": "c64e1e39.2251",
861 "xml": "<outcome value='failure'>\n",
864 "x": 1058.3184700012207,
865 "y": 1135.5088806152344,
866 "z": "3425547d.b4704c",
874 "id": "be9dd1f.2b8ae3",
877 "xml": "<outcome value='success'>\n",
880 "x": 1062.0685081481934,
881 "y": 1105.8659854903817,
882 "z": "3425547d.b4704c",
890 "id": "fa176469.0fc3f8",
891 "type": "returnFailure",
892 "name": "return failure",
893 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
895 "x": 1228.0685081481934,
896 "y": 1136.2589044570923,
897 "z": "3425547d.b4704c",
901 "id": "a7887873.602db8",
908 "x": 1203.7244758605957,
909 "y": 1102.0581546798348,
910 "z": "3425547d.b4704c",
916 "id": "21d4e2e4.5ed5fe",
918 "name": "Put the parent allotted resource in mdsal",
921 "x": 688.0103073120117,
922 "y": 1097.010485649109,
923 "z": "3425547d.b4704c",
927 "id": "373e7d85.f8d5f2",
929 "name": "set connection-attachment-ar-identifiers",
930 "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
932 "x": 684.3674926757812,
933 "y": 1299.5821046829224,
934 "z": "3425547d.b4704c",
938 "id": "88bfb367.64d03",
940 "name": "set ar-data",
941 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
943 "x": 598.2242736816406,
944 "y": 1267.3914613723755,
945 "z": "3425547d.b4704c",
949 "id": "ab686f72.f6d24",
951 "name": "set identifiers in overall structure",
952 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
954 "x": 663.1772918701172,
955 "y": 1333.6772899627686,
956 "z": "3425547d.b4704c",
960 "id": "6568c68e.998458",
962 "name": "execute getTime",
963 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
966 "x": 615.5101318359375,
967 "y": 1407.010817527771,
968 "z": "3425547d.b4704c",
974 "id": "42759b0d.8bfff4",
976 "name": "set allotted-resource-oper-status",
977 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
979 "x": 666.4971694946289,
980 "y": 1462.9620504379272,
981 "z": "3425547d.b4704c",
985 "id": "7bc569ba.c7c2a8",
987 "name": "set model-data",
988 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
990 "x": 611.065788269043,
991 "y": 1368.5661754608154,
992 "z": "3425547d.b4704c",
996 "id": "5eda0baa.a6ac24",
998 "name": "Prepare data for allotted-resource addition to MDSAL",
999 "info": "This will add to allotted-resource which is present inside service.",
1001 "x": 728.3992767333984,
1002 "y": 1233.5660219192505,
1003 "z": "3425547d.b4704c",
1007 "id": "302473e7.2159bc",
1009 "name": "generate parent-ar url - replace allotted-resource-id",
1010 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
1013 "x": 723.5104217529297,
1014 "y": 1061.0104246139526,
1015 "z": "3425547d.b4704c",
1021 "id": "99015db4.34427",
1023 "name": "generate parent-ar url - replace service-instance-id",
1024 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
1027 "x": 719.5103454589844,
1028 "y": 1018.0105609893799,
1029 "z": "3425547d.b4704c",
1035 "id": "ac4fa77d.cd6878",
1037 "name": "Prepare Parent AR URL",
1038 "info": "Preparation to set provided-allotted-resource in parent service instance",
1040 "x": 637.5108032226562,
1041 "y": 947.0105142593384,
1042 "z": "3425547d.b4704c",
1046 "id": "461a26ad.352d08",
1048 "name": "set tmp.ar.parent-service-instance-id",
1049 "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
1051 "x": 676.5105972290039,
1052 "y": 980.5104537010193,
1053 "z": "3425547d.b4704c",
1057 "id": "fc5e8c6b.8fefa",
1059 "name": "Required for filling template values",
1060 "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1062 "x": 866.0107650756836,
1063 "y": 1587.5102167129517,
1064 "z": "3425547d.b4704c",
1068 "id": "65ad78ab.417bb8",
1069 "type": "returnFailure",
1070 "name": "return failure",
1071 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n",
1073 "x": 2233.767379760742,
1074 "y": 818.6562433242798,
1075 "z": "3425547d.b4704c",
1079 "id": "c9aa1cc3.3ec63",
1081 "name": "set tmp.found-cidx",
1082 "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1084 "x": 1359.656551361084,
1085 "y": 730.3229863643646,
1086 "z": "3425547d.b4704c",
1090 "id": "ff67ccb2.50d8",
1092 "name": "Add to parent services provided-allotted-resources in mdsal",
1095 "x": 748.2119140625,
1096 "y": 914.989670753479,
1097 "z": "3425547d.b4704c",
1101 "id": "a5a8871f.3c0658",
1103 "name": "Add to allotted-resources in mdsal",
1106 "x": 668.9791030883789,
1107 "y": 1200.9793510437012,
1108 "z": "3425547d.b4704c",
1112 "id": "5509562b.e7bb48",
1114 "name": "block: atomic",
1115 "xml": "<block atomic=\"true\">\n",
1119 "x": 1342.0104579925537,
1120 "y": 628.2881746292114,
1121 "z": "3425547d.b4704c",
1129 "id": "f6f2507e.ba037",
1130 "type": "switchNode",
1131 "name": "switch cr length",
1132 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1135 "x": 1529.8678379058838,
1136 "y": 628.9073100090027,
1137 "z": "3425547d.b4704c",
1145 "id": "7ebe7287.439dec",
1147 "name": "outcome 1",
1148 "xml": "<outcome value='1'>\n",
1151 "x": 1729.2009601593018,
1152 "y": 628.9073886871338,
1153 "z": "3425547d.b4704c",
1161 "id": "b0b78151.f3bd1",
1163 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1164 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1167 "x": 814.0104598999023,
1168 "y": 623.0104503631592,
1169 "z": "3425547d.b4704c",
1178 "id": "4afffe17.752bc",
1181 "xml": "<outcome value='failure'>\n",
1184 "x": 1182.0104904174805,
1185 "y": 593.0104484558105,
1186 "z": "3425547d.b4704c",
1194 "id": "5d7e4f7b.5aaa4",
1201 "x": 1334.0104904174805,
1202 "y": 592.0104484558105,
1203 "z": "3425547d.b4704c",
1209 "id": "acf4df38.359e8",
1211 "name": "block : atomic",
1212 "xml": "<block atomic=\"true\">",
1215 "x": 610.5660171508789,
1216 "y": 1542.6770677566528,
1217 "z": "3425547d.b4704c",
1226 "id": "e883ed0e.70e5",
1228 "name": "for each sotn-get-request-input-param",
1229 "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1232 "x": 880.5660820007324,
1233 "y": 1542.6771154403687,
1234 "z": "3425547d.b4704c",
1242 "id": "8e066326.71f27",
1244 "name": "Take the parameter names by removing prefix",
1247 "x": 1420.5658645629883,
1248 "y": 1498.6771488189697,
1249 "z": "3425547d.b4704c",
1253 "id": "a6906228.fcd97",
1255 "name": "execute split parameterName",
1256 "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",
1259 "x": 1378.6005325317383,
1260 "y": 1533.65629196167,
1261 "z": "3425547d.b4704c",
1267 "id": "d3547289.18d19",
1269 "name": "set parameterName",
1270 "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
1272 "x": 1349.0450592041016,
1273 "y": 1566.65629196167,
1274 "z": "3425547d.b4704c",
1278 "id": "80d52421.de6378",
1280 "name": "Remove VNFC prefix",
1283 "x": 821.5660095214844,
1284 "y": 1510.1214294433594,
1285 "z": "3425547d.b4704c",
1289 "id": "c8bff3cc.09d2c",
1291 "name": "block : atomic",
1292 "xml": "<block atomic=\"true\">",
1295 "x": 1127.56591796875,
1296 "y": 1541.1214599609375,
1297 "z": "3425547d.b4704c",