Add logic to delete resource also from AAI
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-access-connectivity-network-topology-operation-delete-huawei.json
index 444e2dc..ef738ca 100644 (file)
-[
-    {
-        "id": "3e7ef4ac.b2e17c",
-        "type": "dgstart",
-        "name": "DGSTART",
-        "outputs": 1,
-        "x": 704.53125,
-        "y": 248.03125,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "cbfbc44.cd69838"
-            ]
-        ]
-    },
-    {
-        "id": "cbfbc44.cd69838",
-        "type": "service-logic",
-        "name": "GENERIC-RESOURCE-API ${project.version}",
-        "module": "GENERIC-RESOURCE-API",
-        "version": "${project.version}",
-        "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": 1092.5311317443848,
-        "y": 248.03125476837158,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "8072076.84dccf8"
-            ]
-        ]
-    },
-    {
-        "id": "8072076.84dccf8",
-        "type": "method",
-        "name": "method:bbs-access-connectivity-network-topology-operation-delete-huawei",
-        "xml": "<method rpc='bbs-access-connectivity-network-topology-operation-delete-huawei' mode='sync'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1055.5311317443848,
-        "y": 367.0312547683716,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "9a3cc53d.6e79d8"
-            ]
-        ]
-    },
-    {
-        "id": "9a3cc53d.6e79d8",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic=\"true\">\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 1453.5312385559082,
-        "y": 366.0312547683716,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "d6360288.4527f",
-                "29565532.cf8cca",
-                "79257394.2307bc",
-                "bfbc37d6.3aa9c8",
-                "5837e3f.e88671c",
-                "ccc27501.c46688",
-                "afc719e1.eb7f48"
-            ]
-        ]
-    },
-    {
-        "id": "d6360288.4527f",
-        "type": "execute",
-        "name": "excute:readProperties",
-        "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\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1895.531536102295,
-        "y": 220.14233589172363,
-        "z": "9458f851.9a2498",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "ccc27501.c46688",
-        "type": "for",
-        "name": "for:network-input-paramters",
-        "xml": "<for index='idx' start='0' end='`$network-input-parameters.param_length`' >\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1899.5315589904785,
-        "y": 442.0311813354492,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "430a13df.a78e9c"
-            ]
-        ]
-    },
-    {
-        "id": "5837e3f.e88671c",
-        "type": "execute",
-        "name": "execute:querryTokenID",
-        "xml": " <execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-token-template.json'`\"/>\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url+'/rest/plat/smapp/v1/oauth/token'`\"/>\n    <parameter name=\"format\" value=\"json\"/>\n    <parameter name=\"httpMethod\" value=\"put\"/>\n    <parameter name=\"responsePrefix\" value=\"token-result\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1890.5315589904785,
-        "y": 352.03125762939453,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "632411.2d700bf",
-                "df6b78a.61b9688"
-            ]
-        ]
-    },
-    {
-        "id": "df6b78a.61b9688",
-        "type": "outcome",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2189.698184967041,
-        "y": 348.28125762939453,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "c7e8c95e.bd9528"
-            ]
-        ]
-    },
-    {
-        "id": "632411.2d700bf",
-        "type": "outcome",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2185.698184967041,
-        "y": 242.2812271118164,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "da5c448.537c3b8"
-            ]
-        ]
-    },
-    {
-        "id": "53a754bd.11dc7c",
-        "type": "returnFailure",
-        "name": "return failure",
-        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing queryTokenID,vaule is null\" />\n",
-        "comments": "",
-        "x": 2732.8119888305664,
-        "y": 290.64491176605225,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "54233be2.f30004",
-        "type": "outcome",
-        "name": "NULL",
-        "xml": "<outcome value=''>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2556.531566619873,
-        "y": 291.031213760376,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "53a754bd.11dc7c"
-            ]
-        ]
-    },
-    {
-        "id": "c7e8c95e.bd9528",
-        "type": "switchNode",
-        "name": "switch:token ",
-        "xml": "<switch test='`$token-result.accessSession`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2388.531566619873,
-        "y": 349.031213760376,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "54233be2.f30004",
-                "2525724.318638e"
-            ]
-        ]
-    },
-    {
-        "id": "2525724.318638e",
-        "type": "outcome",
-        "name": "Other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2557.531566619873,
-        "y": 348.031213760376,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "b5f78ce0.e4e8f"
-            ]
-        ]
-    },
-    {
-        "id": "b5f78ce0.e4e8f",
-        "type": "set",
-        "name": "set:token-id",
-        "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",
-        "comments": "",
-        "x": 2732.0315589904785,
-        "y": 347.28125762939453,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "e0b6a2ae.458e8",
-        "type": "record",
-        "name": "log file",
-        "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"sucess executing Get token rest api\" />\n    <parameter name=\"field3\" value=\"`$token-result.accessSession`\" />\n    ",
-        "comments": "",
-        "outputs": 1,
-        "x": 2943.5315589904785,
-        "y": 345.0311965942383,
-        "z": "9458f851.9a2498",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "bfbc37d6.3aa9c8",
-        "type": "set",
-        "name": "set:variables",
-        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='https://172.30.0.55:26335' />\n<parameter name='network-input-parameters.' value='`$network-topology-operation-input.network-request-input.network-input-parameters.`' />\n",
-        "comments": "",
-        "x": 1861.531536102295,
-        "y": 140.0314121246338,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "afc719e1.eb7f48",
-        "type": "execute",
-        "name": "execute:deleteAccessConnectivityService",
-        "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/ws/rest/1002/FanOpenAPI/DeactivateOnt?serviceID='+$prop.bbs.serviceID`\" />\n    <parameter name=\"httpMethod\" value=\"get\"/>\n    <parameter name=\"contentType\" value=\"application/x-www-form-urlencoded\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>\n    <parameter name=\"customHttpHeaders\" value=\"`'X-Auth-Token=' + $prop.sdncRestApi.token_id`\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
-        "comments": "",
-        "outputs": 1,
-        "x": 1951.5318222045898,
-        "y": 622.0313603878021,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "c6939dae.0ae37",
-                "7116ae31.13271"
-            ]
-        ]
-    },
-    {
-        "id": "c6939dae.0ae37",
-        "type": "outcome",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2256.531837463379,
-        "y": 562.0313415527344,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "c09b1f3e.53091"
-            ]
-        ]
-    },
-    {
-        "id": "7116ae31.13271",
-        "type": "outcome",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2256.531810760498,
-        "y": 621.0313413143158,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "1c65ae1f.8b01d2"
-            ]
-        ]
-    },
-    {
-        "id": "b5b74804.ae8938",
-        "type": "outcome",
-        "name": "NULL",
-        "xml": "<outcome value=''>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2742.5319213867188,
-        "y": 518.031275510788,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "19c841bb.b9c39e"
-            ]
-        ]
-    },
-    {
-        "id": "19c841bb.b9c39e",
-        "type": "returnFailure",
-        "name": "return failure",
-        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"$network-input-parameters.param[$idx].name  +' value is null, please check it.'\" />\n",
-        "comments": "",
-        "x": 2927.4408683776855,
-        "y": 517.9403285980225,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "430a13df.a78e9c",
-        "type": "switchNode",
-        "name": "switch:serviceID",
-        "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'serviceID'`\">\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2174.5315856933594,
-        "y": 441.0312690734863,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "804331b5.825a1"
-            ]
-        ]
-    },
-    {
-        "id": "804331b5.825a1",
-        "type": "outcomeTrue",
-        "name": "true",
-        "xml": "<outcome value='true'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2347.531470298767,
-        "y": 440.0312671661377,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "1d00164b.c74e1a"
-            ]
-        ]
-    },
-    {
-        "id": "b8311cf7.388d1",
-        "type": "set",
-        "name": "set:serviceID",
-        "xml": "<set>\n<parameter name='prop.bbs.serviceID' value='`$network-input-parameters.param[$idx].value`' />\n",
-        "comments": "",
-        "x": 2918.531436920166,
-        "y": 439.6312789916992,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "1d00164b.c74e1a",
-        "type": "switchNode",
-        "name": "switch:serviceID value",
-        "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2528.679630279541,
-        "y": 439.80895233154297,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "acaa6a13.89b9f8",
-                "b5b74804.ae8938"
-            ]
-        ]
-    },
-    {
-        "id": "acaa6a13.89b9f8",
-        "type": "outcome",
-        "name": "Other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2736.679630279541,
-        "y": 440.80895233154297,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "b8311cf7.388d1"
-            ]
-        ]
-    },
-    {
-        "id": "29565532.cf8cca",
-        "type": "call",
-        "name": "call:validate-bbs-network-input-parameters",
-        "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-bbs-network-input-parameters' mode='sync' >\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1973.031162261963,
-        "y": 59.03126335144043,
-        "z": "9458f851.9a2498",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "1c65ae1f.8b01d2",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic=\"true\">\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 2433.031608581543,
-        "y": 622.0315194129944,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "cced1fd6.04da4"
-            ]
-        ]
-    },
-    {
-        "id": "cced1fd6.04da4",
-        "type": "switchNode",
-        "name": "switch:service-result",
-        "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2651.0314865112305,
-        "y": 621.0313668251038,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "4dce053b.3feafc",
-                "cf917e9d.94b86"
-            ]
-        ]
-    },
-    {
-        "id": "4dce053b.3feafc",
-        "type": "outcome",
-        "name": "Other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2885.0315322875977,
-        "y": 622.0313267707825,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "7c2264f5.7e8cec"
-            ]
-        ]
-    },
-    {
-        "id": "cf917e9d.94b86",
-        "type": "outcome",
-        "name": "NULL",
-        "xml": "<outcome value=''>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2887.0315322875977,
-        "y": 708.0313267707825,
-        "z": "9458f851.9a2498",
-        "wires": [
-            [
-                "523726af.0e2f78"
-            ]
-        ]
-    },
-    {
-        "id": "7f7a43fa.cb783c",
-        "type": "record",
-        "name": "log error",
-        "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"deleteAccessConnectivityService falied!\" />\n    <parameter name=\"field2\" value=\"`$service-result.errors.error[0].error-info.error-code`\" />\n    <parameter name=\"field3\" value=\"`$service-result.errors.error[0].error-message`\" />\n    <parameter name=\"field4\" value=\"`$service-result.errors.error[0].error-tag`\" />\n    ",
-        "comments": "",
-        "outputs": 1,
-        "x": 3325.03169631958,
-        "y": 609.031343460083,
-        "z": "9458f851.9a2498",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "79257394.2307bc",
-        "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": 1853.0313758850098,
-        "y": 760.0312690734863,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "7c2264f5.7e8cec",
-        "type": "returnFailure",
-        "name": "return failure",
-        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error deleteAccessConnectivityService return: '+$service-result.errors.error[0].error-message`\" />\n\n",
-        "comments": "",
-        "x": 3085.03120803833,
-        "y": 622.0312614440918,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "523726af.0e2f78",
-        "type": "block",
-        "name": "block",
-        "xml": "<block>\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 3071.0312271118164,
-        "y": 707.3039350509644,
-        "z": "9458f851.9a2498",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "da5c448.537c3b8",
-        "type": "returnFailure",
-        "name": "return failure",
-        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call queryTokenID\" />\n",
-        "comments": "",
-        "x": 2378.196044921875,
-        "y": 243.15057373046875,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "c09b1f3e.53091",
-        "type": "returnFailure",
-        "name": "return failure",
-        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call deleteAccessConnectivityService\" />\n",
-        "comments": "",
-        "x": 2426.803955078125,
-        "y": 560.3948364257812,
-        "z": "9458f851.9a2498",
-        "wires": []
-    },
-    {
-        "id": "3a60417f.fe190e",
-        "type": "record",
-        "name": "log file",
-        "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"deleteAccessConnectivityService success!\" />\n    ",
-        "comments": "",
-        "outputs": 1,
-        "x": 3290.031753540039,
-        "y": 705.0314111709595,
-        "z": "9458f851.9a2498",
-        "wires": [
-            []
-        ]
-    }
+[\r
+    {\r
+        "id": "1fe4d356.7d1a4d",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 114.00390625,\r
+        "y": 228.9999885559082,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "33702a3.e0f9fd6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33702a3.e0f9fd6",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 502.00378799438477,\r
+        "y": 228.99999332427979,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "b821ff4a.2c1fa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b821ff4a.2c1fa",\r
+        "type": "method",\r
+        "name": "method:bbs-access-connectivity-network-topology-operation-delete-huawei",\r
+        "xml": "<method rpc='bbs-access-connectivity-network-topology-operation-delete-huawei' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 465.00378799438477,\r
+        "y": 347.9999933242798,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "8a087462.b39fd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a087462.b39fd8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 863.0038948059082,\r
+        "y": 346.9999933242798,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "b571ef0e.fb883",\r
+                "e6661884.b85a18",\r
+                "8d5fd62a.ea1838",\r
+                "edca7b4c.628428",\r
+                "a1566932.4a14e8",\r
+                "8cd22f67.ca85",\r
+                "7ea1fa62.bd7864",\r
+                "74da4578.69488c",\r
+                "b3adae43.1a849"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b571ef0e.fb883",\r
+        "type": "execute",\r
+        "name": "excute:readProperties",\r
+        "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\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1305.004192352295,\r
+        "y": 201.11107444763184,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8cd22f67.ca85",\r
+        "type": "for",\r
+        "name": "for:network-input-paramters",\r
+        "xml": "<for index='idx' start='0' end='`$network-input-parameters.param_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1309.0042152404785,\r
+        "y": 422.9999198913574,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "fb4eabbb.3b7248"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1566932.4a14e8",\r
+        "type": "execute",\r
+        "name": "execute:querryTokenID",\r
+        "xml": " <execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-token-template.json'`\"/>\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url+'/rest/plat/smapp/v1/oauth/token'`\"/>\n    <parameter name=\"format\" value=\"json\"/>\n    <parameter name=\"httpMethod\" value=\"put\"/>\n    <parameter name=\"responsePrefix\" value=\"token-result\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1300.0042152404785,\r
+        "y": 332.99999618530273,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "b85b7ef3.4a5bd",\r
+                "608c2c9a.b06c14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "608c2c9a.b06c14",\r
+        "type": "outcome",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1599.170841217041,\r
+        "y": 329.24999618530273,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "8526ecf2.42dcd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b85b7ef3.4a5bd",\r
+        "type": "outcome",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1595.170841217041,\r
+        "y": 223.2499656677246,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "a6f5bdc0.ca847"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7756fd5f.8c2fe4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing queryTokenID,vaule is null\" />\n",\r
+        "comments": "",\r
+        "x": 2142.2846450805664,\r
+        "y": 271.61365032196045,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8a946e8b.a881",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1966.004222869873,\r
+        "y": 271.9999523162842,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "7756fd5f.8c2fe4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8526ecf2.42dcd",\r
+        "type": "switchNode",\r
+        "name": "switch:token ",\r
+        "xml": "<switch test='`$token-result.accessSession`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1798.004222869873,\r
+        "y": 329.9999523162842,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "8a946e8b.a881",\r
+                "f2c4f3fa.fa28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2c4f3fa.fa28",\r
+        "type": "outcome",\r
+        "name": "Other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1967.004222869873,\r
+        "y": 328.9999523162842,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "34e2fc86.cccd84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34e2fc86.cccd84",\r
+        "type": "set",\r
+        "name": "set:token-id",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",\r
+        "comments": "",\r
+        "x": 2141.5042152404785,\r
+        "y": 328.24999618530273,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7f008572.ced19c",\r
+        "type": "record",\r
+        "name": "log file",\r
+        "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"sucess executing Get token rest api\" />\n    <parameter name=\"field3\" value=\"`$token-result.accessSession`\" />\n    ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2353.0042152404785,\r
+        "y": 325.9999351501465,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "edca7b4c.628428",\r
+        "type": "set",\r
+        "name": "set:variables",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='https://172.30.0.55:26335' />\n<parameter name='network-input-parameters.' value='`$network-topology-operation-input.network-request-input.network-input-parameters.`' />\n",\r
+        "comments": "",\r
+        "x": 1271.004192352295,\r
+        "y": 121.00015068054199,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b3adae43.1a849",\r
+        "type": "execute",\r
+        "name": "execute:deleteAccessConnectivityService",\r
+        "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/ws/rest/1002/FanOpenAPI/DeactivateOnt?serviceID='+$prop.bbs.serviceID`\" />\n    <parameter name=\"httpMethod\" value=\"get\"/>\n    <parameter name=\"contentType\" value=\"application/x-www-form-urlencoded\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>\n    <parameter name=\"customHttpHeaders\" value=\"`'X-Auth-Token=' + $prop.sdncRestApi.token_id`\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1361.0044784545898,\r
+        "y": 603.0000989437103,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "b988b5d0.2516f8",\r
+                "4fcb328c.8c8d3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b988b5d0.2516f8",\r
+        "type": "outcome",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1666.004493713379,\r
+        "y": 543.0000801086426,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "8fd08b44.80a718"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4fcb328c.8c8d3c",\r
+        "type": "outcome",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1666.004467010498,\r
+        "y": 602.000079870224,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "732b9fd0.970c6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d604a440.b8abb8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2152.0045776367188,\r
+        "y": 499.00001406669617,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "f0d17cd2.4c7c1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0d17cd2.4c7c1",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"$network-input-parameters.param[$idx].name  +' value is null, please check it.'\" />\n",\r
+        "comments": "",\r
+        "x": 2336.9135246276855,\r
+        "y": 498.90906715393066,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fb4eabbb.3b7248",\r
+        "type": "switchNode",\r
+        "name": "switch:serviceID",\r
+        "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'serviceID'`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1584.0042419433594,\r
+        "y": 422.00000762939453,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "36367cd4.1a04e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "36367cd4.1a04e4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1757.004126548767,\r
+        "y": 421.0000057220459,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "d961fc6c.9fcb7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d96b619c.da3a9",\r
+        "type": "set",\r
+        "name": "set:serviceID",\r
+        "xml": "<set>\n<parameter name='prop.bbs.serviceID' value='`$network-input-parameters.param[$idx].value`' />\n",\r
+        "comments": "",\r
+        "x": 2328.004093170166,\r
+        "y": 420.6000175476074,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d961fc6c.9fcb7",\r
+        "type": "switchNode",\r
+        "name": "switch:serviceID value",\r
+        "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1938.152286529541,\r
+        "y": 420.7776908874512,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "7d48d6fb.074d98",\r
+                "d604a440.b8abb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d48d6fb.074d98",\r
+        "type": "outcome",\r
+        "name": "Other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2146.152286529541,\r
+        "y": 421.7776908874512,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "d96b619c.da3a9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6661884.b85a18",\r
+        "type": "call",\r
+        "name": "call:validate-bbs-network-input-parameters",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-bbs-network-input-parameters' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1382.503818511963,\r
+        "y": 40.00000190734863,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "732b9fd0.970c6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1842.504264831543,\r
+        "y": 603.0002579689026,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "44aeb9a4.8239d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44aeb9a4.8239d8",\r
+        "type": "switchNode",\r
+        "name": "switch:service-result",\r
+        "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2060.5041427612305,\r
+        "y": 602.000105381012,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "546b6ac8.884354",\r
+                "dd81919a.ab138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "546b6ac8.884354",\r
+        "type": "outcome",\r
+        "name": "Other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2294.5041885375977,\r
+        "y": 603.0000653266907,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "cde0380a.e69b48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd81919a.ab138",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2296.5041885375977,\r
+        "y": 689.0000653266907,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "8b2d1b97.9a7e98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "45e5b798.d82a48",\r
+        "type": "record",\r
+        "name": "log error",\r
+        "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"deleteAccessConnectivityService falied!\" />\n    <parameter name=\"field2\" value=\"`$service-result.errors.error[0].error-info.error-code`\" />\n    <parameter name=\"field3\" value=\"`$service-result.errors.error[0].error-message`\" />\n    <parameter name=\"field4\" value=\"`$service-result.errors.error[0].error-tag`\" />\n    ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2734.50435256958,\r
+        "y": 590.0000820159912,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8d5fd62a.ea1838",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 1274.504035949707,\r
+        "y": 1017.9999990463257,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cde0380a.e69b48",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error deleteAccessConnectivityService return: '+$service-result.errors.error[0].error-message`\" />\n\n",\r
+        "comments": "",\r
+        "x": 2494.50386428833,\r
+        "y": 603,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8b2d1b97.9a7e98",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2480.5038833618164,\r
+        "y": 688.2726736068726,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6f5bdc0.ca847",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call queryTokenID\" />\n",\r
+        "comments": "",\r
+        "x": 1787.668701171875,\r
+        "y": 224.11931228637695,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8fd08b44.80a718",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call deleteAccessConnectivityService\" />\n",\r
+        "comments": "",\r
+        "x": 1836.276611328125,\r
+        "y": 541.3635749816895,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "40e5b8d4.405008",\r
+        "type": "record",\r
+        "name": "log file",\r
+        "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"deleteAccessConnectivityService success!\" />\n    ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2699.504409790039,\r
+        "y": 686.0001497268677,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "74da4578.69488c",\r
+        "type": "update",\r
+        "name": "deleteResourceAAI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.bbs.accessConnectivityVNFId\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1290.7539596557617,\r
+        "y": 958.0039052963257,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "9ad48718.a48378",\r
+                "f19e3616.a65168"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a5690d23.086bf",\r
+        "type": "comment",\r
+        "name": "delete resource from AAI",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1304.7539138793945,\r
+        "y": 919.0039348602295,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b0cc7a09.a1b0b8",\r
+        "type": "for",\r
+        "name": "for relationship-list",\r
+        "xml": "<for silentFailure='true' index='ridx' start='0' end=\"`$aai.service-instance.relationship-list.relationship_length`\" >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1908.5041046142578,\r
+        "y": 809.0040121078491,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "7627454.6354fbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff73aabd.67b448",\r
+        "type": "comment",\r
+        "name": "get generic-vnf of type AccessConnectivity",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1976.5040130615234,\r
+        "y": 762.0039348602295,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7ea1fa62.bd7864",\r
+        "type": "update",\r
+        "name": "get AAI service-instance",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-instance\" \n\t\tkey=\"customer.global-customer-id = $network-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $network-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $network-topology-operation-input.service-information.service-instance-id\"\n        pfx='aai.service-instance' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1307.5038986206055,\r
+        "y": 702.0040426254272,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "fe7995d6.38c3f8",\r
+                "4a7386f6.0cd718"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6bc3fbd4.b813f4",\r
+        "type": "comment",\r
+        "name": "fetch relationship-list",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1292.5039138793945,\r
+        "y": 665.0038900375366,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fe7995d6.38c3f8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1559.5041313171387,\r
+        "y": 672.0039348602295,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "2a31b9ca.55ee86"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a31b9ca.55ee86",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 1750.5039138793945,\r
+        "y": 672.0039205551147,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4a7386f6.0cd718",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1555.7540092468262,\r
+        "y": 808.7538890838623,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "64a4be69.1880c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "64a4be69.1880c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1720.753978729248,\r
+        "y": 808.7539043426514,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "b0cc7a09.a1b0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7627454.6354fbc",\r
+        "type": "for",\r
+        "name": "for relationship data",\r
+        "xml": "<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data_length`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2113.754104614258,\r
+        "y": 808.7539510726929,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "e52ae02e.90c33"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "430a4a42.5658e4",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id",\r
+        "xml": "<switch test='`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2379.7539291381836,\r
+        "y": 811.7539072036743,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "2eef72d5.dfee4e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2eef72d5.dfee4e",\r
+        "type": "other",\r
+        "name": "generic-vnf.vnf-id",\r
+        "xml": "<outcome value='generic-vnf.vnf-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2570.75399017334,\r
+        "y": 810.7539215087891,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "47eecdf9.b49b94"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47eecdf9.b49b94",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2757.7538986206055,\r
+        "y": 810.7539072036743,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "ac1daadf.209048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac1daadf.209048",\r
+        "type": "update",\r
+        "name": "get AAI generic-vnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value\"\n        pfx='aai.generic-vnf' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2962.2539596557617,\r
+        "y": 811.7538919448853,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "a6ab0510.fb39d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d31b01f7.54c3",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-type",\r
+        "xml": "<switch test='`$aai.generic-vnf.vnf-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3435.75479888916,\r
+        "y": 885.7539205551147,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "1d80aac5.eefc05"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d80aac5.eefc05",\r
+        "type": "other",\r
+        "name": "AccessConnectivity",\r
+        "xml": "<outcome value='AccessConnectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3629.754554748535,\r
+        "y": 879.7539501190186,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "e7551653.b65f38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7551653.b65f38",\r
+        "type": "set",\r
+        "name": "set AccessConnectivity vnf-id",\r
+        "xml": "<set>\n<parameter name='prop.bbs.accessConnectivityVNFId' value='`$aai.generic-vnf.vnf-id`' />\n",\r
+        "comments": "",\r
+        "x": 3873.754066467285,\r
+        "y": 877.7538747787476,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f19e3616.a65168",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1508.75390625,\r
+        "y": 923.00390625,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "1c66ecef.3c69d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ad48718.a48378",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1516.75390625,\r
+        "y": 983.00390625,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "1c66ecef.3c69d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1c66ecef.3c69d3",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 1724.75390625,\r
+        "y": 958.00390625,\r
+        "z": "4da1e057.93c81",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e52ae02e.90c33",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2266.00390625,\r
+        "y": 845.25390625,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "430a4a42.5658e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbd10002.aaaa7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3252.7539443969727,\r
+        "y": 886.2539205551147,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "d31b01f7.54c3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6ab0510.fb39d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3155.75390625,\r
+        "y": 810.00390625,\r
+        "z": "4da1e057.93c81",\r
+        "wires": [\r
+            [\r
+                "cbd10002.aaaa7"\r
+            ]\r
+        ]\r
+    }\r
 ]
\ No newline at end of file