integration test issues fix for sdwan and sotn
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
index b8ba3cd..49ba9cf 100644 (file)
@@ -1,20 +1,20 @@
 [
   {
-    "id": "9ff5a59d.ba1e08",
+    "id": "de2bb8e4.c4dbd8",
     "type": "dgstart",
     "name": "DGSTART",
     "outputs": 1,
-    "x": 90.00390625,
-    "y": 49.999999046325684,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 89,
+    "y": 38,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "2a13d7f0.0d4348"
+        "4df3844d.66920c"
       ]
     ]
   },
   {
-    "id": "2a13d7f0.0d4348",
+    "id": "4df3844d.66920c",
     "type": "service-logic",
     "name": "GENERIC-RESOURCE-API ${project.version}",
     "module": "GENERIC-RESOURCE-API",
     "comments": "",
     "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}'>",
     "outputs": 1,
-    "x": 302.00391006469727,
-    "y": 122.00001621246338,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 301.00000381469727,
+    "y": 110.0000171661377,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "a747a1bc.5a7f6"
+        "defa06c2.08a958"
       ]
     ]
   },
   {
-    "id": "a747a1bc.5a7f6",
+    "id": "defa06c2.08a958",
     "type": "method",
     "name": "sdwan-attachment-topology-operation-delete",
     "xml": "<method rpc='sdwan-attachment-topology-operation-delete' mode='sync'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 290.0040283203125,
-    "y": 209.99999904632568,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 289.0001220703125,
+    "y": 198,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "c8f19e0f.8c32c"
+        "6f0fe5c1.42509c"
       ]
     ]
   },
   {
-    "id": "c8f19e0f.8c32c",
+    "id": "6f0fe5c1.42509c",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 306.0040283203125,
-    "y": 765.0002436637878,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 305.0001220703125,
+    "y": 753.0002446174622,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "ac139f07.afe46",
-        "d564f17f.3cd7c",
-        "b24304d4.852188",
-        "81139b91.d72eb8",
-        "da5a8374.7ecac",
-        "72df0cf3.25ba74",
-        "b5ddcb9b.3d0b08",
-        "7e7d6803.801908",
-        "97410a5a.3537b8",
-        "d656e279.64fe3",
-        "be0fff75.07c73",
-        "38ea07fe.9ae708",
-        "9639b1d0.6aa4d",
-        "5ded2c1d.2cf294"
+        "d4b618b3.e243f8",
+        "daa2fd1c.e15f9",
+        "98a0548f.d105b8",
+        "4086ba28.5e7fb4",
+        "3a054970.ddb4f6",
+        "6a9e6940.dc60c8",
+        "1dcc043a.41212c",
+        "cfbf99ba.e9ea08",
+        "a788afc2.3b764",
+        "9bec45ba.823fc8",
+        "295f039a.2c737c",
+        "2676412c.7c20ee",
+        "8b527b2a.81e648",
+        "e2838697.661268",
+        "d9f8d014.bcccd"
       ]
     ]
   },
   {
-    "id": "ac139f07.afe46",
+    "id": "d4b618b3.e243f8",
     "type": "set",
     "name": "set tmp.ar.allotted-resource-id,etc",
     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
     "comments": "",
-    "x": 702.9974670410156,
-    "y": 163.9934859275818,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 701.9935607910156,
+    "y": 151.9934868812561,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "c1a22f40.b7f8d",
+    "id": "2548027c.9fde3e",
     "type": "comment",
     "name": "set tmp ar-id to fetch resource from MDSAL",
     "info": "",
     "comments": "",
-    "x": 731.9577789306641,
-    "y": 128.02528190612793,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 730.9538726806641,
+    "y": 116.02528285980225,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "d564f17f.3cd7c",
+    "id": "daa2fd1c.e15f9",
     "type": "set",
     "name": "set tmp.ar.self-link",
     "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",
     "comments": "",
-    "x": 656.9974060058594,
-    "y": 256.9934911727905,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 655.9934997558594,
+    "y": 244.99349212646484,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "da5a8374.7ecac",
+    "id": "3a054970.ddb4f6",
     "type": "execute",
     "name": "execute Properties",
     "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",
     "comments": "",
     "outputs": 1,
-    "x": 663.2592964172363,
-    "y": 344.6602201461792,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 662.2553901672363,
+    "y": 332.6602210998535,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       []
     ]
   },
   {
-    "id": "b24304d4.852188",
+    "id": "98a0548f.d105b8",
     "type": "execute",
     "name": "generate allotted-resource url",
     "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",
     "comments": "",
     "outputs": 1,
-    "x": 695.2593231201172,
-    "y": 432.66020154953003,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 694.2554168701172,
+    "y": 420.66020250320435,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       []
     ]
   },
   {
-    "id": "595e5ef1.fa051",
+    "id": "7276eff0.df0a8",
     "type": "comment",
     "name": "Used for setting output to API Handler",
     "info": "",
     "comments": "",
-    "x": 710.9974365234375,
-    "y": 223.9935007095337,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 709.9935302734375,
+    "y": 211.993501663208,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "6c854173.f4bc7",
+    "id": "e3eaa523.b8fec8",
     "type": "comment",
     "name": "Obtain different URL, template location etc",
     "info": "For saving resource information to MDSAL & for AAI",
     "comments": "",
-    "x": 728.9974021911621,
-    "y": 309.882381439209,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 727.9934959411621,
+    "y": 297.8823823928833,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "e788822e.3722e",
+    "id": "94cc654b.383a58",
     "type": "comment",
     "name": "Used to Get AR by id to MDSAL, same as self-link",
     "info": "",
     "comments": "",
-    "x": 754.9974212646484,
-    "y": 396.8823404312134,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 753.9935150146484,
+    "y": 384.8823413848877,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "dff7fd40.e0f0c",
+    "id": "860c0bbd.079788",
     "type": "comment",
     "name": "GET parent-service-data from mdsal to check existence of other End point",
     "info": "",
     "comments": "",
-    "x": 822.0042343139648,
-    "y": 851.5316219329834,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 821.0003280639648,
+    "y": 839.5316228866577,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "5cba16bf.c97498",
+    "id": "1bc8c1a0.e4996e",
     "type": "for",
     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 1650.1888427734375,
-    "y": 1085.0042576789856,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1649.1849365234375,
+    "y": 1073.00425863266,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "72856d05.385d64"
+        "389840a4.f6186"
       ]
     ]
   },
   {
-    "id": "81139b91.d72eb8",
+    "id": "4086ba28.5e7fb4",
     "type": "switchNode",
     "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
     "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 801.1882019042969,
-    "y": 1091.7180404663086,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 800.1842956542969,
+    "y": 1079.718041419983,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "e3d57198.c43ea",
-        "2011daa6.6398e6"
+        "6019a57.13f705c",
+        "4a21aa00.3b1ac8"
       ]
     ]
   },
   {
-    "id": "73a8d368.4b79bc",
+    "id": "30a78dd9.3c8b22",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 1251.4583644866943,
-    "y": 1131.7015261650085,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1250.4544582366943,
+    "y": 1119.7015271186829,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "5cba16bf.c97498",
-        "4ca0ceba.893a2"
+        "1bc8c1a0.e4996e",
+        "e9fadefb.0c149"
       ]
     ]
   },
   {
-    "id": "72856d05.385d64",
+    "id": "389840a4.f6186",
     "type": "switchNode",
     "name": "switch allotted-resource-id",
     "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 2100.300048828125,
-    "y": 1083.0041155815125,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2099.296142578125,
+    "y": 1071.0041165351868,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "f2234386.9854c"
+        "87f0a9d.62cd658"
       ]
     ]
   },
   {
-    "id": "72df0cf3.25ba74",
+    "id": "6a9e6940.dc60c8",
     "type": "set",
     "name": "set tmp.ar.parent-service-instance-id",
     "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",
     "comments": "",
-    "x": 712.9726181030273,
-    "y": 887.0000667572021,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 711.9687118530273,
+    "y": 875.0000677108765,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "32223174.f7450e",
+    "id": "9c6dc3c.897554",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1092.972900390625,
-    "y": 965.0001816749573,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1091.968994140625,
+    "y": 953.0001826286316,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "c45c28d6.ff3cc8"
+        "1e4f6a7c.485c96"
       ]
     ]
   },
   {
-    "id": "e0a303bb.2dc06",
+    "id": "f96c62b7.b194",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1084.8247032165527,
-    "y": 1000.0662665367126,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1083.8207969665527,
+    "y": 988.066267490387,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "3e0bcadf.484fe6"
+        "ecfe720a.b902e"
       ]
     ]
   },
   {
-    "id": "3e0bcadf.484fe6",
+    "id": "ecfe720a.b902e",
     "type": "returnFailure",
     "name": "return failure",
     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
     "comments": "",
-    "x": 1259.973388671875,
-    "y": 996.333616733551,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1258.969482421875,
+    "y": 984.3336176872253,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "c45c28d6.ff3cc8",
+    "id": "1e4f6a7c.485c96",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1243.972900390625,
-    "y": 963.0001816749573,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1242.968994140625,
+    "y": 951.0001826286316,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       []
     ]
   },
   {
-    "id": "ebfdd448.549cc8",
+    "id": "5fa2362a.75f678",
     "type": "failure",
     "name": "failure",
     "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 946.7346687316895,
-    "y": 1280.9528144598007,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 945.7307624816895,
+    "y": 1268.952815413475,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "65c46af.7320594"
+        "3cb41c0b.eae2b4"
       ]
     ]
   },
   {
-    "id": "65c46af.7320594",
+    "id": "3cb41c0b.eae2b4",
     "type": "returnFailure",
     "name": "return failure",
     "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",
     "comments": "",
-    "x": 1113.2585487365723,
-    "y": 1292.5718854665756,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1112.2546424865723,
+    "y": 1280.57188642025,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "4d049da0.ca99b4",
+    "id": "144dae97.c82161",
     "type": "failure",
     "name": "not-found",
     "xml": "<outcome value='not-found'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 953.8299560546875,
-    "y": 1313.7147821187973,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 952.8260498046875,
+    "y": 1301.7147830724716,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "65c46af.7320594"
+        "3cb41c0b.eae2b4"
       ]
     ]
   },
   {
-    "id": "36f9e028.ff6b9",
+    "id": "2d8a7679.e4417a",
     "type": "comment",
     "name": "TODO: Rework after confirmation from AAI",
     "info": "",
     "comments": "",
-    "x": 1078.1413345336914,
-    "y": 1231.8732142448425,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1077.1374282836914,
+    "y": 1219.8732151985168,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "b5ddcb9b.3d0b08",
+    "id": "1dcc043a.41212c",
     "type": "set",
     "name": "set output to api handler",
     "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",
     "comments": "",
-    "x": 679.5500564575195,
-    "y": 1244.8276815414429,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 678.5461502075195,
+    "y": 1232.8276824951172,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "7e7d6803.801908",
+    "id": "cfbf99ba.e9ea08",
     "type": "returnSuccess",
     "name": "return success",
     "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",
     "comments": "",
-    "x": 648.9631729125977,
-    "y": 1351.443561553955,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 647.9592666625977,
+    "y": 1339.4435625076294,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "97410a5a.3537b8",
+    "id": "a788afc2.3b764",
     "type": "execute",
     "name": "execute RestApiCallNode - PUT AR by id",
     "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='Delete' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 728.6705703735352,
-    "y": 521.3333616256714,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 727.6666641235352,
+    "y": 509.3333625793457,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "1994f5fd.2a6f4a",
-        "da3ffcab.ea62a",
-        "e404bf43.f1066"
+        "694caf54.7b798",
+        "ae592dd1.c9cc1",
+        "f4c65729.068fc8"
       ]
     ]
   },
   {
-    "id": "1994f5fd.2a6f4a",
+    "id": "694caf54.7b798",
     "type": "not-found",
     "name": "not-found",
     "xml": "<outcome value='not-found'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 968.3120727539062,
-    "y": 561.6649098396301,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 967.3081665039062,
+    "y": 549.6649107933044,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "e45dc5dc.4ac748"
+        "cccfb0fc.4d54b"
       ]
     ]
   },
   {
-    "id": "da3ffcab.ea62a",
+    "id": "ae592dd1.c9cc1",
     "type": "failure",
     "name": "failure",
     "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 965.3120727539062,
-    "y": 518.1649074554443,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 964.3081665039062,
+    "y": 506.16490840911865,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "e45dc5dc.4ac748"
+        "cccfb0fc.4d54b"
       ]
     ]
   },
   {
-    "id": "e404bf43.f1066",
+    "id": "f4c65729.068fc8",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 972.0621528625488,
-    "y": 477.52200269699097,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 971.0582466125488,
+    "y": 465.5220036506653,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "6706c73a.4ce818"
+        "f5848024.451b6"
       ]
     ]
   },
   {
-    "id": "e45dc5dc.4ac748",
+    "id": "cccfb0fc.4d54b",
     "type": "returnFailure",
     "name": "return failure",
     "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",
     "comments": "",
-    "x": 1124.062240600586,
-    "y": 539.9149079322815,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1123.058334350586,
+    "y": 527.9149088859558,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "6706c73a.4ce818",
+    "id": "f5848024.451b6",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1109.7180843353271,
-    "y": 477.7141823768616,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1108.7141780853271,
+    "y": 465.7141833305359,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       []
     ]
   },
   {
-    "id": "61ea2842.341858",
+    "id": "ace0db7.0de1828",
     "type": "comment",
     "name": "Delete Allotted Resource",
     "info": "",
     "comments": "",
-    "x": 676.0039520263672,
-    "y": 490.0000276565552,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 675.0000457763672,
+    "y": 478.0000286102295,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "6dbcd93.5772b28",
+    "id": "8845d317.b4499",
     "type": "for",
     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 1626.0078125,
-    "y": 727.0039052963257,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1625.00390625,
+    "y": 715.00390625,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "8604274a.795a98"
+        "f7e8e6c4.e21498"
       ]
     ]
   },
   {
-    "id": "d656e279.64fe3",
+    "id": "9bec45ba.823fc8",
     "type": "switchNode",
     "name": "switch service-data.consumed-allotted-resources_length",
     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 779.0071983337402,
-    "y": 687.7179067134857,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 778.0032920837402,
+    "y": 675.71790766716,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "e4f37d32.adb08",
-        "b232603b.f0d15"
+        "105cf808.d9fc58",
+        "5f964ad4.a47694"
       ]
     ]
   },
   {
-    "id": "e4f37d32.adb08",
+    "id": "105cf808.d9fc58",
     "type": "other",
     "name": "outcome Null",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1103.1500625610352,
-    "y": 670.5753412246704,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1102.1461563110352,
+    "y": 658.5753421783447,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "157affe5.dc6c6"
+        "c721eaa0.d90778"
       ]
     ]
   },
   {
-    "id": "b232603b.f0d15",
+    "id": "5f964ad4.a47694",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1089.1500854492188,
-    "y": 733.5753300189972,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1088.1461791992188,
+    "y": 721.5753309726715,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "a3ecd1d6.43a2e"
+        "d487336b.5c21"
       ]
     ]
   },
   {
-    "id": "a3ecd1d6.43a2e",
+    "id": "d487336b.5c21",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 1249.2771759033203,
-    "y": 731.7013065814972,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1248.2732696533203,
+    "y": 719.7013075351715,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "6dbcd93.5772b28",
-        "9971417.dd05cc"
+        "8845d317.b4499",
+        "2a5719f4.0daa06"
       ]
     ]
   },
   {
-    "id": "be0fff75.07c73",
+    "id": "295f039a.2c737c",
     "type": "set",
     "name": "set consumed allotted resources for deletion",
     "xml": "<set>\n<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].\" value=\"\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n",
     "comments": "",
-    "x": 735.8645324707031,
-    "y": 758.2895498275757,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 734.8606262207031,
+    "y": 746.28955078125,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "8604274a.795a98",
+    "id": "f7e8e6c4.e21498",
     "type": "switchNode",
     "name": "switch allotted-resource-id",
     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 2064.1194229125977,
-    "y": 723.0040273666382,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2063.1155166625977,
+    "y": 711.0040283203125,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "3ce4b91e.bc1ea6"
+        "129a19f.57049e6"
       ]
     ]
   },
   {
-    "id": "3ce4b91e.bc1ea6",
+    "id": "129a19f.57049e6",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 2259.929244995117,
-    "y": 722.4683518409729,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2258.925338745117,
+    "y": 710.4683527946472,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "bfbb9b9d.413298"
+        "e64da982.d670b8"
       ]
     ]
   },
   {
-    "id": "5d4138bb.2e6948",
+    "id": "a61544d0.afeca8",
     "type": "set",
     "name": "set tmp.cidx",
     "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
     "comments": "",
-    "x": 2575.2657775878906,
-    "y": 723.2246098518372,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2574.2618713378906,
+    "y": 711.2246108055115,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "80fa82c1.032f3",
+    "id": "77efab9.9957c54",
     "type": "comment",
     "name": "Delete consumed service consumed-allotted-resources in mdsal",
     "info": "",
     "comments": "",
-    "x": 790.0084686279297,
-    "y": 620.003871455905,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 789.0045623779297,
+    "y": 608.0038724095793,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "b69750ea.d13e7",
+    "id": "78d83bc7.d44d54",
     "type": "comment",
     "name": "This set resource will be deleted in MDSAL by provider code",
     "info": "",
     "comments": "",
-    "x": 780.341251373291,
-    "y": 724.7819633483887,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 779.337345123291,
+    "y": 712.781964302063,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "24feb42b.2816cc",
+    "id": "a9f71f74.85a1",
     "type": "comment",
     "name": "Obtain the index of conusumed AR",
     "info": "",
     "comments": "",
-    "x": 702.7856597900391,
-    "y": 651.8927316665649,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 701.7817535400391,
+    "y": 639.8927326202393,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "157affe5.dc6c6",
+    "id": "c721eaa0.d90778",
     "type": "returnFailure",
     "name": "return failure",
     "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=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
     "comments": "",
-    "x": 1265.0078125,
-    "y": 671.0039052963257,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1264.00390625,
+    "y": 659.00390625,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "bfbb9b9d.413298",
+    "id": "e64da982.d670b8",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 2409.007843017578,
-    "y": 723.2539548873901,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2408.003936767578,
+    "y": 711.2539558410645,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "5d4138bb.2e6948"
+        "a61544d0.afeca8"
       ]
     ]
   },
   {
-    "id": "f597fe60.1abe5",
+    "id": "15284a02.c01676",
     "type": "returnFailure",
     "name": "return failure",
     "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=\"resource to be deleted is not available in mdsal\" />\n",
     "comments": "",
-    "x": 1719.2578125,
-    "y": 780.2539052963257,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1718.25390625,
+    "y": 768.25390625,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "15fa064d.455b2a",
+    "id": "3056effb.bf63e",
     "type": "outcome",
     "name": "NULL",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1581.7578125,
-    "y": 780.2539052963257,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1580.75390625,
+    "y": 768.25390625,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "f597fe60.1abe5"
+        "15284a02.c01676"
       ]
     ]
   },
   {
-    "id": "9971417.dd05cc",
+    "id": "2a5719f4.0daa06",
     "type": "switchNode",
     "name": "switch tmp.cidx ",
     "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1427.7578125,
-    "y": 780.2539052963257,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1426.75390625,
+    "y": 768.25390625,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "15fa064d.455b2a"
+        "3056effb.bf63e"
       ]
     ]
   },
   {
-    "id": "78b32310.b31e1c",
+    "id": "7516e2f4.527d0c",
     "type": "comment",
     "name": "Delete provided service provided-allotted-resources in mdsal",
     "info": "",
     "comments": "",
-    "x": 776.5078277587891,
-    "y": 816.0039052963257,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 775.5039215087891,
+    "y": 804.00390625,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "2011daa6.6398e6",
+    "id": "4a21aa00.3b1ac8",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1104.5080833435059,
-    "y": 1130.7540974617004,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1103.5041770935059,
+    "y": 1118.7540984153748,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "73a8d368.4b79bc"
+        "30a78dd9.3c8b22"
       ]
     ]
   },
   {
-    "id": "e3d57198.c43ea",
+    "id": "6019a57.13f705c",
     "type": "other",
     "name": "outcome Null",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1121.5080032348633,
-    "y": 1042.7539315223694,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1120.5040969848633,
+    "y": 1030.7539324760437,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "e0cbd03d.fef77"
+        "949446a8.12d2b8"
       ]
     ]
   },
   {
-    "id": "e0cbd03d.fef77",
+    "id": "949446a8.12d2b8",
     "type": "returnFailure",
     "name": "return failure",
     "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=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
     "comments": "",
-    "x": 1285.3656005859375,
-    "y": 1043.1824765205383,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1284.3616943359375,
+    "y": 1031.1824774742126,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "8152d4f5.017ee8",
+    "id": "f670e307.a2a7a",
     "type": "returnFailure",
     "name": "return failure",
     "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=\"resource to be deleted is not available in mdsal\" />\n",
     "comments": "",
-    "x": 1716.7578563690186,
-    "y": 1160.7539353370667,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1715.7539501190186,
+    "y": 1148.753936290741,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "9af42612.9cc9e8",
+    "id": "66a217ce.0565f8",
     "type": "outcome",
     "name": "NULL",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1579.2578563690186,
-    "y": 1160.7539353370667,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1578.2539501190186,
+    "y": 1148.753936290741,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "8152d4f5.017ee8"
+        "f670e307.a2a7a"
       ]
     ]
   },
   {
-    "id": "4ca0ceba.893a2",
+    "id": "e9fadefb.0c149",
     "type": "switchNode",
     "name": "switch tmp.pidx ",
     "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1425.2578563690186,
-    "y": 1160.7539353370667,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 1424.2539501190186,
+    "y": 1148.753936290741,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "9af42612.9cc9e8"
+        "66a217ce.0565f8"
       ]
     ]
   },
   {
-    "id": "f2234386.9854c",
+    "id": "87f0a9d.62cd658",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 2289.508274078369,
-    "y": 1080.7540936470032,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2288.504367828369,
+    "y": 1068.7540946006775,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "8c3b4c6c.f6375"
+        "9a3770db.667c5"
       ]
     ]
   },
   {
-    "id": "51d5026c.5bd4fc",
+    "id": "30ce9227.a6174e",
     "type": "set",
     "name": "set tmp.pidx",
     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n",
     "comments": "",
-    "x": 2357.8443908691406,
-    "y": 1215.510190486908,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2356.8404846191406,
+    "y": 1203.5101914405823,
+    "z": "5256b6fe.7fc0a8",
     "wires": []
   },
   {
-    "id": "8c3b4c6c.f6375",
+    "id": "9a3770db.667c5",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 2349.586727142334,
-    "y": 1151.5395798683167,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 2348.582820892334,
+    "y": 1139.539580821991,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "51d5026c.5bd4fc"
+        "30ce9227.a6174e"
       ]
     ]
   },
   {
-    "id": "38ea07fe.9ae708",
-    "type": "set",
-    "name": "set provided allotted resources for deletion",
-    "xml": "<set>\n<parameter name=\"service-data.provided-allotted-resources.consumed-allotted-resource[$pidx].\" value=\"\" />\n<parameter name=\"service-data.provided-allotted-resources.consumed-allotted-resource_length\" value='`$service-data.provided-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n",
-    "comments": "",
-    "x": 735.0079040527344,
-    "y": 1146.003975868225,
-    "z": "3cf3c3f6.8ecf4c",
-    "wires": []
-  },
-  {
-    "id": "a01da430.f51578",
+    "id": "d9f8d014.bcccd",
     "type": "update",
     "name": "update AAI allotted-resource",
     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='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",
     "comments": "",
     "outputs": 1,
-    "x": 692.2266616821289,
-    "y": 1300.7543454170227,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 691.2227554321289,
+    "y": 1288.754346370697,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "ebfdd448.549cc8",
-        "4d049da0.ca99b4"
+        "5fa2362a.75f678",
+        "144dae97.c82161"
       ]
     ]
   },
   {
-    "id": "5ded2c1d.2cf294",
+    "id": "8b527b2a.81e648",
     "type": "execute",
     "name": "execute RestApiCallNode - get-resource parent service data",
     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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-psd\" />\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 782.3373260498047,
-    "y": 986.3333654403687,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 781.3334197998047,
+    "y": 974.333366394043,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       [
-        "32223174.f7450e",
-        "e0a303bb.2dc06"
+        "9c6dc3c.897554",
+        "f96c62b7.b194"
       ]
     ]
   },
   {
-    "id": "9639b1d0.6aa4d",
+    "id": "2676412c.7c20ee",
     "type": "execute",
     "name": "get parent-service-data tmp.ar-url-psd",
     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>",
     "comments": "",
     "outputs": 1,
-    "x": 716.3372650146484,
-    "y": 944.3332047462463,
-    "z": "3cf3c3f6.8ecf4c",
+    "x": 715.3333587646484,
+    "y": 932.3332056999207,
+    "z": "5256b6fe.7fc0a8",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "e2838697.661268",
+    "type": "execute",
+    "name": "execute RestApiCallNode - delete-resource parent service data",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$prop.controller.url + $tmp.ar-url-psd + '/provided-allotted-resources/provided-allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\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='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd-delete\" />\n\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 797.00390625,
+    "y": 1179.00390625,
+    "z": "5256b6fe.7fc0a8",
     "wires": [
       []
     ]