3     "id": "c96eae79.08813",
 
  17     "id": "2bbd4a2b.66a236",
 
  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": 275.00000381469727,
 
  26     "y": 112.0000171661377,
 
  27     "z": "307cdf1d.539fd",
 
  35     "id": "7de06dac.f33994",
 
  37     "name": "sotn-attachment-topology-operation-create",
 
  38     "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
 
  41     "x": 263.0001220703125,
 
  43     "z": "307cdf1d.539fd",
 
  51     "id": "8a29d369.0bab4",
 
  53     "name": "block : atomic",
 
  54     "xml": "<block atomic=\"true\">\n",
 
  58     "x": 183.00005340576172,
 
  59     "y": 949.0002479553223,
 
  60     "z": "307cdf1d.539fd",
 
  91     "id": "dceaac22.2856",
 
  93     "name": "Set allotted resource id if not sent by SO",
 
  96     "x": 667.0767517089844,
 
  97     "y": 109.4339189529419,
 
  98     "z": "307cdf1d.539fd",
 
 102     "id": "51f31211.8f114c",
 
 103     "type": "switchNode",
 
 104     "name": "switch allotted-resource-id",
 
 105     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
 
 108     "x": 613.0000305175781,
 
 109     "y": 164.99999237060547,
 
 110     "z": "307cdf1d.539fd",
 
 119     "id": "5d06a5f3.384e7c",
 
 122     "xml": "<outcome value=''>",
 
 125     "x": 811.0001182556152,
 
 126     "y": 134.99998092651367,
 
 127     "z": "307cdf1d.539fd",
 
 135     "id": "a9453642.a0afc8",
 
 138     "xml": "<outcome value='Other'>\n",
 
 141     "x": 810.0000267028809,
 
 142     "y": 171.99999141693115,
 
 143     "z": "307cdf1d.539fd",
 
 151     "id": "b2cd00b8.57706",
 
 153     "name": "set tmp.ar.allotted-resource-id",
 
 154     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
 
 156     "x": 1008.0000152587891,
 
 157     "y": 169.00001049041748,
 
 158     "z": "307cdf1d.539fd",
 
 162     "id": "a2a65745.852438",
 
 164     "name": "set tmp.ar.self-link",
 
 165     "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",
 
 167     "x": 580.9999542236328,
 
 168     "y": 386.0000991821289,
 
 169     "z": "307cdf1d.539fd",
 
 173     "id": "f3044df1.6f232",
 
 175     "name": "execute Properties",
 
 176     "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",
 
 179     "x": 581.2618713378906,
 
 180     "y": 467.66678047180176,
 
 181     "z": "307cdf1d.539fd",
 
 187     "id": "5ba82df.f35b0d4",
 
 189     "name": "generate allotted-resource tmp.ar-url",
 
 190     "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",
 
 193     "x": 634.2619323730469,
 
 194     "y": 554.6666984558105,
 
 195     "z": "307cdf1d.539fd",
 
 201     "id": "b367b4cb.81eda8",
 
 203     "name": "execute tmp.ar.allotted-resource-id",
 
 204     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
 
 207     "x": 1026.0000953674316,
 
 208     "y": 135.99998664855957,
 
 209     "z": "307cdf1d.539fd",
 
 217     "id": "a3bb33e3.15368",
 
 220     "xml": "<outcome value='failure'>\n",
 
 223     "x": 1244.0001373291016,
 
 224     "y": 135.99995040893555,
 
 225     "z": "307cdf1d.539fd",
 
 233     "id": "1a685e2d.8d4cc2",
 
 234     "type": "returnFailure",
 
 235     "name": "return failure",
 
 236     "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",
 
 238     "x": 1410.0000915527344,
 
 239     "y": 135.9999647140503,
 
 240     "z": "307cdf1d.539fd",
 
 244     "id": "8b5477db.c5c9d8",
 
 247     "xml": "<outcome value='success'>\n",
 
 250     "x": 1140.0002307891846,
 
 251     "y": 626.777871131897,
 
 252     "z": "307cdf1d.539fd",
 
 260     "id": "cc9f7f26.8914e",
 
 261     "type": "returnFailure",
 
 262     "name": "return failure",
 
 263     "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",
 
 265     "x": 1873.5186100006104,
 
 266     "y": 627.8439426422119,
 
 267     "z": "307cdf1d.539fd",
 
 271     "id": "65a2f2cb.5edd4c",
 
 273     "name": "Check for non existence of allotted resource",
 
 276     "x": 996.0001525878906,
 
 277     "y": 560.7779378890991,
 
 278     "z": "307cdf1d.539fd",
 
 282     "id": "2eaa291f.8f6b46",
 
 284     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
 
 285     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
 
 288     "x": 1516.6666984558105,
 
 289     "y": 771.0000503063202,
 
 290     "z": "307cdf1d.539fd",
 
 298     "id": "dc7e1c21.4599e",
 
 299     "type": "switchNode",
 
 300     "name": "switch service-data.consumed-allotted-resources_length",
 
 301     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
 
 304     "x": 698.6660232543945,
 
 305     "y": 747.7140827178955,
 
 306     "z": "307cdf1d.539fd",
 
 315     "id": "f0ad968c.edb0a8",
 
 317     "name": "outcome Null",
 
 318     "xml": "<outcome value=''>\n",
 
 321     "x": 1002.8089218139648,
 
 322     "y": 716.5715198516846,
 
 323     "z": "307cdf1d.539fd",
 
 331     "id": "6ec4508a.edb8",
 
 334     "xml": "<outcome value='Other'>\n",
 
 337     "x": 979.8089714050293,
 
 338     "y": 777.5714750289917,
 
 339     "z": "307cdf1d.539fd",
 
 347     "id": "db245e97.27431",
 
 349     "name": "block : atomic",
 
 350     "xml": "<block atomic=\"true\">",
 
 353     "x": 1139.9360618591309,
 
 354     "y": 775.6974515914917,
 
 355     "z": "307cdf1d.539fd",
 
 365     "id": "1bdd00e8.bfe58f",
 
 368     "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",
 
 370     "x": 1152.6659049987793,
 
 371     "y": 714.2855701446533,
 
 372     "z": "307cdf1d.539fd",
 
 376     "id": "7bdd95f3.db24ac",
 
 378     "name": "set consumed allotted resources",
 
 379     "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",
 
 381     "x": 627.5233154296875,
 
 382     "y": 851.285647392273,
 
 383     "z": "307cdf1d.539fd",
 
 387     "id": "493dd1d2.fc196",
 
 388     "type": "switchNode",
 
 389     "name": "switch tmp.found-cidx",
 
 390     "xml": "<switch test='`$tmp.found-cidx`'>\n",
 
 393     "x": 1329.0511093139648,
 
 394     "y": 807.7089743614197,
 
 395     "z": "307cdf1d.539fd",
 
 403     "id": "2ccff848.6a8838",
 
 404     "type": "outcomeTrue",
 
 406     "xml": "<outcome value='false'>\n",
 
 409     "x": 1519.0510635375977,
 
 410     "y": 807.7089114189148,
 
 411     "z": "307cdf1d.539fd",
 
 419     "id": "d5d85369.7e688",
 
 421     "name": "block : atomic",
 
 422     "xml": "<block atomic=\"true\">",
 
 425     "x": 1685.0510635375977,
 
 426     "y": 807.7089114189148,
 
 427     "z": "307cdf1d.539fd",
 
 435     "id": "1bef4b2b.0d1235",
 
 436     "type": "switchNode",
 
 437     "name": "switch allotted-resource-id",
 
 438     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
 
 441     "x": 1933.7783279418945,
 
 442     "y": 768.0000772476196,
 
 443     "z": "307cdf1d.539fd",
 
 451     "id": "39a011f4.26c90e",
 
 452     "type": "outcomeTrue",
 
 454     "xml": "<outcome value='true'>\n",
 
 457     "x": 2115.587902069092,
 
 458     "y": 768.464524269104,
 
 459     "z": "307cdf1d.539fd",
 
 467     "id": "fa8e9142.85d7d",
 
 469     "name": "set tmp.cidx",
 
 470     "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
 
 472     "x": 1846.924446105957,
 
 473     "y": 807.2206125259399,
 
 474     "z": "307cdf1d.539fd",
 
 478     "id": "45f09705.29f058",
 
 480     "name": "Add to consumed service consumed-allotted-resources in mdsal",
 
 481     "info": "Prepare data and add to service-data",
 
 483     "x": 719.667236328125,
 
 484     "y": 678.0000467300415,
 
 485     "z": "307cdf1d.539fd",
 
 489     "id": "7472ca93.259114",
 
 491     "name": "This set resource will be added to MDSAL by provider code",
 
 492     "info": "Below we add to service-data.consumed-allotted-resource at last index",
 
 494     "x": 707.0001525878906,
 
 495     "y": 816.7781391143799,
 
 496     "z": "307cdf1d.539fd",
 
 500     "id": "ea8d2a7c.dc1c98",
 
 502     "name": "save AAI allotted-resource",
 
 503     "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",
 
 506     "x": 612.6908721923828,
 
 507     "y": 1866.5318479537964,
 
 508     "z": "307cdf1d.539fd",
 
 517     "id": "951bf335.bca52",
 
 520     "xml": "<outcome value='failure'>\n",
 
 523     "x": 807.4527854919434,
 
 524     "y": 1857.4844913482666,
 
 525     "z": "307cdf1d.539fd",
 
 533     "id": "5683eb13.db5c34",
 
 534     "type": "returnFailure",
 
 535     "name": "return failure",
 
 536     "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",
 
 538     "x": 973.9766654968262,
 
 539     "y": 1869.1035623550415,
 
 540     "z": "307cdf1d.539fd",
 
 544     "id": "3aff12ef.b5135e",
 
 547     "xml": "<outcome value='not-found'>\n",
 
 550     "x": 814.5480728149414,
 
 551     "y": 1890.2464590072632,
 
 552     "z": "307cdf1d.539fd",
 
 560     "id": "9b778367.8c46a",
 
 562     "name": "Save Resource to AAI",
 
 565     "x": 589.50048828125,
 
 566     "y": 1809.8338623046875,
 
 567     "z": "307cdf1d.539fd",
 
 571     "id": "9719bb6e.70a358",
 
 573     "name": "Set allotted resource type if not sent by SO",
 
 578     "z": "307cdf1d.539fd",
 
 582     "id": "2da52da7.95c362",
 
 583     "type": "switchNode",
 
 584     "name": "switch allotted-resource-type",
 
 585     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
 
 588     "x": 614.9233093261719,
 
 589     "y": 258.5660562515259,
 
 590     "z": "307cdf1d.539fd",
 
 599     "id": "684d8da4.b880e4",
 
 602     "xml": "<outcome value=''>",
 
 605     "x": 817.9234619140625,
 
 606     "y": 243.56605911254883,
 
 607     "z": "307cdf1d.539fd",
 
 615     "id": "7ce6426e.522ebc",
 
 618     "xml": "<outcome value='Other'>\n",
 
 621     "x": 810.9232902526855,
 
 622     "y": 283.5660791397095,
 
 623     "z": "307cdf1d.539fd",
 
 631     "id": "bca9b7c7.73b158",
 
 633     "name": "set tmp.ar.allotted-resource-type",
 
 634     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
 
 636     "x": 1042.9232749938965,
 
 637     "y": 283.56608390808105,
 
 638     "z": "307cdf1d.539fd",
 
 642     "id": "4c5ae3e7.94b54c",
 
 644     "name": "For storage in AAI connection-attachment-topology",
 
 647     "x": 677.9999618530273,
 
 649     "z": "307cdf1d.539fd",
 
 653     "id": "566d8977.bdc218",
 
 655     "name": "Obtain different URL, template location etc",
 
 656     "info": "For saving resource information to MDSAL & for AAI",
 
 658     "x": 652.9999465942383,
 
 659     "y": 434.8889093399048,
 
 660     "z": "307cdf1d.539fd",
 
 664     "id": "eba557cf.66dec8",
 
 666     "name": "Used for Put AR by id to MDSAL",
 
 669     "x": 619.0000305175781,
 
 670     "y": 523.8889265060425,
 
 671     "z": "307cdf1d.539fd",
 
 675     "id": "6d67020a.67de0c",
 
 677     "name": "Obtain the last index in services",
 
 678     "info": "ServiceData is added by Provider code",
 
 680     "x": 620.4444732666016,
 
 681     "y": 709.8888711929321,
 
 682     "z": "307cdf1d.539fd",
 
 686     "id": "1f74500.b2f7fb",
 
 688     "name": "set output to api handler",
 
 689     "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",
 
 691     "x": 598.2681350708008,
 
 692     "y": 1773.3591890335083,
 
 693     "z": "307cdf1d.539fd",
 
 697     "id": "6d4b764b.a8a308",
 
 698     "type": "returnSuccess",
 
 699     "name": "return success",
 
 700     "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",
 
 702     "x": 566.6812324523926,
 
 703     "y": 1977.9749908447266,
 
 704     "z": "307cdf1d.539fd",
 
 708     "id": "63c4923.3c3426c",
 
 710     "name": "set tmp.ar.allotted-resource-type",
 
 711     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
 
 713     "x": 1057.0001487731934,
 
 714     "y": 243.99998569488525,
 
 715     "z": "307cdf1d.539fd",
 
 719     "id": "e855335b.71b3c",
 
 721     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
 
 722     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
 
 725     "x": 899.9941558837891,
 
 726     "y": 1622.4937295913696,
 
 727     "z": "307cdf1d.539fd",
 
 733     "id": "6c73a0d6.045f8",
 
 735     "name": "execute RestApiCallNode - PUT AR by id",
 
 736     "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",
 
 739     "x": 649.0002670288086,
 
 740     "y": 1707.0001182556152,
 
 741     "z": "307cdf1d.539fd",
 
 751     "id": "17f1151d.06a5ab",
 
 754     "xml": "<outcome value='not-found'>\n",
 
 757     "x": 898.6416206359863,
 
 758     "y": 1745.3314485549927,
 
 759     "z": "307cdf1d.539fd",
 
 767     "id": "ccace23a.27702",
 
 770     "xml": "<outcome value='failure'>\n",
 
 773     "x": 889.6416702270508,
 
 774     "y": 1713.8314743041992,
 
 775     "z": "307cdf1d.539fd",
 
 783     "id": "325329b.e9052d6",
 
 786     "xml": "<outcome value='success'>\n",
 
 789     "x": 893.3917083740234,
 
 790     "y": 1684.1885791793466,
 
 791     "z": "307cdf1d.539fd",
 
 799     "id": "503ba1c3.ce81b",
 
 800     "type": "returnFailure",
 
 801     "name": "return failure",
 
 802     "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",
 
 804     "x": 1059.3917083740234,
 
 805     "y": 1714.5814981460571,
 
 806     "z": "307cdf1d.539fd",
 
 810     "id": "565609af.5fb058",
 
 817     "x": 1035.0476760864258,
 
 818     "y": 1680.3807483687997,
 
 819     "z": "307cdf1d.539fd",
 
 825     "id": "cd08d99a.10abb8",
 
 827     "name": "execute RestApiCallNode - Update parent provided service AR",
 
 828     "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",
 
 831     "x": 718.9999542236328,
 
 832     "y": 1133.0001649856567,
 
 833     "z": "307cdf1d.539fd",
 
 843     "id": "ef2f7f10.9941b",
 
 846     "xml": "<outcome value='not-found'>\n",
 
 849     "x": 1027.3080139160156,
 
 850     "y": 1164.9984407424927,
 
 851     "z": "307cdf1d.539fd",
 
 859     "id": "b03054a4.69fc18",
 
 862     "xml": "<outcome value='failure'>\n",
 
 865     "x": 1018.3080635070801,
 
 866     "y": 1133.4984664916992,
 
 867     "z": "307cdf1d.539fd",
 
 875     "id": "8aa9a171.e089b",
 
 878     "xml": "<outcome value='success'>\n",
 
 881     "x": 1022.0581016540527,
 
 882     "y": 1103.8555713668466,
 
 883     "z": "307cdf1d.539fd",
 
 891     "id": "65c0c4d1.41acbc",
 
 892     "type": "returnFailure",
 
 893     "name": "return failure",
 
 894     "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",
 
 896     "x": 1188.0581016540527,
 
 897     "y": 1134.2484903335571,
 
 898     "z": "307cdf1d.539fd",
 
 902     "id": "c70fcaaf.55a4c8",
 
 909     "x": 1163.714069366455,
 
 910     "y": 1100.0477405562997,
 
 911     "z": "307cdf1d.539fd",
 
 917     "id": "4609b233.9d833c",
 
 919     "name": "Put the parent allotted resource in mdsal",
 
 922     "x": 647.9999008178711,
 
 923     "y": 1095.0000715255737,
 
 924     "z": "307cdf1d.539fd",
 
 928     "id": "3292b995.f13186",
 
 930     "name": "set connection-attachment-ar-identifiers",
 
 931     "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",
 
 933     "x": 644.3570861816406,
 
 934     "y": 1297.5716905593872,
 
 935     "z": "307cdf1d.539fd",
 
 939     "id": "c56a158b.169088",
 
 941     "name": "set ar-data",
 
 942     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
 
 945     "y": 1265.3810472488403,
 
 946     "z": "307cdf1d.539fd",
 
 950     "id": "71214832.584f28",
 
 952     "name": "set identifiers in overall structure",
 
 953     "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",
 
 955     "x": 623.1668853759766,
 
 956     "y": 1331.6668758392334,
 
 957     "z": "307cdf1d.539fd",
 
 961     "id": "23b7a6d1.9a369a",
 
 963     "name": "execute getTime",
 
 964     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
 
 967     "x": 575.4997253417969,
 
 968     "y": 1405.0004034042358,
 
 969     "z": "307cdf1d.539fd",
 
 975     "id": "4ebfff40.f0aa5",
 
 977     "name": "set allotted-resource-oper-status",
 
 978     "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",
 
 980     "x": 626.4867630004883,
 
 981     "y": 1460.951636314392,
 
 982     "z": "307cdf1d.539fd",
 
 986     "id": "cb431e44.1b2d7",
 
 988     "name": "set model-data",
 
 989     "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.` \" />",
 
 991     "x": 571.0553817749023,
 
 992     "y": 1366.5557613372803,
 
 993     "z": "307cdf1d.539fd",
 
 997     "id": "10171c26.195644",
 
 999     "name": "Prepare data for allotted-resource addition to MDSAL",
 
1000     "info": "This will add to allotted-resource which is present inside service.",
 
1002     "x": 688.3888702392578,
 
1003     "y": 1231.5556077957153,
 
1004     "z": "307cdf1d.539fd",
 
1008     "id": "46e15a07.ae9ba4",
 
1010     "name": "generate parent-ar url - replace allotted-resource-id",
 
1011     "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",
 
1014     "x": 683.5000152587891,
 
1015     "y": 1059.0000104904175,
 
1016     "z": "307cdf1d.539fd",
 
1022     "id": "c34405e1.82d938",
 
1024     "name": "generate parent-ar url - replace service-instance-id",
 
1025     "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",
 
1028     "x": 679.4999389648438,
 
1029     "y": 1016.0001468658447,
 
1030     "z": "307cdf1d.539fd",
 
1036     "id": "a521acad.d004d",
 
1038     "name": "Prepare Parent AR URL",
 
1039     "info": "Preparation to set provided-allotted-resource in parent service instance",
 
1041     "x": 597.5003967285156,
 
1042     "y": 945.0001001358032,
 
1043     "z": "307cdf1d.539fd",
 
1047     "id": "371cf69b.dabcaa",
 
1049     "name": "set tmp.ar.parent-service-instance-id",
 
1050     "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",
 
1052     "x": 636.5001907348633,
 
1053     "y": 978.5000395774841,
 
1054     "z": "307cdf1d.539fd",
 
1058     "id": "471a396d.b72ac8",
 
1060     "name": "Required for filling template values",
 
1061     "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
 
1063     "x": 826.000358581543,
 
1064     "y": 1585.4998025894165,
 
1065     "z": "307cdf1d.539fd",
 
1069     "id": "3bd67468.05082c",
 
1070     "type": "returnFailure",
 
1071     "name": "return failure",
 
1072     "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",
 
1074     "x": 2193.7569732666016,
 
1075     "y": 816.6458292007446,
 
1076     "z": "307cdf1d.539fd",
 
1080     "id": "23139ea3.633f22",
 
1082     "name": "set tmp.found-cidx",
 
1083     "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
 
1085     "x": 1319.6461448669434,
 
1086     "y": 728.3125722408295,
 
1087     "z": "307cdf1d.539fd",
 
1091     "id": "572750a4.da966",
 
1093     "name": "Add to parent services provided-allotted-resources in mdsal",
 
1096     "x": 708.2015075683594,
 
1097     "y": 912.9792566299438,
 
1098     "z": "307cdf1d.539fd",
 
1102     "id": "c22af7ab.9a1898",
 
1104     "name": "Add to allotted-resources in mdsal",
 
1107     "x": 628.9686965942383,
 
1108     "y": 1198.968936920166,
 
1109     "z": "307cdf1d.539fd",
 
1113     "id": "5b1e701f.600c",
 
1115     "name": "block: atomic",
 
1116     "xml": "<block atomic=\"true\">\n",
 
1120     "x": 1302.000051498413,
 
1121     "y": 626.2777605056763,
 
1122     "z": "307cdf1d.539fd",
 
1130     "id": "f33fd165.6af9d",
 
1131     "type": "switchNode",
 
1132     "name": "switch cr length",
 
1133     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
 
1136     "x": 1489.8574314117432,
 
1137     "y": 626.8968958854675,
 
1138     "z": "307cdf1d.539fd",
 
1146     "id": "30bd1249.6e0cce",
 
1148     "name": "outcome 1",
 
1149     "xml": "<outcome value='1'>\n",
 
1152     "x": 1689.1905536651611,
 
1153     "y": 626.8969745635986,
 
1154     "z": "307cdf1d.539fd",
 
1162     "id": "6e7b925f.51d77c",
 
1164     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
 
1165     "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",
 
1168     "x": 774.0000534057617,
 
1169     "y": 621.000036239624,
 
1170     "z": "307cdf1d.539fd",
 
1179     "id": "94a8a58d.dee408",
 
1182     "xml": "<outcome value='failure'>\n",
 
1185     "x": 1142.0000839233398,
 
1186     "y": 591.0000343322754,
 
1187     "z": "307cdf1d.539fd",
 
1195     "id": "9c37a2ea.b7b0a",
 
1202     "x": 1294.0000839233398,
 
1203     "y": 590.0000343322754,
 
1204     "z": "307cdf1d.539fd",
 
1210     "id": "92f874df.f4a158",
 
1212     "name": "block : atomic",
 
1213     "xml": "<block atomic=\"true\">",
 
1216     "x": 570.5556106567383,
 
1217     "y": 1540.6666536331177,
 
1218     "z": "307cdf1d.539fd",
 
1227     "id": "53c527c9.b22648",
 
1229     "name": "for each sotn-get-request-input-param",
 
1230     "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
 
1233     "x": 840.5556755065918,
 
1234     "y": 1540.6667013168335,
 
1235     "z": "307cdf1d.539fd",
 
1243     "id": "d5857a39.639db8",
 
1245     "name": "Take the parameter names by removing prefix",
 
1248     "x": 1380.5554580688477,
 
1249     "y": 1496.6667346954346,
 
1250     "z": "307cdf1d.539fd",
 
1254     "id": "6df2fba8.889c14",
 
1256     "name": "execute split parameterName",
 
1257     "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",
 
1260     "x": 1338.5901260375977,
 
1261     "y": 1531.6458778381348,
 
1262     "z": "307cdf1d.539fd",
 
1268     "id": "bd5f9072.2a8a7",
 
1270     "name": "set parameterName",
 
1271     "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",
 
1273     "x": 1309.034652709961,
 
1274     "y": 1564.6458778381348,
 
1275     "z": "307cdf1d.539fd",
 
1279     "id": "4a2aa60e.ed5c08",
 
1281     "name": "Remove VNFC prefix",
 
1284     "x": 781.5556030273438,
 
1285     "y": 1508.1110153198242,
 
1286     "z": "307cdf1d.539fd",
 
1290     "id": "261e5f2.fe442a",
 
1292     "name": "block : atomic",
 
1293     "xml": "<block atomic=\"true\">",
 
1296     "x": 1087.5555114746094,
 
1297     "y": 1539.1110458374023,
 
1298     "z": "307cdf1d.539fd",
 
1307     "id": "5a956e5b.11a09",
 
1309     "name": "save srcLTP relationship in AAI",
 
1310     "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\" \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $prop.connection-attachment.access-node-id + '/p-interfaces/p-interface/' + $prop.connection-attachment.access-ltp-id`\" />\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",
 
1313     "x": 619.0039329528809,
 
1314     "y": 1925.0039825439453,
 
1315     "z": "307cdf1d.539fd",