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 6e56cc6..ef738ca 100644 (file)
-[
-    {
-        "id": "9258ad5d.d05ba",
-        "type": "dgstart",
-        "name": "DGSTART",
-        "outputs": 1,
-        "x": 289.50011825561523,
-        "y": 436.0000114440918,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "377de850.27cec8"
-            ]
-        ]
-    },
-    {
-        "id": "377de850.27cec8",
-        "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": 677.5,
-        "y": 436.0000162124634,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "7334f5ac.b08f4c"
-            ]
-        ]
-    },
-    {
-        "id": "7334f5ac.b08f4c",
-        "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": 640.5,
-        "y": 555.0000162124634,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "a88453d9.f253b"
-            ]
-        ]
-    },
-    {
-        "id": "a88453d9.f253b",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic=\"true\">\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 1038.5001068115234,
-        "y": 554.0000162124634,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "cb91ee20.76b95",
-                "ca9aad5d.392e5",
-                "c4485241.e819a",
-                "c4d9d4a8.396518",
-                "2637d1ad.97175e",
-                "bc596678.34ee28",
-                "c3d1b49e.311728"
-            ]
-        ]
-    },
-    {
-        "id": "cb91ee20.76b95",
-        "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": 1480.5004043579102,
-        "y": 408.11109733581543,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "bc596678.34ee28",
-        "type": "for",
-        "name": "for:network-input-paramters",
-        "xml": "<for index='idx' start='0' end='`$network-input-parameters.param_length`' >\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1484.5004272460938,
-        "y": 629.999942779541,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "e67c3291.c9f3e"
-            ]
-        ]
-    },
-    {
-        "id": "2637d1ad.97175e",
-        "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": 1475.5004272460938,
-        "y": 540.0000190734863,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "3ddf50e9.7ad19",
-                "6fb4fdec.445914"
-            ]
-        ]
-    },
-    {
-        "id": "6fb4fdec.445914",
-        "type": "outcome",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1774.6670532226562,
-        "y": 536.2500190734863,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "bb09478d.013828"
-            ]
-        ]
-    },
-    {
-        "id": "3ddf50e9.7ad19",
-        "type": "outcome",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1770.6670532226562,
-        "y": 430.2499885559082,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "cafa7f31.58fb9"
-            ]
-        ]
-    },
-    {
-        "id": "cafa7f31.58fb9",
-        "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 Get token rest api\" />\n",
-        "comments": "",
-        "x": 2341.4171752929688,
-        "y": 422.2499885559082,
-        "z": "828aeb02.de4ff8",
-        "wires": []
-    },
-    {
-        "id": "b7ad2681.5938c8",
-        "type": "outcome",
-        "name": "NULL",
-        "xml": "<outcome value=''>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2141.5004348754883,
-        "y": 478.9999752044678,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "cafa7f31.58fb9"
-            ]
-        ]
-    },
-    {
-        "id": "bb09478d.013828",
-        "type": "switchNode",
-        "name": "switch:token ",
-        "xml": "<switch test='`$token-result.accessSession`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1973.5004348754883,
-        "y": 536.9999752044678,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "b7ad2681.5938c8",
-                "c64cc196.0b01"
-            ]
-        ]
-    },
-    {
-        "id": "c64cc196.0b01",
-        "type": "outcome",
-        "name": "Other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2142.5004348754883,
-        "y": 535.9999752044678,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "4a6b446f.138e7c"
-            ]
-        ]
-    },
-    {
-        "id": "4a6b446f.138e7c",
-        "type": "set",
-        "name": "set:token-id",
-        "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",
-        "comments": "",
-        "x": 2317.0004272460938,
-        "y": 535.2500190734863,
-        "z": "828aeb02.de4ff8",
-        "wires": []
-    },
-    {
-        "id": "69330fca.c0655",
-        "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": 2528.5004272460938,
-        "y": 532.9999580383301,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "c4d9d4a8.396518",
-        "type": "set",
-        "name": "set:variables",
-        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='https://swisscom.onap.inhuawei.com:26335' />\n<parameter name='network-input-parameters.' value='`$network-topology-operation-input.network-request-input.network-input-parameters.`' />\n",
-        "comments": "",
-        "x": 1446.5004043579102,
-        "y": 328.0001735687256,
-        "z": "828aeb02.de4ff8",
-        "wires": []
-    },
-    {
-        "id": "c3d1b49e.311728",
-        "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": 1536.500690460205,
-        "y": 810.0001218318939,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "5321d4ef.5d4d2c",
-                "d9cf5692.a52db8"
-            ]
-        ]
-    },
-    {
-        "id": "5321d4ef.5d4d2c",
-        "type": "outcome",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1841.5007057189941,
-        "y": 750.0001029968262,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "b0348a26.8427e8"
-            ]
-        ]
-    },
-    {
-        "id": "d9cf5692.a52db8",
-        "type": "outcome",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1841.5006790161133,
-        "y": 809.0001027584076,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "de1193ab.e5312"
-            ]
-        ]
-    },
-    {
-        "id": "1e90d7c8.353078",
-        "type": "outcome",
-        "name": "NULL",
-        "xml": "<outcome value=''>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2327.500789642334,
-        "y": 706.0000369548798,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "b0348a26.8427e8"
-            ]
-        ]
-    },
-    {
-        "id": "b0348a26.8427e8",
-        "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=\"invalid network-input-parameters.param in bbs-access-connectivity-network-topology-operation-delete\" />\n",
-        "comments": "",
-        "x": 2531.5006313323975,
-        "y": 745.0000369548798,
-        "z": "828aeb02.de4ff8",
-        "wires": []
-    },
-    {
-        "id": "e67c3291.c9f3e",
-        "type": "switchNode",
-        "name": "switch:serviceID",
-        "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'serviceID'`\">\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1759.5004539489746,
-        "y": 629.0000305175781,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "fb75295a.8000b8"
-            ]
-        ]
-    },
-    {
-        "id": "fb75295a.8000b8",
-        "type": "outcomeTrue",
-        "name": "true",
-        "xml": "<outcome value='true'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1932.5003385543823,
-        "y": 628.0000286102295,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "c27015c2.2e9f58"
-            ]
-        ]
-    },
-    {
-        "id": "7c852ec3.9bf23",
-        "type": "set",
-        "name": "set:serviceID",
-        "xml": "<set>\n<parameter name='prop.bbs.serviceID' value='`$network-input-parameters.param[$idx].value`' />\n",
-        "comments": "",
-        "x": 2503.5003051757812,
-        "y": 627.600040435791,
-        "z": "828aeb02.de4ff8",
-        "wires": []
-    },
-    {
-        "id": "c27015c2.2e9f58",
-        "type": "switchNode",
-        "name": "switch:serviceID value",
-        "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2113.6484985351562,
-        "y": 627.7777137756348,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "9c90b9c1.bc3cb8",
-                "1e90d7c8.353078"
-            ]
-        ]
-    },
-    {
-        "id": "9c90b9c1.bc3cb8",
-        "type": "outcome",
-        "name": "Other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2321.6484985351562,
-        "y": 628.7777137756348,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "7c852ec3.9bf23"
-            ]
-        ]
-    },
-    {
-        "id": "ca9aad5d.392e5",
-        "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": 1558.0000305175781,
-        "y": 247.00002479553223,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "477b70c6.2a5c9",
-        "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    <parameter name=\"field2\" value=\"`$service-result.accessE2Eservice.serviceID`\" />\n    ",
-        "comments": "",
-        "outputs": 1,
-        "x": 2885.0005645751953,
-        "y": 911.0001068115234,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "de1193ab.e5312",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic=\"true\">\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 2018.0004768371582,
-        "y": 810.0002808570862,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "754aabd8.cabdb4"
-            ]
-        ]
-    },
-    {
-        "id": "754aabd8.cabdb4",
-        "type": "switchNode",
-        "name": "switch:service-result",
-        "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2236.0003547668457,
-        "y": 809.0001282691956,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "2dd16d0d.e63022",
-                "c62a673d.9cf0e8"
-            ]
-        ]
-    },
-    {
-        "id": "2dd16d0d.e63022",
-        "type": "outcome",
-        "name": "Other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2470.000400543213,
-        "y": 810.0000882148743,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "6c15beca.e4e8a"
-            ]
-        ]
-    },
-    {
-        "id": "c62a673d.9cf0e8",
-        "type": "outcome",
-        "name": "NULL",
-        "xml": "<outcome value=''>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 2472.000400543213,
-        "y": 896.0000882148743,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            [
-                "c04ee5c.68b7018"
-            ]
-        ]
-    },
-    {
-        "id": "5e21416c.565be",
-        "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": 2910.0005645751953,
-        "y": 797.0001049041748,
-        "z": "828aeb02.de4ff8",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "c4485241.e819a",
-        "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": 1438.000244140625,
-        "y": 948.0000305175781,
-        "z": "828aeb02.de4ff8",
-        "wires": []
-    },
-    {
-        "id": "6c15beca.e4e8a",
-        "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 failed: '+$service-result.errors.error[0].error-message`\" />\n\n",
-        "comments": "",
-        "x": 2670.0000762939453,
-        "y": 810.0000228881836,
-        "z": "828aeb02.de4ff8",
-        "wires": []
-    },
-    {
-        "id": "c04ee5c.68b7018",
-        "type": "block",
-        "name": "block",
-        "xml": "<block>\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 2656.0000762939453,
-        "y": 898.0000267028809,
-        "z": "828aeb02.de4ff8",
-        "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