integration test issues fix for sdwan and sotn
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json
index 453b782..8b1fd28 100644 (file)
@@ -1,20 +1,20 @@
 [
   {
-    "id": "11e769e3.3811f6",
+    "id": "727269c5.c0c088",
     "type": "dgstart",
     "name": "DGSTART",
     "outputs": 1,
-    "x": 114,
-    "y": 40,
-    "z": "22c49458.dad37c",
+    "x": 107,
+    "y": 38,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "a911446f.df7748"
+        "476f18dc.439248"
       ]
     ]
   },
   {
-    "id": "a911446f.df7748",
+    "id": "476f18dc.439248",
     "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": 288.00000381469727,
-    "y": 95.0000171661377,
-    "z": "22c49458.dad37c",
+    "x": 281.00000381469727,
+    "y": 93.0000171661377,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "7ff497ab.f66f98"
+        "e0fac416.80f518"
       ]
     ]
   },
   {
-    "id": "7ff497ab.f66f98",
+    "id": "e0fac416.80f518",
     "type": "method",
     "name": "sotn-attachment-topology-operation-delete",
     "xml": "<method rpc='sotn-attachment-topology-operation-delete' mode='sync'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 276.0001220703125,
-    "y": 183,
-    "z": "22c49458.dad37c",
+    "x": 269.0001220703125,
+    "y": 181,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "5cbadab.7a99a24"
+        "231c9f70.d1a7d"
       ]
     ]
   },
   {
-    "id": "5cbadab.7a99a24",
+    "id": "231c9f70.d1a7d",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 292.0001220703125,
-    "y": 738.0002446174622,
-    "z": "22c49458.dad37c",
+    "x": 285.0001220703125,
+    "y": 736.0002446174622,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "12de2d1a.68bba3",
-        "51b97e85.9070d",
-        "1fed4a5d.8e6a46",
-        "6484d39f.eed1bc",
-        "5b5b7d66.22fc34",
-        "e0c27564.dc6708",
-        "4516c95e.b99748",
-        "497a6009.1522c",
-        "79c8cfb5.a81b4",
-        "72f76f27.124fe",
-        "eb5610dc.278e7",
-        "8cb29231.a6eaa",
-        "322e0846.b44bc8",
-        "9ea8a95d.e39878",
-        "75c532eb.23cc8c"
+        "daf8cd41.f5737",
+        "a1a6aaf1.a46af8",
+        "90947482.aca148",
+        "b9944c13.63436",
+        "6eccbbd0.6de454",
+        "1a37f19e.b4ca8e",
+        "b769698c.40e9c8",
+        "a43d6d68.0f0c8",
+        "190ff216.cb59ee",
+        "4a2552b4.8267bc",
+        "471618ce.1aa6e8",
+        "afce32ae.04764",
+        "af833dcd.19d57",
+        "abce896b.ee5ab8",
+        "36034272.10e4ae"
       ]
     ]
   },
   {
-    "id": "12de2d1a.68bba3",
+    "id": "daf8cd41.f5737",
     "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": 688.9935607910156,
-    "y": 136.9934868812561,
-    "z": "22c49458.dad37c",
+    "x": 681.9935607910156,
+    "y": 134.9934868812561,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "a47c80d2.4bf0a",
+    "id": "f092463.fee0fb8",
     "type": "comment",
     "name": "set tmp ar-id to fetch resource from MDSAL",
     "info": "",
     "comments": "",
-    "x": 717.9538726806641,
-    "y": 101.02528285980225,
-    "z": "22c49458.dad37c",
+    "x": 710.9538726806641,
+    "y": 99.02528285980225,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "51b97e85.9070d",
+    "id": "a1a6aaf1.a46af8",
     "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": 642.9934997558594,
-    "y": 229.99349212646484,
-    "z": "22c49458.dad37c",
+    "x": 635.9934997558594,
+    "y": 227.99349212646484,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "5b5b7d66.22fc34",
+    "id": "6eccbbd0.6de454",
     "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": 649.2553901672363,
-    "y": 317.6602210998535,
-    "z": "22c49458.dad37c",
+    "x": 642.2553901672363,
+    "y": 315.6602210998535,
+    "z": "9a9db3db.b812b",
     "wires": [
       []
     ]
   },
   {
-    "id": "1fed4a5d.8e6a46",
+    "id": "90947482.aca148",
     "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": 681.2554168701172,
-    "y": 405.66020250320435,
-    "z": "22c49458.dad37c",
+    "x": 674.2554168701172,
+    "y": 403.66020250320435,
+    "z": "9a9db3db.b812b",
     "wires": [
       []
     ]
   },
   {
-    "id": "ab7e7ca9.bc19e",
+    "id": "a011c3.2eb3ce4",
     "type": "comment",
     "name": "Used for setting output to API Handler",
     "info": "",
     "comments": "",
-    "x": 696.9935302734375,
-    "y": 196.993501663208,
-    "z": "22c49458.dad37c",
+    "x": 689.9935302734375,
+    "y": 194.993501663208,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "ba32781e.53a208",
+    "id": "d15c9938.74a878",
     "type": "comment",
     "name": "Obtain different URL, template location etc",
     "info": "For saving resource information to MDSAL & for AAI",
     "comments": "",
-    "x": 714.9934959411621,
-    "y": 282.8823823928833,
-    "z": "22c49458.dad37c",
+    "x": 707.9934959411621,
+    "y": 280.8823823928833,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "b5885f7.9b7d5a",
+    "id": "a5405514.70c5b8",
     "type": "comment",
     "name": "Used to Get AR by id to MDSAL, same as self-link",
     "info": "",
     "comments": "",
-    "x": 740.9935150146484,
-    "y": 369.8823413848877,
-    "z": "22c49458.dad37c",
+    "x": 733.9935150146484,
+    "y": 367.8823413848877,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "e2ab0cde.eabb7",
+    "id": "88c1d026.0cefd",
     "type": "comment",
     "name": "GET parent-service-data from mdsal to check existence of other End point",
     "info": "",
     "comments": "",
-    "x": 808.0003280639648,
-    "y": 824.5316228866577,
-    "z": "22c49458.dad37c",
+    "x": 801.0003280639648,
+    "y": 822.5316228866577,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "9608d482.14feb8",
+    "id": "3c5cf576.01802a",
     "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": 1636.1849365234375,
-    "y": 1058.00425863266,
-    "z": "22c49458.dad37c",
+    "x": 1629.1849365234375,
+    "y": 1056.00425863266,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "9f0a169a.b7bf38"
+        "3496000b.b50ee"
       ]
     ]
   },
   {
-    "id": "6484d39f.eed1bc",
+    "id": "b9944c13.63436",
     "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": 787.1842956542969,
-    "y": 1064.718041419983,
-    "z": "22c49458.dad37c",
+    "x": 780.1842956542969,
+    "y": 1062.718041419983,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "3cb5550a.e1379a",
-        "525dfe7f.9aace"
+        "af74ccd9.4a43f",
+        "86c1925.6123e7"
       ]
     ]
   },
   {
-    "id": "72d22ab8.9fbaf4",
+    "id": "e65e2eca.21548",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 1237.4544582366943,
-    "y": 1104.7015271186829,
-    "z": "22c49458.dad37c",
+    "x": 1230.4544582366943,
+    "y": 1102.7015271186829,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "9608d482.14feb8",
-        "37cdb210.11699e"
+        "3c5cf576.01802a",
+        "fad43184.faa77"
       ]
     ]
   },
   {
-    "id": "9f0a169a.b7bf38",
+    "id": "3496000b.b50ee",
     "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": 2086.296142578125,
-    "y": 1056.0041165351868,
-    "z": "22c49458.dad37c",
+    "x": 2079.296142578125,
+    "y": 1054.0041165351868,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "1c3b0551.8a3d7b"
+        "2b9e1b87.4d7be4"
       ]
     ]
   },
   {
-    "id": "e0c27564.dc6708",
+    "id": "1a37f19e.b4ca8e",
     "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": 698.9687118530273,
-    "y": 860.0000677108765,
-    "z": "22c49458.dad37c",
+    "x": 691.9687118530273,
+    "y": 858.0000677108765,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "df350c49.f450e",
+    "id": "f65db35d.ec076",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1078.968994140625,
-    "y": 938.0001826286316,
-    "z": "22c49458.dad37c",
+    "x": 1071.968994140625,
+    "y": 936.0001826286316,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "f5ff5552.dcef18"
+        "c80198f0.eabc78"
       ]
     ]
   },
   {
-    "id": "a707d837.6f7a08",
+    "id": "733108ec.4b0c18",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1070.8207969665527,
-    "y": 973.066267490387,
-    "z": "22c49458.dad37c",
+    "x": 1063.8207969665527,
+    "y": 971.066267490387,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "72020d23.f0ba44"
+        "d0615553.03e2f8"
       ]
     ]
   },
   {
-    "id": "72020d23.f0ba44",
+    "id": "d0615553.03e2f8",
     "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": 1245.969482421875,
-    "y": 969.3336176872253,
-    "z": "22c49458.dad37c",
+    "x": 1238.969482421875,
+    "y": 967.3336176872253,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "f5ff5552.dcef18",
+    "id": "c80198f0.eabc78",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1229.968994140625,
-    "y": 936.0001826286316,
-    "z": "22c49458.dad37c",
+    "x": 1222.968994140625,
+    "y": 934.0001826286316,
+    "z": "9a9db3db.b812b",
     "wires": [
       []
     ]
   },
   {
-    "id": "b9f57970.85bbb8",
+    "id": "5239fca8.d17b94",
     "type": "failure",
     "name": "failure",
     "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 932.7307624816895,
-    "y": 1253.952815413475,
-    "z": "22c49458.dad37c",
+    "x": 925.7307624816895,
+    "y": 1251.952815413475,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "7794b76c.3bcdd8"
+        "d9416e9b.67f3a"
       ]
     ]
   },
   {
-    "id": "7794b76c.3bcdd8",
+    "id": "d9416e9b.67f3a",
     "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": 1099.2546424865723,
-    "y": 1265.57188642025,
-    "z": "22c49458.dad37c",
+    "x": 1092.2546424865723,
+    "y": 1263.57188642025,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "2e04eae7.d58896",
+    "id": "c631f277.5fd19",
     "type": "failure",
     "name": "not-found",
     "xml": "<outcome value='not-found'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 939.8260498046875,
-    "y": 1286.7147830724716,
-    "z": "22c49458.dad37c",
+    "x": 932.8260498046875,
+    "y": 1284.7147830724716,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "7794b76c.3bcdd8"
+        "d9416e9b.67f3a"
       ]
     ]
   },
   {
-    "id": "4516c95e.b99748",
+    "id": "b769698c.40e9c8",
     "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": 665.5461502075195,
-    "y": 1217.8276824951172,
-    "z": "22c49458.dad37c",
+    "x": 658.5461502075195,
+    "y": 1215.8276824951172,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "497a6009.1522c",
+    "id": "a43d6d68.0f0c8",
     "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": 634.9592552185059,
-    "y": 1318.4434370994568,
-    "z": "22c49458.dad37c",
+    "x": 627.9592552185059,
+    "y": 1316.4434370994568,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "75c532eb.23cc8c",
+    "id": "36034272.10e4ae",
     "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": 714.6666641235352,
-    "y": 494.3333625793457,
-    "z": "22c49458.dad37c",
+    "x": 707.6666641235352,
+    "y": 492.3333625793457,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "62855576.29e8bc",
-        "943e1cd3.5570d",
-        "d016523b.d696c"
+        "b9a614f.423c0e8",
+        "1fe78f55.993961",
+        "2453145c.fe210c"
       ]
     ]
   },
   {
-    "id": "62855576.29e8bc",
+    "id": "b9a614f.423c0e8",
     "type": "not-found",
     "name": "not-found",
     "xml": "<outcome value='not-found'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 954.3081665039062,
-    "y": 534.6649107933044,
-    "z": "22c49458.dad37c",
+    "x": 947.3081665039062,
+    "y": 532.6649107933044,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "1a54db3b.e65b75"
+        "ceacff91.78296"
       ]
     ]
   },
   {
-    "id": "943e1cd3.5570d",
+    "id": "1fe78f55.993961",
     "type": "failure",
     "name": "failure",
     "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 951.3081665039062,
-    "y": 491.16490840911865,
-    "z": "22c49458.dad37c",
+    "x": 944.3081665039062,
+    "y": 489.16490840911865,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "1a54db3b.e65b75"
+        "ceacff91.78296"
       ]
     ]
   },
   {
-    "id": "d016523b.d696c",
+    "id": "2453145c.fe210c",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 958.0582466125488,
-    "y": 450.5220036506653,
-    "z": "22c49458.dad37c",
+    "x": 951.0582466125488,
+    "y": 448.5220036506653,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "4e5c2e12.2b4c5"
+        "cc515c42.f40e8"
       ]
     ]
   },
   {
-    "id": "1a54db3b.e65b75",
+    "id": "ceacff91.78296",
     "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": 1110.058334350586,
-    "y": 512.9149088859558,
-    "z": "22c49458.dad37c",
+    "x": 1103.058334350586,
+    "y": 510.9149088859558,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "4e5c2e12.2b4c5",
+    "id": "cc515c42.f40e8",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1095.7141780853271,
-    "y": 450.7141833305359,
-    "z": "22c49458.dad37c",
+    "x": 1088.7141780853271,
+    "y": 448.7141833305359,
+    "z": "9a9db3db.b812b",
     "wires": [
       []
     ]
   },
   {
-    "id": "568d92cc.719a5c",
+    "id": "afc0a167.60e96",
     "type": "comment",
     "name": "Delete Allotted Resource",
     "info": "",
     "comments": "",
-    "x": 662.0000457763672,
-    "y": 463.0000286102295,
-    "z": "22c49458.dad37c",
+    "x": 655.0000457763672,
+    "y": 461.0000286102295,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "34b11a52.976836",
+    "id": "930f6554.7ad0e8",
     "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": 1612.00390625,
-    "y": 700.00390625,
-    "z": "22c49458.dad37c",
+    "x": 1605.00390625,
+    "y": 698.00390625,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "905bba1a.0e8108"
+        "ab2d612c.e624d"
       ]
     ]
   },
   {
-    "id": "79c8cfb5.a81b4",
+    "id": "190ff216.cb59ee",
     "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": 765.0032920837402,
-    "y": 660.71790766716,
-    "z": "22c49458.dad37c",
+    "x": 758.0032920837402,
+    "y": 658.71790766716,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "a04a8128.1b845",
-        "9bf1251d.a97d08"
+        "22a6f73e.83f758",
+        "59a890e7.9e391"
       ]
     ]
   },
   {
-    "id": "a04a8128.1b845",
+    "id": "22a6f73e.83f758",
     "type": "other",
     "name": "outcome Null",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1089.1461563110352,
-    "y": 643.5753421783447,
-    "z": "22c49458.dad37c",
+    "x": 1082.1461563110352,
+    "y": 641.5753421783447,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "673a72bf.8ebb9c"
+        "d98f9bea.dbb4e8"
       ]
     ]
   },
   {
-    "id": "9bf1251d.a97d08",
+    "id": "59a890e7.9e391",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1075.1461791992188,
-    "y": 706.5753309726715,
-    "z": "22c49458.dad37c",
+    "x": 1068.1461791992188,
+    "y": 704.5753309726715,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "db5549c4.4372e8"
+        "741d09f.ef4e8f8"
       ]
     ]
   },
   {
-    "id": "db5549c4.4372e8",
+    "id": "741d09f.ef4e8f8",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 1235.2732696533203,
-    "y": 704.7013075351715,
-    "z": "22c49458.dad37c",
+    "x": 1228.2732696533203,
+    "y": 702.7013075351715,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "34b11a52.976836",
-        "f5274780.cdc8d8"
+        "930f6554.7ad0e8",
+        "a2d1d665.9bea78"
       ]
     ]
   },
   {
-    "id": "72f76f27.124fe",
+    "id": "4a2552b4.8267bc",
     "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": 721.8606262207031,
-    "y": 731.28955078125,
-    "z": "22c49458.dad37c",
+    "x": 714.8606262207031,
+    "y": 729.28955078125,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "905bba1a.0e8108",
+    "id": "ab2d612c.e624d",
     "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": 2050.1155166625977,
-    "y": 696.0040283203125,
-    "z": "22c49458.dad37c",
+    "x": 2043.1155166625977,
+    "y": 694.0040283203125,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "a9176335.8c5a3"
+        "d09e4ce4.cdbe3"
       ]
     ]
   },
   {
-    "id": "a9176335.8c5a3",
+    "id": "d09e4ce4.cdbe3",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 2245.925338745117,
-    "y": 695.4683527946472,
-    "z": "22c49458.dad37c",
+    "x": 2238.925338745117,
+    "y": 693.4683527946472,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "c3d97090.70bae"
+        "c313761f.950178"
       ]
     ]
   },
   {
-    "id": "cc5aea61.28e048",
+    "id": "92647963.e38708",
     "type": "set",
     "name": "set tmp.cidx",
     "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
     "comments": "",
-    "x": 2561.2618713378906,
-    "y": 696.2246108055115,
-    "z": "22c49458.dad37c",
+    "x": 2554.2618713378906,
+    "y": 694.2246108055115,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "ad0e4910.5dc848",
+    "id": "8d54089c.d1a698",
     "type": "comment",
     "name": "Delete consumed service consumed-allotted-resources in mdsal",
     "info": "",
     "comments": "",
-    "x": 776.0045623779297,
-    "y": 593.0038724095793,
-    "z": "22c49458.dad37c",
+    "x": 769.0045623779297,
+    "y": 591.0038724095793,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "5b6b08ee.203c48",
+    "id": "66e1c966.841508",
     "type": "comment",
     "name": "This set resource will be deleted in MDSAL by provider code",
     "info": "",
     "comments": "",
-    "x": 766.337345123291,
-    "y": 697.781964302063,
-    "z": "22c49458.dad37c",
+    "x": 759.337345123291,
+    "y": 695.781964302063,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "5c1ad210.960a1c",
+    "id": "491e50db.34949",
     "type": "comment",
     "name": "Obtain the index of conusumed AR",
     "info": "",
     "comments": "",
-    "x": 688.7817535400391,
-    "y": 624.8927326202393,
-    "z": "22c49458.dad37c",
+    "x": 681.7817535400391,
+    "y": 622.8927326202393,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "673a72bf.8ebb9c",
+    "id": "d98f9bea.dbb4e8",
     "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": 1251.00390625,
-    "y": 644.00390625,
-    "z": "22c49458.dad37c",
+    "x": 1244.00390625,
+    "y": 642.00390625,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "c3d97090.70bae",
+    "id": "c313761f.950178",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 2395.003936767578,
-    "y": 696.2539558410645,
-    "z": "22c49458.dad37c",
+    "x": 2388.003936767578,
+    "y": 694.2539558410645,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "cc5aea61.28e048"
+        "92647963.e38708"
       ]
     ]
   },
   {
-    "id": "b29df060.eb56c",
+    "id": "6aa48d02.a58084",
     "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": 1705.25390625,
-    "y": 753.25390625,
-    "z": "22c49458.dad37c",
+    "x": 1698.25390625,
+    "y": 751.25390625,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "b8b02536.9fab38",
+    "id": "bf5c462c.da5e08",
     "type": "outcome",
     "name": "NULL",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1567.75390625,
-    "y": 753.25390625,
-    "z": "22c49458.dad37c",
+    "x": 1560.75390625,
+    "y": 751.25390625,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "b29df060.eb56c"
+        "6aa48d02.a58084"
       ]
     ]
   },
   {
-    "id": "f5274780.cdc8d8",
+    "id": "a2d1d665.9bea78",
     "type": "switchNode",
     "name": "switch tmp.cidx ",
     "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1413.75390625,
-    "y": 753.25390625,
-    "z": "22c49458.dad37c",
+    "x": 1406.75390625,
+    "y": 751.25390625,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "b8b02536.9fab38"
+        "bf5c462c.da5e08"
       ]
     ]
   },
   {
-    "id": "88b79953.981898",
+    "id": "e3078c06.7be5",
     "type": "comment",
     "name": "Delete provided service provided-allotted-resources in mdsal",
     "info": "",
     "comments": "",
-    "x": 762.5039215087891,
-    "y": 789.00390625,
-    "z": "22c49458.dad37c",
+    "x": 755.5039215087891,
+    "y": 787.00390625,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "525dfe7f.9aace",
+    "id": "86c1925.6123e7",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1090.5041770935059,
-    "y": 1103.7540984153748,
-    "z": "22c49458.dad37c",
+    "x": 1083.5041770935059,
+    "y": 1101.7540984153748,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "72d22ab8.9fbaf4"
+        "e65e2eca.21548"
       ]
     ]
   },
   {
-    "id": "3cb5550a.e1379a",
+    "id": "af74ccd9.4a43f",
     "type": "other",
     "name": "outcome Null",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1107.5040969848633,
-    "y": 1015.7539324760437,
-    "z": "22c49458.dad37c",
+    "x": 1100.5040969848633,
+    "y": 1013.7539324760437,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "b0f98381.70f7"
+        "fea3dc81.4b3fa"
       ]
     ]
   },
   {
-    "id": "b0f98381.70f7",
+    "id": "fea3dc81.4b3fa",
     "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": 1271.3616943359375,
-    "y": 1016.1824774742126,
-    "z": "22c49458.dad37c",
+    "x": 1264.3616943359375,
+    "y": 1014.1824774742126,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "1af61fb0.016",
+    "id": "39762013.3aeda",
     "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": 1702.7539501190186,
-    "y": 1133.753936290741,
-    "z": "22c49458.dad37c",
+    "x": 1695.7539501190186,
+    "y": 1131.753936290741,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "457e37be.33a0e8",
+    "id": "f41a3391.116cf",
     "type": "outcome",
     "name": "NULL",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1565.2539501190186,
-    "y": 1133.753936290741,
-    "z": "22c49458.dad37c",
+    "x": 1558.2539501190186,
+    "y": 1131.753936290741,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "1af61fb0.016"
+        "39762013.3aeda"
       ]
     ]
   },
   {
-    "id": "37cdb210.11699e",
+    "id": "fad43184.faa77",
     "type": "switchNode",
     "name": "switch tmp.pidx ",
     "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1411.2539501190186,
-    "y": 1133.753936290741,
-    "z": "22c49458.dad37c",
+    "x": 1404.2539501190186,
+    "y": 1131.753936290741,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "457e37be.33a0e8"
+        "f41a3391.116cf"
       ]
     ]
   },
   {
-    "id": "1c3b0551.8a3d7b",
+    "id": "2b9e1b87.4d7be4",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 2275.504367828369,
-    "y": 1053.7540946006775,
-    "z": "22c49458.dad37c",
+    "x": 2268.504367828369,
+    "y": 1051.7540946006775,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "f8a04da0.ae331"
+        "3e54d0ca.68119"
       ]
     ]
   },
   {
-    "id": "26796192.02fd4e",
+    "id": "124aec38.7e75f4",
     "type": "set",
     "name": "set tmp.pidx",
     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n\n",
     "comments": "",
-    "x": 2343.8404846191406,
-    "y": 1188.5101914405823,
-    "z": "22c49458.dad37c",
+    "x": 2336.8404846191406,
+    "y": 1186.5101914405823,
+    "z": "9a9db3db.b812b",
     "wires": []
   },
   {
-    "id": "f8a04da0.ae331",
+    "id": "3e54d0ca.68119",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 2335.582820892334,
-    "y": 1124.539580821991,
-    "z": "22c49458.dad37c",
+    "x": 2328.582820892334,
+    "y": 1122.539580821991,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "26796192.02fd4e"
+        "124aec38.7e75f4"
       ]
     ]
   },
   {
-    "id": "eb5610dc.278e7",
+    "id": "471618ce.1aa6e8",
     "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",
+    "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.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 678.2227554321289,
-    "y": 1273.754346370697,
-    "z": "22c49458.dad37c",
+    "x": 671.2227554321289,
+    "y": 1271.754346370697,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "b9f57970.85bbb8",
-        "2e04eae7.d58896"
+        "5239fca8.d17b94",
+        "c631f277.5fd19"
       ]
     ]
   },
   {
-    "id": "322e0846.b44bc8",
+    "id": "af833dcd.19d57",
     "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": 768.3334197998047,
-    "y": 959.333366394043,
-    "z": "22c49458.dad37c",
+    "x": 761.3334197998047,
+    "y": 957.333366394043,
+    "z": "9a9db3db.b812b",
     "wires": [
       [
-        "df350c49.f450e",
-        "a707d837.6f7a08"
+        "f65db35d.ec076",
+        "733108ec.4b0c18"
       ]
     ]
   },
   {
-    "id": "8cb29231.a6eaa",
+    "id": "afce32ae.04764",
     "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": 702.3333587646484,
-    "y": 917.3332056999207,
-    "z": "22c49458.dad37c",
+    "x": 695.3333587646484,
+    "y": 915.3332056999207,
+    "z": "9a9db3db.b812b",
     "wires": [
       []
     ]
   },
   {
-    "id": "9ea8a95d.e39878",
+    "id": "abce896b.ee5ab8",
     "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": 773,
-    "y": 1168,
-    "z": "22c49458.dad37c",
+    "x": 766,
+    "y": 1166,
+    "z": "9a9db3db.b812b",
     "wires": [
       []
     ]