Platform Hardening for DG Json files - Part 2 19/26819/1
authorTaka <tc012c@att.com>
Fri, 22 Dec 2017 18:13:53 +0000 (13:13 -0500)
committerTaka <tc012c@att.com>
Fri, 22 Dec 2017 18:14:50 +0000 (13:14 -0500)
Change-Id: Ia11df00de6f114ab63200efaaeff3a2b22a17b83
Issue-ID: APPC-305
Signed-off-by: Taka <tc012c@att.com>
16 files changed:
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StopVM_VM_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Stop_VM_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Stop_VNFC_2.0.2.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Stop_VNF_2.0.1.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Stop_VNF_2.0.2.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_FIREWALL_Configure_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Audit_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Stop_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Sync_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Terminate_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Terminate_2.0.1.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_GetRunningConfig_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_SWITCH_Restart_2.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_VSBG_Test_2.0.0.0.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_VSBG_Test_2.0.0.1.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_VSRX_ConfigModify_2.0.0.json

index b47c06d..dbba49a 100644 (file)
@@ -1 +1,669 @@
-[{"id":"1cef050a.1dfbcb","type":"dgstart","name":"DGSTART","outputs":1,"x":141.515625,"y":164.4333267211914,"z":"a6b16db5.af508","wires":[["a9d8f072.10cbd"]]},{"id":"a9d8f072.10cbd","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","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='APPC' version='2.0.0'>","outputs":1,"x":318.5157165527344,"y":164,"z":"a6b16db5.af508","wires":[["46c68f6c.01837"]]},{"id":"46c68f6c.01837","type":"method","name":"StopVM_VM","xml":"<method rpc='StopVM_VM' mode='sync'>\n","comments":"","outputs":1,"x":260.97997665405273,"y":255.8214054107666,"z":"a6b16db5.af508","wires":[["fd5f6afc.5b61a8"]]},{"id":"ed427ea8.f19f5","type":"execute","name":"Stop","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n","comments":"","outputs":1,"x":1105.3989791870117,"y":605.2190837860107,"z":"a6b16db5.af508","wires":[["b5b4b5a6.7469d8","d5e5239f.dcc79"]]},{"id":"b5b4b5a6.7469d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1226.303726196289,"y":770.7907104492188,"z":"a6b16db5.af508","wires":[["ed170974.4288c8"]]},{"id":"d5e5239f.dcc79","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1261.5160751342773,"y":572.1476917266846,"z":"a6b16db5.af508","wires":[["249fafc6.75699"]]},{"id":"a3ddab0f.be74c8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1904.9443244934082,"y":761.433759689331,"z":"a6b16db5.af508","wires":[["dbdf325c.08025","f2981778.0beac8","e1c0fbcb.5e70d8"]]},{"id":"dbdf325c.08025","type":"set","name":"Set error message","xml":"<set>\n<parameter name='event-message' value=\"`'Failure while stopping the server: ' + $stop-vm-url`\"/>\n","comments":"","x":2087.516101837158,"y":722.1479930877686,"z":"a6b16db5.af508","wires":[]},{"id":"f2981778.0beac8","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n","comments":"","outputs":1,"x":2079.945056915283,"y":762.3383617401123,"z":"a6b16db5.af508","wires":[[]]},{"id":"44750395.80221c","type":"set","name":"Set Success Message","xml":"<set>\n<parameter name='success-message' value=\"`'Stop succeeded for the server : ' + $stop-vm-url`\"/>\n\n\n","comments":"","x":1916.2298202514648,"y":403.2907085418701,"z":"a6b16db5.af508","wires":[]},{"id":"5c22eb96.f3da94","type":"record","name":"Log message","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$success-message`\"/>\n","comments":"","outputs":1,"x":1906.0870056152344,"y":454.86212062835693,"z":"a6b16db5.af508","wires":[[]]},{"id":"64459e63.09ed5","type":"switchNode","name":"switch:Last Attempt","xml":"<switch test='`$stopRetryCount == $retryIndex`'>\n","comments":"","outputs":1,"x":1554.9280242919922,"y":767.0052223205566,"z":"a6b16db5.af508","wires":[["76293fdb.a702e","c9e6ef87.507db"]]},{"id":"c9e6ef87.507db","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1763.8207893371582,"y":759.3266429901123,"z":"a6b16db5.af508","wires":[["a3ddab0f.be74c8"]]},{"id":"76293fdb.a702e","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1749.1777744293213,"y":872.0405941009521,"z":"a6b16db5.af508","wires":[["ebef8c77.3f0be"]]},{"id":"2b09b8ff.3e3148","type":"for","name":"Loop","xml":"<for index=\"retryIndex\" start=\"1\" end=\"`$stopRetryCount + 1`\" >","comments":"","outputs":1,"x":614.6270370483398,"y":610.1476726531982,"z":"a6b16db5.af508","wires":[["9f75fd7d.6a168"]]},{"id":"ebef8c77.3f0be","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Stop attempt ' + $retryIndex + ' of ' + $stopRetryCount + ' failed for server : ' + $stop-vm-url + '. Retrying.'`\"/>\n","comments":"","outputs":1,"x":1992.2613925933838,"y":870.2905941009521,"z":"a6b16db5.af508","wires":[[]]},{"id":"e1c0fbcb.5e70d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2095.960437774658,"y":811.5766429901123,"z":"a6b16db5.af508","wires":[]},{"id":"ab4f157e.b95da8","type":"returnSuccess","name":"return success","xml":"<return status='success'>","comments":"","x":1914.3252487182617,"y":579.4334754943848,"z":"a6b16db5.af508","wires":[]},{"id":"249fafc6.75699","type":"switchNode","name":"switch STATUS","xml":"<switch test='`$STOP_STATUS`'>\n","comments":"","outputs":1,"x":1422.3092880249023,"y":573.7031383514404,"z":"a6b16db5.af508","wires":[["bfaa23ff.9722f","6d690331.49ee2c","335e834f.a28b2c"]]},{"id":"bfaa23ff.9722f","type":"other","name":"ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":1503.8330841064453,"y":659.6078596115112,"z":"a6b16db5.af508","wires":[["ed170974.4288c8"]]},{"id":"6d690331.49ee2c","type":"success","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1669.2617568969727,"y":542.6078939437866,"z":"a6b16db5.af508","wires":[["85005452.136278"]]},{"id":"ed170974.4288c8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1387.2457962036133,"y":767.8937721252441,"z":"a6b16db5.af508","wires":[["64459e63.09ed5"]]},{"id":"fd5f6afc.5b61a8","type":"switchNode","name":"switch STATUS","xml":"<switch test='`$STOP_STATUS`'>\n","comments":"","outputs":1,"x":238.10294723510742,"y":523.8015937805176,"z":"a6b16db5.af508","wires":[["517f7561.af124c","15485fed.56523","ddbde736.0b20d8","4810dc09.1ec194"]]},{"id":"15485fed.56523","type":"other","name":"ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":412.3886528015137,"y":588.087329864502,"z":"a6b16db5.af508","wires":[["8f66cbff.7a29e8"]]},{"id":"517f7561.af124c","type":"success","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":407.8174858093262,"y":461.08732986450195,"z":"a6b16db5.af508","wires":[["8f66cbff.7a29e8"]]},{"id":"ddbde736.0b20d8","type":"other","name":"CONTEXT_NOT_FOUND","xml":"<outcome value='CONTEXT_NOT_FOUND'>\n","comments":"","outputs":1,"x":419.53152084350586,"y":676.6587200164795,"z":"a6b16db5.af508","wires":[["b496c2e5.7e0b7"]]},{"id":"335e834f.a28b2c","type":"other","name":"CONTEXT_NOT_FOUND","xml":"<outcome value='CONTEXT_NOT_FOUND'>\n","comments":"","outputs":1,"x":1725.245979309082,"y":622.3729629516602,"z":"a6b16db5.af508","wires":[["a3ddab0f.be74c8"]]},{"id":"784c3e4a.5134e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":499.5314750671387,"y":878.0872135162354,"z":"a6b16db5.af508","wires":[]},{"id":"b496c2e5.7e0b7","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":275.2457695007324,"y":826.658694267273,"z":"a6b16db5.af508","wires":[["784c3e4a.5134e","34ff62bb.1ea1ce","c3ad6392.97ef"]]},{"id":"4810dc09.1ec194","type":"success","name":"EMPTY","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":408.1029472351074,"y":520.9444465637207,"z":"a6b16db5.af508","wires":[["8f66cbff.7a29e8"]]},{"id":"34ff62bb.1ea1ce","type":"set","name":"Set error message","xml":"<set>\n<parameter name='event-message' value=\"Invalid AICIdentity or tenant or credentials\"/>\n","comments":"","x":523.8172416687012,"y":782.3729972839355,"z":"a6b16db5.af508","wires":[]},{"id":"c3ad6392.97ef","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n","comments":"","outputs":1,"x":506.24620056152344,"y":823.9919185638428,"z":"a6b16db5.af508","wires":[[]]},{"id":"8f66cbff.7a29e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":616.6743812561035,"y":516.6587257385254,"z":"a6b16db5.af508","wires":[["614e98a0.740898","2b09b8ff.3e3148","630a1e7d.61b31"]]},{"id":"614e98a0.740898","type":"switchNode","name":"switch : stopRetryCount >= 0","xml":"<switch test='`$stopRetryCount >= 0`'>\n","comments":"","outputs":1,"x":886.6744194030762,"y":448.08729553222656,"z":"a6b16db5.af508","wires":[["1f5b5e63.c28f42","e7474230.d8845"]]},{"id":"1f5b5e63.c28f42","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1103.817211151123,"y":406.65876388549805,"z":"a6b16db5.af508","wires":[["e793bc34.ec31a"]]},{"id":"e7474230.d8845","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1110.9600982666016,"y":483.80166721343994,"z":"a6b16db5.af508","wires":[["af7b47ca.fc8588"]]},{"id":"af7b47ca.fc8588","type":"set","name":"increment stopRetryCount","xml":"<set>\n<parameter name=\"stopRetryCount\" value=\"`$stopRetryCount + 1`\" />\n","comments":"","x":1293.817195892334,"y":482.37305450439453,"z":"a6b16db5.af508","wires":[]},{"id":"e793bc34.ec31a","type":"set","name":"set stopRetryCount","xml":"<set>\n<parameter name='stopRetryCount' value='1' />\n","comments":"","x":1275.2457847595215,"y":405.2301845550537,"z":"a6b16db5.af508","wires":[]},{"id":"85005452.136278","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1691.515609741211,"y":450.1476058959961,"z":"a6b16db5.af508","wires":[["44750395.80221c","5c22eb96.f3da94","ab4f157e.b95da8","40c219cc.406928"]]},{"id":"630a1e7d.61b31","type":"set","name":"initialize exitLoop","xml":"<set>\n<parameter name='exitLoop' value='false' />\n","comments":"","x":851.5155944824219,"y":340.14762115478516,"z":"a6b16db5.af508","wires":[]},{"id":"40c219cc.406928","type":"set","name":"set exitLoop","xml":"<set>\n<parameter name='exitLoop' value='true' />\n","comments":"","x":1921.5157165527344,"y":514.4333572387695,"z":"a6b16db5.af508","wires":[]},{"id":"9f75fd7d.6a168","type":"switchNode","name":"switch exitLoop","xml":"<switch test='`$exitLoop`'>\n","comments":"","outputs":1,"x":781.5155944824219,"y":608.7190322875977,"z":"a6b16db5.af508","wires":[["e7b114e6.a3f9c8","91b0004b.02402"]]},{"id":"e7b114e6.a3f9c8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":950.0869522094727,"y":610.1476383209229,"z":"a6b16db5.af508","wires":[["ed427ea8.f19f5"]]},{"id":"91b0004b.02402","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":947.2299499511719,"y":675.861946105957,"z":"a6b16db5.af508","wires":[[]]}]
+[\r
+    {\r
+        "id": "1cef050a.1dfbcb",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 141.515625,\r
+        "y": 164.4333267211914,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "a9d8f072.10cbd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9d8f072.10cbd",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 318.5157165527344,\r
+        "y": 164,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "46c68f6c.01837"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46c68f6c.01837",\r
+        "type": "method",\r
+        "name": "StopVM_VM",\r
+        "xml": "<method rpc='StopVM_VM' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 260.97997665405273,\r
+        "y": 255.8214054107666,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "fd5f6afc.5b61a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed427ea8.f19f5",\r
+        "type": "execute",\r
+        "name": "Stop",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1105.3989791870117,\r
+        "y": 605.2190837860107,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "b5b4b5a6.7469d8",\r
+                "d5e5239f.dcc79"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5b4b5a6.7469d8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1226.303726196289,\r
+        "y": 770.7907104492188,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "ed170974.4288c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5e5239f.dcc79",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1261.5160751342773,\r
+        "y": 572.1476917266846,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "249fafc6.75699"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3ddab0f.be74c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1904.9443244934082,\r
+        "y": 761.433759689331,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "dbdf325c.08025",\r
+                "f2981778.0beac8",\r
+                "e1c0fbcb.5e70d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbdf325c.08025",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='event-message' value=\"`'Failure while stopping the server: ' + $stop-vm-url`\"/>\n",\r
+        "comments": "",\r
+        "x": 2087.516101837158,\r
+        "y": 722.1479930877686,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f2981778.0beac8",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2079.945056915283,\r
+        "y": 762.3383617401123,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "44750395.80221c",\r
+        "type": "set",\r
+        "name": "Set Success Message",\r
+        "xml": "<set>\n<parameter name='success-message' value=\"`'Stop succeeded for the server : ' + $stop-vm-url`\"/>\n\n\n",\r
+        "comments": "",\r
+        "x": 1916.2298202514648,\r
+        "y": 403.2907085418701,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5c22eb96.f3da94",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$success-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1906.0870056152344,\r
+        "y": 454.86212062835693,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "64459e63.09ed5",\r
+        "type": "switchNode",\r
+        "name": "switch:Last Attempt",\r
+        "xml": "<switch test='`$stopRetryCount == $retryIndex`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1554.9280242919922,\r
+        "y": 767.0052223205566,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "76293fdb.a702e",\r
+                "c9e6ef87.507db"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c9e6ef87.507db",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1763.8207893371582,\r
+        "y": 759.3266429901123,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "a3ddab0f.be74c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "76293fdb.a702e",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1749.1777744293213,\r
+        "y": 872.0405941009521,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "ebef8c77.3f0be"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2b09b8ff.3e3148",\r
+        "type": "for",\r
+        "name": "Loop",\r
+        "xml": "<for index=\"retryIndex\" start=\"1\" end=\"`$stopRetryCount + 1`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.6270370483398,\r
+        "y": 610.1476726531982,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "9f75fd7d.6a168"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebef8c77.3f0be",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Stop attempt ' + $retryIndex + ' of ' + $stopRetryCount + ' failed for server : ' + $stop-vm-url + '. Retrying.'`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1992.2613925933838,\r
+        "y": 870.2905941009521,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e1c0fbcb.5e70d8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2095.960437774658,\r
+        "y": 811.5766429901123,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ab4f157e.b95da8",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>",\r
+        "comments": "",\r
+        "x": 1914.3252487182617,\r
+        "y": 579.4334754943848,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "249fafc6.75699",\r
+        "type": "switchNode",\r
+        "name": "switch STATUS",\r
+        "xml": "<switch test='`$STOP_STATUS`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1422.3092880249023,\r
+        "y": 573.7031383514404,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "bfaa23ff.9722f",\r
+                "6d690331.49ee2c",\r
+                "335e834f.a28b2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfaa23ff.9722f",\r
+        "type": "other",\r
+        "name": "ERROR",\r
+        "xml": "<outcome value='ERROR'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1503.8330841064453,\r
+        "y": 659.6078596115112,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "ed170974.4288c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d690331.49ee2c",\r
+        "type": "success",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1669.2617568969727,\r
+        "y": 542.6078939437866,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "85005452.136278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed170974.4288c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1387.2457962036133,\r
+        "y": 767.8937721252441,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "64459e63.09ed5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd5f6afc.5b61a8",\r
+        "type": "switchNode",\r
+        "name": "switch STATUS",\r
+        "xml": "<switch test='`$STOP_STATUS`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 238.10294723510742,\r
+        "y": 523.8015937805176,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "517f7561.af124c",\r
+                "15485fed.56523",\r
+                "ddbde736.0b20d8",\r
+                "4810dc09.1ec194"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15485fed.56523",\r
+        "type": "other",\r
+        "name": "ERROR",\r
+        "xml": "<outcome value='ERROR'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 412.3886528015137,\r
+        "y": 588.087329864502,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "8f66cbff.7a29e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "517f7561.af124c",\r
+        "type": "success",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 407.8174858093262,\r
+        "y": 461.08732986450195,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "8f66cbff.7a29e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddbde736.0b20d8",\r
+        "type": "other",\r
+        "name": "CONTEXT_NOT_FOUND",\r
+        "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 419.53152084350586,\r
+        "y": 676.6587200164795,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "b496c2e5.7e0b7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "335e834f.a28b2c",\r
+        "type": "other",\r
+        "name": "CONTEXT_NOT_FOUND",\r
+        "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1725.245979309082,\r
+        "y": 622.3729629516602,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "a3ddab0f.be74c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "784c3e4a.5134e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 499.5314750671387,\r
+        "y": 878.0872135162354,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b496c2e5.7e0b7",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 275.2457695007324,\r
+        "y": 826.658694267273,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "784c3e4a.5134e",\r
+                "34ff62bb.1ea1ce",\r
+                "c3ad6392.97ef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4810dc09.1ec194",\r
+        "type": "success",\r
+        "name": "EMPTY",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 408.1029472351074,\r
+        "y": 520.9444465637207,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "8f66cbff.7a29e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34ff62bb.1ea1ce",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='event-message' value=\"Invalid AICIdentity or tenant or credentials\"/>\n",\r
+        "comments": "",\r
+        "x": 523.8172416687012,\r
+        "y": 782.3729972839355,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c3ad6392.97ef",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 506.24620056152344,\r
+        "y": 823.9919185638428,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f66cbff.7a29e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 616.6743812561035,\r
+        "y": 516.6587257385254,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "614e98a0.740898",\r
+                "2b09b8ff.3e3148",\r
+                "630a1e7d.61b31"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "614e98a0.740898",\r
+        "type": "switchNode",\r
+        "name": "switch : stopRetryCount >= 0",\r
+        "xml": "<switch test='`$stopRetryCount >= 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 886.6744194030762,\r
+        "y": 448.08729553222656,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "1f5b5e63.c28f42",\r
+                "e7474230.d8845"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f5b5e63.c28f42",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1103.817211151123,\r
+        "y": 406.65876388549805,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "e793bc34.ec31a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7474230.d8845",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1110.9600982666016,\r
+        "y": 483.80166721343994,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "af7b47ca.fc8588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af7b47ca.fc8588",\r
+        "type": "set",\r
+        "name": "increment stopRetryCount",\r
+        "xml": "<set>\n<parameter name=\"stopRetryCount\" value=\"`$stopRetryCount + 1`\" />\n",\r
+        "comments": "",\r
+        "x": 1293.817195892334,\r
+        "y": 482.37305450439453,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e793bc34.ec31a",\r
+        "type": "set",\r
+        "name": "set stopRetryCount",\r
+        "xml": "<set>\n<parameter name='stopRetryCount' value='1' />\n",\r
+        "comments": "",\r
+        "x": 1275.2457847595215,\r
+        "y": 405.2301845550537,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "85005452.136278",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1691.515609741211,\r
+        "y": 450.1476058959961,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "44750395.80221c",\r
+                "5c22eb96.f3da94",\r
+                "ab4f157e.b95da8",\r
+                "40c219cc.406928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "630a1e7d.61b31",\r
+        "type": "set",\r
+        "name": "initialize exitLoop",\r
+        "xml": "<set>\n<parameter name='exitLoop' value='false' />\n",\r
+        "comments": "",\r
+        "x": 851.5155944824219,\r
+        "y": 340.14762115478516,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "40c219cc.406928",\r
+        "type": "set",\r
+        "name": "set exitLoop",\r
+        "xml": "<set>\n<parameter name='exitLoop' value='true' />\n",\r
+        "comments": "",\r
+        "x": 1921.5157165527344,\r
+        "y": 514.4333572387695,\r
+        "z": "a6b16db5.af508",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9f75fd7d.6a168",\r
+        "type": "switchNode",\r
+        "name": "switch exitLoop",\r
+        "xml": "<switch test='`$exitLoop`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 781.5155944824219,\r
+        "y": 608.7190322875977,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "e7b114e6.a3f9c8",\r
+                "91b0004b.02402"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7b114e6.a3f9c8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 950.0869522094727,\r
+        "y": 610.1476383209229,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            [\r
+                "ed427ea8.f19f5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "91b0004b.02402",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 947.2299499511719,\r
+        "y": 675.861946105957,\r
+        "z": "a6b16db5.af508",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]\r
index 872ee1b..b6e30fa 100644 (file)
-[
-  {
-    "id": "4a37fdf2.6a2504",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 114,
-    "y": 144,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "24ca19d3.fe69f6"
-      ]
-    ]
-  },
-  {
-    "id": "24ca19d3.fe69f6",
-    "type": "service-logic",
-    "name": "APPC 2.0.0",
-    "module": "APPC",
-    "version": "2.0.0",
-    "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='APPC' version='2.0.0'>",
-    "outputs": 1,
-    "x": 261,
-    "y": 144,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "68e5e092.be1d4"
-      ]
-    ]
-  },
-  {
-    "id": "68e5e092.be1d4",
-    "type": "method",
-    "name": "Stop_VM",
-    "xml": "<method rpc='Stop_VM' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 413.5,
-    "y": 144,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "79ce376b.14ba38"
-      ]
-    ]
-  },
-  {
-    "id": "546085a8.48136c",
-    "type": "execute",
-    "name": "Resolve Stop Application DG",
-    "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$i].vnfcType`' /> \n<parameter name=\"action\" value=\"Stop_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value='StopApplication' />",
-    "comments": "",
-    "outputs": 1,
-    "x": 315.5,
-    "y": 364,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "af254db7.09d53",
-        "27344cac.0eda34"
-      ]
-    ]
-  },
-  {
-    "id": "af254db7.09d53",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 546,
-    "y": 444,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "b3421a0a.ab34d8"
-      ]
-    ]
-  },
-  {
-    "id": "4a4711ec.83e88",
-    "type": "call",
-    "name": "Call Stop Application DG",
-    "xml": "<call module='`$StopApplication.dg_module`' rpc='`$StopApplication.dg_name`' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 742,
-    "y": 364,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "5b84fc8a.59ac94",
-        "c108322b.df0e7",
-        "3efda8ab.632bf8"
-      ]
-    ]
-  },
-  {
-    "id": "5b84fc8a.59ac94",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 990,
-    "y": 364,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "3c46d78d.4277c8"
-      ]
-    ]
-  },
-  {
-    "id": "7892211.d99b2e",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1146,
-    "y": 244,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "b3421a0a.ab34d8",
-        "2013c4a3.b2f33c",
-        "f600a7ce.f7f418"
-      ]
-    ]
-  },
-  {
-    "id": "b3421a0a.ab34d8",
-    "type": "call",
-    "name": "Call StopVM_VM",
-    "xml": "<call module='APPC' rpc='StopVM_VM' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1398,
-    "y": 444,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "823575c7.9529b8",
-        "403b9a.8f504468",
-        "ff7db04.0cfe85"
-      ]
-    ]
-  },
-  {
-    "id": "823575c7.9529b8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1646,
-    "y": 304,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "f628fc33.96856"
-      ]
-    ]
-  },
-  {
-    "id": "403b9a.8f504468",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1650,
-    "y": 444,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "ea7f288e.c58648"
-      ]
-    ]
-  },
-  {
-    "id": "27344cac.0eda34",
-    "type": "other",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 546,
-    "y": 364,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "4a4711ec.83e88"
-      ]
-    ]
-  },
-  {
-    "id": "c108322b.df0e7",
-    "type": "other",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 986,
-    "y": 244,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "7892211.d99b2e"
-      ]
-    ]
-  },
-  {
-    "id": "3efda8ab.632bf8",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 995,
-    "y": 144,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "191e02b6.f79f4d"
-      ]
-    ]
-  },
-  {
-    "id": "191e02b6.f79f4d",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1806,
-    "y": 144,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "8812042b.ba9358",
-        "f628fc33.96856"
-      ]
-    ]
-  },
-  {
-    "id": "8812042b.ba9358",
-    "type": "set",
-    "name": "Set event message",
-    "xml": "<set>\n<parameter name='event-message' value=\"`'Cannot find DG: ' + $StopApplication.dg_module + ' ' + $StopApplication.dg_name`\"/>\n\n\n",
-    "comments": "",
-    "x": 2085.5,
-    "y": 144,
-    "z": "bff4e0f.991972",
-    "wires": []
-  },
-  {
-    "id": "59b9a03e.8323b",
-    "type": "set",
-    "name": "init",
-    "xml": "<set>\n<parameter name='StopApplicationFailed' value='false' />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 246,
-    "y": 244,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "79ce376b.14ba38",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 106,
-    "y": 244,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "59b9a03e.8323b",
-        "546085a8.48136c"
-      ]
-    ]
-  },
-  {
-    "id": "ea7f288e.c58648",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1806,
-    "y": 444,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "d59b6aa1.c91618",
-        "b8335fae.52296"
-      ]
-    ]
-  },
-  {
-    "id": "3c46d78d.4277c8",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1146,
-    "y": 364,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "b3421a0a.ab34d8",
-        "b8335fae.52296"
-      ]
-    ]
-  },
-  {
-    "id": "2013c4a3.b2f33c",
-    "type": "set",
-    "name": "Set Stop Application Failed",
-    "xml": "<set>\n<parameter name='StopApplicationFailed' value='true' />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1429.5,
-    "y": 204,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "d59b6aa1.c91618",
-    "type": "switchNode",
-    "name": "Switch Stop Application Failed",
-    "xml": "<switch test=\"`$StopApplicationFailed`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2035.5,
-    "y": 471,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "b987da03.0dc0f8",
-        "8fa7fbb8.8355c8"
-      ]
-    ]
-  },
-  {
-    "id": "b987da03.0dc0f8",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2266,
-    "y": 444,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "98412d6e.2237"
-      ]
-    ]
-  },
-  {
-    "id": "98412d6e.2237",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2465,
-    "y": 444,
-    "z": "bff4e0f.991972",
-    "wires": []
-  },
-  {
-    "id": "fffd4e3c.8b204",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n",
-    "comments": "",
-    "x": 2471,
-    "y": 504,
-    "z": "bff4e0f.991972",
-    "wires": []
-  },
-  {
-    "id": "8fa7fbb8.8355c8",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2266,
-    "y": 504,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "fffd4e3c.8b204"
-      ]
-    ]
-  },
-  {
-    "id": "ff7db04.0cfe85",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1655,
-    "y": 204,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "c640b015.2be11"
-      ]
-    ]
-  },
-  {
-    "id": "1dffaf3f.e12151",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2509,
-    "y": 122,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f628fc33.96856",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2046,
-    "y": 304,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "f600a7ce.f7f418",
-        "cf5c9d26.942c4"
-      ]
-    ]
-  },
-  {
-    "id": "c41ea253.33c72",
-    "type": "set",
-    "name": "Set event message",
-    "xml": "<set>\n<parameter name='event-message' value=\"Cannot find DG: StopVM_VM\"/>\n\n\n",
-    "comments": "",
-    "x": 2085.5,
-    "y": 204,
-    "z": "bff4e0f.991972",
-    "wires": []
-  },
-  {
-    "id": "2186d059.4b82f",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2465,
-    "y": 71,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "cf5c9d26.942c4",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2465,
-    "y": 304,
-    "z": "bff4e0f.991972",
-    "wires": []
-  },
-  {
-    "id": "c640b015.2be11",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1806,
-    "y": 204,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "c41ea253.33c72",
-        "f628fc33.96856"
-      ]
-    ]
-  },
-  {
-    "id": "5fb32110.cadf8",
-    "type": "execute",
-    "name": "Report Error",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2478,
-    "y": 176,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f600a7ce.f7f418",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2266,
-    "y": 244,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "2186d059.4b82f",
-        "1dffaf3f.e12151",
-        "5fb32110.cadf8",
-        "a2ebc53c.230e08"
-      ]
-    ]
-  },
-  {
-    "id": "b8335fae.52296",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2446,
-    "y": 364,
-    "z": "bff4e0f.991972",
-    "wires": [
-      [
-        "72a691f7.431cd",
-        "2b14f2c8.13f01e",
-        "292317f2.1be5c8"
-      ]
-    ]
-  },
-  {
-    "id": "2b14f2c8.13f01e",
-    "type": "execute",
-    "name": "Report Success",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2684.5,
-    "y": 358,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "72a691f7.431cd",
-    "type": "record",
-    "name": "Log success",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$success-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2674,
-    "y": 300,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "a2ebc53c.230e08",
-    "type": "set",
-    "name": "Set failure code and message",
-    "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$event-message`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2531,
-    "y": 229,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "292317f2.1be5c8",
-    "type": "set",
-    "name": "Set success code and message",
-    "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"`$success-message`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2737,
-    "y": 412,
-    "z": "bff4e0f.991972",
-    "wires": [
-      []
-    ]
-  }
-]
+[\r
+    {\r
+        "id": "4a37fdf2.6a2504",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 114,\r
+        "y": 144,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "24ca19d3.fe69f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24ca19d3.fe69f6",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 261,\r
+        "y": 144,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "68e5e092.be1d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "68e5e092.be1d4",\r
+        "type": "method",\r
+        "name": "Stop_VM",\r
+        "xml": "<method rpc='Stop_VM' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 413.5,\r
+        "y": 144,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "79ce376b.14ba38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "546085a8.48136c",\r
+        "type": "execute",\r
+        "name": "Resolve Stop Application DG",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$i].vnfcType`' /> \n<parameter name=\"action\" value=\"Stop_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value='StopApplication' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 315.5,\r
+        "y": 364,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "af254db7.09d53",\r
+                "27344cac.0eda34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af254db7.09d53",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 546,\r
+        "y": 444,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "b3421a0a.ab34d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a4711ec.83e88",\r
+        "type": "call",\r
+        "name": "Call Stop Application DG",\r
+        "xml": "<call module='`$StopApplication.dg_module`' rpc='`$StopApplication.dg_name`' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 742,\r
+        "y": 364,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "5b84fc8a.59ac94",\r
+                "c108322b.df0e7",\r
+                "3efda8ab.632bf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b84fc8a.59ac94",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 990,\r
+        "y": 364,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "3c46d78d.4277c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7892211.d99b2e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1146,\r
+        "y": 244,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "b3421a0a.ab34d8",\r
+                "2013c4a3.b2f33c",\r
+                "f600a7ce.f7f418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3421a0a.ab34d8",\r
+        "type": "call",\r
+        "name": "Call StopVM_VM",\r
+        "xml": "<call module='APPC' rpc='StopVM_VM' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1398,\r
+        "y": 444,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "823575c7.9529b8",\r
+                "403b9a.8f504468",\r
+                "ff7db04.0cfe85"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "823575c7.9529b8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1646,\r
+        "y": 304,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "f628fc33.96856"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "403b9a.8f504468",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1650,\r
+        "y": 444,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "ea7f288e.c58648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27344cac.0eda34",\r
+        "type": "other",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 546,\r
+        "y": 364,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "4a4711ec.83e88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c108322b.df0e7",\r
+        "type": "other",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 986,\r
+        "y": 244,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "7892211.d99b2e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3efda8ab.632bf8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 995,\r
+        "y": 144,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "191e02b6.f79f4d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "191e02b6.f79f4d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1806,\r
+        "y": 144,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "8812042b.ba9358",\r
+                "f628fc33.96856"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8812042b.ba9358",\r
+        "type": "set",\r
+        "name": "Set event message",\r
+        "xml": "<set>\n<parameter name='event-message' value=\"`'Cannot find DG: ' + $StopApplication.dg_module + ' ' + $StopApplication.dg_name`\"/>\n\n\n",\r
+        "comments": "",\r
+        "x": 2085.5,\r
+        "y": 144,\r
+        "z": "bff4e0f.991972",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "59b9a03e.8323b",\r
+        "type": "set",\r
+        "name": "init",\r
+        "xml": "<set>\n<parameter name='StopApplicationFailed' value='false' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 246,\r
+        "y": 244,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "79ce376b.14ba38",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 106,\r
+        "y": 244,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "59b9a03e.8323b",\r
+                "546085a8.48136c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea7f288e.c58648",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1806,\r
+        "y": 444,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "d59b6aa1.c91618",\r
+                "b8335fae.52296"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c46d78d.4277c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1146,\r
+        "y": 364,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "b3421a0a.ab34d8",\r
+                "b8335fae.52296"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2013c4a3.b2f33c",\r
+        "type": "set",\r
+        "name": "Set Stop Application Failed",\r
+        "xml": "<set>\n<parameter name='StopApplicationFailed' value='true' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1429.5,\r
+        "y": 204,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d59b6aa1.c91618",\r
+        "type": "switchNode",\r
+        "name": "Switch Stop Application Failed",\r
+        "xml": "<switch test=\"`$StopApplicationFailed`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2035.5,\r
+        "y": 471,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "b987da03.0dc0f8",\r
+                "8fa7fbb8.8355c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b987da03.0dc0f8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2266,\r
+        "y": 444,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "98412d6e.2237"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98412d6e.2237",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2465,\r
+        "y": 444,\r
+        "z": "bff4e0f.991972",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fffd4e3c.8b204",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 2471,\r
+        "y": 504,\r
+        "z": "bff4e0f.991972",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8fa7fbb8.8355c8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2266,\r
+        "y": 504,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "fffd4e3c.8b204"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff7db04.0cfe85",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1655,\r
+        "y": 204,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "c640b015.2be11"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1dffaf3f.e12151",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2509,\r
+        "y": 122,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f628fc33.96856",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2046,\r
+        "y": 304,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "f600a7ce.f7f418",\r
+                "cf5c9d26.942c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c41ea253.33c72",\r
+        "type": "set",\r
+        "name": "Set event message",\r
+        "xml": "<set>\n<parameter name='event-message' value=\"Cannot find DG: StopVM_VM\"/>\n\n\n",\r
+        "comments": "",\r
+        "x": 2085.5,\r
+        "y": 204,\r
+        "z": "bff4e0f.991972",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2186d059.4b82f",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2465,\r
+        "y": 71,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf5c9d26.942c4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2465,\r
+        "y": 304,\r
+        "z": "bff4e0f.991972",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c640b015.2be11",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1806,\r
+        "y": 204,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "c41ea253.33c72",\r
+                "f628fc33.96856"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fb32110.cadf8",\r
+        "type": "execute",\r
+        "name": "Report Error",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2478,\r
+        "y": 176,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f600a7ce.f7f418",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2266,\r
+        "y": 244,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "2186d059.4b82f",\r
+                "1dffaf3f.e12151",\r
+                "5fb32110.cadf8",\r
+                "a2ebc53c.230e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8335fae.52296",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2446,\r
+        "y": 364,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            [\r
+                "72a691f7.431cd",\r
+                "2b14f2c8.13f01e",\r
+                "292317f2.1be5c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2b14f2c8.13f01e",\r
+        "type": "execute",\r
+        "name": "Report Success",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2684.5,\r
+        "y": 358,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "72a691f7.431cd",\r
+        "type": "record",\r
+        "name": "Log success",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$success-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2674,\r
+        "y": 300,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2ebc53c.230e08",\r
+        "type": "set",\r
+        "name": "Set failure code and message",\r
+        "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$event-message`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2531,\r
+        "y": 229,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "292317f2.1be5c8",\r
+        "type": "set",\r
+        "name": "Set success code and message",\r
+        "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"`$success-message`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2737,\r
+        "y": 412,\r
+        "z": "bff4e0f.991972",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]\r
index 4cb03c8..3d4767a 100644 (file)
-[
-  {
-    "id": "6bb80f2c.7080b",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 158,
-    "y": 80,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "6b619ec8.d45c4"
-      ]
-    ]
-  },
-  {
-    "id": "6b619ec8.d45c4",
-    "type": "service-logic",
-    "name": "APPC 2.0.2",
-    "module": "APPC",
-    "version": "2.0.2",
-    "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='APPC' version='2.0.2'>",
-    "outputs": 1,
-    "x": 326.0001220703125,
-    "y": 81,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "c6bac291.2c2d3"
-      ]
-    ]
-  },
-  {
-    "id": "c6bac291.2c2d3",
-    "type": "method",
-    "name": "Stop_VNFC",
-    "xml": "<method rpc='Stop_VNFC' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 254.00015258789062,
-    "y": 155,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "f6ef3aa.b96dbc8"
-      ]
-    ]
-  },
-  {
-    "id": "f6ef3aa.b96dbc8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 204.0001220703125,
-    "y": 237.99999809265137,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "7faaeb57.5e7824",
-        "fc170e86.4107f",
-        "5ea187ee.d6e158",
-        "41b645cc.41c3fc"
-      ]
-    ]
-  },
-  {
-    "id": "7faaeb57.5e7824",
-    "type": "execute",
-    "name": "Update_AAI_Stopping",
-    "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name =  $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Stopping\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 920.00048828125,
-    "y": 172,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "76cf3ef.ad105c",
-        "3e9e1468.83185c",
-        "3f3edb07.2f9944"
-      ]
-    ]
-  },
-  {
-    "id": "3e9e1468.83185c",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1666.000732421875,
-    "y": 275.99999809265137,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "c1bc1cba.f920b"
-      ]
-    ]
-  },
-  {
-    "id": "3f3edb07.2f9944",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1682,
-    "y": 339.99999809265137,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "f8673aca.705658"
-      ]
-    ]
-  },
-  {
-    "id": "76cf3ef.ad105c",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1663.0000305175781,
-    "y": 409,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "c832b521.3d9768"
-      ]
-    ]
-  },
-  {
-    "id": "c1bc1cba.f920b",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1838.8891906738281,
-    "y": 273.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "8cac271.4e263d8",
-        "d65062b7.3cbfd"
-      ]
-    ]
-  },
-  {
-    "id": "f8673aca.705658",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1914.8892059326172,
-    "y": 338.35894775390625,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "71a4120e.5d054c",
-        "4a1462f9.672d7c"
-      ]
-    ]
-  },
-  {
-    "id": "c832b521.3d9768",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$postResource_result`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1810.1106262207031,
-    "y": 407.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "c52b0e2c.d1338",
-        "e724ae4f.d3c13"
-      ]
-    ]
-  },
-  {
-    "id": "c52b0e2c.d1338",
-    "type": "outcome",
-    "name": "NOT_FOUND",
-    "xml": "<outcome value='NOT_FOUND'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1976.1111145019531,
-    "y": 388.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "c7d68d2.879e37"
-      ]
-    ]
-  },
-  {
-    "id": "e724ae4f.d3c13",
-    "type": "outcome",
-    "name": "FAILURE",
-    "xml": "<outcome value='FAILURE'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1970.1112670898438,
-    "y": 447.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "f34e4663.0043f8"
-      ]
-    ]
-  },
-  {
-    "id": "c7d68d2.879e37",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2158.1114807128906,
-    "y": 386.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "40cd2698.77b968",
-        "fdb3d9d6.7fb368"
-      ]
-    ]
-  },
-  {
-    "id": "f34e4663.0043f8",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2152.1114807128906,
-    "y": 448.888916015625,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "88d48d7b.011a9",
-        "b834e7a3.fb5ca8"
-      ]
-    ]
-  },
-  {
-    "id": "b834e7a3.fb5ca8",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&amp;AI for '+ $vnfcName`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2391.1122131347656,
-    "y": 437.8889465332031,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "b735bff9.feb5e"
-      ]
-    ]
-  },
-  {
-    "id": "88d48d7b.011a9",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2374.1122131347656,
-    "y": 497.888916015625,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "8cac271.4e263d8",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&amp;AI for '+ $vnfcName`\"/>\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2063.2223358154297,
-    "y": 190.88888549804688,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "d058580f.a167c8"
-      ]
-    ]
-  },
-  {
-    "id": "d65062b7.3cbfd",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2060.2223358154297,
-    "y": 237.88885498046875,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "4a1462f9.672d7c",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2103.2223358154297,
-    "y": 336.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "71a4120e.5d054c",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&amp;AI for '+ $vnfcName`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2112.2223358154297,
-    "y": 289.888916015625,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "b49279c1.cbf648"
-      ]
-    ]
-  },
-  {
-    "id": "fdb3d9d6.7fb368",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&amp;AI for : '+ $vnfcName`\"/>\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2391.2220764160156,
-    "y": 339.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "78ec3f34.90138"
-      ]
-    ]
-  },
-  {
-    "id": "40cd2698.77b968",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2373.2220764160156,
-    "y": 385.88885498046875,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "fc170e86.4107f",
-    "type": "for",
-    "name": "for_each_vm",
-    "xml": "<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >",
-    "comments": "",
-    "outputs": 1,
-    "x": 408.00018310546875,
-    "y": 261.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "ad2f571e.472378"
-      ]
-    ]
-  },
-  {
-    "id": "c04c4a2.7a0a3b8",
-    "type": "execute",
-    "name": "Update_AA&I_Error",
-    "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Error\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1292.0003967285156,
-    "y": 520.5237102508545,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "3e9e1468.83185c",
-        "3f3edb07.2f9944",
-        "76cf3ef.ad105c"
-      ]
-    ]
-  },
-  {
-    "id": "2b6c1bfa.73a104",
-    "type": "execute",
-    "name": "update_AA&I_Stopped",
-    "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Stopped\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1268.4282531738281,
-    "y": 639.9525737762451,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "3e9e1468.83185c",
-        "3f3edb07.2f9944",
-        "76cf3ef.ad105c"
-      ]
-    ]
-  },
-  {
-    "id": "ad2f571e.472378",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>\n",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 454.0000915527344,
-    "y": 331.8888854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "e049cef5.ca3d3",
-        "6103761f.d41698",
-        "f1d156a7.37a158"
-      ]
-    ]
-  },
-  {
-    "id": "630101.74f3df",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 963.7541046142578,
-    "y": 420.9959783554077,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "2057f935.74b346",
-        "523d6a77.8b8ea4",
-        "b06e9efa.c9bbb"
-      ]
-    ]
-  },
-  {
-    "id": "5ea187ee.d6e158",
-    "type": "set",
-    "name": "init_vm_failed_count",
-    "xml": "<set>\n<parameter name='stopFailedVmCount' value='0' />\n",
-    "comments": "",
-    "x": 568.7778625488281,
-    "y": 165.88888549804688,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "41b645cc.41c3fc",
-    "type": "switchNode",
-    "name": "switch VNFC Stop Success",
-    "xml": "<switch test='`$stopFailedVmCount == 0`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 486,
-    "y": 615.8890228271484,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "d6d0256a.e73ea8",
-        "e60e85fa.0569a8"
-      ]
-    ]
-  },
-  {
-    "id": "e60e85fa.0569a8",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 756.7500305175781,
-    "y": 655.6389141082764,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "8b02220e.5cbf4"
-      ]
-    ]
-  },
-  {
-    "id": "d6d0256a.e73ea8",
-    "type": "outcomeFalse",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 761.2500610351562,
-    "y": 579.6388854980469,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "ed61f50.6ab0708"
-      ]
-    ]
-  },
-  {
-    "id": "72ebe700.9eb218",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n",
-    "comments": "",
-    "x": 1259.749755859375,
-    "y": 717.5555400848389,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "370d52b3.3d830e",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1274.5188751220703,
-    "y": 601.1556091308594,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "8b02220e.5cbf4",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1010,
-    "y": 656.1110820770264,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "72ebe700.9eb218",
-        "2b6c1bfa.73a104",
-        "b07b98f7.65d868"
-      ]
-    ]
-  },
-  {
-    "id": "ed61f50.6ab0708",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1042.0000610351562,
-    "y": 579.1110534667969,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "370d52b3.3d830e",
-        "c04c4a2.7a0a3b8",
-        "170bee40.e3fdf2"
-      ]
-    ]
-  },
-  {
-    "id": "2057f935.74b346",
-    "type": "set",
-    "name": "Update Error message and Counts",
-    "xml": "<set>\n<parameter name=\"stopFailedVmCount\" value=\"`$stopFailedVmCount + 1`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while stopping VM: ' + $vm[$i].url`\" />\n",
-    "comments": "",
-    "x": 1256.0000610351562,
-    "y": 366,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "523d6a77.8b8ea4",
-    "type": "record",
-    "name": "Log event",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1207.2222290039062,
-    "y": 413,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "b06e9efa.c9bbb",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1189.0896606445312,
-    "y": 466.1873149871826,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "3ccb5c62.3b2bb4"
-      ]
-    ]
-  },
-  {
-    "id": "e049cef5.ca3d3",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Attempting to stop the server : ' + $vm[$i].url`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 674.4287185668945,
-    "y": 237.82540893554688,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "6103761f.d41698",
-    "type": "set",
-    "name": "set stop parameters",
-    "xml": "<set>\n<parameter name=\"stop-vm-url\" value=\"`$vm[$i].url`\" />\n<parameter name='stopRetryCount' value='3'/>\n",
-    "comments": "",
-    "x": 692.089729309082,
-    "y": 299.2539978027344,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "f1d156a7.37a158",
-    "type": "call",
-    "name": "Stop_VM",
-    "xml": "<call module='APPC' rpc='Stop_VM' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 639.089729309082,
-    "y": 418.2539978027344,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "e3e85aa1.954ea8",
-        "e5db30a9.cda31"
-      ]
-    ]
-  },
-  {
-    "id": "e3e85aa1.954ea8",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 805.0001220703125,
-    "y": 419.1111145019531,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "630101.74f3df"
-      ]
-    ]
-  },
-  {
-    "id": "3ccb5c62.3b2bb4",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1367.0000610351562,
-    "y": 467,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "ecdcb16f.8d932"
-      ]
-    ]
-  },
-  {
-    "id": "d058580f.a167c8",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2559.9999237060547,
-    "y": 181.9999542236328,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "ecdcb16f.8d932"
-      ]
-    ]
-  },
-  {
-    "id": "b49279c1.cbf648",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2570.9999237060547,
-    "y": 280.9999542236328,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "ecdcb16f.8d932"
-      ]
-    ]
-  },
-  {
-    "id": "78ec3f34.90138",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2573.0001678466797,
-    "y": 347.99998474121094,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "ecdcb16f.8d932"
-      ]
-    ]
-  },
-  {
-    "id": "b735bff9.feb5e",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2576.0001678466797,
-    "y": 434.99998474121094,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "ecdcb16f.8d932"
-      ]
-    ]
-  },
-  {
-    "id": "ecdcb16f.8d932",
-    "type": "execute",
-    "name": "Report_Error_To_DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2441.666793823242,
-    "y": 916.0000457763672,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "e628d16a.c904d"
-      ]
-    ]
-  },
-  {
-    "id": "e628d16a.c904d",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2512.9525604248047,
-    "y": 987.4286804199219,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "170bee40.e3fdf2",
-    "type": "set",
-    "name": "Set AAI update Flag",
-    "xml": "<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n",
-    "comments": "",
-    "x": 1288.0000305175781,
-    "y": 562,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "b07b98f7.65d868",
-    "type": "set",
-    "name": "Set AAI update Flag",
-    "xml": "<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n",
-    "comments": "",
-    "x": 1265.0000305175781,
-    "y": 678.9999980926514,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "e71ab49c.bd0528",
-    "type": "comment",
-    "name": "Reporting handled in Stop_VM",
-    "info": "",
-    "comments": "",
-    "x": 575.5000152587891,
-    "y": 461.42862701416016,
-    "z": "b84e704e.6dc59",
-    "wires": []
-  },
-  {
-    "id": "e5db30a9.cda31",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 796.5000152587891,
-    "y": 346.75000762939453,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "1826c546.16091b"
-      ]
-    ]
-  },
-  {
-    "id": "1826c546.16091b",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 958.2500152587891,
-    "y": 343.7500047683716,
-    "z": "b84e704e.6dc59",
-    "wires": [
-      [
-        "2057f935.74b346"
-      ]
-    ]
-  }
-]
+[\r
+    {\r
+        "id": "2c2b9aec.e12606",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 154.515625,\r
+        "y": 99.515625,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "d0031eb8.73f71"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0031eb8.73f71",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.2",\r
+        "module": "APPC",\r
+        "version": "2.0.2",\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='APPC' version='2.0.2'>",\r
+        "outputs": 1,\r
+        "x": 322.5157470703125,\r
+        "y": 100.515625,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "c07b2dc4.c3d7f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c07b2dc4.c3d7f",\r
+        "type": "method",\r
+        "name": "Stop_VNFC",\r
+        "xml": "<method rpc='Stop_VNFC' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 250.51577758789062,\r
+        "y": 174.515625,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "51d2e830.a418d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51d2e830.a418d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 200.5157470703125,\r
+        "y": 257.51562309265137,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "d754706.d45689",\r
+                "e759d5.a6adc628",\r
+                "a6911ea1.2d434"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d754706.d45689",\r
+        "type": "for",\r
+        "name": "for_each_vm",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 404.51580810546875,\r
+        "y": 281.4045104980469,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "7b5bb52c.64d1bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b5bb52c.64d1bc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 450.5157165527344,\r
+        "y": 351.4045104980469,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "dc2615e6.591b18",\r
+                "bb2fc7a6.92a118",\r
+                "39dbd8a.89d9528"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fce7d691.df1148",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 960.2697296142578,\r
+        "y": 440.5116033554077,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "785a10c1.ec7d4",\r
+                "2356f490.2391ec",\r
+                "ddeccbf.5b7ff38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e759d5.a6adc628",\r
+        "type": "set",\r
+        "name": "init_vm_failed_count",\r
+        "xml": "<set>\n<parameter name='stopFailedVmCount' value='0' />\n",\r
+        "comments": "",\r
+        "x": 565.2934875488281,\r
+        "y": 185.40451049804688,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a6911ea1.2d434",\r
+        "type": "switchNode",\r
+        "name": "switch VNFC Stop Success",\r
+        "xml": "<switch test='`$stopFailedVmCount == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 482.515625,\r
+        "y": 635.4046478271484,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "f642949.ee8e168",\r
+                "20652ae8.7cdbf6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20652ae8.7cdbf6",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 753.2656555175781,\r
+        "y": 675.1545391082764,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "2ddea0d.965f26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f642949.ee8e168",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 757.7656860351562,\r
+        "y": 599.1545104980469,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "1db254ab.78318b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "663a85cf.95916c",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 1256.265380859375,\r
+        "y": 737.0711650848389,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8ed1de76.806e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1271.0345001220703,\r
+        "y": 620.6712341308594,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2ddea0d.965f26",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1006.515625,\r
+        "y": 675.6267070770264,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "663a85cf.95916c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1db254ab.78318b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1038.5156860351562,\r
+        "y": 598.6266784667969,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "8ed1de76.806e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "785a10c1.ec7d4",\r
+        "type": "set",\r
+        "name": "Update Error message and Counts",\r
+        "xml": "<set>\n<parameter name=\"stopFailedVmCount\" value=\"`$stopFailedVmCount + 1`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while stopping VM: ' + $vm[$i].url`\" />\n",\r
+        "comments": "",\r
+        "x": 1252.5156860351562,\r
+        "y": 385.515625,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2356f490.2391ec",\r
+        "type": "record",\r
+        "name": "Log event",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1203.7378540039062,\r
+        "y": 432.515625,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddeccbf.5b7ff38",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1185.6052856445312,\r
+        "y": 485.7029399871826,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "49923180.8058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dc2615e6.591b18",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Attempting to stop the server : ' + $vm[$i].url`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 670.9443435668945,\r
+        "y": 257.3410339355469,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb2fc7a6.92a118",\r
+        "type": "set",\r
+        "name": "set stop parameters",\r
+        "xml": "<set>\n<parameter name=\"stop-vm-url\" value=\"`$vm[$i].url`\" />\n<parameter name='stopRetryCount' value='3'/>\n",\r
+        "comments": "",\r
+        "x": 688.605354309082,\r
+        "y": 318.7696228027344,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "39dbd8a.89d9528",\r
+        "type": "call",\r
+        "name": "Stop_VM",\r
+        "xml": "<call module='APPC' rpc='Stop_VM' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 635.605354309082,\r
+        "y": 437.7696228027344,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "107e060e.8e912a",\r
+                "69953dc9.6b52b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "107e060e.8e912a",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 801.5157470703125,\r
+        "y": 438.6267395019531,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "fce7d691.df1148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49923180.8058",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1411.5156631469727,\r
+        "y": 483.51563835144043,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "75c05b4a.3558a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75c05b4a.3558a4",\r
+        "type": "execute",\r
+        "name": "Report_Error_To_DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1656.1824798583984,\r
+        "y": 479.5157594680786,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "84387e07.b179b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84387e07.b179b",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1925.4685592651367,\r
+        "y": 477.9444704055786,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7205688f.5f6df8",\r
+        "type": "comment",\r
+        "name": "Reporting handled in Stop_VM",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 572.0156402587891,\r
+        "y": 480.94425201416016,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "69953dc9.6b52b4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 793.0156402587891,\r
+        "y": 366.26563262939453,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "f524d5fa.071df8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f524d5fa.071df8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 954.7656402587891,\r
+        "y": 363.2656297683716,\r
+        "z": "be4856d9.a2a4d8",\r
+        "wires": [\r
+            [\r
+                "785a10c1.ec7d4"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 3768972..0581db1 100644 (file)
-[
-  {
-    "id": "2ad2ccc0.ed45b4",
-    "type": "method",
-    "name": "Stop_VNF",
-    "xml": "<method rpc='Stop_VNF' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 151.80625915527344,
-    "y": 143.82501220703125,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "44594fa2.fbe3f"
-      ]
-    ]
-  },
-  {
-    "id": "2bb548d1.038db8",
-    "type": "service-logic",
-    "name": "APPC 2.0.1",
-    "module": "APPC",
-    "version": "2.0.1",
-    "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='APPC' version='2.0.1'>",
-    "outputs": 1,
-    "x": 134.80625915527344,
-    "y": 94.82501220703125,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "2ad2ccc0.ed45b4"
-      ]
-    ]
-  },
-  {
-    "id": "4082b484.03120c",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 126.80625915527344,
-    "y": 44.82501220703125,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "2bb548d1.038db8"
-      ]
-    ]
-  },
-  {
-    "id": "83e59925.56b318",
-    "type": "execute",
-    "name": "execute_getVNF_Hierarchy",
-    "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 322.80625915527344,
-    "y": 279.82501220703125,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "8ac1338f.645fc",
-        "ff4ad31d.954dd"
-      ]
-    ]
-  },
-  {
-    "id": "8ac1338f.645fc",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 558.0919799804688,
-    "y": 276.6821460723877,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "42e4db07.e3a004"
-      ]
-    ]
-  },
-  {
-    "id": "b224c8e0.aa4aa8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>\n",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1383.6636505126953,
-    "y": 271.39640855789185,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "2e7cae15.9739c2",
-        "5a7bd217.41064c"
-      ]
-    ]
-  },
-  {
-    "id": "2e7cae15.9739c2",
-    "type": "for",
-    "name": "for_each_VNFC",
-    "xml": "<for index=\"i\" start=\"0\" end=\"`$vnf.vnfcCount`\" >",
-    "comments": "",
-    "outputs": 1,
-    "x": 1576.3779830932617,
-    "y": 281.2535433769226,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "66e4ace7.4d9064"
-      ]
-    ]
-  },
-  {
-    "id": "66e4ace7.4d9064",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>\n",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1688.3779602050781,
-    "y": 214.53926372528076,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "a282aae0.bfc518"
-      ]
-    ]
-  },
-  {
-    "id": "a282aae0.bfc518",
-    "type": "execute",
-    "name": "execute_UpdateAA&I",
-    "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnf.vnfc[$i].name' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Stopping\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1797.0922775268555,
-    "y": 281.2535524368286,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "ec4c8d57.0618d",
-        "7d2185c7.30c2ac"
-      ]
-    ]
-  },
-  {
-    "id": "ec4c8d57.0618d",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2060.234848022461,
-    "y": 282.3964385986328,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "ab283aed.271ac8"
-      ]
-    ]
-  },
-  {
-    "id": "5a7bd217.41064c",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n",
-    "comments": "",
-    "x": 1570.0922012329102,
-    "y": 338.5391764640808,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "ff4ad31d.954dd",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 567.0919570922852,
-    "y": 55.110724449157715,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "6c94868d.aae958"
-      ]
-    ]
-  },
-  {
-    "id": "6fe91ea6.db8d6",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 924.3776931762695,
-    "y": 103.39643800258636,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "8d10ba17.c1d1d8",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3507.806266784668,
-    "y": 393.39647102355957,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "72c01457.77e3ec"
-      ]
-    ]
-  },
-  {
-    "id": "e6d70e75.2a057",
-    "type": "execute",
-    "name": "execute_update_AA&I",
-    "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnf.vnfc[$i].name' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Stopped\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4344.520042419434,
-    "y": 941.9679336547852,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "d0d63af9.b80d38",
-        "d148c424.424878"
-      ]
-    ]
-  },
-  {
-    "id": "d0d63af9.b80d38",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4537.9484786987305,
-    "y": 1047.1108417510986,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "650db065.a724f"
-      ]
-    ]
-  },
-  {
-    "id": "3f25ae8f.106522",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 4884.9484786987305,
-    "y": 1098.1108417510986,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "d148c424.424878",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4537.234298706055,
-    "y": 849.825098991394,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "b4468ce9.c6cf8"
-      ]
-    ]
-  },
-  {
-    "id": "7d2185c7.30c2ac",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1871.806297302246,
-    "y": 574.3964910507202,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "612720cc.fa585"
-      ]
-    ]
-  },
-  {
-    "id": "c38a3fd0.87d55",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2195.3776321411133,
-    "y": 663.253659248352,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "7dd6f598.8b1cec",
-    "type": "execute",
-    "name": "execute_Update_AA&I",
-    "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnf.vnfc[$i].name' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Error\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4870.092239379883,
-    "y": 556.5393600463867,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "18f700c0.f08b9f",
-        "7857330d.66efac"
-      ]
-    ]
-  },
-  {
-    "id": "18f700c0.f08b9f",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5141.806171417236,
-    "y": 290.8250379562378,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "b12b12c2.9eb7c"
-      ]
-    ]
-  },
-  {
-    "id": "cf5745dd.7215e8",
-    "type": "comment",
-    "name": "update VNFCs to STOPPING",
-    "info": "",
-    "comments": "",
-    "x": 1877.663719177246,
-    "y": 243.53924942016602,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "cf6aac11.4b0c6",
-    "type": "comment",
-    "name": "call south bound to STOP VMs",
-    "info": "",
-    "comments": "",
-    "x": 3334.234130859375,
-    "y": 214.25359535217285,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "11dd9c28.d271f4",
-    "type": "comment",
-    "name": "if failure from south bound then update as Error",
-    "info": "",
-    "comments": "",
-    "x": 4865.3781661987305,
-    "y": 625.9678764343262,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "d80c14d8.bd96b8",
-    "type": "comment",
-    "name": "STOPPED VNFCs in AA&I",
-    "info": "",
-    "comments": "",
-    "x": 4375.377372741699,
-    "y": 979.5393466949463,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "c68baa03.5c9d58",
-    "type": "comment",
-    "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",
-    "info": "",
-    "comments": "",
-    "x": 893.5205535888672,
-    "y": 134.68215370178223,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "7857330d.66efac",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5133.664012908936,
-    "y": 383.9679584503174,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "7d9e9e25.52a38"
-      ]
-    ]
-  },
-  {
-    "id": "8c742a38.ba05e8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3472.0920181274414,
-    "y": 64.68217468261719,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "c6bd2fa4.9a21b"
-      ]
-    ]
-  },
-  {
-    "id": "c7dcb85c.c58e98",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$vnf.vnfcCount`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1000.6636810302734,
-    "y": 274.1107292175293,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "2a4b0426.65c6ec",
-        "cb718ed3.e8db4"
-      ]
-    ]
-  },
-  {
-    "id": "2a4b0426.65c6ec",
-    "type": "other",
-    "name": "outcome_0",
-    "xml": "<outcome value='0'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1269.0920867919922,
-    "y": 54.253597259521484,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "96f75c8b.194df"
-      ]
-    ]
-  },
-  {
-    "id": "cb718ed3.e8db4",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1204.9494018554688,
-    "y": 275.96790313720703,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "b224c8e0.aa4aa8"
-      ]
-    ]
-  },
-  {
-    "id": "72c01457.77e3ec",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$STOP_STATUS`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3689.806266784668,
-    "y": 392.39647102355957,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "a2c47fe0.a0ecd",
-        "66f529cc.fe2978",
-        "241500fb.1944f"
-      ]
-    ]
-  },
-  {
-    "id": "241500fb.1944f",
-    "type": "success",
-    "name": "outcome_SUCCESS",
-    "xml": "<outcome value='SUCCESS'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3977.234817504883,
-    "y": 728.8250350952148,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "e2750964.bdc668"
-      ]
-    ]
-  },
-  {
-    "id": "a2c47fe0.a0ecd",
-    "type": "other",
-    "name": "outcome_CONTEXT_NOT_FOUND",
-    "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3992.6638946533203,
-    "y": 588.253643989563,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "393b640d.0244bc"
-      ]
-    ]
-  },
-  {
-    "id": "66f529cc.fe2978",
-    "type": "other",
-    "name": "outcome_ERROR",
-    "xml": "<outcome value='ERROR'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3889.806106567383,
-    "y": 345.82506561279297,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "cf85dfe1.af032"
-      ]
-    ]
-  },
-  {
-    "id": "309772d8.4e5b7e",
-    "type": "execute",
-    "name": "execute_STOP",
-    "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vnf.vnfc[$i].vm[$j].url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3332.092124938965,
-    "y": 281.68220233917236,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "8d10ba17.c1d1d8",
-        "8c742a38.ba05e8"
-      ]
-    ]
-  },
-  {
-    "id": "42e4db07.e3a004",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 708.3776931762695,
-    "y": 274.6822204589844,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "72046e0d.bb933",
-        "d518e578.ced098"
-      ]
-    ]
-  },
-  {
-    "id": "d518e578.ced098",
-    "type": "outcome",
-    "name": "FAILURE",
-    "xml": "<outcome value='FAILURE'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 856.5921020507812,
-    "y": 545.3964314460754,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "47090aaf.222fd4"
-      ]
-    ]
-  },
-  {
-    "id": "3ca875a6.91ca8a",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1337.1634483337402,
-    "y": 622.1107501983643,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "72046e0d.bb933",
-    "type": "outcome",
-    "name": "SUCCESS",
-    "xml": "<outcome value='SUCCESS'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 860.8062362670898,
-    "y": 274.9679203033447,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "c7dcb85c.c58e98"
-      ]
-    ]
-  },
-  {
-    "id": "9238af95.d5434",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1623.3780059814453,
-    "y": 108.68211364746094,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "ab283aed.271ac8",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$postResource_result`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2395.2348594665527,
-    "y": 275.25357723236084,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "6d0cbea4.1461b",
-        "1f6eff8a.e5b54",
-        "e636c1f2.8920b"
-      ]
-    ]
-  },
-  {
-    "id": "6d0cbea4.1461b",
-    "type": "outcome",
-    "name": "SUCCESS",
-    "xml": "<outcome value='SUCCESS'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2595.8065185546875,
-    "y": 280.5392837524414,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "a416e90c.481bf8"
-      ]
-    ]
-  },
-  {
-    "id": "1f6eff8a.e5b54",
-    "type": "outcome",
-    "name": "NOT_FOUND",
-    "xml": "<outcome value='NOT_FOUND'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2499.94917678833,
-    "y": 58.253623962402344,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "1205f3e9.5a7d4c"
-      ]
-    ]
-  },
-  {
-    "id": "da046d9.ba2ec9",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2890.9491271972656,
-    "y": 150.25355529785156,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "e636c1f2.8920b",
-    "type": "outcome",
-    "name": "FAILURE",
-    "xml": "<outcome value='FAILURE'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2512.520534515381,
-    "y": 566.6820755004883,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "56576d03.27cba4"
-      ]
-    ]
-  },
-  {
-    "id": "3e14031.4c784fc",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2832.377326965332,
-    "y": 662.1107234954834,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "b4468ce9.c6cf8",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$postResource_result`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4699.948547363281,
-    "y": 850.2536840438843,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "2ee7990e.1c4316",
-        "6f0b83da.d4d43c",
-        "34ee2bdc.3ca1f4"
-      ]
-    ]
-  },
-  {
-    "id": "2ee7990e.1c4316",
-    "type": "outcome",
-    "name": "SUCCESS",
-    "xml": "<outcome value='SUCCESS'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4885.663040161133,
-    "y": 848.9679288864136,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "6f0b83da.d4d43c",
-    "type": "outcome",
-    "name": "NOT_FOUND",
-    "xml": "<outcome value='NOT_FOUND'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4890.663246154785,
-    "y": 781.1107606887817,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "4e125db.cca88a4"
-      ]
-    ]
-  },
-  {
-    "id": "34ee2bdc.3ca1f4",
-    "type": "outcome",
-    "name": "FAILURE",
-    "xml": "<outcome value='FAILURE'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4873.662757873535,
-    "y": 914.9679098129272,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "d85456e7.649b38"
-      ]
-    ]
-  },
-  {
-    "id": "afa1afed.f8c2a",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 5254.0916748046875,
-    "y": 843.6821527481079,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "eba950dc.7fc52",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 5281.520454406738,
-    "y": 965.2535791397095,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "b12b12c2.9eb7c",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$postResource_result`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5268.235366821289,
-    "y": 284.68217372894287,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "d69cd997.2dd228",
-        "423e88af.767668",
-        "fa8644b9.d21d88"
-      ]
-    ]
-  },
-  {
-    "id": "d69cd997.2dd228",
-    "type": "outcome",
-    "name": "SUCCESS",
-    "xml": "<outcome value='SUCCESS'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5515.94909286499,
-    "y": 230.82503509521484,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "e7aae791.295e58"
-      ]
-    ]
-  },
-  {
-    "id": "e7aae791.295e58",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 5767.806583404541,
-    "y": 229.8250331878662,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "423e88af.767668",
-    "type": "outcome",
-    "name": "NOT_FOUND",
-    "xml": "<outcome value='NOT_FOUND'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5517.949306488037,
-    "y": 285.6821765899658,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "de0c10e.19725f"
-      ]
-    ]
-  },
-  {
-    "id": "fa8644b9.d21d88",
-    "type": "outcome",
-    "name": "FAILURE",
-    "xml": "<outcome value='FAILURE'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5510.806308746338,
-    "y": 351.2536106109619,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "1af37740.e90369"
-      ]
-    ]
-  },
-  {
-    "id": "6c94868d.aae958",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 719.0919456481934,
-    "y": 53.8250093460083,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "12e86e5e.c1b0e2",
-        "6fe91ea6.db8d6"
-      ]
-    ]
-  },
-  {
-    "id": "12e86e5e.c1b0e2",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Exception in getting VNF Hierachy\" />\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 924.2348518371582,
-    "y": 52.68215370178223,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "71efbd8d.60bce4"
-      ]
-    ]
-  },
-  {
-    "id": "71efbd8d.60bce4",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1070.9491348266602,
-    "y": 48.96786880493164,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "47090aaf.222fd4",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1125.8301696777344,
-    "y": 547.5870265960693,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "3ca875a6.91ca8a",
-        "2d0d48a.2de4bb8"
-      ]
-    ]
-  },
-  {
-    "id": "2d0d48a.2de4bb8",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in getting VNF Hierachy\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1318.7348976135254,
-    "y": 546.9679565429688,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "e59dddad.ddd8f"
-      ]
-    ]
-  },
-  {
-    "id": "e59dddad.ddd8f",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1500.0206756591797,
-    "y": 546.3965539932251,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "96f75c8b.194df",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1449.3779220581055,
-    "y": 55.682186126708984,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "9238af95.d5434",
-        "31b238ff.837628"
-      ]
-    ]
-  },
-  {
-    "id": "31b238ff.837628",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"VM Count is 0\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1632.8066139221191,
-    "y": 52.68215465545654,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "fabacb3e.76dd88"
-      ]
-    ]
-  },
-  {
-    "id": "fabacb3e.76dd88",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1806.663703918457,
-    "y": 54.39640235900879,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "612720cc.fa585",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2019.3776931762695,
-    "y": 572.9678936004639,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "94ab01a4.1db23",
-        "c38a3fd0.87d55"
-      ]
-    ]
-  },
-  {
-    "id": "94ab01a4.1db23",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Failure in updating AAI for' + $vnf.vnfc[$i].name`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2190.8065032958984,
-    "y": 569.8250732421875,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "6475da69.b758f4"
-      ]
-    ]
-  },
-  {
-    "id": "6475da69.b758f4",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2324.0919036865234,
-    "y": 569.6821899414062,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "56576d03.27cba4",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2677.091682434082,
-    "y": 564.1106910705566,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "2a4a5a93.3d21a6",
-        "3e14031.4c784fc"
-      ]
-    ]
-  },
-  {
-    "id": "2a4a5a93.3d21a6",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Exception in AAI Update for vnfc ' + $vnf.vnfc[$i].name`\" />\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2834.0919036865234,
-    "y": 564.9678344726562,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "ba47576.cfe3ea8"
-      ]
-    ]
-  },
-  {
-    "id": "ba47576.cfe3ea8",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2961.2343254089355,
-    "y": 564.6820840835571,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "1205f3e9.5a7d4c",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2688.5206718444824,
-    "y": 54.25362205505371,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "aea4cad3.f582f8",
-        "da046d9.ba2ec9"
-      ]
-    ]
-  },
-  {
-    "id": "aea4cad3.f582f8",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI : ' + $vnf.vnfc[$i].name`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2888.2349891662598,
-    "y": 53.68217754364014,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "28ad3523.91147a"
-      ]
-    ]
-  },
-  {
-    "id": "28ad3523.91147a",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3047.66349029541,
-    "y": 52.82505989074707,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "c6bd2fa4.9a21b",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 4700.663116455078,
-    "y": 66.39645004272461,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "8c1c2d57.93d6f",
-        "7dd6f598.8b1cec"
-      ]
-    ]
-  },
-  {
-    "id": "8c1c2d57.93d6f",
-    "type": "execute",
-    "name": "Report_Failure_in_Stop",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Failure in stop for:' + $vnf.vnfc[$i].vm[$j].url`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 4920.235027313232,
-    "y": 93.11075019836426,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "cf878e2b.d033f"
-      ]
-    ]
-  },
-  {
-    "id": "cf878e2b.d033f",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5104.234672546387,
-    "y": 95.11075592041016,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "393b640d.0244bc",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 4275.23503112793,
-    "y": 582.3964748382568,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "7dd6f598.8b1cec",
-        "322d698f.b46f96"
-      ]
-    ]
-  },
-  {
-    "id": "322d698f.b46f96",
-    "type": "execute",
-    "name": "Report_Context_not_found",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Context not found:' + $vnf.vnfc[$i].vm[$j].url`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 4484.377815246582,
-    "y": 327.39648818969727,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "10827cd0.8ad493"
-      ]
-    ]
-  },
-  {
-    "id": "10827cd0.8ad493",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4852.236282348633,
-    "y": 337.96788787841797,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "cf85dfe1.af032",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 4107.235305786133,
-    "y": 321.82503509521484,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "7dd6f598.8b1cec",
-        "6a2b403b.59abf"
-      ]
-    ]
-  },
-  {
-    "id": "6a2b403b.59abf",
-    "type": "execute",
-    "name": "Report_Error_occoured_while_stopping_the_server",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Error occoured while stopping the server:' + $vnf.vnfc[$i].vm[$j].url`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 4302.663665771484,
-    "y": 182.6821699142456,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "9f3cbb50.15cf18"
-      ]
-    ]
-  },
-  {
-    "id": "9f3cbb50.15cf18",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4645.235305786133,
-    "y": 159.82500457763672,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "4e125db.cca88a4",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 5087.663383483887,
-    "y": 779.5393323898315,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "cbb3c57f.95eb28",
-        "afa1afed.f8c2a"
-      ]
-    ]
-  },
-  {
-    "id": "d85456e7.649b38",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 5084.520175933838,
-    "y": 911.6821422576904,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "7a001de8.702584",
-        "eba950dc.7fc52"
-      ]
-    ]
-  },
-  {
-    "id": "650db065.a724f",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 4674.9484786987305,
-    "y": 1043.1108417510986,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "746b0185.8192d",
-        "3f25ae8f.106522"
-      ]
-    ]
-  },
-  {
-    "id": "cbb3c57f.95eb28",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI : ' + $vnf.vnfc[$i].name`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 5251.949172973633,
-    "y": 778.3964462280273,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "114932c4.f8447d"
-      ]
-    ]
-  },
-  {
-    "id": "7a001de8.702584",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Exception in AAI Update for vnfc' + $vnf.vnfc[$i].name`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 5267.8060302734375,
-    "y": 910.396402835846,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "bc6131ba.1ae98"
-      ]
-    ]
-  },
-  {
-    "id": "114932c4.f8447d",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5424.948745727539,
-    "y": 783.1107883453369,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "bc6131ba.1ae98",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5435.09188079834,
-    "y": 908.6821174621582,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "746b0185.8192d",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Failure in updating AAI for' + $vnf.vnfc[$i].name`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 4877.234405517578,
-    "y": 1038.967966079712,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "8080799.e130288"
-      ]
-    ]
-  },
-  {
-    "id": "8080799.e130288",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5034.80583190918,
-    "y": 1032.967966079712,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "1cb1e0d0.21321f",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 120.80625915527344,
-    "y": 282.7138977050781,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "83e59925.56b318"
-      ]
-    ]
-  },
-  {
-    "id": "44594fa2.fbe3f",
-    "type": "execute",
-    "name": "execute: flatAndAddToContext",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 168.80625915527344,
-    "y": 207.82500457763672,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "1cb1e0d0.21321f",
-        "3fbfed99.b50af2",
-        "3979a683.5741ca"
-      ]
-    ]
-  },
-  {
-    "id": "d81b1f69.55285",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 5429.806198120117,
-    "y": 651.8250112533569,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "7d9e9e25.52a38",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 5253.806259155273,
-    "y": 561.5392456054688,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "ac55cbef.3c59f8",
-        "d81b1f69.55285"
-      ]
-    ]
-  },
-  {
-    "id": "ac55cbef.3c59f8",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Failure in updating AAI for' + $vnf.vnfc[$i].name`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5425.235069274902,
-    "y": 558.3964157104492,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "fb774fb4.e2f59"
-      ]
-    ]
-  },
-  {
-    "id": "fb774fb4.e2f59",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5558.520469665527,
-    "y": 558.2535419464111,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "93300f92.e2643",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 6138.806259155273,
-    "y": 369.82501220703125,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "de0c10e.19725f",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 5931.378036499023,
-    "y": 289.8250732421875,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "d2b1eb53.8867c8",
-        "93300f92.e2643"
-      ]
-    ]
-  },
-  {
-    "id": "d2b1eb53.8867c8",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI : ' + $vnf.vnfc[$i].name`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 6136.092121124268,
-    "y": 273.2536344528198,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "b1ffeaa3.1d0e98"
-      ]
-    ]
-  },
-  {
-    "id": "b1ffeaa3.1d0e98",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 6295.520622253418,
-    "y": 272.39651679992676,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "aca35b5b.13df08",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 5871.806259155273,
-    "y": 543.8250122070312,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "1af37740.e90369",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 5716.520614624023,
-    "y": 445.8249797821045,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "a1f75570.727518",
-        "aca35b5b.13df08"
-      ]
-    ]
-  },
-  {
-    "id": "a1f75570.727518",
-    "type": "execute",
-    "name": "execute",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value='Exception in AAI Update for vnfc $vnf.vnfc[$i].name' />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5873.520835876465,
-    "y": 446.6821231842041,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "b886c219.8fe3f"
-      ]
-    ]
-  },
-  {
-    "id": "b886c219.8fe3f",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 6000.663257598877,
-    "y": 446.396372795105,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "9bfcb100.bea99",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 490.8062286376953,
-    "y": 486.4917526245117,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "920348a5.6809c8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 277.4729766845703,
-    "y": 440.96797943115234,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "9bfcb100.bea99",
-        "e0347aed.5c5778"
-      ]
-    ]
-  },
-  {
-    "id": "e0347aed.5c5778",
-    "type": "execute",
-    "name": "Report_Error_Flattening_Payload_Json",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 566.3776702880859,
-    "y": 368.3488998413086,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "56f4d06f.7ca03"
-      ]
-    ]
-  },
-  {
-    "id": "56f4d06f.7ca03",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 651.6634826660156,
-    "y": 439.7775068283081,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "3fbfed99.b50af2",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 101.80625915527344,
-    "y": 442.4916763305664,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "920348a5.6809c8"
-      ]
-    ]
-  },
-  {
-    "id": "3711d1.ecfd7e3",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />",
-    "comments": "",
-    "x": 472.80625915527344,
-    "y": 702.4916915893555,
-    "z": "6ca06960.9ba8c8",
-    "wires": []
-  },
-  {
-    "id": "2330453d.90136a",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 284.4729804992676,
-    "y": 663.9679756164551,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "3711d1.ecfd7e3",
-        "ae76c4ea.4835d8"
-      ]
-    ]
-  },
-  {
-    "id": "ae76c4ea.4835d8",
-    "type": "execute",
-    "name": "Report_Error_Loading_Json_Flattening_Plugin",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 573.3776741027832,
-    "y": 591.3488960266113,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "280eab37.d94a44"
-      ]
-    ]
-  },
-  {
-    "id": "280eab37.d94a44",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 658.6634864807129,
-    "y": 662.7775030136108,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "3979a683.5741ca",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 108.80625915527344,
-    "y": 662.4916763305664,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "2330453d.90136a"
-      ]
-    ]
-  },
-  {
-    "id": "e2750964.bdc668",
-    "type": "execute",
-    "name": "Report_Success_in_Stop",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'STOP event executed successfully for ' + $vnf.vnfc[$i].vm[$j].url`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3835.139602661133,
-    "y": 936.4917221069336,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "69e98882.2de298",
-        "cd83fd16.fabdc"
-      ]
-    ]
-  },
-  {
-    "id": "69e98882.2de298",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4061.1395924886074,
-    "y": 978.4916763305664,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "e6d70e75.2a057"
-      ]
-    ]
-  },
-  {
-    "id": "cd83fd16.fabdc",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4095.1395924886074,
-    "y": 870.4916763305664,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "a416e90c.481bf8",
-    "type": "for",
-    "name": "for each vm",
-    "xml": "<for index='j' start='0' end='`$vnf.vnfc[$i].vm_count`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2817.4063720703125,
-    "y": 281.8250198364258,
-    "z": "6ca06960.9ba8c8",
-    "wires": [
-      [
-        "309772d8.4e5b7e"
-      ]
-    ]
-  }
-]
+[\r
+    {\r
+        "id": "7aab8ec8.1a85f",\r
+        "type": "method",\r
+        "name": "Stop_VNF",\r
+        "xml": "<method rpc='Stop_VNF' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 195.515625,\r
+        "y": 185.99999743700027,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "d58edcec.474ed"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "133cf501.57196b",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.1",\r
+        "module": "APPC",\r
+        "version": "2.0.1",\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='APPC' version='2.0.1'>",\r
+        "outputs": 1,\r
+        "x": 178.515625,\r
+        "y": 136.99999743700027,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "7aab8ec8.1a85f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2d4b6bd.e9fe78",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 170.515625,\r
+        "y": 86.99999743700027,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "133cf501.57196b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10cb6da5.ed2af2",\r
+        "type": "execute",\r
+        "name": "execute_getVNF_Hierarchy",\r
+        "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 366.515625,\r
+        "y": 321.9999974370003,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "7bf0cd43.c20a94",\r
+                "8c6d51e7.ec851"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7bf0cd43.c20a94",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 601.8013458251953,\r
+        "y": 318.8571313023567,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "671fde45.f3ec2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1909915f.80952f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1427.3730163574219,\r
+        "y": 313.57139378786087,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "5a0435a.602a7cc",\r
+                "83dc9647.5ac8f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a0435a.602a7cc",\r
+        "type": "for",\r
+        "name": "for_each_VNFC",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$vnf.vnfcCount`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1620.0873489379883,\r
+        "y": 323.42852860689163,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "d18b1a5e.957f48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d18b1a5e.957f48",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1877.0873107910156,\r
+        "y": 316.714262008667,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "bd0d03fb.15959"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83dc9647.5ac8f8",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 1613.8015670776367,\r
+        "y": 380.71416169404984,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8c6d51e7.ec851",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 610.8013229370117,\r
+        "y": 97.28570967912674,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "fd56da4e.b1df18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ec2c553.3f136c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 968.0870590209961,\r
+        "y": 145.5714232325554,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4efddd05.063b74",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2507.515655517578,\r
+        "y": 427.5714464187622,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "d2123e8b.243b1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc56be2d.2dfe4",\r
+        "type": "comment",\r
+        "name": "call south bound to STOP VMs",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2333.943519592285,\r
+        "y": 248.4285707473755,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "20f69487.9209ac",\r
+        "type": "comment",\r
+        "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 937.2299194335938,\r
+        "y": 176.85713893175125,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7132108a.e7943",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2471.8014068603516,\r
+        "y": 98.85715007781982,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "9aa5f690.fedc98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8505dc4d.81c32",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$vnf.vnfcCount`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1044.373046875,\r
+        "y": 316.2857144474983,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "b41114b8.f84498",\r
+                "cf12e40b.22a558"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b41114b8.f84498",\r
+        "type": "other",\r
+        "name": "outcome_0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1312.8014526367188,\r
+        "y": 96.42858248949051,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "c7f79101.d0791"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf12e40b.22a558",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1248.6587677001953,\r
+        "y": 318.14288836717606,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "1909915f.80952f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2123e8b.243b1",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$STOP_STATUS`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2689.515655517578,\r
+        "y": 426.5714464187622,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "c4d051e6.94156",\r
+                "223b5853.bc7248",\r
+                "7d6bbb09.c91c74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d6bbb09.c91c74",\r
+        "type": "success",\r
+        "name": "outcome_SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2886.9440002441406,\r
+        "y": 616.0000953674316,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "9255191e.323288"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4d051e6.94156",\r
+        "type": "other",\r
+        "name": "outcome_CONTEXT_NOT_FOUND",\r
+        "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2968.3731994628906,\r
+        "y": 431.42875480651855,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "b68c9d2f.03abb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "223b5853.bc7248",\r
+        "type": "other",\r
+        "name": "outcome_ERROR",\r
+        "xml": "<outcome value='ERROR'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2859.515411376953,\r
+        "y": 261.0000686645508,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "66ab2478.b22b6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e69c98f9.81b3b8",\r
+        "type": "execute",\r
+        "name": "execute_STOP",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vnf.vnfc[$i].vm[$j].url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2331.801513671875,\r
+        "y": 315.857177734375,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "4efddd05.063b74",\r
+                "7132108a.e7943"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "671fde45.f3ec2",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$getVnfHierarchy_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 752.0870590209961,\r
+        "y": 316.8572056889534,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "529471b8.3bf56",\r
+                "ff040b01.b8a938"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff040b01.b8a938",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 900.3014678955078,\r
+        "y": 587.5714166760445,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "17528b32.a4f1e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad5dddcc.daa8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1380.8728141784668,\r
+        "y": 664.2857354283333,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "529471b8.3bf56",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.5156021118164,\r
+        "y": 317.14290553331375,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "8505dc4d.81c32"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f88b67a.05e118",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1667.0873718261719,\r
+        "y": 150.85709887742996,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fd56da4e.b1df18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 762.8013114929199,\r
+        "y": 95.99999457597733,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "c1c13249.2efe",\r
+                "5ec2c553.3f136c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c1c13249.2efe",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Exception in getting VNF Hierachy\" />\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 967.9442176818848,\r
+        "y": 94.85713893175125,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "5ed7e4d2.2e46cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ed7e4d2.2e46cc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1114.6585006713867,\r
+        "y": 91.14285403490067,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "17528b32.a4f1e5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1169.539535522461,\r
+        "y": 589.7620118260384,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "ad5dddcc.daa8",\r
+                "49093f15.60c06"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49093f15.60c06",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in getting VNF Hierachy\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1362.444263458252,\r
+        "y": 589.1429417729378,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "8ca6a430.7b40e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ca6a430.7b40e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1543.7300415039062,\r
+        "y": 588.5715392231941,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7f79101.d0791",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1493.087287902832,\r
+        "y": 97.85717135667801,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "5f88b67a.05e118",\r
+                "ad2a3769.ae6068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad2a3769.ae6068",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"VM Count is 0\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1676.5159797668457,\r
+        "y": 94.85713988542557,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "3835909f.475d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3835909f.475d",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1850.3730697631836,\r
+        "y": 96.57138758897781,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9aa5f690.fedc98",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2686.372730255127,\r
+        "y": 100.57143020629883,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "8db8853f.7fcaf8",\r
+                "d73cd2cb.16b65"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8db8853f.7fcaf8",\r
+        "type": "execute",\r
+        "name": "Report_Failure_in_Stop",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Failure in stop for:' + $vnf.vnfc[$i].vm[$j].url`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2910.9442749023438,\r
+        "y": 26.28573226928711,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "27068f74.7d0e6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27068f74.7d0e6",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3118.944034576416,\r
+        "y": 26.285741806030273,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b68c9d2f.03abb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3233.944496154785,\r
+        "y": 432.57154655456543,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "d20f4677.945158",\r
+                "b69b55c7.5f6a38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d20f4677.945158",\r
+        "type": "execute",\r
+        "name": "Report_Context_not_found",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Context not found:' + $vnf.vnfc[$i].vm[$j].url`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3470.0870819091797,\r
+        "y": 356.5715456008911,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "118aee11.46b0d2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "118aee11.46b0d2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3677.945728302002,\r
+        "y": 355.1429567337036,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "66ab2478.b22b6c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3082.944549560547,\r
+        "y": 259.00003814697266,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "da9ba70e.c2cf78",\r
+                "fa640c44.5f07e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da9ba70e.c2cf78",\r
+        "type": "execute",\r
+        "name": "Report_Error_occoured_while_stopping_the_server",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Error occoured while stopping the server:' + $vnf.vnfc[$i].vm[$j].url`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3360.3733291625977,\r
+        "y": 175.85718441009521,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "584febc5.720db4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "584febc5.720db4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3667.944507598877,\r
+        "y": 175.00001049041748,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a3bf07a.7db09",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 164.515625,\r
+        "y": 324.88888293504715,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "10cb6da5.ed2af2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d58edcec.474ed",\r
+        "type": "execute",\r
+        "name": "execute: flatAndAddToContext",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 212.515625,\r
+        "y": 249.99998980760574,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "1a3bf07a.7db09",\r
+                "6bbed6b0.76bbb8",\r
+                "8ae22b48.b34578"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "901446a0.d01b48",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 534.5155944824219,\r
+        "y": 528.6667378544807,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "97d52391.40418",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321.1823425292969,\r
+        "y": 483.14296466112137,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "901446a0.d01b48",\r
+                "2012efab.62e9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2012efab.62e9c",\r
+        "type": "execute",\r
+        "name": "Report_Error_Flattening_Payload_Json",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 610.0870361328125,\r
+        "y": 410.5238850712776,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "189854e0.fff1bb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "189854e0.fff1bb",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 695.3728485107422,\r
+        "y": 481.95249205827713,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6bbed6b0.76bbb8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 145.515625,\r
+        "y": 484.66666156053543,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "97d52391.40418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b17a5ad0.d90178",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />",\r
+        "comments": "",\r
+        "x": 516.515625,\r
+        "y": 744.6666768193245,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "de006b51.3b5e18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 328.18234634399414,\r
+        "y": 706.1429608464241,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "b17a5ad0.d90178",\r
+                "29ae5003.54045"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "29ae5003.54045",\r
+        "type": "execute",\r
+        "name": "Report_Error_Loading_Json_Flattening_Plugin",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$input.common-header.api-ver`\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 617.0870399475098,\r
+        "y": 633.5238812565804,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "85fc1a71.4ab608"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85fc1a71.4ab608",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 702.3728523254395,\r
+        "y": 704.9524882435799,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ae22b48.b34578",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 152.515625,\r
+        "y": 704.6666615605354,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "de006b51.3b5e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9255191e.323288",\r
+        "type": "execute",\r
+        "name": "Report_Success_in_Stop",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'STOP event executed successfully for ' + $vnf.vnfc[$i].vm[$j].url`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3150.848907470703,\r
+        "y": 615.6667442321777,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "532d79a5.93ece8",\r
+                "1508aca7.09b173"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "532d79a5.93ece8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3355.848846435547,\r
+        "y": 682.6666536331177,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1508aca7.09b173",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3358.848850250244,\r
+        "y": 559.6666507720947,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd0d03fb.15959",\r
+        "type": "for",\r
+        "name": "for each vm",\r
+        "xml": "<for index='j' start='0' end='`$vnf.vnfc[$i].vm_count`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2098.1159057617188,\r
+        "y": 316.00000762939453,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": [\r
+            [\r
+                "e69c98f9.81b3b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa640c44.5f07e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3242.515296936035,\r
+        "y": 335.5156714320183,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d73cd2cb.16b65",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2879.515655517578,\r
+        "y": 173.51564693450928,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b69b55c7.5f6a38",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3427.5157928466797,\r
+        "y": 489.5156707763672,\r
+        "z": "e4b8e06b.cf1db",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
index 357dcf3..8c23e8b 100644 (file)
-[
-  {
-    "id": "b25ea899.d365d8",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 174.515625,
-    "y": 391.515625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "f1895f0c.4c6ea"
-      ]
-    ]
-  },
-  {
-    "id": "f1895f0c.4c6ea",
-    "type": "service-logic",
-    "name": "APPC 2.0.2",
-    "module": "APPC",
-    "version": "2.0.2",
-    "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='APPC' version='2.0.2'>",
-    "outputs": 1,
-    "x": 350.515625,
-    "y": 391.515625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "29d8b20c.bcc73e"
-      ]
-    ]
-  },
-  {
-    "id": "29d8b20c.bcc73e",
-    "type": "method",
-    "name": "Stop_VNF",
-    "xml": "<method rpc='Stop_VNF' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 182.51568603515625,
-    "y": 473.515625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "dd256332.18b52"
-      ]
-    ]
-  },
-  {
-    "id": "3303293f.b715b6",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 734.5159301757812,
-    "y": 415.515625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "1160b666.e3e76a"
-      ]
-    ]
-  },
-  {
-    "id": "de3c0f63.e4197",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 733.515869140625,
-    "y": 363.515625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "1160b666.e3e76a"
-      ]
-    ]
-  },
-  {
-    "id": "2a306103.619fbe",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 729.5159301757812,
-    "y": 455.51563262939453,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "1160b666.e3e76a"
-      ]
-    ]
-  },
-  {
-    "id": "dd256332.18b52",
-    "type": "execute",
-    "name": "flatAndAddToContext",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 422.5157165527344,
-    "y": 472.51564025878906,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "3303293f.b715b6",
-        "de3c0f63.e4197",
-        "2a306103.619fbe",
-        "60deb41e.71e38c"
-      ]
-    ]
-  },
-  {
-    "id": "60deb41e.71e38c",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 252.51565551757812,
-    "y": 580.5156555175781,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "c02b5f84.eb026"
-      ]
-    ]
-  },
-  {
-    "id": "c02b5f84.eb026",
-    "type": "execute",
-    "name": "execute_getVnfHierarchy",
-    "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 434.182373046875,
-    "y": 580.5157165527344,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "f740cf84.95c9",
-        "7eef4ecc.dbdbd"
-      ]
-    ]
-  },
-  {
-    "id": "7eef4ecc.dbdbd",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 679.1823120117188,
-    "y": 531.5156555175781,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "314e24d1.2af52c"
-      ]
-    ]
-  },
-  {
-    "id": "f740cf84.95c9",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 404.1823425292969,
-    "y": 650.5156860351562,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "dcc95947.dc16f8"
-      ]
-    ]
-  },
-  {
-    "id": "dcc95947.dc16f8",
-    "type": "switchNode",
-    "name": "switch_getVnfHierarchy_result",
-    "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 492.18231201171875,
-    "y": 713.6268310546875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "26dec072.fac0a",
-        "c73a3ef3.82e05"
-      ]
-    ]
-  },
-  {
-    "id": "26dec072.fac0a",
-    "type": "outcome",
-    "name": "outcome_SUCCESS",
-    "xml": "<outcome value='SUCCESS'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 495.18231201171875,
-    "y": 787.6268310546875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "445c9cba.fb5d94"
-      ]
-    ]
-  },
-  {
-    "id": "c73a3ef3.82e05",
-    "type": "outcome",
-    "name": "outcome_FAILURE",
-    "xml": "<outcome value='FAILURE'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 767.182373046875,
-    "y": 639.6268310546875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "8df5db13.758428"
-      ]
-    ]
-  },
-  {
-    "id": "445c9cba.fb5d94",
-    "type": "switchNode",
-    "name": "switch_VNF_VMCount",
-    "xml": "<switch test='`$VNF.VMCount`'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 610.1823425292969,
-    "y": 853.7379150390625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "43163179.13979",
-        "a3b76bbf.32b818"
-      ]
-    ]
-  },
-  {
-    "id": "43163179.13979",
-    "type": "outcome",
-    "name": "outcome_0",
-    "xml": "<outcome value='0'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 834.1823120117188,
-    "y": 755.73779296875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "b911488a.955a38"
-      ]
-    ]
-  },
-  {
-    "id": "a3b76bbf.32b818",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 564.1823120117188,
-    "y": 916.7379150390625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "1de7ef77.6f1701"
-      ]
-    ]
-  },
-  {
-    "id": "1de7ef77.6f1701",
-    "type": "execute",
-    "name": "Get VNFC Execution Flow Data",
-    "xml": "<execute plugin='org.onap.appc.dg.common.VnfExecutionFlow' method='getVnfExecutionFlowData' >\n<parameter name=\"DependencyType\" value='RESOURCE' />\n<parameter name=\"FlowStrategy\" value='REVERSE' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 596.1823120117188,
-    "y": 969.8489990234375,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "62e8b7ae.830b88",
-        "3ccb7956.965646"
-      ]
-    ]
-  },
-  {
-    "id": "62e8b7ae.830b88",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 846.1823120117188,
-    "y": 905.8489990234375,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "bf9622b3.21e47"
-      ]
-    ]
-  },
-  {
-    "id": "1160b666.e3e76a",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 892.182487487793,
-    "y": 414.515625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6fae0bcd.781004",
-        "915b6526.fc9068"
-      ]
-    ]
-  },
-  {
-    "id": "6a4cb650.71b798",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2930.0870666503906,
-    "y": 979.8965454101562,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "b93bd4c0.a52508"
-      ]
-    ]
-  },
-  {
-    "id": "b93bd4c0.a52508",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3104.3724670410156,
-    "y": 977.3251953125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "6fae0bcd.781004",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 969.5154304504395,
-    "y": 488.0393295288086,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "314e24d1.2af52c",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 857.9600219726562,
-    "y": 531.404541015625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "cfef6dc8.945be",
-        "1c582707.184b99"
-      ]
-    ]
-  },
-  {
-    "id": "1c582707.184b99",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failed to retrieve VNF details from A&amp;AI\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1281.9598999023438,
-    "y": 537.404541015625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "d5e38f40.40fcd"
-      ]
-    ]
-  },
-  {
-    "id": "cfef6dc8.945be",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1097.9600219726562,
-    "y": 583.404541015625,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "d5e38f40.40fcd",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1496.9600219726562,
-    "y": 474.4045104980469,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "8df5db13.758428",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1010.8490600585938,
-    "y": 640.6268310546875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "8259cf4e.93836",
-        "58014ac2.8034f4"
-      ]
-    ]
-  },
-  {
-    "id": "58014ac2.8034f4",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failed to retrieve VNF details from A&amp;AI\"/>\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1276.8490600585938,
-    "y": 638.6268310546875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "848f3b70.e46888"
-      ]
-    ]
-  },
-  {
-    "id": "848f3b70.e46888",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1500.8490600585938,
-    "y": 548.6268310546875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "8259cf4e.93836",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1258.8490600585938,
-    "y": 687.6268310546875,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "b911488a.955a38",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1022.5156860351562,
-    "y": 756.7379455566406,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "10549a32.dff226",
-        "fe639385.f254b"
-      ]
-    ]
-  },
-  {
-    "id": "fe639385.f254b",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1287.5156860351562,
-    "y": 738.7379150390625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "d6ec24dc.40d138"
-      ]
-    ]
-  },
-  {
-    "id": "d6ec24dc.40d138",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1520.5156860351562,
-    "y": 646.7379150390625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "10549a32.dff226",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1252.5156860351562,
-    "y": 806.7379150390625,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "bf9622b3.21e47",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1014.515625,
-    "y": 906.9600830078125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "b19f523c.7b27f",
-        "ca1fafca.d9e25"
-      ]
-    ]
-  },
-  {
-    "id": "ca1fafca.d9e25",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1293.515625,
-    "y": 872.9600830078125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "5d09f297.44349c"
-      ]
-    ]
-  },
-  {
-    "id": "5d09f297.44349c",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1522.5156860351562,
-    "y": 733.9601135253906,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "b19f523c.7b27f",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1258.5155639648438,
-    "y": 942.9601440429688,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "741ec63e.47b658",
-    "type": "execute",
-    "name": "Resolve VNFC DG",
-    "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$i].vnfcType`' /> \n<parameter name=\"action\" value=\"Stop\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' /> \n<parameter name=\"prefix\" value=\"Stop\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1256.7380676269531,
-    "y": 1276.1823425292969,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "ce601d5.d4914e",
-        "ca1cbabc.1584a8"
-      ]
-    ]
-  },
-  {
-    "id": "1d9ddab5.667815",
-    "type": "for",
-    "name": "for_each_vnfcFlow",
-    "xml": "<for index='i' start='0' end='`$vnfcFlowCount`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 850.7379302978516,
-    "y": 1259.1824035644531,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "b0ac43b7.cee43"
-      ]
-    ]
-  },
-  {
-    "id": "504ee939.7682f8",
-    "type": "set",
-    "name": "set vnfc parameters",
-    "xml": "<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$i].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$i].vnfcType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$i].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='AAIUpdateSuccessFlag' value='false' />\n\n",
-    "comments": "",
-    "x": 1261.7376708984375,
-    "y": 1091.2935180664062,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "6688cc5b.a481f4",
-    "type": "call",
-    "name": "call VNFC DG",
-    "xml": "<call module='`$Stop.dg_module`' rpc='`$Stop.dg_name`' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1592.7378234863281,
-    "y": 1318.2936096191406,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "d62f7e05.fc757",
-        "867811c.94c21f",
-        "abe16d65.fa0ad"
-      ]
-    ]
-  },
-  {
-    "id": "1ff36a5c.3a1fa6",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 622.7380981445312,
-    "y": 1258.1824645996094,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "1d9ddab5.667815",
-        "cacb482f.c409f8",
-        "442ba77d.874db8"
-      ]
-    ]
-  },
-  {
-    "id": "ce601d5.d4914e",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1431.7375793457031,
-    "y": 1318.1824035644531,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6688cc5b.a481f4"
-      ]
-    ]
-  },
-  {
-    "id": "ca1cbabc.1584a8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1443.7377014160156,
-    "y": 1237.1824035644531,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "9a471db7.e302b"
-      ]
-    ]
-  },
-  {
-    "id": "9a471db7.e302b",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1625.7376708984375,
-    "y": 1236.1824035644531,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "2b7c2fc2.fce28",
-        "d1b96ddb.ec598"
-      ]
-    ]
-  },
-  {
-    "id": "2b7c2fc2.fce28",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Failed to retrieve VNFC DG for ' + $vnfcFlow[$i].vnfcType`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1905.7377624511719,
-    "y": 1195.1825256347656,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "7b9666da.06bef8"
-      ]
-    ]
-  },
-  {
-    "id": "867811c.94c21f",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1782.5155944824219,
-    "y": 1278.4046936035156,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "a8bdf6b0.355778"
-      ]
-    ]
-  },
-  {
-    "id": "d62f7e05.fc757",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1771.5156555175781,
-    "y": 1361.4049072265625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "d9f2c28b.c7429"
-      ]
-    ]
-  },
-  {
-    "id": "a8bdf6b0.355778",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1959.9599914550781,
-    "y": 1278.4046936035156,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "44681b66.f4c3a4",
-        "9dc3e92d.6f7f18"
-      ]
-    ]
-  },
-  {
-    "id": "44681b66.f4c3a4",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'VNFC DG not found for: ' + $vnfcFlow[$i].vnfcName`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2185.960723876953,
-    "y": 1279.4048156738281,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "5b4bdcd5.0244f4"
-      ]
-    ]
-  },
-  {
-    "id": "d9f2c28b.c7429",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1920.4045715332031,
-    "y": 1363.40478515625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6d279d37.78ccd4"
-      ]
-    ]
-  },
-  {
-    "id": "b0ac43b7.cee43",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1038.4044647216797,
-    "y": 1177.4045715332031,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "741ec63e.47b658",
-        "504ee939.7682f8",
-        "ba8e7dc8.b3d94"
-      ]
-    ]
-  },
-  {
-    "id": "ba8e7dc8.b3d94",
-    "type": "for",
-    "name": "for_each_vm",
-    "xml": "<for index='j' start='0' end='`$vmCount`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1262.515640258789,
-    "y": 1177.9601135253906,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "73299151.c13e7"
-      ]
-    ]
-  },
-  {
-    "id": "89ef910b.6f179",
-    "type": "set",
-    "name": "set VM url",
-    "xml": "<set>\n<parameter name=\"vm[$j].url\" value='`$vnfcFlow[$i].vm[$j].url`' />\n\n\n\n\n\n",
-    "comments": "",
-    "x": 1681.515640258789,
-    "y": 1174.9601135253906,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "73299151.c13e7",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1497.515640258789,
-    "y": 1175.9601135253906,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "89ef910b.6f179"
-      ]
-    ]
-  },
-  {
-    "id": "3ccb7956.965646",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 842.515625,
-    "y": 962.7378540039062,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "926dd466.d05b38"
-      ]
-    ]
-  },
-  {
-    "id": "926dd466.d05b38",
-    "type": "switchNode",
-    "name": "switch_dependencyModelFound",
-    "xml": "<switch test='`$dependencyModelFound`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 606.5157470703125,
-    "y": 1043.1823120117188,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "bcdaaae8.15d2e8",
-        "a9b756f3.902238"
-      ]
-    ]
-  },
-  {
-    "id": "bcdaaae8.15d2e8",
-    "type": "outcome",
-    "name": "outcome_false",
-    "xml": "<outcome value='false'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 955.1824340820312,
-    "y": 1014.2933959960938,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "a3432c6e.32994"
-      ]
-    ]
-  },
-  {
-    "id": "a9b756f3.902238",
-    "type": "outcome",
-    "name": "outcome_true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 568.5156860351562,
-    "y": 1148.1822814941406,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "1ff36a5c.3a1fa6"
-      ]
-    ]
-  },
-  {
-    "id": "a3432c6e.32994",
-    "type": "call",
-    "name": "call Stop VNF without Model DG",
-    "xml": "<call module='APPC' rpc='Stop_VNF' version='2.0.1' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1233.5154876708984,
-    "y": 1004.7378845214844,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "28d59860.ed9638",
-        "b6692659.08be28",
-        "85aacc05.3e737"
-      ]
-    ]
-  },
-  {
-    "id": "28d59860.ed9638",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1490.2933197021484,
-    "y": 954.8490295410156,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "ddc29a60.9b4398"
-      ]
-    ]
-  },
-  {
-    "id": "b6692659.08be28",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1493.2933197021484,
-    "y": 995.8490295410156,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "7e1f30ff.7a6f7"
-      ]
-    ]
-  },
-  {
-    "id": "ddc29a60.9b4398",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1677.7377319335938,
-    "y": 943.8490371704102,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "fabbee43.1dc99",
-        "f7377249.220f5"
-      ]
-    ]
-  },
-  {
-    "id": "f7377249.220f5",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Stop DG not found\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1895.7378845214844,
-    "y": 919.8490371704102,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "9324252c.fadd38"
-      ]
-    ]
-  },
-  {
-    "id": "fabbee43.1dc99",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1905.7378845214844,
-    "y": 974.8490982055664,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "7e1f30ff.7a6f7",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1730.182357788086,
-    "y": 990.8491516113281,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "85aacc05.3e737",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1502.2933654785156,
-    "y": 1035.8489990234375,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "8d846ad5.9a88c8"
-      ]
-    ]
-  },
-  {
-    "id": "8d846ad5.9a88c8",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n\n",
-    "comments": "",
-    "x": 1736.2933197021484,
-    "y": 1034.8490295410156,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "442ba77d.874db8",
-    "type": "set",
-    "name": "init failed VNFC count",
-    "xml": "<set>\n<parameter name='stopFailedVNFCCount' value='0' />\n",
-    "comments": "",
-    "x": 892.6267242431641,
-    "y": 1101.1824035644531,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "cacb482f.c409f8",
-    "type": "switchNode",
-    "name": "switch_server_restart_success",
-    "xml": "<switch test='`$stopFailedVNFCCount == 0`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 895.8489379882812,
-    "y": 1446.1825866699219,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "11544b2a.bebbb5",
-        "9af5b3b0.6ce16"
-      ]
-    ]
-  },
-  {
-    "id": "11544b2a.bebbb5",
-    "type": "outcomeFalse",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1126.0988464355469,
-    "y": 1408.9324645996094,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "7d480213.47e71c"
-      ]
-    ]
-  },
-  {
-    "id": "9af5b3b0.6ce16",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1123.5989379882812,
-    "y": 1467.9324645996094,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "744fa6c6.b167d8"
-      ]
-    ]
-  },
-  {
-    "id": "7d480213.47e71c",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1302.8488464355469,
-    "y": 1409.4046325683594,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "9bb8d081.6d716"
-      ]
-    ]
-  },
-  {
-    "id": "9bb8d081.6d716",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1545.367691040039,
-    "y": 1409.4493408203125,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "744fa6c6.b167d8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1303.8489379882812,
-    "y": 1468.4046325683594,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "306bf572.a2195a"
-      ]
-    ]
-  },
-  {
-    "id": "306bf572.a2195a",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n",
-    "comments": "",
-    "x": 1540.5986938476562,
-    "y": 1468.8492126464844,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "89bf85ab.857028",
-    "type": "set",
-    "name": "update failed VNFC count",
-    "xml": "<set>\n<parameter name=\"stopFailedVNFCCount\" value=\"`$stopFailedVNFCCount + 1`\" />\n",
-    "comments": "",
-    "x": 2546.6261291503906,
-    "y": 1402.0712890625,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "abe16d65.fa0ad",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1785.5156555175781,
-    "y": 1320.4049072265625,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "915b6526.fc9068",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1266.5155639648438,
-    "y": 391.18228912353516,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "88963945.2b6798"
-      ]
-    ]
-  },
-  {
-    "id": "88963945.2b6798",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1476.5155639648438,
-    "y": 387.18228912353516,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "9324252c.fadd38",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2103.515594482422,
-    "y": 923.1822891235352,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "7b9666da.06bef8",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2109.1819763183594,
-    "y": 1194.8490295410156,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "5b4bdcd5.0244f4",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2374.1827697753906,
-    "y": 1279.8489990234375,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "d1b96ddb.ec598",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 1875.9600524902344,
-    "y": 1234.8490295410156,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "9dc3e92d.6f7f18",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2160.960479736328,
-    "y": 1318.9600830078125,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "6d279d37.78ccd4",
-    "type": "switchNode",
-    "name": "AAIUpdateSuccessFlag ?",
-    "xml": "<switch test='`$AAIUpdateSuccessFlag == true`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2126.6263732910156,
-    "y": 1363.9600830078125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "ba58c904.507168",
-        "a925e3d2.fb1ff"
-      ]
-    ]
-  },
-  {
-    "id": "a925e3d2.fb1ff",
-    "type": "outcomeFalse",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2333.4044494628906,
-    "y": 1340.960205078125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "fda81ffe.7d7c7"
-      ]
-    ]
-  },
-  {
-    "id": "ba58c904.507168",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2332.9044494628906,
-    "y": 1401.960205078125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "89bf85ab.857028"
-      ]
-    ]
-  },
-  {
-    "id": "ae5453ba.3f87c",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'AAI update for VNFC ' + $vnfcName + '  failed. Not proceeding to the next VNFC.'`\" />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2692.6266174316406,
-    "y": 1288.9600830078125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "c93a0a4b.c48288"
-      ]
-    ]
-  },
-  {
-    "id": "c93a0a4b.c48288",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2723.8487854003906,
-    "y": 1171.404296875,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "6a4cb650.71b798"
-      ]
-    ]
-  },
-  {
-    "id": "c5c2ca6e.d26dc8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n",
-    "comments": "",
-    "x": 2684.6263732910156,
-    "y": 1339.515380859375,
-    "z": "25788422.0cd1fc",
-    "wires": []
-  },
-  {
-    "id": "fda81ffe.7d7c7",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2478.6266174316406,
-    "y": 1339.9600830078125,
-    "z": "25788422.0cd1fc",
-    "wires": [
-      [
-        "ae5453ba.3f87c",
-        "c5c2ca6e.d26dc8"
-      ]
-    ]
-  }
-]
+[\r
+    {\r
+        "id": "4586add3.72b8e4",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 147.66665649414062,\r
+        "y": 116.99999809265137,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "7d5898b3.b9ca18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d5898b3.b9ca18",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.2",\r
+        "module": "APPC",\r
+        "version": "2.0.2",\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='APPC' version='2.0.2'>",\r
+        "outputs": 1,\r
+        "x": 323.6666564941406,\r
+        "y": 116.99999809265137,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "20d1624d.4a9ede"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20d1624d.4a9ede",\r
+        "type": "method",\r
+        "name": "Stop_VNF",\r
+        "xml": "<method rpc='Stop_VNF' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 155.66671752929688,\r
+        "y": 198.99999809265137,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "78cb5a30.2d2c04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d844391f.78ca28",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 707.6669616699219,\r
+        "y": 140.99999809265137,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "c9814409.fb9758"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37ba8905.e49496",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 706.6669006347656,\r
+        "y": 88.99999809265137,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "c9814409.fb9758"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98ba4a73.15f9b8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 702.6669616699219,\r
+        "y": 181.0000057220459,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "c9814409.fb9758"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78cb5a30.2d2c04",\r
+        "type": "execute",\r
+        "name": "flatAndAddToContext",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 395.666748046875,\r
+        "y": 198.00001335144043,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "d844391f.78ca28",\r
+                "37ba8905.e49496",\r
+                "98ba4a73.15f9b8",\r
+                "3c40d4c6.d5aeac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c40d4c6.d5aeac",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 225.66668701171875,\r
+        "y": 306.0000286102295,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "bf8e0710.af29d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf8e0710.af29d8",\r
+        "type": "execute",\r
+        "name": "execute_getVnfHierarchy",\r
+        "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 407.3334045410156,\r
+        "y": 306.00008964538574,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "2e6691e0.dfcebe",\r
+                "1e453ec7.081121"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e453ec7.081121",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 652.3333435058594,\r
+        "y": 257.0000286102295,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "e4110085.49b6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e6691e0.dfcebe",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 377.3333740234375,\r
+        "y": 376.0000591278076,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "9d0146ea.f51af8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d0146ea.f51af8",\r
+        "type": "switchNode",\r
+        "name": "switch_getVnfHierarchy_result",\r
+        "xml": "<switch test='`$getVnfHierarchy_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 465.3333435058594,\r
+        "y": 439.11120414733887,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "6f8a5202.a1cefc",\r
+                "be5279d0.2f4128"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f8a5202.a1cefc",\r
+        "type": "outcome",\r
+        "name": "outcome_SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 468.3333435058594,\r
+        "y": 513.1112041473389,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "3596dfbd.c9e1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be5279d0.2f4128",\r
+        "type": "outcome",\r
+        "name": "outcome_FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 740.3334045410156,\r
+        "y": 365.11120414733887,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "b98f2210.d922e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3596dfbd.c9e1",\r
+        "type": "switchNode",\r
+        "name": "switch_VNF_VMCount",\r
+        "xml": "<switch test='`$VNF.VMCount`'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 583.3333740234375,\r
+        "y": 579.2222881317139,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ddce16c4.f368e8",\r
+                "6899ea89.94a984"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddce16c4.f368e8",\r
+        "type": "outcome",\r
+        "name": "outcome_0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 807.3333435058594,\r
+        "y": 481.22216606140137,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "cc2a0266.6bb72"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6899ea89.94a984",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 537.3333435058594,\r
+        "y": 642.2222881317139,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "a37439b3.82fd88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a37439b3.82fd88",\r
+        "type": "execute",\r
+        "name": "Get VNFC Execution Flow Data",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.VnfExecutionFlow' method='getVnfExecutionFlowData' >\n<parameter name=\"DependencyType\" value='RESOURCE' />\n<parameter name=\"FlowStrategy\" value='REVERSE' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 569.3333435058594,\r
+        "y": 695.3333721160889,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "231659d2.5f54e6",\r
+                "843b3b69.3e4b58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "231659d2.5f54e6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 819.3333435058594,\r
+        "y": 631.3333721160889,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "d808d134.67813"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c9814409.fb9758",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 865.3335189819336,\r
+        "y": 139.99999809265137,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "5955da0d.4a6ce4",\r
+                "7cbdcb18.b9e1b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ccca564b.0565a8",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3056.238136291504,\r
+        "y": 1008.3809490203857,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "388eaa6a.5e3386"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "388eaa6a.5e3386",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3296.5236206054688,\r
+        "y": 1006.8095712661743,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5955da0d.4a6ce4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 942.6664619445801,\r
+        "y": 213.52370262145996,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e4110085.49b6c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 831.1110534667969,\r
+        "y": 256.88891410827637,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "912353f9.d003c",\r
+                "7c4d73a3.e99a3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c4d73a3.e99a3c",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failed to retrieve VNF details from A&amp;AI\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1255.1109313964844,\r
+        "y": 262.88891410827637,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "2d93b41d.ff6e5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "912353f9.d003c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1071.1110534667969,\r
+        "y": 308.88891410827637,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2d93b41d.ff6e5c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1470.1110534667969,\r
+        "y": 199.88888359069824,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b98f2210.d922e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 984.0000915527344,\r
+        "y": 366.11120414733887,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "8201ca81.8d7f18",\r
+                "3bef4d5d.970862"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3bef4d5d.970862",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failed to retrieve VNF details from A&amp;AI\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1250.0000915527344,\r
+        "y": 364.11120414733887,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "7b1cfaf6.d327e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b1cfaf6.d327e4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1474.0000915527344,\r
+        "y": 274.11120414733887,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8201ca81.8d7f18",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1232.0000915527344,\r
+        "y": 413.11120414733887,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc2a0266.6bb72",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 995.6667175292969,\r
+        "y": 482.222318649292,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "add4f3d3.65a9",\r
+                "27236690.84a33a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27236690.84a33a",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1260.6667175292969,\r
+        "y": 464.22228813171387,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "3fd2e01d.3411a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3fd2e01d.3411a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1493.6667175292969,\r
+        "y": 372.22228813171387,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "add4f3d3.65a9",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1225.6667175292969,\r
+        "y": 532.2222881317139,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d808d134.67813",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 987.6666564941406,\r
+        "y": 632.4444561004639,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "7000e454.172a3c",\r
+                "990fc0df.d6773"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "990fc0df.d6773",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1266.6666564941406,\r
+        "y": 598.4444561004639,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "8e3d26c1.bf47f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e3d26c1.bf47f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1495.6667175292969,\r
+        "y": 459.444486618042,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7000e454.172a3c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1231.6665954589844,\r
+        "y": 668.4445171356201,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b8aa3889.7209c8",\r
+        "type": "execute",\r
+        "name": "Resolve VNFC DG",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$i].vnfcType`' /> \n<parameter name=\"action\" value=\"Stop\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' /> \n<parameter name=\"prefix\" value=\"Stop\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1229.8890991210938,\r
+        "y": 1001.6667156219482,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "78ffac58.5bbb44",\r
+                "6393e48d.ec989c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e6da284.981f9",\r
+        "type": "for",\r
+        "name": "for_each_vnfcFlow",\r
+        "xml": "<for index='i' start='0' end='`$vnfcFlowCount`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 823.8889617919922,\r
+        "y": 984.6667766571045,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "70f4968b.a82928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce32f050.265b7",\r
+        "type": "set",\r
+        "name": "set vnfc parameters",\r
+        "xml": "<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$i].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$i].vnfcType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$i].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='AAIUpdateSuccessFlag' value='false' />\n\n",\r
+        "comments": "",\r
+        "x": 1234.8887023925781,\r
+        "y": 816.7778911590576,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "887b627d.c97a8",\r
+        "type": "call",\r
+        "name": "call VNFC DG",\r
+        "xml": "<call module='`$Stop.dg_module`' rpc='`$Stop.dg_name`' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1565.8888549804688,\r
+        "y": 1043.777982711792,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "6533192e.879128",\r
+                "58906d35.181134",\r
+                "442b432d.240c7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbbe11be.d981a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 595.8891296386719,\r
+        "y": 983.6668376922607,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "8e6da284.981f9",\r
+                "15e2db11.9c2565",\r
+                "a3a56435.1499b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78ffac58.5bbb44",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1404.8886108398438,\r
+        "y": 1043.6667766571045,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "887b627d.c97a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6393e48d.ec989c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1416.8887329101562,\r
+        "y": 962.6667766571045,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "a908427a.f6794"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a908427a.f6794",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1598.8887023925781,\r
+        "y": 961.6667766571045,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "8a33d68e.ec1d38",\r
+                "dfe19af0.82cae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a33d68e.ec1d38",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Failed to retrieve VNFC DG for ' + $vnfcFlow[$i].vnfcType`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1878.8887939453125,\r
+        "y": 920.666898727417,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "b660ac91.d5c89"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58906d35.181134",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1755.6666259765625,\r
+        "y": 1003.889066696167,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "189a360d.9b1b7a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6533192e.879128",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1744.6666870117188,\r
+        "y": 1086.8892803192139,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "c1ac2b61.ebcd48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "189a360d.9b1b7a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1933.1110229492188,\r
+        "y": 1003.889066696167,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "8e652c3a.e5c4b",\r
+                "cc1a4643.f06768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e652c3a.e5c4b",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'VNFC DG not found for: ' + $vnfcFlow[$i].vnfcName`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2159.1117553710938,\r
+        "y": 1004.8891887664795,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "329eb5e7.704f5a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c1ac2b61.ebcd48",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1864.555778503418,\r
+        "y": 1146.8891859054565,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "4f71e379.3c6aec",\r
+                "ce52794e.01e988",\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70f4968b.a82928",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1011.5554962158203,\r
+        "y": 902.8889446258545,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "b8aa3889.7209c8",\r
+                "ce32f050.265b7",\r
+                "dd46ca2e.b2ed28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd46ca2e.b2ed28",\r
+        "type": "for",\r
+        "name": "for_each_vm",\r
+        "xml": "<for index='j' start='0' end='`$vmCount`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1235.6666717529297,\r
+        "y": 903.444486618042,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "1683b9e4.841dd6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e368d2ea.e45a5",\r
+        "type": "set",\r
+        "name": "set VM url",\r
+        "xml": "<set>\n<parameter name=\"vm[$j].url\" value='`$vnfcFlow[$i].vm[$j].url`' />\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "x": 1654.6666717529297,\r
+        "y": 900.444486618042,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1683b9e4.841dd6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1470.6666717529297,\r
+        "y": 901.444486618042,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "e368d2ea.e45a5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "843b3b69.3e4b58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 815.6666564941406,\r
+        "y": 688.2222270965576,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "86888bb3.7f43d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86888bb3.7f43d8",\r
+        "type": "switchNode",\r
+        "name": "switch_dependencyModelFound",\r
+        "xml": "<switch test='`$dependencyModelFound`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 579.6667785644531,\r
+        "y": 768.6666851043701,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "b8dad876.1ba5e8",\r
+                "65f96c78.705ce4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8dad876.1ba5e8",\r
+        "type": "outcome",\r
+        "name": "outcome_false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 928.3334655761719,\r
+        "y": 739.7777690887451,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "6aa48c84.8869e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65f96c78.705ce4",\r
+        "type": "outcome",\r
+        "name": "outcome_true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 541.6667175292969,\r
+        "y": 873.666654586792,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "cbbe11be.d981a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6aa48c84.8869e4",\r
+        "type": "call",\r
+        "name": "call Stop VNF without Model DG",\r
+        "xml": "<call module='APPC' rpc='Stop_VNF' version='2.0.1' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1206.666519165039,\r
+        "y": 730.2222576141357,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "e399aa39.d4ed78",\r
+                "820cfe48.755dc",\r
+                "5ed7c0f.a206a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e399aa39.d4ed78",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1463.444351196289,\r
+        "y": 680.333402633667,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "aaebcdd9.9731c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "820cfe48.755dc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1466.444351196289,\r
+        "y": 721.333402633667,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "482420ae.93334"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aaebcdd9.9731c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1650.8887634277344,\r
+        "y": 669.3334102630615,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "4bcf49ab.6d9658",\r
+                "1b04e855.6d0158"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b04e855.6d0158",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Stop DG not found\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1868.888916015625,\r
+        "y": 645.3334102630615,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "9ccb600d.3735f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4bcf49ab.6d9658",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1878.888916015625,\r
+        "y": 700.3334712982178,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "482420ae.93334",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1703.3333892822266,\r
+        "y": 716.3335247039795,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5ed7c0f.a206a4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1475.4443969726562,\r
+        "y": 761.3333721160889,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "15648934.830567"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15648934.830567",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n\n",\r
+        "comments": "",\r
+        "x": 1709.444351196289,\r
+        "y": 760.333402633667,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a3a56435.1499b8",\r
+        "type": "set",\r
+        "name": "init failed VNFC count",\r
+        "xml": "<set>\n<parameter name='stopFailedVNFCCount' value='0' />\n",\r
+        "comments": "",\r
+        "x": 865.7777557373047,\r
+        "y": 826.6667766571045,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "15e2db11.9c2565",\r
+        "type": "switchNode",\r
+        "name": "switch_server_restart_success",\r
+        "xml": "<switch test='`$stopFailedVNFCCount == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 868.9999694824219,\r
+        "y": 1171.6669597625732,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "7f31de58.8d30f",\r
+                "20361085.667b9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f31de58.8d30f",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1099.2498779296875,\r
+        "y": 1134.4168376922607,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ecef896a.6dc048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20361085.667b9",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1096.7499694824219,\r
+        "y": 1193.4168376922607,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "8035937a.e0a66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ecef896a.6dc048",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1275.9998779296875,\r
+        "y": 1134.8890056610107,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "294dfebc.038382"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "294dfebc.038382",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1518.5187225341797,\r
+        "y": 1134.9337139129639,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8035937a.e0a66",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1276.9999694824219,\r
+        "y": 1193.8890056610107,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "1bb10a80.dfce06"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bb10a80.dfce06",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 1513.7497253417969,\r
+        "y": 1194.3335857391357,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4f71e379.3c6aec",\r
+        "type": "set",\r
+        "name": "update failed VNFC count",\r
+        "xml": "<set>\n<parameter name=\"stopFailedVNFCCount\" value=\"`$stopFailedVNFCCount + 1`\" />\n",\r
+        "comments": "",\r
+        "x": 2078.7774658203125,\r
+        "y": 1079.5556888580322,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "442b432d.240c7c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1758.6666870117188,\r
+        "y": 1045.8892803192139,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7cbdcb18.b9e1b4",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1239.6665954589844,\r
+        "y": 116.66666221618652,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "55f619c7.8d89d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "55f619c7.8d89d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1449.6665954589844,\r
+        "y": 112.66666221618652,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ccb600d.3735f",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2076.6666259765625,\r
+        "y": 648.6666622161865,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b660ac91.d5c89",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2082.3330078125,\r
+        "y": 920.333402633667,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "329eb5e7.704f5a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2347.3338012695312,\r
+        "y": 1005.3333721160889,\r
+        "z": "ceba7166.8262d",\r
+        "wires": [\r
+            [\r
+                "ccca564b.0565a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfe19af0.82cae8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1849.111083984375,\r
+        "y": 960.333402633667,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc1a4643.f06768",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2134.1115112304688,\r
+        "y": 1044.4444561004639,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ce52794e.01e988",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2030.7777938842773,\r
+        "y": 1204.9997863769531,\r
+        "z": "ceba7166.8262d",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
index ffa01e6..fea2e5c 100644 (file)
@@ -1 +1,127 @@
-[{"id":"e300eb8d.e228b8","type":"dgstart","name":"DGSTART","outputs":1,"x":146,"y":152,"z":"8266ef6c.2a723","wires":[["78eca58a.cc28fc"]]},{"id":"78eca58a.cc28fc","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","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='APPC' version='2.0.0'>","outputs":1,"x":150,"y":242,"z":"8266ef6c.2a723","wires":[["89a3ba51.457e08"]]},{"id":"89a3ba51.457e08","type":"method","name":"FIREWALL_Configure","xml":"<method rpc='FIREWALL_Configure' mode='sync'>\n","comments":"","outputs":1,"x":171,"y":328,"z":"8266ef6c.2a723","wires":[["203050e6.0500a"]]},{"id":"f056109.d3d72f","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"output.status.dgerror.code\" value=\"503\" />\n","comments":"","outputs":1,"x":627,"y":325,"z":"8266ef6c.2a723","wires":[["bb728ed6.12c5","a6f6f578.370da8"]]},{"id":"203050e6.0500a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":426,"y":329,"z":"8266ef6c.2a723","wires":[["f056109.d3d72f"]]},{"id":"bb728ed6.12c5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":815,"y":335,"z":"8266ef6c.2a723","wires":[["e13eb078.a647"]]},{"id":"e13eb078.a647","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":1001,"y":332,"z":"8266ef6c.2a723","wires":[]},{"id":"a6f6f578.370da8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":773,"y":398,"z":"8266ef6c.2a723","wires":[["e13eb078.a647"]]}]
+[\r
+    {\r
+        "id": "e300eb8d.e228b8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 146,\r
+        "y": 152,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": [\r
+            [\r
+                "78eca58a.cc28fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78eca58a.cc28fc",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 150,\r
+        "y": 242,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": [\r
+            [\r
+                "89a3ba51.457e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89a3ba51.457e08",\r
+        "type": "method",\r
+        "name": "FIREWALL_Configure",\r
+        "xml": "<method rpc='FIREWALL_Configure' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 171,\r
+        "y": 328,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": [\r
+            [\r
+                "203050e6.0500a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f056109.d3d72f",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"output.status.dgerror.code\" value=\"503\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 627,\r
+        "y": 325,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": [\r
+            [\r
+                "bb728ed6.12c5",\r
+                "a6f6f578.370da8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "203050e6.0500a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 426,\r
+        "y": 329,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": [\r
+            [\r
+                "f056109.d3d72f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb728ed6.12c5",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 815,\r
+        "y": 335,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": [\r
+            [\r
+                "e13eb078.a647"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e13eb078.a647",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n\n",\r
+        "comments": "",\r
+        "x": 1001,\r
+        "y": 332,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a6f6f578.370da8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 773,\r
+        "y": 398,\r
+        "z": "8266ef6c.2a723",\r
+        "wires": [\r
+            [\r
+                "e13eb078.a647"\r
+            ]\r
+        ]\r
+    }\r
+]\r
index 6e9925b..3e16338 100644 (file)
-[{
-  "id": "81a02ecc.e61b6",
-  "type": "dgstart",
-  "name": "DGSTART",
-  "outputs": 1,
-  "x": 119.66666412353516,
-  "y": 84.08333426713943,
-  "z": "f16b4873.701568",
-  "wires": [["98597336.3c647"]]
-},
-  {
-    "id": "98597336.3c647",
-    "type": "service-logic",
-    "name": "APPC 2.0.0",
-    "module": "APPC",
-    "version": "2.0.0",
-    "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='APPC' version='2.0.0'>",
-    "outputs": 1,
-    "x": 299.66666412353516,
-    "y": 84.08333426713943,
-    "z": "f16b4873.701568",
-    "wires": [["3dddb84a.a123f8"]]
-  },
-  {
-    "id": "3dddb84a.a123f8",
-    "type": "method",
-    "name": "Generic_Audit",
-    "xml": "<method rpc='Generic_Audit' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 478.66666412353516,
-    "y": 84.08333426713943,
-    "z": "f16b4873.701568",
-    "wires": [["d043d660.7cbce8"]]
-  },
-  {
-    "id": "7490fc55.b23eb4",
-    "type": "get-resource",
-    "name": "Retrieve current config details",
-    "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"SELECT service_description, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address , content FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\" pfx=\"currnt-config[]\">",
-    "comments": "",
-    "outputs": 1,
-    "x": 458.08617401123047,
-    "y": 480.8665657043457,
-    "z": "f16b4873.701568",
-    "wires": [["dceb4c56.95345",
-      "a55ef9f.1845d08",
-      "7c43698a.2b9eb8"]]
-  },
-  {
-    "id": "7c43698a.2b9eb8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 733.3759384155273,
-    "y": 418.58686447143555,
-    "z": "f16b4873.701568",
-    "wires": [["90511868.d5a528"]]
-  },
-  {
-    "id": "dceb4c56.95345",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 740.3759994506836,
-    "y": 483.3646430969238,
-    "z": "f16b4873.701568",
-    "wires": [["867bd8aa.3a55e8"]]
-  },
-  {
-    "id": "a55ef9f.1845d08",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 672.5982284545898,
-    "y": 533.0313148498535,
-    "z": "f16b4873.701568",
-    "wires": [["30e459ed.1b9986"]]
-  },
-  {
-    "id": "7eaffd91.5e2494",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1195.2260360717773,
-    "y": 496.9629249572754,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "2bbc2c8c.227ae4",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "x": 1189.986717224121,
-    "y": 542.1509742736816,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "2c17d4fd.27bcac",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
-    "comments": "",
-    "x": 1180.593650817871,
-    "y": 411.1424140930176,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "d4c8b998.7b4678",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving current configuration from the repository for the vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "x": 1182.2346420288086,
-    "y": 368.0569190979004,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "90511868.d5a528",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 894.4568099975586,
-    "y": 417.4757499694824,
-    "z": "f16b4873.701568",
-    "wires": [["d4c8b998.7b4678",
-      "7eaffd91.5e2494",
-      "2bbc2c8c.227ae4",
-      "ac51bff5.352e5"]]
-  },
-  {
-    "id": "867bd8aa.3a55e8",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 905.0124130249023,
-    "y": 481.2535285949707,
-    "z": "f16b4873.701568",
-    "wires": [["2c17d4fd.27bcac",
-      "7eaffd91.5e2494",
-      "2bbc2c8c.227ae4",
-      "ac51bff5.352e5"]]
-  },
-  {
-    "id": "30e459ed.1b9986",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 302.56404876708984,
-    "y": 631.1004371643066,
-    "z": "f16b4873.701568",
-    "wires": [["b79fac1d.f13e1",
-      "925cca6f.85b738",
-      "a844b2a2.8681f",
-      "dda489b7.a7bc78"]]
-  },
-  {
-    "id": "b79fac1d.f13e1",
-    "type": "for",
-    "name": "for each current config",
-    "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 530.6324081420898,
-    "y": 631.4679908752441,
-    "z": "f16b4873.701568",
-    "wires": [["67f30b25.070c24"]]
-  },
-  {
-    "id": "eb62c9d8.e05988",
-    "type": "set",
-    "name": "Set context",
-    "xml": "<set>\n<parameter name='service-description' value=\"`$currnt-config[$i].service-description`\" />\n<parameter name='vm-name' value=\"`$currnt-config[$i].vm-name`\" />\n<parameter name='vnf-type' value=\"`$currnt-config[$i].vnf-type`\" />\n<parameter name='vnfc-type' value=\"`$currnt-config[$i].vnfc-type`\" />\n<parameter name='host-ip-address' value=\"`$currnt-config[$i].host-ip-address`\" />\n<parameter name='vnf-name' value=\"`$currnt-config[$i].vnf-name`\" />\n<parameter name='current-config' value=\"`$currnt-config[$i].content`\" />\n\n",
-    "comments": "",
-    "x": 806.4786605834961,
-    "y": 609.6987953186035,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "c66c9b28.d58e38",
-    "type": "call",
-    "name": "Call Retrieve running Config DG",
-    "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 857.4786605834961,
-    "y": 666.6988258361816,
-    "z": "f16b4873.701568",
-    "wires": [["e6375b8c.512fa8",
-      "b4636b56.55a038",
-      "67a55747.3e2588"]]
-  },
-  {
-    "id": "67f30b25.070c24",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 552.7863082885742,
-    "y": 729.6218299865723,
-    "z": "f16b4873.701568",
-    "wires": [["eb62c9d8.e05988",
-      "c66c9b28.d58e38",
-      "1a5aec1c.ab3e44",
-      "58111dc9.5f25b4",
-      "b86d049a.13a1b8"]]
-  },
-  {
-    "id": "e6375b8c.512fa8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1118.5898056030273,
-    "y": 613.6987342834473,
-    "z": "f16b4873.701568",
-    "wires": [["5a971e26.a7171"]]
-  },
-  {
-    "id": "b4636b56.55a038",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1119.0341415405273,
-    "y": 666.6988258361816,
-    "z": "f16b4873.701568",
-    "wires": [["bd38a484.bd0a98"]]
-  },
-  {
-    "id": "67a55747.3e2588",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1123.1452865600586,
-    "y": 710.8098487854004,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "5a971e26.a7171",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1268.145408630371,
-    "y": 613.6987342834473,
-    "z": "f16b4873.701568",
-    "wires": [["72158f5.d06fd7",
-      "580bd65f.53d9c8",
-      "c4fa8668.3392a8"]]
-  },
-  {
-    "id": "bd38a484.bd0a98",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1270.478660583496,
-    "y": 664.5876808166504,
-    "z": "f16b4873.701568",
-    "wires": [["c433e537.6d3cf8",
-      "72158f5.d06fd7",
-      "580bd65f.53d9c8",
-      "c4fa8668.3392a8"]]
-  },
-  {
-    "id": "c433e537.6d3cf8",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
-    "comments": "",
-    "x": 1512.7009506225586,
-    "y": 639.5876808166504,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "580bd65f.53d9c8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "x": 1534.5471725463867,
-    "y": 884.4338417053223,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "72158f5.d06fd7",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1548.5471420288086,
-    "y": 806.4338111877441,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "752bb299.feb57c",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 250.66664123535156,
-    "y": 412.99244117736816,
-    "z": "f16b4873.701568",
-    "wires": [["7490fc55.b23eb4",
-      "7c0de445.f1cc6c"]]
-  },
-  {
-    "id": "ac51bff5.352e5",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1153.3589096069336,
-    "y": 454.77563858032227,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "c4fa8668.3392a8",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1493.024314880371,
-    "y": 765.1839942932129,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "7c0de445.f1cc6c",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Retrieving current configuration details from the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 440.08553314208984,
-    "y": 414.57805252075195,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "925cca6f.85b738",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Audit action successful for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 524.6198310852051,
-    "y": 1553.2725563049316,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "a844b2a2.8681f",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n",
-    "comments": "",
-    "x": 502.4659614562988,
-    "y": 1623.2724342346191,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "a97ef4e9.131748",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1059.9563827514648,
-    "y": 923.8037452697754,
-    "z": "f16b4873.701568",
-    "wires": [["7f859626.3ecfd8"]]
-  },
-  {
-    "id": "8225d505.2c9498",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1063.9565048217773,
-    "y": 978.5815773010254,
-    "z": "f16b4873.701568",
-    "wires": [["bde3e23.e488b2"]]
-  },
-  {
-    "id": "57cfd6f7.764c38",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 926.1786422729492,
-    "y": 1035.2482738494873,
-    "z": "f16b4873.701568",
-    "wires": [["fb928b6.eef3f78"]]
-  },
-  {
-    "id": "bde3e23.e488b2",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1348.5930557250977,
-    "y": 974.4703979492188,
-    "z": "f16b4873.701568",
-    "wires": [["1d860eb4.38f4b1",
-      "e4322d3b.8d1ab",
-      "9380a644.f57908",
-      "a832eaf1.bc4ea8"]]
-  },
-  {
-    "id": "7f859626.3ecfd8",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1348.0373153686523,
-    "y": 923.692569732666,
-    "z": "f16b4873.701568",
-    "wires": [["e4322d3b.8d1ab",
-      "9380a644.f57908",
-      "a832eaf1.bc4ea8",
-      "1d860eb4.38f4b1"]]
-  },
-  {
-    "id": "1d860eb4.38f4b1",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Error comparing current and running configuration for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n<parameter name='error-code' value='500'/>",
-    "comments": "",
-    "x": 1638.1741561889648,
-    "y": 973.3591957092285,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "fb928b6.eef3f78",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$STATUS`'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1053.6667098999023,
-    "y": 1070.083408355713,
-    "z": "f16b4873.701568",
-    "wires": [["8e39a0cd.ee399",
-      "d61b176c.169178",
-      "fd1426ee.97bc68"]]
-  },
-  {
-    "id": "8e39a0cd.ee399",
-    "type": "success",
-    "name": "no match",
-    "xml": "<outcome value='FAILURE'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1209.6667098999023,
-    "y": 1071.833408355713,
-    "z": "f16b4873.701568",
-    "wires": [["328dd4e4.27801c"]]
-  },
-  {
-    "id": "328dd4e4.27801c",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1372.666790008545,
-    "y": 1085.0833568572998,
-    "z": "f16b4873.701568",
-    "wires": [["e4322d3b.8d1ab",
-      "9380a644.f57908",
-      "a832eaf1.bc4ea8",
-      "764e8614.57f5c8",
-      "5aeed919.b83438",
-      "93ba279d.5bcbb8"]]
-  },
-  {
-    "id": "77ff9a98.2bf224",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1353.6667098999023,
-    "y": 1033.5833778381348,
-    "z": "f16b4873.701568",
-    "wires": [["e4322d3b.8d1ab",
-      "9380a644.f57908",
-      "a832eaf1.bc4ea8",
-      "1d860eb4.38f4b1"]]
-  },
-  {
-    "id": "e4322d3b.8d1ab",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$Error-Message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1624.6667098999023,
-    "y": 1100.083408355713,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "9380a644.f57908",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1645.5338973999023,
-    "y": 1201.2707862854004,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "a832eaf1.bc4ea8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value=\"`$error-code`\"/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "x": 1715.2946853637695,
-    "y": 1460.458869934082,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "1a5aec1c.ab3e44",
-    "type": "execute",
-    "name": "Compare",
-    "xml": "<execute plugin='org.onap.sdnc.config.audit.node.CompareNode' method='compare' >\n<parameter name='sourceDataType' value=\"Current\" />\n<parameter name='sourceData' value=\"`$current-config`\" />\n<parameter name='targetDataType' value=\"Running\" />\n<parameter name='targetData' value=\"`$running-config.content`\" />\n<parameter name='compareDataType' value=\"`$protocol`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 769.6667098999023,
-    "y": 967.0834083557129,
-    "z": "f16b4873.701568",
-    "wires": [["a97ef4e9.131748",
-      "8225d505.2c9498",
-      "57cfd6f7.764c38"]]
-  },
-  {
-    "id": "764e8614.57f5c8",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`$Error-Message`\"/>\n<parameter name='error-code' value=\"`$Error-code`\"/>\n",
-    "comments": "",
-    "x": 1637.6666793823242,
-    "y": 1052.0833187103271,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "87b58856.047f68",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
-    "comments": "",
-    "x": 1513.1740951538086,
-    "y": 727.0833473205566,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "f549e445.f74888",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving running configuration from the repository for the vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "x": 1507.815086364746,
-    "y": 680.9978675842285,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "6cdf93fd.27cd0c",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1274.037239074707,
-    "y": 747.416690826416,
-    "z": "f16b4873.701568",
-    "wires": [["f549e445.f74888",
-      "c4fa8668.3392a8",
-      "72158f5.d06fd7",
-      "580bd65f.53d9c8",
-      "b79736f.f56eac8"]]
-  },
-  {
-    "id": "cea9c726.916838",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1281.592903137207,
-    "y": 797.1944618225098,
-    "z": "f16b4873.701568",
-    "wires": [["87b58856.047f68",
-      "c4fa8668.3392a8",
-      "72158f5.d06fd7",
-      "580bd65f.53d9c8",
-      "b79736f.f56eac8"]]
-  },
-  {
-    "id": "183d6159.f57e3f",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1127.956428527832,
-    "y": 797.3055458068848,
-    "z": "f16b4873.701568",
-    "wires": [["cea9c726.916838"]]
-  },
-  {
-    "id": "4f9c33fe.ee7c6c",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1128.9562454223633,
-    "y": 749.5278053283691,
-    "z": "f16b4873.701568",
-    "wires": [["6cdf93fd.27cd0c"]]
-  },
-  {
-    "id": "58111dc9.5f25b4",
-    "type": "get-resource",
-    "name": "Retrieve Running config details DB",
-    "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\" SELECT upload_config_id, request_id, originator_id, service_description, action, upload_date, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, pending_delete ,content FROM UPLOAD_CONFIG WHERE UPLOAD_CONFIG_ID = $runningConfig.UPLOAD-CONFIG-ID\" pfx=\"running-config\" >",
-    "comments": "",
-    "outputs": 1,
-    "x": 865.6666488647461,
-    "y": 793.8074684143066,
-    "z": "f16b4873.701568",
-    "wires": [["183d6159.f57e3f",
-      "4f9c33fe.ee7c6c",
-      "5fa98c15.aa8b74"]]
-  },
-  {
-    "id": "5fa98c15.aa8b74",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1126.6665115356445,
-    "y": 847.0833778381348,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "d61b176c.169178",
-    "type": "success",
-    "name": "match",
-    "xml": "<outcome value='SUCCESS'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1202.6667175292969,
-    "y": 1132.0834693908691,
-    "z": "f16b4873.701568",
-    "wires": [["5584c2d4.ec7c8c"]]
-  },
-  {
-    "id": "fd1426ee.97bc68",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1213.6667098999023,
-    "y": 1027.083408355713,
-    "z": "f16b4873.701568",
-    "wires": [["77ff9a98.2bf224"]]
-  },
-  {
-    "id": "b86d049a.13a1b8",
-    "type": "set",
-    "name": "Set Running Config ID",
-    "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />",
-    "comments": "",
-    "x": 845.7777938842773,
-    "y": 728.4167518615723,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "dda489b7.a7bc78",
-    "type": "execute",
-    "name": "Generate output payload",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
-    "comments": "",
-    "outputs": 1,
-    "x": 593.8887214660645,
-    "y": 1493.5281105041504,
-    "z": "f16b4873.701568",
-    "wires": [["96b89330.eeb7f",
-      "23bea1a6.82114e",
-      "dabc8dd4.4c031"]]
-  },
-  {
-    "id": "96b89330.eeb7f",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 823.888843536377,
-    "y": 1431.5280494689941,
-    "z": "f16b4873.701568",
-    "wires": [["5584053a.68313c"]]
-  },
-  {
-    "id": "23bea1a6.82114e",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 835.888843536377,
-    "y": 1494.5281105041504,
-    "z": "f16b4873.701568",
-    "wires": [["5584053a.68313c"]]
-  },
-  {
-    "id": "dabc8dd4.4c031",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 830.8887214660645,
-    "y": 1558.5280494689941,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "5584053a.68313c",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1025.555591583252,
-    "y": 1494.5280494689941,
-    "z": "f16b4873.701568",
-    "wires": [["2fc5495.ed614b6",
-      "34834985.8ba986"]]
-  },
-  {
-    "id": "34834985.8ba986",
-    "type": "execute",
-    "name": "Report error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1270.460132598877,
-    "y": 1496.9089088439941,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "2fc5495.ed614b6",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 1257.888599395752,
-    "y": 1549.0517311096191,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "5aeed919.b83438",
-    "type": "execute",
-    "name": "Generate output payload",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
-    "comments": "",
-    "outputs": 1,
-    "x": 1674.3334579467773,
-    "y": 1149.5278358459473,
-    "z": "f16b4873.701568",
-    "wires": [["2f4b01d0.23640e",
-      "fc0cdc70.37ff2",
-      "bf7d7229.c2d58"]]
-  },
-  {
-    "id": "2f4b01d0.23640e",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1893.3335494995117,
-    "y": 1115.527744293213,
-    "z": "f16b4873.701568",
-    "wires": [["db92eec9.b5f62"]]
-  },
-  {
-    "id": "fc0cdc70.37ff2",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1895.3335494995117,
-    "y": 1161.5278663635254,
-    "z": "f16b4873.701568",
-    "wires": [["db92eec9.b5f62"]]
-  },
-  {
-    "id": "bf7d7229.c2d58",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1895.3334579467773,
-    "y": 1204.5277137756348,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "db92eec9.b5f62",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2088.0002975463867,
-    "y": 1136.527744293213,
-    "z": "f16b4873.701568",
-    "wires": [["e04cb8f.eb7b748",
-      "254d3066.a4bc5"]]
-  },
-  {
-    "id": "254d3066.a4bc5",
-    "type": "execute",
-    "name": "Report error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2286.904960632324,
-    "y": 1093.908603668213,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "e04cb8f.eb7b748",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 2263.333427429199,
-    "y": 1181.051670074463,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "b79736f.f56eac8",
-    "type": "execute",
-    "name": "Generate output payload",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
-    "comments": "",
-    "outputs": 1,
-    "x": 1561.1111373901367,
-    "y": 843.416690826416,
-    "z": "f16b4873.701568",
-    "wires": [["97850b52.a31cd8",
-      "41d36ebc.ba016",
-      "e6d25885.e4e788"]]
-  },
-  {
-    "id": "97850b52.a31cd8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1805.111228942871,
-    "y": 809.4165992736816,
-    "z": "f16b4873.701568",
-    "wires": [["847cbebd.ab185"]]
-  },
-  {
-    "id": "41d36ebc.ba016",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1807.111228942871,
-    "y": 855.4167213439941,
-    "z": "f16b4873.701568",
-    "wires": [["847cbebd.ab185"]]
-  },
-  {
-    "id": "e6d25885.e4e788",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1807.1111373901367,
-    "y": 898.4165687561035,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "847cbebd.ab185",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1999.777976989746,
-    "y": 830.4165992736816,
-    "z": "f16b4873.701568",
-    "wires": [["e2703a71.5e2d08",
-      "7312ce6e.051b1"]]
-  },
-  {
-    "id": "7312ce6e.051b1",
-    "type": "execute",
-    "name": "Report error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2198.6826400756836,
-    "y": 787.7974586486816,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "e2703a71.5e2d08",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 2175.1111068725586,
-    "y": 874.9405250549316,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "5584c2d4.ec7c8c",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$Publish_Config`'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1240.1670684814453,
-    "y": 1266.083574295044,
-    "z": "f16b4873.701568",
-    "wires": [["b07cce86.c2267",
-      "54d48804.2f6488"]]
-  },
-  {
-    "id": "b07cce86.c2267",
-    "type": "outcome",
-    "name": "Outcome: y",
-    "xml": "<outcome value='y'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1414.1669692993164,
-    "y": 1246.7502841949463,
-    "z": "f16b4873.701568",
-    "wires": [["93ba279d.5bcbb8"]]
-  },
-  {
-    "id": "54d48804.2f6488",
-    "type": "outcome",
-    "name": "Outcome: Y",
-    "xml": "<outcome value='Y'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1411.0838241577148,
-    "y": 1289.833547592163,
-    "z": "f16b4873.701568",
-    "wires": [["93ba279d.5bcbb8"]]
-  },
-  {
-    "id": "93ba279d.5bcbb8",
-    "type": "execute",
-    "name": "execute CvaasDataIntoContext",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/app/bvc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc001\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1769.583999633789,
-    "y": 1298.8338718414307,
-    "z": "f16b4873.701568",
-    "wires": [["4f8601db.1cc81",
-      "d4ee7229.fae85"]]
-  },
-  {
-    "id": "4f8601db.1cc81",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2036.8341751098633,
-    "y": 1299.8340373039246,
-    "z": "f16b4873.701568",
-    "wires": [["17c3243e.6f760c"]]
-  },
-  {
-    "id": "17c3243e.6f760c",
-    "type": "record",
-    "name": "record cvass",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`$cvaas-file-name`\"/>\n<parameter name=\"record\" value=\"`$cvaas-file-content`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2219.349090576172,
-    "y": 1307.599196434021,
-    "z": "f16b4873.701568",
-    "wires": [["1befff30.f1b281",
-      "e5a0a1ba.78591"]]
-  },
-  {
-    "id": "1befff30.f1b281",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2469.364891052246,
-    "y": 1320.3642568588257,
-    "z": "f16b4873.701568",
-    "wires": [["d4049805.d34618"]]
-  },
-  {
-    "id": "e5a0a1ba.78591",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2471.3645401000977,
-    "y": 1369.364426612854,
-    "z": "f16b4873.701568",
-    "wires": [["d4049805.d34618"]]
-  },
-  {
-    "id": "d4049805.d34618",
-    "type": "execute",
-    "name": "execute CheckFileCreated",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2706.364604949951,
-    "y": 1343.3643054962158,
-    "z": "f16b4873.701568",
-    "wires": [["8587844.5a70378",
-      "13a60653.f2418a"]]
-  },
-  {
-    "id": "8587844.5a70378",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2956.850357055664,
-    "y": 1421.5993309020996,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "a89beb23.e0d968",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3162.849021911621,
-    "y": 1374.5991201400757,
-    "z": "f16b4873.701568",
-    "wires": [["6c7eaa88.024dc4",
-      "fd02487c.77b308",
-      "e5102b5c.3b53c8",
-      "45de7390.486dfc"]]
-  },
-  {
-    "id": "6c7eaa88.024dc4",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
-    "comments": "",
-    "x": 3427.404800415039,
-    "y": 1313.487928390503,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "fd02487c.77b308",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$output.status.message`\"/>",
-    "comments": "",
-    "x": 3404.251720428467,
-    "y": 1498.3346118927002,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "e5102b5c.3b53c8",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 3436.0007400512695,
-    "y": 1429.4880809783936,
-    "z": "f16b4873.701568",
-    "wires": [["89703cbf.30313"]]
-  },
-  {
-    "id": "89703cbf.30313",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3634.1327743530273,
-    "y": 1436.0382852554321,
-    "z": "f16b4873.701568",
-    "wires": [["892031d3.9e1bd"]]
-  },
-  {
-    "id": "892031d3.9e1bd",
-    "type": "execute",
-    "name": "Report error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 3835.000331878662,
-    "y": 1436.4882678985596,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "45de7390.486dfc",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 3399.500015258789,
-    "y": 1378.4880485534668,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "d4ee7229.fae85",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2056.666831970215,
-    "y": 1465.0834197998047,
-    "z": "f16b4873.701568",
-    "wires": [["86d0a871.815158"]]
-  },
-  {
-    "id": "a2c9685e.16d318",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2398.667205810547,
-    "y": 1463.083589553833,
-    "z": "f16b4873.701568",
-    "wires": [["d7d7645d.5e76c8"]]
-  },
-  {
-    "id": "d7d7645d.5e76c8",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2604.79891204834,
-    "y": 1463.6331634521484,
-    "z": "f16b4873.701568",
-    "wires": [["80effa9c.33fce8"]]
-  },
-  {
-    "id": "80effa9c.33fce8",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2812.7992248535156,
-    "y": 1464.633376121521,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "86d0a871.815158",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2208.666831970215,
-    "y": 1465.0834197998047,
-    "z": "f16b4873.701568",
-    "wires": [["a2c9685e.16d318",
-      "897e770a.605f58"]]
-  },
-  {
-    "id": "897e770a.605f58",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$output.status.message`\"/>",
-    "comments": "",
-    "x": 2371.666831970215,
-    "y": 1552.0834197998047,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "d043d660.7cbce8",
-    "type": "execute",
-    "name": "Set payload in Context",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 738.6666793823242,
-    "y": 86.75000667572021,
-    "z": "f16b4873.701568",
-    "wires": [["3c42bbb1.da71f4",
-      "d63e629f.39f9",
-      "17b5a1dd.0754de",
-      "4fad0fe1.40343"]]
-  },
-  {
-    "id": "d63e629f.39f9",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1033.666648864746,
-    "y": 20,
-    "z": "f16b4873.701568",
-    "wires": [["51284245.e89c1c"]]
-  },
-  {
-    "id": "17b5a1dd.0754de",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1034.666648864746,
-    "y": 70,
-    "z": "f16b4873.701568",
-    "wires": [["51284245.e89c1c"]]
-  },
-  {
-    "id": "4fad0fe1.40343",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1027.666648864746,
-    "y": 125.00001525878906,
-    "z": "f16b4873.701568",
-    "wires": [["51284245.e89c1c"]]
-  },
-  {
-    "id": "3c42bbb1.da71f4",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1024.6667098999023,
-    "y": 180.7500114440918,
-    "z": "f16b4873.701568",
-    "wires": [["752bb299.feb57c"]]
-  },
-  {
-    "id": "51284245.e89c1c",
-    "type": "block",
-    "name": "block",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1241.3332901000977,
-    "y": 113.00000190734863,
-    "z": "f16b4873.701568",
-    "wires": [["41523e11.c90e9",
-      "a9abc91a.956e38"]]
-  },
-  {
-    "id": "a9abc91a.956e38",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1471.666358947754,
-    "y": 64.88888740539551,
-    "z": "f16b4873.701568",
-    "wires": [["10f72f11.953841"]]
-  },
-  {
-    "id": "41523e11.c90e9",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 1438.6662368774414,
-    "y": 113.52372932434082,
-    "z": "f16b4873.701568",
-    "wires": []
-  },
-  {
-    "id": "10f72f11.953841",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1679.7613906860352,
-    "y": 64.17462348937988,
-    "z": "f16b4873.701568",
-    "wires": [["789d293f.1e9dc8"]]
-  },
-  {
-    "id": "789d293f.1e9dc8",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1881.3329238891602,
-    "y": 63.88888740539551,
-    "z": "f16b4873.701568",
-    "wires": [[]]
-  },
-  {
-    "id": "13a60653.f2418a",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3001.3334045410156,
-    "y": 1327.9999796748161,
-    "z": "f16b4873.701568",
-    "wires": [["a89beb23.e0d968"]]
-  }]
+[\r
+    {\r
+        "id": "81a02ecc.e61b6",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 119.66666412353516,\r
+        "y": 84.08333426713943,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "98597336.3c647"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98597336.3c647",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 299.66666412353516,\r
+        "y": 84.08333426713943,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "3dddb84a.a123f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3dddb84a.a123f8",\r
+        "type": "method",\r
+        "name": "Generic_Audit",\r
+        "xml": "<method rpc='Generic_Audit' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 478.66666412353516,\r
+        "y": 84.08333426713943,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "d043d660.7cbce8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7490fc55.b23eb4",\r
+        "type": "get-resource",\r
+        "name": "Retrieve current config details",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"SELECT service_description, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address , content FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\" pfx=\"currnt-config[]\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 458.08617401123047,\r
+        "y": 480.8665657043457,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "dceb4c56.95345",\r
+                "a55ef9f.1845d08",\r
+                "7c43698a.2b9eb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c43698a.2b9eb8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 733.3759384155273,\r
+        "y": 418.58686447143555,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "90511868.d5a528"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dceb4c56.95345",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 740.3759994506836,\r
+        "y": 483.3646430969238,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "867bd8aa.3a55e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a55ef9f.1845d08",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 672.5982284545898,\r
+        "y": 533.0313148498535,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "30e459ed.1b9986"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7eaffd91.5e2494",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1195.2260360717773,\r
+        "y": 496.9629249572754,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2bbc2c8c.227ae4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "x": 1189.986717224121,\r
+        "y": 542.1509742736816,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c17d4fd.27bcac",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",\r
+        "comments": "",\r
+        "x": 1180.593650817871,\r
+        "y": 411.1424140930176,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d4c8b998.7b4678",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving current configuration from the repository for the vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "x": 1182.2346420288086,\r
+        "y": 368.0569190979004,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "90511868.d5a528",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 894.4568099975586,\r
+        "y": 417.4757499694824,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "d4c8b998.7b4678",\r
+                "7eaffd91.5e2494",\r
+                "2bbc2c8c.227ae4",\r
+                "ac51bff5.352e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "867bd8aa.3a55e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 905.0124130249023,\r
+        "y": 481.2535285949707,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "2c17d4fd.27bcac",\r
+                "7eaffd91.5e2494",\r
+                "2bbc2c8c.227ae4",\r
+                "ac51bff5.352e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30e459ed.1b9986",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 302.56404876708984,\r
+        "y": 631.1004371643066,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "b79fac1d.f13e1",\r
+                "925cca6f.85b738",\r
+                "a844b2a2.8681f",\r
+                "dda489b7.a7bc78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b79fac1d.f13e1",\r
+        "type": "for",\r
+        "name": "for each current config",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 530.6324081420898,\r
+        "y": 631.4679908752441,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "67f30b25.070c24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb62c9d8.e05988",\r
+        "type": "set",\r
+        "name": "Set context",\r
+        "xml": "<set>\n<parameter name='service-description' value=\"`$currnt-config[$i].service-description`\" />\n<parameter name='vm-name' value=\"`$currnt-config[$i].vm-name`\" />\n<parameter name='vnf-type' value=\"`$currnt-config[$i].vnf-type`\" />\n<parameter name='vnfc-type' value=\"`$currnt-config[$i].vnfc-type`\" />\n<parameter name='host-ip-address' value=\"`$currnt-config[$i].host-ip-address`\" />\n<parameter name='vnf-name' value=\"`$currnt-config[$i].vnf-name`\" />\n<parameter name='current-config' value=\"`$currnt-config[$i].content`\" />\n\n",\r
+        "comments": "",\r
+        "x": 806.4786605834961,\r
+        "y": 609.6987953186035,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c66c9b28.d58e38",\r
+        "type": "call",\r
+        "name": "Call Retrieve running Config DG",\r
+        "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 857.4786605834961,\r
+        "y": 666.6988258361816,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "e6375b8c.512fa8",\r
+                "b4636b56.55a038",\r
+                "67a55747.3e2588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67f30b25.070c24",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 552.7863082885742,\r
+        "y": 729.6218299865723,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "eb62c9d8.e05988",\r
+                "c66c9b28.d58e38",\r
+                "1a5aec1c.ab3e44",\r
+                "58111dc9.5f25b4",\r
+                "b86d049a.13a1b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6375b8c.512fa8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1118.5898056030273,\r
+        "y": 613.6987342834473,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "5a971e26.a7171"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4636b56.55a038",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1119.0341415405273,\r
+        "y": 666.6988258361816,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "bd38a484.bd0a98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67a55747.3e2588",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1123.1452865600586,\r
+        "y": 710.8098487854004,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a971e26.a7171",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1268.145408630371,\r
+        "y": 613.6987342834473,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "72158f5.d06fd7",\r
+                "580bd65f.53d9c8",\r
+                "c4fa8668.3392a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd38a484.bd0a98",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1270.478660583496,\r
+        "y": 664.5876808166504,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "c433e537.6d3cf8",\r
+                "72158f5.d06fd7",\r
+                "580bd65f.53d9c8",\r
+                "c4fa8668.3392a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c433e537.6d3cf8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",\r
+        "comments": "",\r
+        "x": 1512.7009506225586,\r
+        "y": 639.5876808166504,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "580bd65f.53d9c8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "x": 1534.5471725463867,\r
+        "y": 884.4338417053223,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72158f5.d06fd7",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1548.5471420288086,\r
+        "y": 806.4338111877441,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "752bb299.feb57c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 250.66664123535156,\r
+        "y": 412.99244117736816,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "7490fc55.b23eb4",\r
+                "7c0de445.f1cc6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac51bff5.352e5",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1153.3589096069336,\r
+        "y": 454.77563858032227,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4fa8668.3392a8",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1493.024314880371,\r
+        "y": 765.1839942932129,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c0de445.f1cc6c",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Retrieving current configuration details from the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 440.08553314208984,\r
+        "y": 414.57805252075195,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "925cca6f.85b738",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Audit action successful for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 524.6198310852051,\r
+        "y": 1553.2725563049316,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a844b2a2.8681f",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 502.4659614562988,\r
+        "y": 1623.2724342346191,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a97ef4e9.131748",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1059.9563827514648,\r
+        "y": 923.8037452697754,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "7f859626.3ecfd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8225d505.2c9498",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1063.9565048217773,\r
+        "y": 978.5815773010254,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "bde3e23.e488b2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "57cfd6f7.764c38",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 926.1786422729492,\r
+        "y": 1035.2482738494873,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "fb928b6.eef3f78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bde3e23.e488b2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1348.5930557250977,\r
+        "y": 974.4703979492188,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "1d860eb4.38f4b1",\r
+                "e4322d3b.8d1ab",\r
+                "9380a644.f57908",\r
+                "a832eaf1.bc4ea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f859626.3ecfd8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1348.0373153686523,\r
+        "y": 923.692569732666,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "e4322d3b.8d1ab",\r
+                "9380a644.f57908",\r
+                "a832eaf1.bc4ea8",\r
+                "1d860eb4.38f4b1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d860eb4.38f4b1",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Error comparing current and running configuration for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n<parameter name='error-code' value='500'/>",\r
+        "comments": "",\r
+        "x": 1638.1741561889648,\r
+        "y": 973.3591957092285,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fb928b6.eef3f78",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$STATUS`'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1053.6667098999023,\r
+        "y": 1070.083408355713,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "8e39a0cd.ee399",\r
+                "d61b176c.169178",\r
+                "fd1426ee.97bc68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e39a0cd.ee399",\r
+        "type": "success",\r
+        "name": "no match",\r
+        "xml": "<outcome value='FAILURE'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1209.6667098999023,\r
+        "y": 1071.833408355713,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "328dd4e4.27801c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "328dd4e4.27801c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1372.666790008545,\r
+        "y": 1085.0833568572998,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "e4322d3b.8d1ab",\r
+                "9380a644.f57908",\r
+                "a832eaf1.bc4ea8",\r
+                "764e8614.57f5c8",\r
+                "5aeed919.b83438",\r
+                "93ba279d.5bcbb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77ff9a98.2bf224",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1353.6667098999023,\r
+        "y": 1033.5833778381348,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "e4322d3b.8d1ab",\r
+                "9380a644.f57908",\r
+                "a832eaf1.bc4ea8",\r
+                "1d860eb4.38f4b1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e4322d3b.8d1ab",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$Error-Message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1624.6667098999023,\r
+        "y": 1100.083408355713,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9380a644.f57908",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1645.5338973999023,\r
+        "y": 1201.2707862854004,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a832eaf1.bc4ea8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value=\"`$error-code`\"/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "x": 1715.2946853637695,\r
+        "y": 1460.458869934082,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1a5aec1c.ab3e44",\r
+        "type": "execute",\r
+        "name": "Compare",\r
+        "xml": "<execute plugin='onap.onap.sdnc.config.audit.node.CompareNode' method='compare' >\n<parameter name='sourceDataType' value=\"Current\" />\n<parameter name='sourceData' value=\"`$current-config`\" />\n<parameter name='targetDataType' value=\"Running\" />\n<parameter name='targetData' value=\"`$running-config.content`\" />\n<parameter name='compareDataType' value=\"`$protocol`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 769.6667098999023,\r
+        "y": 967.0834083557129,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "a97ef4e9.131748",\r
+                "8225d505.2c9498",\r
+                "57cfd6f7.764c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "764e8614.57f5c8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`$Error-Message`\"/>\n<parameter name='error-code' value=\"`$Error-code`\"/>\n",\r
+        "comments": "",\r
+        "x": 1637.6666793823242,\r
+        "y": 1052.0833187103271,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "87b58856.047f68",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",\r
+        "comments": "",\r
+        "x": 1513.1740951538086,\r
+        "y": 727.0833473205566,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f549e445.f74888",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving running configuration from the repository for the vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "x": 1507.815086364746,\r
+        "y": 680.9978675842285,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6cdf93fd.27cd0c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1274.037239074707,\r
+        "y": 747.416690826416,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "f549e445.f74888",\r
+                "c4fa8668.3392a8",\r
+                "72158f5.d06fd7",\r
+                "580bd65f.53d9c8",\r
+                "b79736f.f56eac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cea9c726.916838",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1281.592903137207,\r
+        "y": 797.1944618225098,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "87b58856.047f68",\r
+                "c4fa8668.3392a8",\r
+                "72158f5.d06fd7",\r
+                "580bd65f.53d9c8",\r
+                "b79736f.f56eac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "183d6159.f57e3f",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1127.956428527832,\r
+        "y": 797.3055458068848,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "cea9c726.916838"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f9c33fe.ee7c6c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1128.9562454223633,\r
+        "y": 749.5278053283691,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "6cdf93fd.27cd0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58111dc9.5f25b4",\r
+        "type": "get-resource",\r
+        "name": "Retrieve Running config details DB",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\" SELECT upload_config_id, request_id, originator_id, service_description, action, upload_date, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, pending_delete ,content FROM UPLOAD_CONFIG WHERE UPLOAD_CONFIG_ID = $runningConfig.UPLOAD-CONFIG-ID\" pfx=\"running-config\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 865.6666488647461,\r
+        "y": 793.8074684143066,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "183d6159.f57e3f",\r
+                "4f9c33fe.ee7c6c",\r
+                "5fa98c15.aa8b74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fa98c15.aa8b74",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1126.6665115356445,\r
+        "y": 847.0833778381348,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d61b176c.169178",\r
+        "type": "success",\r
+        "name": "match",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1202.6667175292969,\r
+        "y": 1132.0834693908691,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "5584c2d4.ec7c8c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd1426ee.97bc68",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1213.6667098999023,\r
+        "y": 1027.083408355713,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "77ff9a98.2bf224"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b86d049a.13a1b8",\r
+        "type": "set",\r
+        "name": "Set Running Config ID",\r
+        "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />",\r
+        "comments": "",\r
+        "x": 845.7777938842773,\r
+        "y": 728.4167518615723,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dda489b7.a7bc78",\r
+        "type": "execute",\r
+        "name": "Generate output payload",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.8887214660645,\r
+        "y": 1493.5281105041504,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "96b89330.eeb7f",\r
+                "23bea1a6.82114e",\r
+                "dabc8dd4.4c031"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96b89330.eeb7f",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 823.888843536377,\r
+        "y": 1431.5280494689941,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "5584053a.68313c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23bea1a6.82114e",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 835.888843536377,\r
+        "y": 1494.5281105041504,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "5584053a.68313c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dabc8dd4.4c031",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 830.8887214660645,\r
+        "y": 1558.5280494689941,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5584053a.68313c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1025.555591583252,\r
+        "y": 1494.5280494689941,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "2fc5495.ed614b6",\r
+                "34834985.8ba986"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34834985.8ba986",\r
+        "type": "execute",\r
+        "name": "Report error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1270.460132598877,\r
+        "y": 1496.9089088439941,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fc5495.ed614b6",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 1257.888599395752,\r
+        "y": 1549.0517311096191,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5aeed919.b83438",\r
+        "type": "execute",\r
+        "name": "Generate output payload",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1674.3334579467773,\r
+        "y": 1149.5278358459473,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "2f4b01d0.23640e",\r
+                "fc0cdc70.37ff2",\r
+                "bf7d7229.c2d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f4b01d0.23640e",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1893.3335494995117,\r
+        "y": 1115.527744293213,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "db92eec9.b5f62"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc0cdc70.37ff2",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1895.3335494995117,\r
+        "y": 1161.5278663635254,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "db92eec9.b5f62"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf7d7229.c2d58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1895.3334579467773,\r
+        "y": 1204.5277137756348,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "db92eec9.b5f62",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2088.0002975463867,\r
+        "y": 1136.527744293213,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "e04cb8f.eb7b748",\r
+                "254d3066.a4bc5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "254d3066.a4bc5",\r
+        "type": "execute",\r
+        "name": "Report error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2286.904960632324,\r
+        "y": 1093.908603668213,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e04cb8f.eb7b748",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 2263.333427429199,\r
+        "y": 1181.051670074463,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b79736f.f56eac8",\r
+        "type": "execute",\r
+        "name": "Generate output payload",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1561.1111373901367,\r
+        "y": 843.416690826416,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "97850b52.a31cd8",\r
+                "41d36ebc.ba016",\r
+                "e6d25885.e4e788"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97850b52.a31cd8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1805.111228942871,\r
+        "y": 809.4165992736816,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "847cbebd.ab185"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "41d36ebc.ba016",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1807.111228942871,\r
+        "y": 855.4167213439941,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "847cbebd.ab185"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6d25885.e4e788",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1807.1111373901367,\r
+        "y": 898.4165687561035,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "847cbebd.ab185",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1999.777976989746,\r
+        "y": 830.4165992736816,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "e2703a71.5e2d08",\r
+                "7312ce6e.051b1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7312ce6e.051b1",\r
+        "type": "execute",\r
+        "name": "Report error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2198.6826400756836,\r
+        "y": 787.7974586486816,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2703a71.5e2d08",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 2175.1111068725586,\r
+        "y": 874.9405250549316,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5584c2d4.ec7c8c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$Publish_Config`'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1240.1670684814453,\r
+        "y": 1266.083574295044,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "b07cce86.c2267",\r
+                "54d48804.2f6488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b07cce86.c2267",\r
+        "type": "outcome",\r
+        "name": "Outcome: y",\r
+        "xml": "<outcome value='y'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1414.1669692993164,\r
+        "y": 1246.7502841949463,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "93ba279d.5bcbb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54d48804.2f6488",\r
+        "type": "outcome",\r
+        "name": "Outcome: Y",\r
+        "xml": "<outcome value='Y'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1411.0838241577148,\r
+        "y": 1289.833547592163,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "93ba279d.5bcbb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93ba279d.5bcbb8",\r
+        "type": "execute",\r
+        "name": "execute CvaasDataIntoContext",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/app/bvc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc001\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1769.583999633789,\r
+        "y": 1298.8338718414307,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "4f8601db.1cc81",\r
+                "d4ee7229.fae85"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f8601db.1cc81",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2036.8341751098633,\r
+        "y": 1299.8340373039246,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "17c3243e.6f760c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17c3243e.6f760c",\r
+        "type": "record",\r
+        "name": "record cvass",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`$cvaas-file-name`\"/>\n<parameter name=\"record\" value=\"`$cvaas-file-content`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2219.349090576172,\r
+        "y": 1307.599196434021,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "1befff30.f1b281",\r
+                "e5a0a1ba.78591"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1befff30.f1b281",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2469.364891052246,\r
+        "y": 1320.3642568588257,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "d4049805.d34618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5a0a1ba.78591",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2471.3645401000977,\r
+        "y": 1369.364426612854,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "d4049805.d34618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4049805.d34618",\r
+        "type": "execute",\r
+        "name": "execute CheckFileCreated",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2706.364604949951,\r
+        "y": 1343.3643054962158,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "8587844.5a70378",\r
+                "13a60653.f2418a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8587844.5a70378",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2956.850357055664,\r
+        "y": 1421.5993309020996,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a89beb23.e0d968",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3162.849021911621,\r
+        "y": 1374.5991201400757,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "6c7eaa88.024dc4",\r
+                "fd02487c.77b308",\r
+                "e5102b5c.3b53c8",\r
+                "45de7390.486dfc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c7eaa88.024dc4",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",\r
+        "comments": "",\r
+        "x": 3427.404800415039,\r
+        "y": 1313.487928390503,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fd02487c.77b308",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$output.status.message`\"/>",\r
+        "comments": "",\r
+        "x": 3404.251720428467,\r
+        "y": 1498.3346118927002,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5102b5c.3b53c8",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3436.0007400512695,\r
+        "y": 1429.4880809783936,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "89703cbf.30313"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89703cbf.30313",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3634.1327743530273,\r
+        "y": 1436.0382852554321,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "892031d3.9e1bd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "892031d3.9e1bd",\r
+        "type": "execute",\r
+        "name": "Report error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3835.000331878662,\r
+        "y": 1436.4882678985596,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "45de7390.486dfc",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3399.500015258789,\r
+        "y": 1378.4880485534668,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4ee7229.fae85",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2056.666831970215,\r
+        "y": 1465.0834197998047,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "86d0a871.815158"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2c9685e.16d318",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2398.667205810547,\r
+        "y": 1463.083589553833,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "d7d7645d.5e76c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7d7645d.5e76c8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2604.79891204834,\r
+        "y": 1463.6331634521484,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "80effa9c.33fce8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80effa9c.33fce8",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2812.7992248535156,\r
+        "y": 1464.633376121521,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "86d0a871.815158",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2208.666831970215,\r
+        "y": 1465.0834197998047,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "a2c9685e.16d318",\r
+                "897e770a.605f58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "897e770a.605f58",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$output.status.message`\"/>",\r
+        "comments": "",\r
+        "x": 2371.666831970215,\r
+        "y": 1552.0834197998047,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d043d660.7cbce8",\r
+        "type": "execute",\r
+        "name": "Set payload in Context",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 738.6666793823242,\r
+        "y": 86.75000667572021,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "3c42bbb1.da71f4",\r
+                "d63e629f.39f9",\r
+                "17b5a1dd.0754de",\r
+                "4fad0fe1.40343"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d63e629f.39f9",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1033.666648864746,\r
+        "y": 20,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "51284245.e89c1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17b5a1dd.0754de",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1034.666648864746,\r
+        "y": 70,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "51284245.e89c1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4fad0fe1.40343",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1027.666648864746,\r
+        "y": 125.00001525878906,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "51284245.e89c1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c42bbb1.da71f4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1024.6667098999023,\r
+        "y": 180.7500114440918,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "752bb299.feb57c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51284245.e89c1c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1241.3332901000977,\r
+        "y": 113.00000190734863,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "41523e11.c90e9",\r
+                "a9abc91a.956e38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9abc91a.956e38",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1471.666358947754,\r
+        "y": 64.88888740539551,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "10f72f11.953841"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "41523e11.c90e9",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 1438.6662368774414,\r
+        "y": 113.52372932434082,\r
+        "z": "f16b4873.701568",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "10f72f11.953841",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1679.7613906860352,\r
+        "y": 64.17462348937988,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "789d293f.1e9dc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "789d293f.1e9dc8",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1881.3329238891602,\r
+        "y": 63.88888740539551,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "13a60653.f2418a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3001.3334045410156,\r
+        "y": 1327.9999796748161,\r
+        "z": "f16b4873.701568",\r
+        "wires": [\r
+            [\r
+                "a89beb23.e0d968"\r
+            ]\r
+        ]\r
+    }\r
+]\r
index f043b7a..ac229be 100644 (file)
@@ -1 +1,759 @@
-[{"id":"7e2fb931.5cb6a8","type":"method","name":"Generic_Stop","xml":"<method rpc='Generic_Stop' mode='sync'>\n","comments":"","outputs":1,"x":246,"y":93,"z":"a4e67f56.cb2c9","wires":[["2587b8bb.e5e958"]]},{"id":"ec3c7234.5264c","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","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='APPC' version='2.0.0'>","outputs":1,"x":327,"y":29,"z":"a4e67f56.cb2c9","wires":[["7e2fb931.5cb6a8"]]},{"id":"315a077d.12b998","type":"dgstart","name":"DGSTART","outputs":1,"x":151,"y":29,"z":"a4e67f56.cb2c9","wires":[["ec3c7234.5264c"]]},{"id":"2587b8bb.e5e958","type":"execute","name":"execute_getVNF_Hierarchy","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$org.onap.appc.vfid`\" />","comments":"","outputs":1,"x":171,"y":198,"z":"a4e67f56.cb2c9","wires":[["9dcb5f4b.e5edc","cbcbe34a.531c7"]]},{"id":"9dcb5f4b.e5edc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":142,"y":374,"z":"a4e67f56.cb2c9","wires":[["682f2d38.85dcf4"]]},{"id":"ef252110.98a58","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":459,"y":643,"z":"a4e67f56.cb2c9","wires":[["8564038a.20f11","99f8b9e.6458b48"]]},{"id":"8564038a.20f11","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":606,"y":470,"z":"a4e67f56.cb2c9","wires":[["d55f4a78.4ab358"]]},{"id":"d55f4a78.4ab358","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":748,"y":399,"z":"a4e67f56.cb2c9","wires":[["8fc22181.f2a49"]]},{"id":"8fc22181.f2a49","type":"execute","name":"execute_UpdateAA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"STOPPING\" />\n","comments":"","outputs":1,"x":901,"y":470,"z":"a4e67f56.cb2c9","wires":[["a9079be8.d4a478","9876fdec.6f37b"]]},{"id":"a9079be8.d4a478","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1007,"y":244,"z":"a4e67f56.cb2c9","wires":[["8115b889.f550c8"]]},{"id":"99f8b9e.6458b48","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":624,"y":833,"z":"a4e67f56.cb2c9","wires":[]},{"id":"cbcbe34a.531c7","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":403,"y":156,"z":"a4e67f56.cb2c9","wires":[["e1b9b789.f64058"]]},{"id":"88300794.7ebab8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":774,"y":125,"z":"a4e67f56.cb2c9","wires":[]},{"id":"16f41970.2b9937","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1436,"y":335,"z":"a4e67f56.cb2c9","wires":[["209159f2.bcb756"]]},{"id":"c8ee356c.0659d8","type":"execute","name":"execute_update_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"STOPPED\" />\n","comments":"","outputs":1,"x":1857,"y":585,"z":"a4e67f56.cb2c9","wires":[["4d7443c4.c8179c","8b55dde0.3bbb"]]},{"id":"4d7443c4.c8179c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2089,"y":733,"z":"a4e67f56.cb2c9","wires":[["f46b9146.02c08"]]},{"id":"e8c9cfc3.43aba","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2436,"y":784,"z":"a4e67f56.cb2c9","wires":[]},{"id":"8b55dde0.3bbb","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2074,"y":400,"z":"a4e67f56.cb2c9","wires":[["c7b8b650.debeb8"]]},{"id":"9876fdec.6f37b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":740,"y":596,"z":"a4e67f56.cb2c9","wires":[["ee34ffbb.23891"]]},{"id":"e0f1fadf.9c0e38","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":995,"y":762,"z":"a4e67f56.cb2c9","wires":[]},{"id":"25ea35c8.19f71a","type":"execute","name":"execute_Update_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"ERROR\" />\n","comments":"","outputs":1,"x":1920.0000305175781,"y":236,"z":"a4e67f56.cb2c9","wires":[["34ca0aa7.90eda6","a0a350ed.07716"]]},{"id":"34ca0aa7.90eda6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2120,"y":312,"z":"a4e67f56.cb2c9","wires":[["e98338be.9afa58"]]},{"id":"4b5d9174.e2d7d","type":"comment","name":"update VNFCs to STOPPING","info":"","comments":"","x":863,"y":518,"z":"a4e67f56.cb2c9","wires":[]},{"id":"fd5a214f.ebac2","type":"comment","name":"call south bound to STOP VMs","info":"","comments":"","x":1321,"y":63,"z":"a4e67f56.cb2c9","wires":[]},{"id":"69e7f6ee.f0f488","type":"comment","name":"if failure from south bound then update as Error","info":"","comments":"","x":1905,"y":69,"z":"a4e67f56.cb2c9","wires":[]},{"id":"5a8b51ce.7d4ff","type":"comment","name":"STOPPED VNFCs in AA&I","info":"","comments":"","x":2105,"y":574,"z":"a4e67f56.cb2c9","wires":[]},{"id":"6c7dacf5.ea4894","type":"comment","name":"Fetch all VMs and VNFCs from AA&I for given VNF_ID","info":"","comments":"","x":596,"y":182,"z":"a4e67f56.cb2c9","wires":[]},{"id":"84f683a0.d9fcb","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2233,"y":110,"z":"a4e67f56.cb2c9","wires":[]},{"id":"a0a350ed.07716","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2099,"y":148,"z":"a4e67f56.cb2c9","wires":[["84f683a0.d9fcb"]]},{"id":"74105ed4.70bad","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1416,"y":102,"z":"a4e67f56.cb2c9","wires":[["b8a6176c.8ff0e8"]]},{"id":"333d173e.eb68a8","type":"switchNode","name":"switch","xml":"<switch test='`$VNF.VMCount`'>\n","comments":"","outputs":1,"x":136,"y":670.0000305175781,"z":"a4e67f56.cb2c9","wires":[["f1e14e66.f97c6","ddd6b13.e25e15"]]},{"id":"f1e14e66.f97c6","type":"other","name":"outcome_0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":333,"y":552.0000305175781,"z":"a4e67f56.cb2c9","wires":[["debeaa94.ae7058"]]},{"id":"ddd6b13.e25e15","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":319,"y":683.0000305175781,"z":"a4e67f56.cb2c9","wires":[["ef252110.98a58"]]},{"id":"209159f2.bcb756","type":"switchNode","name":"switch","xml":"<switch test='`$STOP_STATUS`'>\n","comments":"","outputs":1,"x":1618,"y":334,"z":"a4e67f56.cb2c9","wires":[["727f90cf.4e78e","6bc80951.a39408","5a17e4b6.24cc2c"]]},{"id":"727f90cf.4e78e","type":"success","name":"outcome_SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1845,"y":464,"z":"a4e67f56.cb2c9","wires":[["c8ee356c.0659d8"]]},{"id":"6bc80951.a39408","type":"other","name":"outcome_SERVER_NOT_FOUND","xml":"<outcome value='SERVER_NOT_FOUND'>\n","comments":"","outputs":1,"x":1608,"y":227,"z":"a4e67f56.cb2c9","wires":[["f58c9809.cd0798"]]},{"id":"5a17e4b6.24cc2c","type":"other","name":"outcome_ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":1783,"y":324,"z":"a4e67f56.cb2c9","wires":[["22896989.a0c9c6"]]},{"id":"6a7166f0.3d8308","type":"execute","name":"execute_STOP","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[$i].URL`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n","comments":"","outputs":1,"x":1326,"y":239,"z":"a4e67f56.cb2c9","wires":[["16f41970.2b9937","74105ed4.70bad"]]},{"id":"682f2d38.85dcf4","type":"switchNode","name":"switch","xml":"<switch test='`$getVnfHierarchy_result`'>\n","comments":"","outputs":1,"x":128,"y":492.0000305175781,"z":"a4e67f56.cb2c9","wires":[["cbff0a6a.206938","bf5be080.c5c5e"]]},{"id":"bf5be080.c5c5e","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":271,"y":437,"z":"a4e67f56.cb2c9","wires":[["646e1f85.cb186"]]},{"id":"c13b792d.778058","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":483,"y":318,"z":"a4e67f56.cb2c9","wires":[]},{"id":"cbff0a6a.206938","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":129,"y":568.0000305175781,"z":"a4e67f56.cb2c9","wires":[["333d173e.eb68a8"]]},{"id":"10c91a07.a117c6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":583,"y":425,"z":"a4e67f56.cb2c9","wires":[]},{"id":"8115b889.f550c8","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1092,"y":344,"z":"a4e67f56.cb2c9","wires":[["1127dc8f.3f9963","c9595f20.2a9c8","a2f5ef46.94c16"]]},{"id":"1127dc8f.3f9963","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1209,"y":111,"z":"a4e67f56.cb2c9","wires":[["6a7166f0.3d8308"]]},{"id":"c9595f20.2a9c8","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1341,"y":427,"z":"a4e67f56.cb2c9","wires":[["f8f3a23a.eb879"]]},{"id":"8217861.f831678","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1572,"y":559,"z":"a4e67f56.cb2c9","wires":[]},{"id":"a2f5ef46.94c16","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1205,"y":514,"z":"a4e67f56.cb2c9","wires":[["e97be688.52f7b8"]]},{"id":"833e99d3.8e1fc8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1392,"y":748,"z":"a4e67f56.cb2c9","wires":[]},{"id":"c7b8b650.debeb8","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":2251,"y":519,"z":"a4e67f56.cb2c9","wires":[["b7c2ee30.1eb72","e4923dfa.c9afb","b90b071c.055b78"]]},{"id":"b7c2ee30.1eb72","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":2451,"y":422,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"e4923dfa.c9afb","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":2456,"y":527,"z":"a4e67f56.cb2c9","wires":[["801303e7.59ed6"]]},{"id":"b90b071c.055b78","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":2459,"y":638,"z":"a4e67f56.cb2c9","wires":[["cfc89854.f4d468"]]},{"id":"a69ecbbf.1d5bc8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2798,"y":531,"z":"a4e67f56.cb2c9","wires":[]},{"id":"2edb4a8d.6d3ab6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2854,"y":664,"z":"a4e67f56.cb2c9","wires":[]},{"id":"e98338be.9afa58","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":2225,"y":213,"z":"a4e67f56.cb2c9","wires":[["8822689b.0636b8","d848ce46.2a685","f77fa469.3a14b8"]]},{"id":"8822689b.0636b8","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":2437,"y":102,"z":"a4e67f56.cb2c9","wires":[["81c78045.cc4b7"]]},{"id":"81c78045.cc4b7","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2696,"y":101,"z":"a4e67f56.cb2c9","wires":[]},{"id":"d848ce46.2a685","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":2449,"y":184,"z":"a4e67f56.cb2c9","wires":[["9b1f5185.99c3d"]]},{"id":"9b1f5185.99c3d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2700,"y":185,"z":"a4e67f56.cb2c9","wires":[]},{"id":"f77fa469.3a14b8","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":2449,"y":291,"z":"a4e67f56.cb2c9","wires":[["8a3cbd67.71ce4"]]},{"id":"8a3cbd67.71ce4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2705,"y":293,"z":"a4e67f56.cb2c9","wires":[]},{"id":"e1b9b789.f64058","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":623,"y":74,"z":"a4e67f56.cb2c9","wires":[["ad90eade.1e4318","88300794.7ebab8"]]},{"id":"ad90eade.1e4318","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\" />\n<parameter name=\"output.status.message\" value=\"Exception in getting VNF Hierachy\" />\n","comments":"","outputs":1,"x":761,"y":20,"z":"a4e67f56.cb2c9","wires":[["5162c75b.63a0f8"]]},{"id":"5162c75b.63a0f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":922,"y":32,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"646e1f85.cb186","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":415,"y":253,"z":"a4e67f56.cb2c9","wires":[["c13b792d.778058","cfce6271.431d"]]},{"id":"cfce6271.431d","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Failure in getting VNF Hierachy\" />\n<parameter name=\"output.status.message\" value=\"Failure in getting VNF Hierachy\" />","comments":"","outputs":1,"x":576,"y":230,"z":"a4e67f56.cb2c9","wires":[["b23db4a.b34b848"]]},{"id":"b23db4a.b34b848","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":713,"y":218,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"debeaa94.ae7058","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":569,"y":352,"z":"a4e67f56.cb2c9","wires":[["10c91a07.a117c6","30d4ccc8.122954"]]},{"id":"30d4ccc8.122954","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"VM Count is 0\" />\n<parameter name=\"output.status.message\" value=\"VM Count is 0\" />","comments":"","outputs":1,"x":671,"y":289,"z":"a4e67f56.cb2c9","wires":[["7e7f8d2.f243e74"]]},{"id":"7e7f8d2.f243e74","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":812,"y":305,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"ee34ffbb.23891","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":819,"y":686,"z":"a4e67f56.cb2c9","wires":[["9c0e0f69.b19d1","e0f1fadf.9c0e38"]]},{"id":"9c0e0f69.b19d1","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>\n \n","comments":"","outputs":1,"x":1009,"y":630,"z":"a4e67f56.cb2c9","wires":[["46b448f9.a03378"]]},{"id":"46b448f9.a03378","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1209,"y":717,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"e97be688.52f7b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1201,"y":590,"z":"a4e67f56.cb2c9","wires":[["c7dca449.abdeb8","833e99d3.8e1fc8"]]},{"id":"c7dca449.abdeb8","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1390,"y":658,"z":"a4e67f56.cb2c9","wires":[["26eaa68f.bf82ea"]]},{"id":"26eaa68f.bf82ea","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1568,"y":652,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"f8f3a23a.eb879","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1431,"y":503,"z":"a4e67f56.cb2c9","wires":[["8b3b5e98.1be6d","8217861.f831678"]]},{"id":"8b3b5e98.1be6d","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'VNFC not found in AAI '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1585,"y":461,"z":"a4e67f56.cb2c9","wires":[["13b89cf6.a36ed3"]]},{"id":"13b89cf6.a36ed3","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1693,"y":513,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"b8a6176c.8ff0e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1446,"y":48,"z":"a4e67f56.cb2c9","wires":[["a45ba5fc.9feb68","25ea35c8.19f71a"]]},{"id":"a45ba5fc.9feb68","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Failure in stop for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in stop for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1587,"y":29,"z":"a4e67f56.cb2c9","wires":[["9bacb3e0.f2d41"]]},{"id":"9bacb3e0.f2d41","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1741,"y":31,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"f58c9809.cd0798","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1582,"y":164,"z":"a4e67f56.cb2c9","wires":[["25ea35c8.19f71a","10bd5099.1c07bf"]]},{"id":"10bd5099.1c07bf","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Stop : Server not found '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Stop : Server not found '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1706,"y":99,"z":"a4e67f56.cb2c9","wires":[["677f73ad.c6c76c"]]},{"id":"677f73ad.c6c76c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1863,"y":102,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"22896989.a0c9c6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1853.9999389648438,"y":163,"z":"a4e67f56.cb2c9","wires":[["25ea35c8.19f71a","1a1bb1b5.d95e6e"]]},{"id":"1a1bb1b5.d95e6e","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Stop : Error occoured while stopping the server '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Stop : Error occoured while stopping the server '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1954,"y":144,"z":"a4e67f56.cb2c9","wires":[["89e55d1b.8bacb"]]},{"id":"89e55d1b.8bacb","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2083,"y":109,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"801303e7.59ed6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2623,"y":514,"z":"a4e67f56.cb2c9","wires":[["6cc2dd3a.5ab1c4","a69ecbbf.1d5bc8"]]},{"id":"cfc89854.f4d468","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2627,"y":629,"z":"a4e67f56.cb2c9","wires":[["4f117e3b.87012","2edb4a8d.6d3ab6"]]},{"id":"f46b9146.02c08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2226,"y":729,"z":"a4e67f56.cb2c9","wires":[["30bc77c5.9a7ea8","e8c9cfc3.43aba"]]},{"id":"6cc2dd3a.5ab1c4","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'VNFC not found in AAI '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":2793,"y":473,"z":"a4e67f56.cb2c9","wires":[["b58381a3.ec774"]]},{"id":"4f117e3b.87012","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":2816,"y":592,"z":"a4e67f56.cb2c9","wires":[["ca332e3a.6a09e"]]},{"id":"b58381a3.ec774","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2966,"y":479,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"ca332e3a.6a09e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3049,"y":586,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"30bc77c5.9a7ea8","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":2434,"y":702,"z":"a4e67f56.cb2c9","wires":[["2a4d844.64b3b7c"]]},{"id":"2a4d844.64b3b7c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2593,"y":706,"z":"a4e67f56.cb2c9","wires":[[]]}]
+[\r
+    {\r
+        "id": "ca7dff7a.9094d",\r
+        "type": "method",\r
+        "name": "Generic_Stop",\r
+        "xml": "<method rpc='Generic_Stop' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 240.515625,\r
+        "y": 163.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "1a5a41f2.1d5d1e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4084d81.f30ab",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 321.515625,\r
+        "y": 99.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "ca7dff7a.9094d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6c533c7.a83e1",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 145.515625,\r
+        "y": 99.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "a4084d81.f30ab"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a5a41f2.1d5d1e",\r
+        "type": "execute",\r
+        "name": "execute_getVNF_Hierarchy",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$org.onap.appc.vfid`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 165.515625,\r
+        "y": 268.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "efd21b46.8816f8",\r
+                "ed27a5b5.b50f98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "efd21b46.8816f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 136.515625,\r
+        "y": 444.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "c04dc9bf.f2eb68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "877024dd.875ad8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 418.5156555175781,\r
+        "y": 812.5156593322754,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "e04acb4c.378ec8",\r
+                "c5408647.b48898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e04acb4c.378ec8",\r
+        "type": "for",\r
+        "name": "for_each_VMs",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 600.5156402587891,\r
+        "y": 751.5156717300415,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "dbb8f0fa.9e0b3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbb8f0fa.9e0b3",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 816.5157852172852,\r
+        "y": 732.5157337188721,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "6d56f0ff.3dd59"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5408647.b48898",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 618.515625,\r
+        "y": 903.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ed27a5b5.b50f98",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 397.515625,\r
+        "y": 226.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "acdb8393.ea85c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d00e5710.5de668",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 753.5156593322754,\r
+        "y": 277.51562881469727,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5db910d8.c5b43",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1167.5156936645508,\r
+        "y": 779.5156507492065,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "803e4626.09a418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1024a058.50944",\r
+        "type": "comment",\r
+        "name": "call south bound to STOP VMs",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 991.5157775878906,\r
+        "y": 642.5157160758972,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e850001b.1e176",\r
+        "type": "comment",\r
+        "name": "if failure from south bound then update as Error",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1580.5157318115234,\r
+        "y": 771.5156402587891,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7b36d153.c79a3",\r
+        "type": "comment",\r
+        "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 205.5,\r
+        "y": 321.5156307220459,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cfc7559f.a713e8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1193.5159339904785,\r
+        "y": 601.5156688690186,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "8ea909b3.9986f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0a70389.467fe",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$VNF.VMCount`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 130.515625,\r
+        "y": 740.5156555175781,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "d708b7d2.075828",\r
+                "6a96238a.4fa3fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d708b7d2.075828",\r
+        "type": "other",\r
+        "name": "outcome_0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 327.515625,\r
+        "y": 622.5156555175781,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "ae027dd.7a07f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a96238a.4fa3fc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 313.515625,\r
+        "y": 753.5156555175781,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "877024dd.875ad8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "803e4626.09a418",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$STOP_STATUS`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1320.515697479248,\r
+        "y": 817.515682220459,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "80e1612e.f1656",\r
+                "e09cd63d.1543d8",\r
+                "ca381933.f82c48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80e1612e.f1656",\r
+        "type": "success",\r
+        "name": "outcome_SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1438.5159759521484,\r
+        "y": 922.5157642364502,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e09cd63d.1543d8",\r
+        "type": "other",\r
+        "name": "outcome_SERVER_NOT_FOUND",\r
+        "xml": "<outcome value='SERVER_NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1548.5156707763672,\r
+        "y": 705.5156316757202,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "5c6438d1.7312f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca381933.f82c48",\r
+        "type": "other",\r
+        "name": "outcome_ERROR",\r
+        "xml": "<outcome value='ERROR'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1564.5162200927734,\r
+        "y": 817.5157880783081,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "f4074405.cd8f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d56f0ff.3dd59",\r
+        "type": "execute",\r
+        "name": "execute_STOP",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[$i].URL`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1014.5158386230469,\r
+        "y": 699.5156421661377,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "5db910d8.c5b43",\r
+                "cfc7559f.a713e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c04dc9bf.f2eb68",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$getVnfHierarchy_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 122.515625,\r
+        "y": 562.5156555175781,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "2ab2d7.6e453d2a",\r
+                "bec897cf.c43018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bec897cf.c43018",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 328.5156478881836,\r
+        "y": 513.5156383514404,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "9cdbbbf5.033ca8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d83304f2.66e5a8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 720.5157051086426,\r
+        "y": 543.5156841278076,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2ab2d7.6e453d2a",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 123.515625,\r
+        "y": 638.5156555175781,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "b0a70389.467fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb3e9caf.8319",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 726.5156593322754,\r
+        "y": 673.5157794952393,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "acdb8393.ea85c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 576.5156707763672,\r
+        "y": 225.51562690734863,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "9125ec23.5af1e",\r
+                "d00e5710.5de668"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9125ec23.5af1e",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\" />\n<parameter name=\"output.status.message\" value=\"Exception in getting VNF Hierachy\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 740.5156745910645,\r
+        "y": 167.515625,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "34f84fa0.3a691"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34f84fa0.3a691",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.5156478881836,\r
+        "y": 159.51562690734863,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cdbbbf5.033ca8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 540.5156402587891,\r
+        "y": 496.5156831741333,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "d83304f2.66e5a8",\r
+                "af7e9776.180f88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af7e9776.180f88",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Failure in getting VNF Hierachy\" />\n<parameter name=\"output.status.message\" value=\"Failure in getting VNF Hierachy\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 715.5156478881836,\r
+        "y": 422.5156660079956,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "681ab88c.171628"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "681ab88c.171628",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 909.5157737731934,\r
+        "y": 430.5156497955322,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae027dd.7a07f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 536.5156707763672,\r
+        "y": 625.5156555175781,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "cb3e9caf.8319",\r
+                "c474f9c9.17d698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c474f9c9.17d698",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"VM Count is 0\" />\n<parameter name=\"output.status.message\" value=\"VM Count is 0\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 704.5157661437988,\r
+        "y": 585.5157165527344,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "82640172.803ee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "82640172.803ee",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 893.5157089233398,\r
+        "y": 587.5156536102295,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ea909b3.9986f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1371.5159072875977,\r
+        "y": 596.5156952142715,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "7582f708.24e738",\r
+                "e0b313cc.a9ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7582f708.24e738",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Failure in stop for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in stop for '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1519.5158462524414,\r
+        "y": 544.5156502723694,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "67dd3d00.c106f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67dd3d00.c106f4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1701.5156707763672,\r
+        "y": 545.5156326293945,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c6438d1.7312f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1814.5158081054688,\r
+        "y": 704.5156326293945,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "33f2f58b.14107a",\r
+                "e46cf1e4.8837e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33f2f58b.14107a",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Stop : Server not found '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Stop : Server not found '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1982.5161743164062,\r
+        "y": 648.5156497955322,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "3d16d953.a6ba16"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d16d953.a6ba16",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2155.5163345336914,\r
+        "y": 644.5156421661377,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e46cf1e4.8837e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2000.5159912109375,\r
+        "y": 730.5156602859497,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e0b313cc.a9ff",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1541.0156631469727,\r
+        "y": 641.5156307220459,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f4074405.cd8f08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1815.0156784057617,\r
+        "y": 807.5156669616699,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "e70c442a.c81dd8",\r
+                "2878d96.6c81326"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e70c442a.c81dd8",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name='org.onap.appc.dg.error' value=\"`'Stop : Error while stopping '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Stop : Error while stopping '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1992.0164184570312,\r
+        "y": 776.5157022476196,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            [\r
+                "ac0f66e4.3fcbe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2878d96.6c81326",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2005.0160522460938,\r
+        "y": 850.5156841278076,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ac0f66e4.3fcbe8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2167.016181945801,\r
+        "y": 775.5156650543213,\r
+        "z": "e684c611.19f8f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 3a4c7aa..ef781c1 100644 (file)
-[{
-  "id": "9c13e82a.387b38",
-  "type": "dgstart",
-  "name": "DGSTART",
-  "outputs": 1,
-  "x": 131.66665649414062,
-  "y": 116.6666750907898,
-  "z": "214b12db.e4ae8e",
-  "wires": [["c8696732.57b668"]]
-},
-  {
-    "id": "c8696732.57b668",
-    "type": "service-logic",
-    "name": "APPC 2.0.0",
-    "module": "APPC",
-    "version": "2.0.0",
-    "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='APPC' version='2.0.0'>",
-    "outputs": 1,
-    "x": 311.6666564941406,
-    "y": 116.6666750907898,
-    "z": "214b12db.e4ae8e",
-    "wires": [["11c0a5be.fe5bfa"]]
-  },
-  {
-    "id": "11c0a5be.fe5bfa",
-    "type": "method",
-    "name": "Sync",
-    "xml": "<method rpc='Generic_Sync' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 490.6666564941406,
-    "y": 116.6666750907898,
-    "z": "214b12db.e4ae8e",
-    "wires": [["cb484414.952458"]]
-  },
-  {
-    "id": "9ec6a6d6.7a5678",
-    "type": "get-resource",
-    "name": "Retrieve current config details",
-    "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"SELECT service_description, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\" pfx=\"currnt-config[]\">",
-    "comments": "",
-    "outputs": 1,
-    "x": 519.0861930847168,
-    "y": 437.4498953819275,
-    "z": "214b12db.e4ae8e",
-    "wires": [["a4a4499.da795b8",
-      "d4b62675.cc3218",
-      "f40aff31.110c9"]]
-  },
-  {
-    "id": "f40aff31.110c9",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 771.3759498596191,
-    "y": 365.17019033432007,
-    "z": "214b12db.e4ae8e",
-    "wires": [["841d3cc6.f08c7"]]
-  },
-  {
-    "id": "a4a4499.da795b8",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 776.3759956359863,
-    "y": 436.947970867157,
-    "z": "214b12db.e4ae8e",
-    "wires": [["b9da4281.1adab"]]
-  },
-  {
-    "id": "d4b62675.cc3218",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 773.598217010498,
-    "y": 500.61465311050415,
-    "z": "214b12db.e4ae8e",
-    "wires": [["88d88ec0.cbcfa"]]
-  },
-  {
-    "id": "2a1906ba.c69e1a",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1229.2260704040527,
-    "y": 539.5462489128113,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "2195ead0.db2c66",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "x": 1207.9867248535156,
-    "y": 592.734308719635,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "9e646937.3ed6a8",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
-    "comments": "",
-    "x": 1214.5936851501465,
-    "y": 436.7257466316223,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "88cf09de.c0d5e8",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving current configuration from the repository for the vnf-id : ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "x": 1215.234661102295,
-    "y": 384.6402335166931,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "841d3cc6.f08c7",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 932.456859588623,
-    "y": 365.05907678604126,
-    "z": "214b12db.e4ae8e",
-    "wires": [["88cf09de.c0d5e8",
-      "2a1906ba.c69e1a",
-      "2195ead0.db2c66",
-      "1aa4df6e.f6da11"]]
-  },
-  {
-    "id": "b9da4281.1adab",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 940.0124244689941,
-    "y": 436.8368649482727,
-    "z": "214b12db.e4ae8e",
-    "wires": [["9e646937.3ed6a8",
-      "2a1906ba.c69e1a",
-      "2195ead0.db2c66",
-      "1aa4df6e.f6da11"]]
-  },
-  {
-    "id": "88d88ec0.cbcfa",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 409.5640525817871,
-    "y": 615.6837515830994,
-    "z": "214b12db.e4ae8e",
-    "wires": [["7732a369.eb726c",
-      "4f4a7a36.c2a284",
-      "d5cea21b.c34aa",
-      "11dcb423.01808c",
-      "6d230a1.4a08cf4",
-      "855ad0e4.d405c",
-      "59566c79.8df204",
-      "872a0177.f9c8f",
-      "aa08d8db.e07148"]]
-  },
-  {
-    "id": "7732a369.eb726c",
-    "type": "for",
-    "name": "for each current config",
-    "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 657.6324729919434,
-    "y": 616.0513052940369,
-    "z": "214b12db.e4ae8e",
-    "wires": [["842b0ba4.2b8248"]]
-  },
-  {
-    "id": "ce31ce3d.765e7",
-    "type": "set",
-    "name": "Set context",
-    "xml": "<set>\n<parameter name='service-description' value=\"`$currnt-config[$i].service-description`\" />\n<parameter name='vm-name' value=\"`$currnt-config[$i].vm-name`\" />\n<parameter name='vnf-type' value=\"`$currnt-config[$i].vnf-type`\" />\n<parameter name='vnfc-type' value=\"`$currnt-config[$i].vnfc-type`\" />\n<parameter name='host-ip-address' value=\"`$currnt-config[$i].host-ip-address`\" />\n<parameter name='vnf-name' value=\"`$currnt-config[$i].vnf-name`\" />\n",
-    "comments": "",
-    "x": 1072.4787254333496,
-    "y": 616.2821097373962,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "9fe7ebb1.f6f948",
-    "type": "call",
-    "name": "Call Retrieve running Config DG",
-    "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1104.4786949157715,
-    "y": 674.28204870224,
-    "z": "214b12db.e4ae8e",
-    "wires": [["cd269b5.a716568",
-      "4f80d854.e62828",
-      "83342c8c.51a98"]]
-  },
-  {
-    "id": "842b0ba4.2b8248",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 852.7863121032715,
-    "y": 675.205144405365,
-    "z": "214b12db.e4ae8e",
-    "wires": [["ce31ce3d.765e7",
-      "9fe7ebb1.f6f948",
-      "dd580aa1.a817c8",
-      "4c8c9a0.c6b3768"]]
-  },
-  {
-    "id": "cd269b5.a716568",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1346.5898399353027,
-    "y": 623.2819828987122,
-    "z": "214b12db.e4ae8e",
-    "wires": [["7e006a6b.da6ef4"]]
-  },
-  {
-    "id": "4f80d854.e62828",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1358.034236907959,
-    "y": 676.28204870224,
-    "z": "214b12db.e4ae8e",
-    "wires": [["6c663e2f.d966d"]]
-  },
-  {
-    "id": "83342c8c.51a98",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1368.1451988220215,
-    "y": 728.3930716514587,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "4f4a7a36.c2a284",
-    "type": "update",
-    "name": "Mark current configs as historic",
-    "xml": "<update resource='SQL' force='true' plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' key=\"UPDATE UPLOAD_CONFIG SET config_indicator=null WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 801.5814094543457,
-    "y": 1163.6410536766052,
-    "z": "214b12db.e4ae8e",
-    "wires": [["25e5bfd2.2129e",
-      "baa57190.f5968"]]
-  },
-  {
-    "id": "d5cea21b.c34aa",
-    "type": "save",
-    "name": "Store device config as 'Current'",
-    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, content) SELECT request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, 'Current', content FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y')\" force='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 795.196704864502,
-    "y": 1331.1795058250427,
-    "z": "214b12db.e4ae8e",
-    "wires": [["3111ae3b.b3f9e2",
-      "f1f93963.7ca2d8"]]
-  },
-  {
-    "id": "f1f93963.7ca2d8",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1055.1968002319336,
-    "y": 1375.1795058250427,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "3111ae3b.b3f9e2",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1050.1968002319336,
-    "y": 1291.1795058250427,
-    "z": "214b12db.e4ae8e",
-    "wires": [["f16ab34d.41c77"]]
-  },
-  {
-    "id": "25e5bfd2.2129e",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1060.581470489502,
-    "y": 1218.6410384178162,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "baa57190.f5968",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1054.581470489502,
-    "y": 1162.6410536766052,
-    "z": "214b12db.e4ae8e",
-    "wires": [["62bc5493.c88cfc"]]
-  },
-  {
-    "id": "7e006a6b.da6ef4",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1497.1454181671143,
-    "y": 623.2819752693176,
-    "z": "214b12db.e4ae8e",
-    "wires": [["f6c71fae.e8d17",
-      "a278106d.b2101",
-      "aac04b94.261c38",
-      "4b77bb4a.9f7014"]]
-  },
-  {
-    "id": "f6c71fae.e8d17",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\" />\n",
-    "comments": "",
-    "x": 1804.7011909484863,
-    "y": 521.1709504127502,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "6c663e2f.d966d",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1510.4786949157715,
-    "y": 675.1709036827087,
-    "z": "214b12db.e4ae8e",
-    "wires": [["963a5bc6.b3e628",
-      "a278106d.b2101",
-      "aac04b94.261c38",
-      "4b77bb4a.9f7014"]]
-  },
-  {
-    "id": "963a5bc6.b3e628",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
-    "comments": "",
-    "x": 1806.7012519836426,
-    "y": 570.1709456443787,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "62bc5493.c88cfc",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1223.359302520752,
-    "y": 1163.6410536766052,
-    "z": "214b12db.e4ae8e",
-    "wires": [["fca9379c.f1ba58",
-      "205f706d.16fb1",
-      "15018948.152e47",
-      "3521d3f3.e7bf6c",
-      "4d82212c.2ef21"]]
-  },
-  {
-    "id": "fca9379c.f1ba58",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Error while marking current configuration as historic in the repository for vnf-id:' + $input.action-identifiers.vnf-id`\" />\n",
-    "comments": "",
-    "x": 1451.6924629211426,
-    "y": 1200.6411147117615,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "f16ab34d.41c77",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1216.9744491577148,
-    "y": 1293.1795058250427,
-    "z": "214b12db.e4ae8e",
-    "wires": [["4adc4f3b.17a16",
-      "205f706d.16fb1",
-      "15018948.152e47",
-      "3521d3f3.e7bf6c",
-      "4d82212c.2ef21"]]
-  },
-  {
-    "id": "4adc4f3b.17a16",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Error while storing the new current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\" />\n",
-    "comments": "",
-    "x": 1443.529987335205,
-    "y": 1245.2907118797302,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "aac04b94.261c38",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "x": 1787.5473823547363,
-    "y": 713.0171122550964,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "a278106d.b2101",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1816.5474433898926,
-    "y": 663.0170950889587,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "15018948.152e47",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "x": 1436.7608222961426,
-    "y": 1427.1369032859802,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "205f706d.16fb1",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1461.7608222961426,
-    "y": 1337.1369032859802,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "f5cfbdb3.30a63",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 291.6666603088379,
-    "y": 343.57577085494995,
-    "z": "214b12db.e4ae8e",
-    "wires": [["9ec6a6d6.7a5678",
-      "58cdab19.f47684"]]
-  },
-  {
-    "id": "1aa4df6e.f6da11",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1182.3589057922363,
-    "y": 491.3589644432068,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "4b77bb4a.9f7014",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1778.0247383117676,
-    "y": 613.7672305107117,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "3521d3f3.e7bf6c",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1427.1704940795898,
-    "y": 1292.0814833641052,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "58cdab19.f47684",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Retrieving current configuration details from the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 481.0855522155762,
-    "y": 343.16138219833374,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "11dcb423.01808c",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Marking current configuration as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 735.7780342102051,
-    "y": 1098.2382216453552,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "6d230a1.4a08cf4",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Storing device configuration as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 745.7009773254395,
-    "y": 1274.3923964500427,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "855ad0e4.d405c",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Current configuration marked as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 748.6198616027832,
-    "y": 1218.4325575828552,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "59566c79.8df204",
-    "type": "record",
-    "name": "Log message",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Device configuration stored as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 735.6198616027832,
-    "y": 1387.8555312156677,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "872a0177.f9c8f",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n",
-    "comments": "",
-    "x": 711.4660873413086,
-    "y": 1504.8555312156677,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "dd580aa1.a817c8",
-    "type": "set",
-    "name": "Set Running Config ID",
-    "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />\n\n",
-    "comments": "",
-    "x": 1083.6667442321777,
-    "y": 733.0000834465027,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "aa08d8db.e07148",
-    "type": "execute",
-    "name": "Generate output payload",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
-    "comments": "",
-    "outputs": 1,
-    "x": 763.6667366027832,
-    "y": 1445.0000014305115,
-    "z": "214b12db.e4ae8e",
-    "wires": [["1639668d.25e0d9",
-      "264aed94.5a8e32",
-      "397802b1.358f0e"]]
-  },
-  {
-    "id": "1639668d.25e0d9",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1006.6668586730957,
-    "y": 1425.9999403953552,
-    "z": "214b12db.e4ae8e",
-    "wires": [["a0b721e.ccba5e"]]
-  },
-  {
-    "id": "264aed94.5a8e32",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1008.6668586730957,
-    "y": 1471.0000014305115,
-    "z": "214b12db.e4ae8e",
-    "wires": [["a0b721e.ccba5e"]]
-  },
-  {
-    "id": "397802b1.358f0e",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1011.6667366027832,
-    "y": 1521.9999403953552,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "a0b721e.ccba5e",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1206.3336067199707,
-    "y": 1482.9999403953552,
-    "z": "214b12db.e4ae8e",
-    "wires": [["a2cf5226.8165",
-      "bd7acdda.91a63"]]
-  },
-  {
-    "id": "bd7acdda.91a63",
-    "type": "execute",
-    "name": "Report error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1441.2381706237793,
-    "y": 1484.3807997703552,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "a2cf5226.8165",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 1425.6666374206543,
-    "y": 1533.5236220359802,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "4d82212c.2ef21",
-    "type": "execute",
-    "name": "Generate output payload",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
-    "comments": "",
-    "outputs": 1,
-    "x": 1493.8887519836426,
-    "y": 1385.0000014305115,
-    "z": "214b12db.e4ae8e",
-    "wires": [["425e2e54.04ff7",
-      "d2f01dc7.e5e29",
-      "481f9e71.90512"]]
-  },
-  {
-    "id": "425e2e54.04ff7",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1740.8889350891113,
-    "y": 1332.9999403953552,
-    "z": "214b12db.e4ae8e",
-    "wires": [["62fbe5e0.d9cdcc"]]
-  },
-  {
-    "id": "d2f01dc7.e5e29",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1731.8889961242676,
-    "y": 1386.0000014305115,
-    "z": "214b12db.e4ae8e",
-    "wires": [["62fbe5e0.d9cdcc"]]
-  },
-  {
-    "id": "481f9e71.90512",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1733.888874053955,
-    "y": 1435.9999403953552,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "62fbe5e0.d9cdcc",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1936.5558052062988,
-    "y": 1356.9999403953552,
-    "z": "214b12db.e4ae8e",
-    "wires": [["23d2ce67.52c4d2",
-      "49e01c1c.c64a44"]]
-  },
-  {
-    "id": "49e01c1c.c64a44",
-    "type": "execute",
-    "name": "Report error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2165.460346221924,
-    "y": 1355.3807997703552,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "23d2ce67.52c4d2",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 2145.888813018799,
-    "y": 1416.5236220359802,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "f6b28639.a1c3a8",
-    "type": "outcome",
-    "name": "Outcome: y",
-    "xml": "<outcome value='y'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1190.6666526794434,
-    "y": 808.1822867393494,
-    "z": "214b12db.e4ae8e",
-    "wires": [["60059d22.c2ba54"]]
-  },
-  {
-    "id": "4c8c9a0.c6b3768",
-    "type": "switchNode",
-    "name": "switch",
-    "xml": "<switch test='`$Publish_Config`'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1037.6666984558105,
-    "y": 799.5156636238098,
-    "z": "214b12db.e4ae8e",
-    "wires": [["f6b28639.a1c3a8",
-      "6d199d17.82f204"]]
-  },
-  {
-    "id": "60059d22.c2ba54",
-    "type": "get-resource",
-    "name": "Retrieve Running config details DB",
-    "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"SELECT upload_config_id, request_id, originator_id, service_description, action, upload_date, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, pending_delete ,content FROM UPLOAD_CONFIG WHERE upload_config_id = $runningConfig.UPLOAD-CONFIG-ID\" pfx=\"running-config\">",
-    "comments": "",
-    "outputs": 1,
-    "x": 1432.6667404174805,
-    "y": 829.1823210716248,
-    "z": "214b12db.e4ae8e",
-    "wires": [["cdc99515.922c58",
-      "9a6d5a51.faabc8",
-      "9034241c.159aa8"]]
-  },
-  {
-    "id": "cdc99515.922c58",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1690.6669082641602,
-    "y": 840.1825032234192,
-    "z": "214b12db.e4ae8e",
-    "wires": [["7e300025.5253a"]]
-  },
-  {
-    "id": "7e300025.5253a",
-    "type": "execute",
-    "name": "execute CvaasDataIntoContext",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/app/bvc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc01\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1943.9172744750977,
-    "y": 844.1830830574036,
-    "z": "214b12db.e4ae8e",
-    "wires": [["eb8bab96.3c6e98",
-      "46abe9bb.2c0fd8",
-      "ce71ba2a.e1ce38"]]
-  },
-  {
-    "id": "eb8bab96.3c6e98",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2241.1673278808594,
-    "y": 965.1831040382385,
-    "z": "214b12db.e4ae8e",
-    "wires": [["694c898b.ddbd58"]]
-  },
-  {
-    "id": "46abe9bb.2c0fd8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2250.6669998168945,
-    "y": 861.1828625202179,
-    "z": "214b12db.e4ae8e",
-    "wires": [["9fa2a21b.8af7c"]]
-  },
-  {
-    "id": "ce71ba2a.e1ce38",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2257.667266845703,
-    "y": 913.1830716133118,
-    "z": "214b12db.e4ae8e",
-    "wires": [["9fa2a21b.8af7c"]]
-  },
-  {
-    "id": "9034241c.159aa8",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1524.9166564941406,
-    "y": 1005.182294845581,
-    "z": "214b12db.e4ae8e",
-    "wires": [["567684cc.50b0dc"]]
-  },
-  {
-    "id": "9a6d5a51.faabc8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1521.9165420532227,
-    "y": 953.4044423103333,
-    "z": "214b12db.e4ae8e",
-    "wires": [["4bc0b87d.970378"]]
-  },
-  {
-    "id": "4bc0b87d.970378",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1661.9975929260254,
-    "y": 955.2935299873352,
-    "z": "214b12db.e4ae8e",
-    "wires": [["3ce78b3b.82fee4",
-      "ce132d3c.9e7bb",
-      "de31ac1.3cad05",
-      "ba52c35d.d0a18"]]
-  },
-  {
-    "id": "567684cc.50b0dc",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1661.553165435791,
-    "y": 1014.0713334083557,
-    "z": "214b12db.e4ae8e",
-    "wires": [["ce132d3c.9e7bb",
-      "de31ac1.3cad05",
-      "ba52c35d.d0a18",
-      "956742c7.415fd"]]
-  },
-  {
-    "id": "ba52c35d.d0a18",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1859.8998336791992,
-    "y": 1030.5936121940613,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "3ce78b3b.82fee4",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving running configuration from the repository for the vnf-id : ' + $input.action-identifiers.vnf-id`\"/>\n",
-    "comments": "",
-    "x": 1892.7756729125977,
-    "y": 930.875011920929,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "6d199d17.82f204",
-    "type": "outcome",
-    "name": "Outcome: Y",
-    "xml": "<outcome value='Y'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1191.6667098999023,
-    "y": 860.1822571754456,
-    "z": "214b12db.e4ae8e",
-    "wires": [["60059d22.c2ba54"]]
-  },
-  {
-    "id": "956742c7.415fd",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
-    "comments": "",
-    "x": 1891.1346130371094,
-    "y": 979.9603943824768,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "694c898b.ddbd58",
-    "type": "record",
-    "name": "record cvass",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`$cvaas-file-name`\"/>\n<parameter name=\"record\" value=\"`$cvaas-file-content`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2417.917697906494,
-    "y": 1007.1834092140198,
-    "z": "214b12db.e4ae8e",
-    "wires": [["e96f6416.e57a18",
-      "9939c991.265c38"]]
-  },
-  {
-    "id": "900e8879.a7b3f8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 2636.6667404174805,
-    "y": 938.7069244384766,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "4c75663f.43f0d8",
-    "type": "execute",
-    "name": "execute CheckFileCreated",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2490.933391571045,
-    "y": 1143.9486117362976,
-    "z": "214b12db.e4ae8e",
-    "wires": [["a473caa6.56a5f8",
-      "18a86d58.a2caa3",
-      "3498054b.73705a"]]
-  },
-  {
-    "id": "4f4d3434.694adc",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2965.4338912963867,
-    "y": 1122.9491600990295,
-    "z": "214b12db.e4ae8e",
-    "wires": [["8b90be34.c5f61",
-      "cab8f54e.ec65e8",
-      "feccd180.68417",
-      "cd47c223.a0626"]]
-  },
-  {
-    "id": "8b90be34.c5f61",
-    "type": "set",
-    "name": "Set error message",
-    "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
-    "comments": "",
-    "x": 3205.9892539978027,
-    "y": 1070.8379549980164,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "feccd180.68417",
-    "type": "record",
-    "name": "Log error",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3182.3132286071777,
-    "y": 1122.4345178604126,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "cab8f54e.ec65e8",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 3216.8359298706055,
-    "y": 1174.6844897270203,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "18a86d58.a2caa3",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2745.9338912963867,
-    "y": 1097.9491291046143,
-    "z": "214b12db.e4ae8e",
-    "wires": [["4f4d3434.694adc"]]
-  },
-  {
-    "id": "a473caa6.56a5f8",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2754.9335975646973,
-    "y": 1154.9489903450012,
-    "z": "214b12db.e4ae8e",
-    "wires": [["4f4d3434.694adc"]]
-  },
-  {
-    "id": "3498054b.73705a",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2761.933582305908,
-    "y": 1207.9490694999695,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "9fa2a21b.8af7c",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 2456.3336868286133,
-    "y": 883.1828720569611,
-    "z": "214b12db.e4ae8e",
-    "wires": [["900e8879.a7b3f8",
-      "8652a63d.1ea618"]]
-  },
-  {
-    "id": "8652a63d.1ea618",
-    "type": "execute",
-    "name": "Report error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Error while fetching cvass data\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 2655.238349914551,
-    "y": 840.5637314319611,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "e96f6416.e57a18",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2254.933277130127,
-    "y": 1124.9486260414124,
-    "z": "214b12db.e4ae8e",
-    "wires": [["4c75663f.43f0d8"]]
-  },
-  {
-    "id": "9939c991.265c38",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2255.9330825805664,
-    "y": 1167.9487557411194,
-    "z": "214b12db.e4ae8e",
-    "wires": [["4c75663f.43f0d8"]]
-  },
-  {
-    "id": "de31ac1.3cad05",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "x": 1875.5276527404785,
-    "y": 1128.9689564704895,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "ce132d3c.9e7bb",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1900.7669982910156,
-    "y": 1077.7808966636658,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "cb484414.952458",
-    "type": "execute",
-    "name": "Set payload in Context",
-    "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 726.6667137145996,
-    "y": 116.74999856948853,
-    "z": "214b12db.e4ae8e",
-    "wires": [["b20f9d10.79243",
-      "c4b37771.d26c18",
-      "b02ba377.938ab",
-      "d871965c.fc6f98"]]
-  },
-  {
-    "id": "c4b37771.d26c18",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1016.6667289733887,
-    "y": 58.99999761581421,
-    "z": "214b12db.e4ae8e",
-    "wires": [["507fcd18.8ae1c4"]]
-  },
-  {
-    "id": "b02ba377.938ab",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1017.6667289733887,
-    "y": 108.99999761581421,
-    "z": "214b12db.e4ae8e",
-    "wires": [["507fcd18.8ae1c4"]]
-  },
-  {
-    "id": "d871965c.fc6f98",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1010.6667289733887,
-    "y": 164.00001287460327,
-    "z": "214b12db.e4ae8e",
-    "wires": [["507fcd18.8ae1c4"]]
-  },
-  {
-    "id": "b20f9d10.79243",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1007.6667900085449,
-    "y": 219.750009059906,
-    "z": "214b12db.e4ae8e",
-    "wires": [["f5cfbdb3.30a63"]]
-  },
-  {
-    "id": "507fcd18.8ae1c4",
-    "type": "block",
-    "name": "block",
-    "xml": "<block atomic='true'>",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1224.3333702087402,
-    "y": 151.99999952316284,
-    "z": "214b12db.e4ae8e",
-    "wires": [["2a1493.66c87b6e",
-      "861e0870.0e6308"]]
-  },
-  {
-    "id": "861e0870.0e6308",
-    "type": "execute",
-    "name": "OutputMessageBuilder",
-    "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1454.6664390563965,
-    "y": 103.88888502120972,
-    "z": "214b12db.e4ae8e",
-    "wires": [["b958118a.b4c35"]]
-  },
-  {
-    "id": "2a1493.66c87b6e",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
-    "comments": "",
-    "x": 1421.666316986084,
-    "y": 152.52372694015503,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  },
-  {
-    "id": "b958118a.b4c35",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1662.7614707946777,
-    "y": 103.17462110519409,
-    "z": "214b12db.e4ae8e",
-    "wires": [["61a0d1cf.928f8"]]
-  },
-  {
-    "id": "61a0d1cf.928f8",
-    "type": "execute",
-    "name": "Report Error to DCAE",
-    "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 1864.3330039978027,
-    "y": 102.88888502120972,
-    "z": "214b12db.e4ae8e",
-    "wires": [[]]
-  },
-  {
-    "id": "cd47c223.a0626",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
-    "comments": "",
-    "x": 3202.333251953125,
-    "y": 1273,
-    "z": "214b12db.e4ae8e",
-    "wires": []
-  }]
+[\r
+    {\r
+        "id": "9c13e82a.387b38",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 131.66665649414062,\r
+        "y": 116.6666750907898,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "c8696732.57b668"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c8696732.57b668",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 311.6666564941406,\r
+        "y": 116.6666750907898,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "11c0a5be.fe5bfa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11c0a5be.fe5bfa",\r
+        "type": "method",\r
+        "name": "Sync",\r
+        "xml": "<method rpc='Generic_Sync' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 490.6666564941406,\r
+        "y": 116.6666750907898,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "cb484414.952458"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ec6a6d6.7a5678",\r
+        "type": "get-resource",\r
+        "name": "Retrieve current config details",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"SELECT service_description, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\" pfx=\"currnt-config[]\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 519.0861930847168,\r
+        "y": 437.4498953819275,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "a4a4499.da795b8",\r
+                "d4b62675.cc3218",\r
+                "f40aff31.110c9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f40aff31.110c9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 771.3759498596191,\r
+        "y": 365.17019033432007,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "841d3cc6.f08c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4a4499.da795b8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776.3759956359863,\r
+        "y": 436.947970867157,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "b9da4281.1adab"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4b62675.cc3218",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 773.598217010498,\r
+        "y": 500.61465311050415,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "88d88ec0.cbcfa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a1906ba.c69e1a",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1229.2260704040527,\r
+        "y": 539.5462489128113,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2195ead0.db2c66",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "x": 1207.9867248535156,\r
+        "y": 592.734308719635,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9e646937.3ed6a8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",\r
+        "comments": "",\r
+        "x": 1214.5936851501465,\r
+        "y": 436.7257466316223,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "88cf09de.c0d5e8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving current configuration from the repository for the vnf-id : ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "x": 1215.234661102295,\r
+        "y": 384.6402335166931,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "841d3cc6.f08c7",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 932.456859588623,\r
+        "y": 365.05907678604126,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "88cf09de.c0d5e8",\r
+                "2a1906ba.c69e1a",\r
+                "2195ead0.db2c66",\r
+                "1aa4df6e.f6da11"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b9da4281.1adab",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 940.0124244689941,\r
+        "y": 436.8368649482727,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "9e646937.3ed6a8",\r
+                "2a1906ba.c69e1a",\r
+                "2195ead0.db2c66",\r
+                "1aa4df6e.f6da11"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "88d88ec0.cbcfa",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 409.5640525817871,\r
+        "y": 615.6837515830994,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "7732a369.eb726c",\r
+                "4f4a7a36.c2a284",\r
+                "d5cea21b.c34aa",\r
+                "11dcb423.01808c",\r
+                "6d230a1.4a08cf4",\r
+                "855ad0e4.d405c",\r
+                "59566c79.8df204",\r
+                "872a0177.f9c8f",\r
+                "aa08d8db.e07148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7732a369.eb726c",\r
+        "type": "for",\r
+        "name": "for each current config",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 657.6324729919434,\r
+        "y": 616.0513052940369,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "842b0ba4.2b8248"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce31ce3d.765e7",\r
+        "type": "set",\r
+        "name": "Set context",\r
+        "xml": "<set>\n<parameter name='service-description' value=\"`$currnt-config[$i].service-description`\" />\n<parameter name='vm-name' value=\"`$currnt-config[$i].vm-name`\" />\n<parameter name='vnf-type' value=\"`$currnt-config[$i].vnf-type`\" />\n<parameter name='vnfc-type' value=\"`$currnt-config[$i].vnfc-type`\" />\n<parameter name='host-ip-address' value=\"`$currnt-config[$i].host-ip-address`\" />\n<parameter name='vnf-name' value=\"`$currnt-config[$i].vnf-name`\" />\n",\r
+        "comments": "",\r
+        "x": 1072.4787254333496,\r
+        "y": 616.2821097373962,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9fe7ebb1.f6f948",\r
+        "type": "call",\r
+        "name": "Call Retrieve running Config DG",\r
+        "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1104.4786949157715,\r
+        "y": 674.28204870224,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "cd269b5.a716568",\r
+                "4f80d854.e62828",\r
+                "83342c8c.51a98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "842b0ba4.2b8248",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 852.7863121032715,\r
+        "y": 675.205144405365,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "ce31ce3d.765e7",\r
+                "9fe7ebb1.f6f948",\r
+                "dd580aa1.a817c8",\r
+                "4c8c9a0.c6b3768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd269b5.a716568",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1346.5898399353027,\r
+        "y": 623.2819828987122,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "7e006a6b.da6ef4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f80d854.e62828",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1358.034236907959,\r
+        "y": 676.28204870224,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "6c663e2f.d966d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83342c8c.51a98",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1368.1451988220215,\r
+        "y": 728.3930716514587,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f4a7a36.c2a284",\r
+        "type": "update",\r
+        "name": "Mark current configs as historic",\r
+        "xml": "<update resource='SQL' force='true' plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' key=\"UPDATE UPLOAD_CONFIG SET config_indicator=null WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 801.5814094543457,\r
+        "y": 1163.6410536766052,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "25e5bfd2.2129e",\r
+                "baa57190.f5968"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5cea21b.c34aa",\r
+        "type": "save",\r
+        "name": "Store device config as 'Current'",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, content) SELECT request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, 'Current', content FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y')\" force='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 795.196704864502,\r
+        "y": 1331.1795058250427,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "3111ae3b.b3f9e2",\r
+                "f1f93963.7ca2d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1f93963.7ca2d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1055.1968002319336,\r
+        "y": 1375.1795058250427,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3111ae3b.b3f9e2",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1050.1968002319336,\r
+        "y": 1291.1795058250427,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "f16ab34d.41c77"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25e5bfd2.2129e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1060.581470489502,\r
+        "y": 1218.6410384178162,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "baa57190.f5968",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1054.581470489502,\r
+        "y": 1162.6410536766052,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "62bc5493.c88cfc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e006a6b.da6ef4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1497.1454181671143,\r
+        "y": 623.2819752693176,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "f6c71fae.e8d17",\r
+                "a278106d.b2101",\r
+                "aac04b94.261c38",\r
+                "4b77bb4a.9f7014"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f6c71fae.e8d17",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 1804.7011909484863,\r
+        "y": 521.1709504127502,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6c663e2f.d966d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1510.4786949157715,\r
+        "y": 675.1709036827087,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "963a5bc6.b3e628",\r
+                "a278106d.b2101",\r
+                "aac04b94.261c38",\r
+                "4b77bb4a.9f7014"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "963a5bc6.b3e628",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",\r
+        "comments": "",\r
+        "x": 1806.7012519836426,\r
+        "y": 570.1709456443787,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "62bc5493.c88cfc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1223.359302520752,\r
+        "y": 1163.6410536766052,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "fca9379c.f1ba58",\r
+                "205f706d.16fb1",\r
+                "15018948.152e47",\r
+                "3521d3f3.e7bf6c",\r
+                "4d82212c.2ef21"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fca9379c.f1ba58",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Error while marking current configuration as historic in the repository for vnf-id:' + $input.action-identifiers.vnf-id`\" />\n",\r
+        "comments": "",\r
+        "x": 1451.6924629211426,\r
+        "y": 1200.6411147117615,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f16ab34d.41c77",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1216.9744491577148,\r
+        "y": 1293.1795058250427,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "4adc4f3b.17a16",\r
+                "205f706d.16fb1",\r
+                "15018948.152e47",\r
+                "3521d3f3.e7bf6c",\r
+                "4d82212c.2ef21"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4adc4f3b.17a16",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Error while storing the new current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\" />\n",\r
+        "comments": "",\r
+        "x": 1443.529987335205,\r
+        "y": 1245.2907118797302,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aac04b94.261c38",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "x": 1787.5473823547363,\r
+        "y": 713.0171122550964,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a278106d.b2101",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1816.5474433898926,\r
+        "y": 663.0170950889587,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "15018948.152e47",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "x": 1436.7608222961426,\r
+        "y": 1427.1369032859802,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "205f706d.16fb1",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1461.7608222961426,\r
+        "y": 1337.1369032859802,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f5cfbdb3.30a63",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 291.6666603088379,\r
+        "y": 343.57577085494995,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "9ec6a6d6.7a5678",\r
+                "58cdab19.f47684"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1aa4df6e.f6da11",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1182.3589057922363,\r
+        "y": 491.3589644432068,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b77bb4a.9f7014",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1778.0247383117676,\r
+        "y": 613.7672305107117,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3521d3f3.e7bf6c",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1427.1704940795898,\r
+        "y": 1292.0814833641052,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "58cdab19.f47684",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Retrieving current configuration details from the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 481.0855522155762,\r
+        "y": 343.16138219833374,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "11dcb423.01808c",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Marking current configuration as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735.7780342102051,\r
+        "y": 1098.2382216453552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d230a1.4a08cf4",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Storing device configuration as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 745.7009773254395,\r
+        "y": 1274.3923964500427,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "855ad0e4.d405c",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Current configuration marked as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 748.6198616027832,\r
+        "y": 1218.4325575828552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "59566c79.8df204",\r
+        "type": "record",\r
+        "name": "Log message",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Device configuration stored as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735.6198616027832,\r
+        "y": 1387.8555312156677,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "872a0177.f9c8f",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 711.4660873413086,\r
+        "y": 1504.8555312156677,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dd580aa1.a817c8",\r
+        "type": "set",\r
+        "name": "Set Running Config ID",\r
+        "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />\n\n",\r
+        "comments": "",\r
+        "x": 1083.6667442321777,\r
+        "y": 733.0000834465027,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aa08d8db.e07148",\r
+        "type": "execute",\r
+        "name": "Generate output payload",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 763.6667366027832,\r
+        "y": 1445.0000014305115,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "1639668d.25e0d9",\r
+                "264aed94.5a8e32",\r
+                "397802b1.358f0e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1639668d.25e0d9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1006.6668586730957,\r
+        "y": 1425.9999403953552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "a0b721e.ccba5e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "264aed94.5a8e32",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1008.6668586730957,\r
+        "y": 1471.0000014305115,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "a0b721e.ccba5e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "397802b1.358f0e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1011.6667366027832,\r
+        "y": 1521.9999403953552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a0b721e.ccba5e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1206.3336067199707,\r
+        "y": 1482.9999403953552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "a2cf5226.8165",\r
+                "bd7acdda.91a63"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd7acdda.91a63",\r
+        "type": "execute",\r
+        "name": "Report error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1441.2381706237793,\r
+        "y": 1484.3807997703552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2cf5226.8165",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 1425.6666374206543,\r
+        "y": 1533.5236220359802,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4d82212c.2ef21",\r
+        "type": "execute",\r
+        "name": "Generate output payload",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1493.8887519836426,\r
+        "y": 1385.0000014305115,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "425e2e54.04ff7",\r
+                "d2f01dc7.e5e29",\r
+                "481f9e71.90512"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "425e2e54.04ff7",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1740.8889350891113,\r
+        "y": 1332.9999403953552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "62fbe5e0.d9cdcc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2f01dc7.e5e29",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1731.8889961242676,\r
+        "y": 1386.0000014305115,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "62fbe5e0.d9cdcc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "481f9e71.90512",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1733.888874053955,\r
+        "y": 1435.9999403953552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "62fbe5e0.d9cdcc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1936.5558052062988,\r
+        "y": 1356.9999403953552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "23d2ce67.52c4d2",\r
+                "49e01c1c.c64a44"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49e01c1c.c64a44",\r
+        "type": "execute",\r
+        "name": "Report error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2165.460346221924,\r
+        "y": 1355.3807997703552,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "23d2ce67.52c4d2",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 2145.888813018799,\r
+        "y": 1416.5236220359802,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f6b28639.a1c3a8",\r
+        "type": "outcome",\r
+        "name": "Outcome: y",\r
+        "xml": "<outcome value='y'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1190.6666526794434,\r
+        "y": 808.1822867393494,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "60059d22.c2ba54"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c8c9a0.c6b3768",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$Publish_Config`'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1037.6666984558105,\r
+        "y": 799.5156636238098,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "f6b28639.a1c3a8",\r
+                "6d199d17.82f204"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60059d22.c2ba54",\r
+        "type": "get-resource",\r
+        "name": "Retrieve Running config details DB",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"SELECT upload_config_id, request_id, originator_id, service_description, action, upload_date, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, pending_delete ,content FROM UPLOAD_CONFIG WHERE upload_config_id = $runningConfig.UPLOAD-CONFIG-ID\" pfx=\"running-config\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1432.6667404174805,\r
+        "y": 829.1823210716248,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "cdc99515.922c58",\r
+                "9a6d5a51.faabc8",\r
+                "9034241c.159aa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cdc99515.922c58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1690.6669082641602,\r
+        "y": 840.1825032234192,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "7e300025.5253a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e300025.5253a",\r
+        "type": "execute",\r
+        "name": "execute CvaasDataIntoContext",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/app/bvc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc01\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1943.9172744750977,\r
+        "y": 844.1830830574036,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "eb8bab96.3c6e98",\r
+                "46abe9bb.2c0fd8",\r
+                "ce71ba2a.e1ce38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb8bab96.3c6e98",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2241.1673278808594,\r
+        "y": 965.1831040382385,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "694c898b.ddbd58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46abe9bb.2c0fd8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2250.6669998168945,\r
+        "y": 861.1828625202179,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "9fa2a21b.8af7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce71ba2a.e1ce38",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2257.667266845703,\r
+        "y": 913.1830716133118,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "9fa2a21b.8af7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9034241c.159aa8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1524.9166564941406,\r
+        "y": 1005.182294845581,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "567684cc.50b0dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a6d5a51.faabc8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1521.9165420532227,\r
+        "y": 953.4044423103333,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "4bc0b87d.970378"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4bc0b87d.970378",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1661.9975929260254,\r
+        "y": 955.2935299873352,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "3ce78b3b.82fee4",\r
+                "ce132d3c.9e7bb",\r
+                "de31ac1.3cad05",\r
+                "ba52c35d.d0a18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "567684cc.50b0dc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1661.553165435791,\r
+        "y": 1014.0713334083557,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "ce132d3c.9e7bb",\r
+                "de31ac1.3cad05",\r
+                "ba52c35d.d0a18",\r
+                "956742c7.415fd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba52c35d.d0a18",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1859.8998336791992,\r
+        "y": 1030.5936121940613,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ce78b3b.82fee4",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving running configuration from the repository for the vnf-id : ' + $input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "x": 1892.7756729125977,\r
+        "y": 930.875011920929,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6d199d17.82f204",\r
+        "type": "outcome",\r
+        "name": "Outcome: Y",\r
+        "xml": "<outcome value='Y'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1191.6667098999023,\r
+        "y": 860.1822571754456,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "60059d22.c2ba54"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "956742c7.415fd",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",\r
+        "comments": "",\r
+        "x": 1891.1346130371094,\r
+        "y": 979.9603943824768,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "694c898b.ddbd58",\r
+        "type": "record",\r
+        "name": "record cvass",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`$cvaas-file-name`\"/>\n<parameter name=\"record\" value=\"`$cvaas-file-content`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2417.917697906494,\r
+        "y": 1007.1834092140198,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "e96f6416.e57a18",\r
+                "9939c991.265c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "900e8879.a7b3f8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 2636.6667404174805,\r
+        "y": 938.7069244384766,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c75663f.43f0d8",\r
+        "type": "execute",\r
+        "name": "execute CheckFileCreated",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2490.933391571045,\r
+        "y": 1143.9486117362976,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "a473caa6.56a5f8",\r
+                "18a86d58.a2caa3",\r
+                "3498054b.73705a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f4d3434.694adc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2965.4338912963867,\r
+        "y": 1122.9491600990295,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "8b90be34.c5f61",\r
+                "cab8f54e.ec65e8",\r
+                "feccd180.68417",\r
+                "cd47c223.a0626"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b90be34.c5f61",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",\r
+        "comments": "",\r
+        "x": 3205.9892539978027,\r
+        "y": 1070.8379549980164,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "feccd180.68417",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3182.3132286071777,\r
+        "y": 1122.4345178604126,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cab8f54e.ec65e8",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3216.8359298706055,\r
+        "y": 1174.6844897270203,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "18a86d58.a2caa3",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2745.9338912963867,\r
+        "y": 1097.9491291046143,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "4f4d3434.694adc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a473caa6.56a5f8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2754.9335975646973,\r
+        "y": 1154.9489903450012,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "4f4d3434.694adc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3498054b.73705a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2761.933582305908,\r
+        "y": 1207.9490694999695,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9fa2a21b.8af7c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2456.3336868286133,\r
+        "y": 883.1828720569611,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "900e8879.a7b3f8",\r
+                "8652a63d.1ea618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8652a63d.1ea618",\r
+        "type": "execute",\r
+        "name": "Report error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Error while fetching cvass data\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2655.238349914551,\r
+        "y": 840.5637314319611,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e96f6416.e57a18",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2254.933277130127,\r
+        "y": 1124.9486260414124,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "4c75663f.43f0d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9939c991.265c38",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2255.9330825805664,\r
+        "y": 1167.9487557411194,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "4c75663f.43f0d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de31ac1.3cad05",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "x": 1875.5276527404785,\r
+        "y": 1128.9689564704895,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ce132d3c.9e7bb",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1900.7669982910156,\r
+        "y": 1077.7808966636658,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb484414.952458",\r
+        "type": "execute",\r
+        "name": "Set payload in Context",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 726.6667137145996,\r
+        "y": 116.74999856948853,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "b20f9d10.79243",\r
+                "c4b37771.d26c18",\r
+                "b02ba377.938ab",\r
+                "d871965c.fc6f98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4b37771.d26c18",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1016.6667289733887,\r
+        "y": 58.99999761581421,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "507fcd18.8ae1c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b02ba377.938ab",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1017.6667289733887,\r
+        "y": 108.99999761581421,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "507fcd18.8ae1c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d871965c.fc6f98",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1010.6667289733887,\r
+        "y": 164.00001287460327,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "507fcd18.8ae1c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b20f9d10.79243",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1007.6667900085449,\r
+        "y": 219.750009059906,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "f5cfbdb3.30a63"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "507fcd18.8ae1c4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1224.3333702087402,\r
+        "y": 151.99999952316284,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "2a1493.66c87b6e",\r
+                "861e0870.0e6308"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "861e0870.0e6308",\r
+        "type": "execute",\r
+        "name": "OutputMessageBuilder",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1454.6664390563965,\r
+        "y": 103.88888502120972,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "b958118a.b4c35"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a1493.66c87b6e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 1421.666316986084,\r
+        "y": 152.52372694015503,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b958118a.b4c35",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1662.7614707946777,\r
+        "y": 103.17462110519409,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            [\r
+                "61a0d1cf.928f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "61a0d1cf.928f8",\r
+        "type": "execute",\r
+        "name": "Report Error to DCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1864.3330039978027,\r
+        "y": 102.88888502120972,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd47c223.a0626",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "x": 3202.333251953125,\r
+        "y": 1273,\r
+        "z": "214b12db.e4ae8e",\r
+        "wires": []\r
+    }\r
+]\r
index d7ab5a2..1e2542d 100644 (file)
@@ -1 +1,1502 @@
-[{"id":"e5c88bdc.d0f1b8","type":"method","name":"Generic_Terminate","xml":"<method rpc='Generic_Terminate' mode='sync'>\n","comments":"","outputs":1,"x":139,"y":234,"z":"a4e67f56.cb2c9","wires":[["ef72fe12.cfcd5"]]},{"id":"64a60c97.587824","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","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='APPC' version='2.0.0'>","outputs":1,"x":139,"y":161,"z":"a4e67f56.cb2c9","wires":[["e5c88bdc.d0f1b8"]]},{"id":"6755c3b2.aaa76c","type":"dgstart","name":"DGSTART","outputs":1,"x":105,"y":67,"z":"a4e67f56.cb2c9","wires":[["64a60c97.587824"]]},{"id":"ef72fe12.cfcd5","type":"execute","name":"execute_getVNF_Hierarchy","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$org.onap.appc.vfid`\" />","comments":"","outputs":1,"x":223,"y":398,"z":"a4e67f56.cb2c9","wires":[["fdbfcf4e.2d7b2","2f7c0400.250b9c","8cddc38f.7a40e"]]},{"id":"fdbfcf4e.2d7b2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":553.0000152587891,"y":339,"z":"a4e67f56.cb2c9","wires":[["f433b6cb.9cd0e8"]]},{"id":"47c9978b.e11268","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":254.00001525878906,"y":1011.0000610351562,"z":"a4e67f56.cb2c9","wires":[["aed1653d.64dc18","99961634.235f88","76a553b1.7a606c"]]},{"id":"aed1653d.64dc18","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":712.0000152587891,"y":868,"z":"a4e67f56.cb2c9","wires":[["6300ae03.3e269"]]},{"id":"6300ae03.3e269","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":802.0000152587891,"y":697,"z":"a4e67f56.cb2c9","wires":[["4eda765d.043368"]]},{"id":"4eda765d.043368","type":"execute","name":"execute_UpdateAA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"TERMINATING\" />\n","comments":"","outputs":1,"x":943.0000152587891,"y":791,"z":"a4e67f56.cb2c9","wires":[["7d068120.8613d","f2187f0b.202fc"]]},{"id":"7d068120.8613d","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1118.000015258789,"y":794,"z":"a4e67f56.cb2c9","wires":[["e362ad10.2e11d"]]},{"id":"2f7c0400.250b9c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":682.0000152587891,"y":235,"z":"a4e67f56.cb2c9","wires":[["56adc02f.e937d"]]},{"id":"dfc00961.e6fbe8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1091.000015258789,"y":287,"z":"a4e67f56.cb2c9","wires":[]},{"id":"4c5b7745.303d88","type":"execute","name":"execute_Delete_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n","comments":"","outputs":1,"x":1288.000259399414,"y":1528.000244140625,"z":"a4e67f56.cb2c9","wires":[["dff7c6ea.eb0978","dc1f3aaa.e732e8"]]},{"id":"dff7c6ea.eb0978","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1469.000259399414,"y":1585.000244140625,"z":"a4e67f56.cb2c9","wires":[["5fb4f85a.b03e08"]]},{"id":"6b9fbfd9.cf2c9","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1554.000259399414,"y":1913.000244140625,"z":"a4e67f56.cb2c9","wires":[]},{"id":"dc1f3aaa.e732e8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1470.000259399414,"y":1454.000244140625,"z":"a4e67f56.cb2c9","wires":[["63511836.263ac8"]]},{"id":"f2187f0b.202fc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1118.000015258789,"y":614,"z":"a4e67f56.cb2c9","wires":[["8818bd10.d6877"]]},{"id":"3d92ddfb.8dc4c2","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1586.000015258789,"y":525,"z":"a4e67f56.cb2c9","wires":[]},{"id":"6451e1d4.3680a","type":"comment","name":"update VNFCs to terminating","info":"","comments":"","x":864.0000152587891,"y":840,"z":"a4e67f56.cb2c9","wires":[]},{"id":"506b2052.9606c","type":"comment","name":"call south bound to delete VMs","info":"","comments":"","x":1432.000015258789,"y":334,"z":"a4e67f56.cb2c9","wires":[]},{"id":"30134eb1.2eebb2","type":"comment","name":"Delete VNFCs from AA&I","info":"","comments":"","x":1315.000259399414,"y":1562.000244140625,"z":"a4e67f56.cb2c9","wires":[]},{"id":"ebe89a17.2b35b8","type":"comment","name":"Fetch all VMs and VNFCs from AA&I for given VNF_ID","info":"","comments":"","x":473,"y":451,"z":"a4e67f56.cb2c9","wires":[]},{"id":"18e86385.97557c","type":"switchNode","name":"switch","xml":"<switch test='`$VNF.VMCount`'>\n","comments":"","outputs":1,"x":378.00001525878906,"y":772,"z":"a4e67f56.cb2c9","wires":[["bcee071d.335558","b4629424.d467e8"]]},{"id":"bcee071d.335558","type":"other","name":"outcome_0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":551.0000152587891,"y":677,"z":"a4e67f56.cb2c9","wires":[["a252c9a0.508a08"]]},{"id":"b4629424.d467e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":499.00001525878906,"y":862,"z":"a4e67f56.cb2c9","wires":[["47c9978b.e11268"]]},{"id":"f433b6cb.9cd0e8","type":"switchNode","name":"switch","xml":"<switch test='`$getVnfHierarchy_result`'>\n","comments":"","outputs":1,"x":468.00001525878906,"y":484,"z":"a4e67f56.cb2c9","wires":[["2bc5afad.f4405","88a36565.5b6378"]]},{"id":"2bc5afad.f4405","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":467.00001525878906,"y":571,"z":"a4e67f56.cb2c9","wires":[["18e86385.97557c"]]},{"id":"88a36565.5b6378","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":723.0000152587891,"y":480,"z":"a4e67f56.cb2c9","wires":[["4c58c0ac.8a3ef"]]},{"id":"e362ad10.2e11d","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1251.000015258789,"y":656,"z":"a4e67f56.cb2c9","wires":[["9ec19783.7ab378","473696eb.550988","bd1386b8.54ecc8"]]},{"id":"9ec19783.7ab378","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1407.000015258789,"y":624,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"473696eb.550988","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1416.000015258789,"y":660,"z":"a4e67f56.cb2c9","wires":[["9c0a9e54.14d8"]]},{"id":"bd1386b8.54ecc8","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1411.000015258789,"y":697,"z":"a4e67f56.cb2c9","wires":[["735daa43.6c16e4"]]},{"id":"63511836.263ac8","type":"switchNode","name":"switch","xml":"<switch test='`$deleteResource_result`'>\n","comments":"","outputs":1,"x":1683.000259399414,"y":1524.0002136230469,"z":"a4e67f56.cb2c9","wires":[["1d4ca514.9fd7db","8b41e5e2.b6a818","e61220f4.9537f"]]},{"id":"1d4ca514.9fd7db","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>","comments":"","outputs":1,"x":1860.000259399414,"y":1490.000244140625,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"8b41e5e2.b6a818","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1860.000259399414,"y":1604.000244140625,"z":"a4e67f56.cb2c9","wires":[["8763a75.b2f5c58"]]},{"id":"e61220f4.9537f","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1854.000259399414,"y":1715.000244140625,"z":"a4e67f56.cb2c9","wires":[["2208fca1.c9af34"]]},{"id":"166ff874.3f4048","type":"returnFailure","name":"return failure","xml":"<return status='failure'>","comments":"","x":2184.000259399414,"y":1628.000244140625,"z":"a4e67f56.cb2c9","wires":[]},{"id":"39941f53.76089","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2198.000259399414,"y":1761.000244140625,"z":"a4e67f56.cb2c9","wires":[]},{"id":"9e453cfe.7194d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":830.0000152587891,"y":659,"z":"a4e67f56.cb2c9","wires":[]},{"id":"1d90c18b.5e663e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1784.000015258789,"y":667,"z":"a4e67f56.cb2c9","wires":[]},{"id":"2ef976e.d4afa8a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1746.0003509521484,"y":880,"z":"a4e67f56.cb2c9","wires":[]},{"id":"c65751bd.0458d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":971.0000152587891,"y":504,"z":"a4e67f56.cb2c9","wires":[]},{"id":"56adc02f.e937d","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":800.0000152587891,"y":303,"z":"a4e67f56.cb2c9","wires":[["dfc00961.e6fbe8","acf0fd43.9e66"]]},{"id":"acf0fd43.9e66","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name=\"output.status.message\" value=\"Exception in getting VNF Hierachy\"/>\n","comments":"","outputs":1,"x":1081.000015258789,"y":113,"z":"a4e67f56.cb2c9","wires":[["b33afed0.16dc"]]},{"id":"b33afed0.16dc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1306.000015258789,"y":84,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"4c58c0ac.8a3ef","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":865.0000152587891,"y":446,"z":"a4e67f56.cb2c9","wires":[["c65751bd.0458d","a1e2c80e.64ad08"]]},{"id":"a1e2c80e.64ad08","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Failure in getting VNF Hierachy\"/>\n<parameter name=\"output.status.message\" value=\"Failure in getting VNF Hierachy\"/>","comments":"","outputs":1,"x":931.0000152587891,"y":372,"z":"a4e67f56.cb2c9","wires":[["f137844c.665ea8"]]},{"id":"f137844c.665ea8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1138.000015258789,"y":388,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"a252c9a0.508a08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":670.0000152587891,"y":615,"z":"a4e67f56.cb2c9","wires":[["9e453cfe.7194d","d07dd04b.ad633"]]},{"id":"d07dd04b.ad633","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name=\"output.status.message\" value=\"VM Count is 0\"/>","comments":"","outputs":1,"x":771.0000152587891,"y":543,"z":"a4e67f56.cb2c9","wires":[["c92631ce.23936"]]},{"id":"c92631ce.23936","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":937.0000152587891,"y":603,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"8818bd10.d6877","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1433.000015258789,"y":472,"z":"a4e67f56.cb2c9","wires":[["3d92ddfb.8dc4c2","b2f14fef.29f16"]]},{"id":"b2f14fef.29f16","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1658.000015258789,"y":470,"z":"a4e67f56.cb2c9","wires":[["9cabe4f.0b83218"]]},{"id":"9cabe4f.0b83218","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1861.000015258789,"y":473,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"735daa43.6c16e4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1516.999984741211,"y":776,"z":"a4e67f56.cb2c9","wires":[["2ef976e.d4afa8a","61aa63f1.de487c"]]},{"id":"61aa63f1.de487c","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1789.000473022461,"y":793,"z":"a4e67f56.cb2c9","wires":[["cd2515bf.b00448"]]},{"id":"cd2515bf.b00448","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2010.0003814697266,"y":789.0000915527344,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"9c0a9e54.14d8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1578.999984741211,"y":665,"z":"a4e67f56.cb2c9","wires":[["1d90c18b.5e663e","c8b4dbe7.dbfbf8"]]},{"id":"c8b4dbe7.dbfbf8","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI'+ $VNF.VM[$i].VNFC`\" />\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI'+ $VNF.VM[$i].VNFC`\" />","comments":"","outputs":1,"x":1774.000015258789,"y":601,"z":"a4e67f56.cb2c9","wires":[["9720fcd3.38685"]]},{"id":"9720fcd3.38685","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1966.000259399414,"y":601,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"8763a75.b2f5c58","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2032.000259399414,"y":1598.000244140625,"z":"a4e67f56.cb2c9","wires":[["166ff874.3f4048","2d936263.c9b0de"]]},{"id":"2208fca1.c9af34","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2032.000259399414,"y":1719.000244140625,"z":"a4e67f56.cb2c9","wires":[["39941f53.76089","64428a52.6aacd4"]]},{"id":"2d936263.c9b0de","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":2206.000259399414,"y":1523.000244140625,"z":"a4e67f56.cb2c9","wires":[["5428dfc9.98ca2"]]},{"id":"64428a52.6aacd4","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":2226.000259399414,"y":1682.000244140625,"z":"a4e67f56.cb2c9","wires":[["890502f.9d453"]]},{"id":"5428dfc9.98ca2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2426.000259399414,"y":1525.000244140625,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"890502f.9d453","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2447.000259399414,"y":1677.000244140625,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"5fb4f85a.b03e08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1365.000259399414,"y":1849.000244140625,"z":"a4e67f56.cb2c9","wires":[["6b9fbfd9.cf2c9","12808282.63fedd"]]},{"id":"12808282.63fedd","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1587.000259399414,"y":1846.000244140625,"z":"a4e67f56.cb2c9","wires":[["982395bf.926078"]]},{"id":"982395bf.926078","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1788.000259399414,"y":1847.000244140625,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"99961634.235f88","type":"execute","name":"execute_TerminateStack","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='terminateStack' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n <parameter name=\"org.onap.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>","comments":"","outputs":1,"x":639.0000152587891,"y":1032,"z":"a4e67f56.cb2c9","wires":[["4c9c8ea6.0754a","dd76694.e3a1398","b8cb00c4.e2276"]]},{"id":"4c9c8ea6.0754a","type":"outcome","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":530.0000152587891,"y":1344,"z":"a4e67f56.cb2c9","wires":[["29494781.a54038"]]},{"id":"dd76694.e3a1398","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":825.9999847412109,"y":1123.0000305175781,"z":"a4e67f56.cb2c9","wires":[["9bbcc3c6.f3fc9"]]},{"id":"9bbcc3c6.f3fc9","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":984.9999847412109,"y":1206.0000305175781,"z":"a4e67f56.cb2c9","wires":[["816ffef8.3f001","e7013e5c.73cd3","eb94341d.daee38"]]},{"id":"b8ddaca8.31ca2","type":"execute","name":"execute_Update_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"ERROR\" />\n","comments":"","outputs":1,"x":1800.999984741211,"y":1151.0000915527344,"z":"a4e67f56.cb2c9","wires":[["745adec2.0c18","386e30ca.c82d7"]]},{"id":"386e30ca.c82d7","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1960.000015258789,"y":1085.0001220703125,"z":"a4e67f56.cb2c9","wires":[["5af77541.eebf1c"]]},{"id":"f91f4f00.327fd","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":2238.999771118164,"y":1296.000244140625,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"1a39765.7ec2a8a","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":2247.999954223633,"y":1273.0001525878906,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"a65c14b7.f9fc18","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":2233.000015258789,"y":1252.0001220703125,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"7b1f1fed.0097","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":2109.000015258789,"y":1205.0001220703125,"z":"a4e67f56.cb2c9","wires":[["f91f4f00.327fd","1a39765.7ec2a8a","a65c14b7.f9fc18"]]},{"id":"745adec2.0c18","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1962.000015258789,"y":1213.0001220703125,"z":"a4e67f56.cb2c9","wires":[["7b1f1fed.0097"]]},{"id":"816ffef8.3f001","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>\n<parameter name=\"output.status.message\" value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>","comments":"","outputs":1,"x":1240.000015258789,"y":1199,"z":"a4e67f56.cb2c9","wires":[["dde9085f.2ff908"]]},{"id":"dde9085f.2ff908","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1429.000015258789,"y":1191,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"b8cb00c4.e2276","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":803.9999847412109,"y":1174.0001525878906,"z":"a4e67f56.cb2c9","wires":[["9bbcc3c6.f3fc9"]]},{"id":"f2b0d1ec.808d1","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":966.0000152587891,"y":1478.666748046875,"z":"a4e67f56.cb2c9","wires":[["a8b2ac3.d27705"]]},{"id":"e7013e5c.73cd3","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":939.0000152587891,"y":1009.3333740234375,"z":"a4e67f56.cb2c9","wires":[["1ed3a2d4.2d0acd"]]},{"id":"e13c6788.af9018","type":"execute","name":"execute_lookupServer","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='lookupServer' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[$i].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n","comments":"","outputs":1,"x":1160.000015258789,"y":1013.3333740234375,"z":"a4e67f56.cb2c9","wires":[["f1d9ce42.3fc2","8a7dbf97.22061"]]},{"id":"422c2173.1d7ab","type":"switchNode","name":"switch_isServerFound","xml":"<switch test='`$serverFound`'>\n","comments":"","outputs":1,"x":1564.6666412353516,"y":1016.3333740234375,"z":"a4e67f56.cb2c9","wires":[["4a611b2.5a488e4","9f456a36.09d8f8","1750b09d.dd507f"]]},{"id":"4a611b2.5a488e4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1765.666519165039,"y":1009.3333740234375,"z":"a4e67f56.cb2c9","wires":[["b8ddaca8.31ca2"]]},{"id":"9f456a36.09d8f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1760.6666412353516,"y":1078.3333740234375,"z":"a4e67f56.cb2c9","wires":[["b8ddaca8.31ca2"]]},{"id":"e87932eb.920c2","type":"execute","name":"execute_Delete_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n","comments":"","outputs":1,"x":2219.222183227539,"y":793.1111450195312,"z":"a4e67f56.cb2c9","wires":[["626a5a33.1f4184","133e3018.0ed4a"]]},{"id":"626a5a33.1f4184","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2432.222183227539,"y":889.1111755371094,"z":"a4e67f56.cb2c9","wires":[["6b98bf4a.6b6d1"]]},{"id":"84f94e68.c257","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2576.222183227539,"y":1129.1111755371094,"z":"a4e67f56.cb2c9","wires":[]},{"id":"133e3018.0ed4a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2422.222183227539,"y":717.1111755371094,"z":"a4e67f56.cb2c9","wires":[["61a1ee76.d7abf"]]},{"id":"3b27dd33.3249e2","type":"comment","name":"Delete VNFCs from AA&I","info":"","comments":"","x":2454.222183227539,"y":816.1111755371094,"z":"a4e67f56.cb2c9","wires":[]},{"id":"61a1ee76.d7abf","type":"switchNode","name":"switch","xml":"<switch test='`$deleteResource_result`'>\n","comments":"","outputs":1,"x":2614.222183227539,"y":720.1111755371094,"z":"a4e67f56.cb2c9","wires":[["cbf88535.3cc078","f10274f9.7c6708","b7ffbb29.5e80b8"]]},{"id":"cbf88535.3cc078","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>","comments":"","outputs":1,"x":2839.222183227539,"y":721.1111755371094,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"f10274f9.7c6708","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":2839.222183227539,"y":835.1111755371094,"z":"a4e67f56.cb2c9","wires":[["97a5cdc3.5b14d"]]},{"id":"b7ffbb29.5e80b8","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":2833.222183227539,"y":946.1111755371094,"z":"a4e67f56.cb2c9","wires":[["83dd288f.4d99b8"]]},{"id":"a93117d7.575f58","type":"returnFailure","name":"return failure","xml":"<return status='failure'>","comments":"","x":3163.222183227539,"y":859.1111755371094,"z":"a4e67f56.cb2c9","wires":[]},{"id":"576510ce.7be8a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3177.222183227539,"y":992.1111755371094,"z":"a4e67f56.cb2c9","wires":[]},{"id":"97a5cdc3.5b14d","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3011.222183227539,"y":829.1111755371094,"z":"a4e67f56.cb2c9","wires":[["a93117d7.575f58","1f9383ac.0e6aec"]]},{"id":"83dd288f.4d99b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3011.222183227539,"y":950.1111755371094,"z":"a4e67f56.cb2c9","wires":[["576510ce.7be8a","e5f1757c.6e8838"]]},{"id":"1f9383ac.0e6aec","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":3143.222183227539,"y":749.1111755371094,"z":"a4e67f56.cb2c9","wires":[["42e84307.cf497c"]]},{"id":"e5f1757c.6e8838","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":3205.222183227539,"y":913.1111755371094,"z":"a4e67f56.cb2c9","wires":[["adf0db8.e0f4328"]]},{"id":"42e84307.cf497c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3360.222183227539,"y":749.1111755371094,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"adf0db8.e0f4328","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3384.222183227539,"y":910.1111755371094,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"6b98bf4a.6b6d1","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2384.222183227539,"y":1054.1111755371094,"z":"a4e67f56.cb2c9","wires":[["84f94e68.c257","ae3d5f22.e56e9"]]},{"id":"ae3d5f22.e56e9","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":2609.222183227539,"y":998.1111755371094,"z":"a4e67f56.cb2c9","wires":[["3da27612.12e46a"]]},{"id":"3da27612.12e46a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2797.222183227539,"y":1002.1111755371094,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"f1d9ce42.3fc2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1363.000015258789,"y":1012,"z":"a4e67f56.cb2c9","wires":[["422c2173.1d7ab"]]},{"id":"8a7dbf97.22061","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1352.000015258789,"y":1082,"z":"a4e67f56.cb2c9","wires":[["b8ddaca8.31ca2"]]},{"id":"1ed3a2d4.2d0acd","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1030.000015258789,"y":959,"z":"a4e67f56.cb2c9","wires":[["e13c6788.af9018"]]},{"id":"8cddc38f.7a40e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":776.0000152587891,"y":60,"z":"a4e67f56.cb2c9","wires":[["56adc02f.e937d"]]},{"id":"a8b2ac3.d27705","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1065.000015258789,"y":1535,"z":"a4e67f56.cb2c9","wires":[["4c5b7745.303d88"]]},{"id":"fcaee4fa.750418","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":859.0000152587891,"y":1532,"z":"a4e67f56.cb2c9","wires":[["f2b0d1ec.808d1"]]},{"id":"29494781.a54038","type":"switchNode","name":"switch","xml":"<switch test='`$TERMINATE_STATUS`'>\n","comments":"","outputs":1,"x":378.00001525878906,"y":1587,"z":"a4e67f56.cb2c9","wires":[["d79d038e.dc79d","b3678f24.77c0d","b71088d3.bcd548"]]},{"id":"b71088d3.bcd548","type":"other","name":"outcome_Stack_NOT_FOUND","xml":"<outcome value='STACK_NOT_FOUND'>\n","comments":"","outputs":1,"x":629.0000152587891,"y":1637,"z":"a4e67f56.cb2c9","wires":[["acf43fdf.f3f61"]]},{"id":"d79d038e.dc79d","type":"success","name":"outcome_SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":612.0000152587891,"y":1531,"z":"a4e67f56.cb2c9","wires":[["fcaee4fa.750418"]]},{"id":"b3678f24.77c0d","type":"other","name":"outcome_ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":610.0000152587891,"y":1579,"z":"a4e67f56.cb2c9","wires":[["9bbcc3c6.f3fc9"]]},{"id":"eb94341d.daee38","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1201.000015258789,"y":1285,"z":"a4e67f56.cb2c9","wires":[]},{"id":"5af77541.eebf1c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2181.999771118164,"y":1090.000244140625,"z":"a4e67f56.cb2c9","wires":[]},{"id":"f1c2445.9b079b8","type":"execute","name":"execute_Update_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"ERROR\" />\n","comments":"","outputs":1,"x":851.0000152587891,"y":2108,"z":"a4e67f56.cb2c9","wires":[["4e5f0316.5b336c","9f4b4a3.064eeb8"]]},{"id":"9f4b4a3.064eeb8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1050.000015258789,"y":2087,"z":"a4e67f56.cb2c9","wires":[["41799e8a.78e08"]]},{"id":"4e5f0316.5b336c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1047.000015258789,"y":2132,"z":"a4e67f56.cb2c9","wires":[["63968449.9d15dc"]]},{"id":"63968449.9d15dc","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1182.000015258789,"y":2136,"z":"a4e67f56.cb2c9","wires":[["f7c574be.4bda68","5b336450.0d264c","f6d95927.d64ee8"]]},{"id":"f7c574be.4bda68","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1334.9998931884766,"y":2155.000244140625,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"5b336450.0d264c","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1347.000015258789,"y":2137,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"f6d95927.d64ee8","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1326.000015258789,"y":2108,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"acf43fdf.f3f61","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":410.00001525878906,"y":1905,"z":"a4e67f56.cb2c9","wires":[["e077bff2.48865","423e8c1d.af2b24"]]},{"id":"e077bff2.48865","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":757.0000152587891,"y":1967.666748046875,"z":"a4e67f56.cb2c9","wires":[["e27653a7.d320a"]]},{"id":"e27653a7.d320a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":821.0000152587891,"y":2033,"z":"a4e67f56.cb2c9","wires":[["f1c2445.9b079b8"]]},{"id":"41799e8a.78e08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1507.000015258789,"y":2083,"z":"a4e67f56.cb2c9","wires":[["9e96b820.10fa68","4bdee93a.d5fd18"]]},{"id":"4bdee93a.d5fd18","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updatig Error in AAI for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updatig Error in AAI for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":1701.000015258789,"y":2020,"z":"a4e67f56.cb2c9","wires":[["f785dfe9.09653"]]},{"id":"f785dfe9.09653","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1905.000015258789,"y":2021,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"9e96b820.10fa68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1672.000015258789,"y":2143,"z":"a4e67f56.cb2c9","wires":[]},{"id":"1750b09d.dd507f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1760.000015258789,"y":953,"z":"a4e67f56.cb2c9","wires":[["e87932eb.920c2"]]},{"id":"423e8c1d.af2b24","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":716.0000152587891,"y":2221,"z":"a4e67f56.cb2c9","wires":[["dad63133.72d13","650f38af.5e6678"]]},{"id":"650f38af.5e6678","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":948.0000762939453,"y":2265,"z":"a4e67f56.cb2c9","wires":[]},{"id":"dad63133.72d13","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>\n<parameter name=\"output.status.message\" value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>","comments":"","outputs":1,"x":988.0000762939453,"y":2208,"z":"a4e67f56.cb2c9","wires":[["6648d3dd.c3f94c"]]},{"id":"6648d3dd.c3f94c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1209.000015258789,"y":2204,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"76a553b1.7a606c","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":388.7063293457031,"y":1083.9843139648438,"z":"a4e67f56.cb2c9","wires":[]}]
+[\r
+    {\r
+        "id": "f83c268e.d1bb58",\r
+        "type": "method",\r
+        "name": "Generic_Terminate",\r
+        "xml": "<method rpc='Generic_Terminate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1186.6666259765625,\r
+        "y": 363,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "fcf4c81a.879498"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30def200.89bc6e",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 1186.6666259765625,\r
+        "y": 290,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "f83c268e.d1bb58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31872417.acfc5c",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 1152.6666259765625,\r
+        "y": 196,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "30def200.89bc6e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fcf4c81a.879498",\r
+        "type": "execute",\r
+        "name": "execute_getVNF_Hierarchy",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$org.onap.appc.vfid`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1270.6666259765625,\r
+        "y": 527,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "edf023db.e06d1",\r
+                "897fcef6.f4f43",\r
+                "51cf567b.01c418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "edf023db.e06d1",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1536.6666412353516,\r
+        "y": 571.0000152587891,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "94b98cce.1d93"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a82df3a.d1a4d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1306.6667709350586,\r
+        "y": 998.000171661377,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "46f11f3.8df6be",\r
+                "8581f2ac.9ea85"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "897fcef6.f4f43",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1555.666706085205,\r
+        "y": 527.0000171661377,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "c9af19e3.15b048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10bfc7cb.8fcd58",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1852.6669692993164,\r
+        "y": 565.0000429153442,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d5ea6f5b.b5205",\r
+        "type": "execute",\r
+        "name": "execute_Delete_AA&I",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2349.667091369629,\r
+        "y": 1651.0002574920654,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "d02cfddf.9de0e",\r
+                "76a74a0a.0ea194"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d02cfddf.9de0e",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2516.6668853759766,\r
+        "y": 1714.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "7135e7ee.4841f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "428d0c37.25be74",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2682.6672172546387,\r
+        "y": 1902.000207901001,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "76a74a0a.0ea194",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2580.6672286987305,\r
+        "y": 1652.0003757476807,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "f3545b33.a986f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c9a0726.403448",\r
+        "type": "comment",\r
+        "name": "call south bound to delete VMs",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1559.666732788086,\r
+        "y": 1059.0001707077026,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "547cbc39.dd1bf4",\r
+        "type": "comment",\r
+        "name": "Delete VNFCs from AA&I",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2362.6668853759766,\r
+        "y": 1691.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9e27f06d.85f79",\r
+        "type": "comment",\r
+        "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1280.6665954589844,\r
+        "y": 460.0000457763672,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ced39afe.982c58",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$VNF.VMCount`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1851.6666069030762,\r
+        "y": 821.0000553131104,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "9faa66d9.75dad8",\r
+                "d25e17f5.852928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9faa66d9.75dad8",\r
+        "type": "other",\r
+        "name": "outcome_0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2066.6669006347656,\r
+        "y": 800.0000858306885,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "ef236f48.8a162"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d25e17f5.852928",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2057.666732788086,\r
+        "y": 877.000057220459,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "7a82df3a.d1a4d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "94b98cce.1d93",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$getVnfHierarchy_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1584.6666107177734,\r
+        "y": 632.0000476837158,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "625f7343.9c22cc",\r
+                "6a298537.fdc07c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "625f7343.9c22cc",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1798.6667098999023,\r
+        "y": 705.0000953674316,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "ced39afe.982c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a298537.fdc07c",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1797.667091369629,\r
+        "y": 642.0000495910645,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "8fcb60f6.6438c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3545b33.a986f8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$deleteResource_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2730.6668853759766,\r
+        "y": 1653.0002136230469,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "cac794db.9a8648",\r
+                "1a06eda8.17e932",\r
+                "a4143e5e.83e55"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cac794db.9a8648",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2918.667106628418,\r
+        "y": 1604.0001945495605,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a06eda8.17e932",\r
+        "type": "outcome",\r
+        "name": "NOT_FOUND",\r
+        "xml": "<outcome value='NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2927.6672286987305,\r
+        "y": 1706.0001983642578,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "8970627f.6c3b3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4143e5e.83e55",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2922.667106628418,\r
+        "y": 1772.0002002716064,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "afc51a77.fe5c98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8baa9bfb.5d6d58",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>",\r
+        "comments": "",\r
+        "x": 3231.6668853759766,\r
+        "y": 1757.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8d11ca89.7b76c8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3245.6668853759766,\r
+        "y": 1890.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ce0b8a6f.cbb6e8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2463.6671028137207,\r
+        "y": 867.0000228881836,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "52575238.f0b54c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2101.66739654541,\r
+        "y": 723.0001096725464,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c9af19e3.15b048",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1728.6667098999023,\r
+        "y": 508.0000104904175,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "10bfc7cb.8fcd58",\r
+                "d7012b3d.acda88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7012b3d.acda88",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name=\"output.status.message\" value=\"Exception in getting VNF Hierachy\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1949.6667098999023,\r
+        "y": 466.0000858306885,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "e8d82029.5691a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8d82029.5691a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2093.667091369629,\r
+        "y": 384.00000286102295,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8fcb60f6.6438c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1969.6671447753906,\r
+        "y": 638.000078201294,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "52575238.f0b54c",\r
+                "d52b085a.04ef48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d52b085a.04ef48",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Failure in getting VNF Hierachy\"/>\n<parameter name=\"output.status.message\" value=\"Failure in getting VNF Hierachy\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2162.667221069336,\r
+        "y": 559.0000457763672,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "278cdbc9.71feb4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "278cdbc9.71feb4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2402.6674575805664,\r
+        "y": 561.0000901222229,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef236f48.8a162",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2273.6670989990234,\r
+        "y": 803.0000514984131,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "ce0b8a6f.cbb6e8",\r
+                "b9e3d7de.b9a0a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b9e3d7de.b9a0a8",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name=\"output.status.message\" value=\"VM Count is 0\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2505.667167663574,\r
+        "y": 754.0000495910645,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "98d1819d.83b49"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98d1819d.83b49",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2708.667167663574,\r
+        "y": 757.0000514984131,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8970627f.6c3b3",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3024.6671104431152,\r
+        "y": 1652.0001983642578,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "8baa9bfb.5d6d58",\r
+                "5944e763.b11068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afc51a77.fe5c98",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3079.6668853759766,\r
+        "y": 1848.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "8d11ca89.7b76c8",\r
+                "9a6c9767.bdbfc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5944e763.b11068",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3253.6668853759766,\r
+        "y": 1652.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "caa7ab11.9ed508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a6c9767.bdbfc8",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3273.6668853759766,\r
+        "y": 1811.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "308e91fc.16bede"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "caa7ab11.9ed508",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3473.6668853759766,\r
+        "y": 1654.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "308e91fc.16bede",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3494.6668853759766,\r
+        "y": 1806.000244140625,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7135e7ee.4841f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2595.667152404785,\r
+        "y": 1801.0002670288086,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "428d0c37.25be74",\r
+                "8d733927.ea7898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8d733927.ea7898",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2832.6671600341797,\r
+        "y": 1834.0002670288086,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "8925d0e3.3827d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8925d0e3.3827d",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2987.667224884033,\r
+        "y": 1898.0002059936523,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "46f11f3.8df6be",\r
+        "type": "execute",\r
+        "name": "execute_TerminateStack",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='terminateStack' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n <parameter name=\"org.onap.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1556.6668395996094,\r
+        "y": 1010.0001735687256,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "44c7b265.62e9ac",\r
+                "d67219eb.d62c28",\r
+                "3fc6e808.5d1cc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44c7b265.62e9ac",\r
+        "type": "outcome",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1818.6667785644531,\r
+        "y": 1142.0002422332764,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "89cee1a7.7d5d7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d67219eb.d62c28",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1825.6667861938477,\r
+        "y": 979.000114440918,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "dab60fb.3c14bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dab60fb.3c14bf",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2174.6669731140137,\r
+        "y": 1325.000238418579,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "e47089e7.f1a918",\r
+                "f0764748.712238",\r
+                "19ed5c38.f34424"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e47089e7.f1a918",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>\n<parameter name=\"output.status.message\" value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2413.6669845581055,\r
+        "y": 1331.000207901001,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "19493f99.649ce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19493f99.649ce",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2622.6669883728027,\r
+        "y": 1332.000238418579,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3fc6e808.5d1cc8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1816.666847229004,\r
+        "y": 1060.0003595352173,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "dab60fb.3c14bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bc52b09.c92fd8",\r
+        "type": "for",\r
+        "name": "for_each_VMs",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2016.6669692993164,\r
+        "y": 1771.6668796539307,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "df7a7824.5653d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0764748.712238",\r
+        "type": "for",\r
+        "name": "for_each_VMs",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2369.6668548583984,\r
+        "y": 1271.3336067199707,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "868fe88c.7301e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "818c559e.4cb718",\r
+        "type": "execute",\r
+        "name": "execute_lookupServer",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='lookupServer' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[$i].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2618.6668548583984,\r
+        "y": 1276.3335456848145,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "3f4143a4.80004c",\r
+                "b57bdb5.2cb8228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18541510.69eb3b",\r
+        "type": "switchNode",\r
+        "name": "switch_isServerFound",\r
+        "xml": "<switch test='`$serverFound`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3018.3336181640625,\r
+        "y": 1166.3335437774658,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "163f7eff.acd201",\r
+                "9e98e2c5.d6607",\r
+                "868d2e7f.71d1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "163f7eff.acd201",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3233.3333053588867,\r
+        "y": 1090.3334465026855,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e98e2c5.d6607",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3228.333427429199,\r
+        "y": 1159.3334465026855,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "2320dbe3.6a92b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "69c28e48.1fa3c",\r
+        "type": "execute",\r
+        "name": "execute_Delete_AA&I",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3266.8888092041016,\r
+        "y": 922.1111450195312,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "3ff9ac9c.f625e4",\r
+                "ceaf4599.100ea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ff9ac9c.f625e4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3458.889087677002,\r
+        "y": 994.1112518310547,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "2db4836c.b73fcc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35497a4f.799a06",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3623.8888092041016,\r
+        "y": 1258.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ceaf4599.100ea8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3469.8888092041016,\r
+        "y": 846.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "91d604ba.13fb98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7bbc869.ecb578",\r
+        "type": "comment",\r
+        "name": "Delete VNFCs from AA&I",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3501.8888092041016,\r
+        "y": 945.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "91d604ba.13fb98",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$deleteResource_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3661.8888092041016,\r
+        "y": 849.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "5d30ebc9.dc6ae4",\r
+                "76afbe16.6a6d5",\r
+                "75743938.673418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d30ebc9.dc6ae4",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3886.8888092041016,\r
+        "y": 850.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "76afbe16.6a6d5",\r
+        "type": "outcome",\r
+        "name": "NOT_FOUND",\r
+        "xml": "<outcome value='NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3886.8888092041016,\r
+        "y": 964.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "e636eeac.1f63d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75743938.673418",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3880.8888092041016,\r
+        "y": 1075.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "976ab411.8d69d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "88b0bb13.f52698",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>",\r
+        "comments": "",\r
+        "x": 4210.888809204102,\r
+        "y": 988.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "58100195.5de98",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 4224.888809204102,\r
+        "y": 1121.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e636eeac.1f63d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4058.8888092041016,\r
+        "y": 958.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "88b0bb13.f52698",\r
+                "1dafbae0.9033d5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "976ab411.8d69d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4058.8888092041016,\r
+        "y": 1079.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "58100195.5de98",\r
+                "52447fde.35749"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1dafbae0.9033d5",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4190.888809204102,\r
+        "y": 878.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "24981823.8dd628"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "52447fde.35749",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4252.888809204102,\r
+        "y": 1042.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "b027be39.dc5ad"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24981823.8dd628",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4407.888809204102,\r
+        "y": 878.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b027be39.dc5ad",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4431.888809204102,\r
+        "y": 1039.1111755371094,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2db4836c.b73fcc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3557.888961791992,\r
+        "y": 1034.1113185882568,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "35497a4f.799a06",\r
+                "cace3825.d73698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cace3825.d73698",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name=\"output.status.message\" value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3719.8889694213867,\r
+        "y": 1138.111255645752,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "5a22678a.39a178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a22678a.39a178",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3845.8890991210938,\r
+        "y": 1214.11128616333,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f4143a4.80004c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2840.6669845581055,\r
+        "y": 1220.0001697540283,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "18541510.69eb3b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "868fe88c.7301e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2480.6669158935547,\r
+        "y": 1223.0002002716064,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "818c559e.4cb718"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51cf567b.01c418",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1565.666648864746,\r
+        "y": 479.00000286102295,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "c9af19e3.15b048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df7a7824.5653d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2146.666961669922,\r
+        "y": 1710.0000762939453,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "d5ea6f5b.b5205"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c38cb38c.27b49",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1867.6665878295898,\r
+        "y": 1715.0000133514404,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "9bc52b09.c92fd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89cee1a7.7d5d7",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$TERMINATE_STATUS`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1425.6666412353516,\r
+        "y": 1716,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "457280d4.81569",\r
+                "6716ce10.70381",\r
+                "e8c38fbe.c664c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8c38fbe.c664c",\r
+        "type": "other",\r
+        "name": "outcome_Stack_NOT_FOUND",\r
+        "xml": "<outcome value='STACK_NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1676.6666412353516,\r
+        "y": 1766,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "72712446.4f23cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "457280d4.81569",\r
+        "type": "success",\r
+        "name": "outcome_SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1656.6665802001953,\r
+        "y": 1711.0000743865967,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "c38cb38c.27b49"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6716ce10.70381",\r
+        "type": "other",\r
+        "name": "outcome_ERROR",\r
+        "xml": "<outcome value='ERROR'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1657.6667022705078,\r
+        "y": 1609.0000762939453,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "dab60fb.3c14bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19ed5c38.f34424",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2306.6669845581055,\r
+        "y": 1431.0001783370972,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2320dbe3.6a92b4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3260.666877746582,\r
+        "y": 1253.0004501342773,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72712446.4f23cc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1739.6666069030762,\r
+        "y": 1842.999963760376,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "69e92cea.bf5ae4",\r
+                "b4b8c710.c65578"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "868d2e7f.71d1c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3227.6668014526367,\r
+        "y": 1034.000072479248,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "69c28e48.1fa3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4b8c710.c65578",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1890.6667098999023,\r
+        "y": 1918.999963760376,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "69e92cea.bf5ae4",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>\n<parameter name=\"output.status.message\" value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1990.6667709350586,\r
+        "y": 1842.9999618530273,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "a32efbe3.ee6958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a32efbe3.ee6958",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2193.666835784912,\r
+        "y": 1843.0000228881836,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8581f2ac.9ea85",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 1276.3730697631836,\r
+        "y": 1207.9844284057617,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b57bdb5.2cb8228",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2830.6674156188965,\r
+        "y": 1284.0003261566162,\r
+        "z": "14e12983.4e6aa6",\r
+        "wires": [\r
+            [\r
+                "2320dbe3.6a92b4"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 5b2491d..1d29536 100644 (file)
@@ -1 +1,1832 @@
-[{"id":"6a91792e.7babd8","type":"method","name":"Generic_Terminate","xml":"<method rpc='Generic_Terminate' mode='sync'>\n","comments":"","outputs":1,"x":148.66665649414062,"y":231,"z":"214d83f7.3c518c","wires":[["8842ebb3.34ae88"]]},{"id":"5b236231.d788cc","type":"service-logic","name":"APPC 2.0.1","module":"APPC","version":"2.0.1","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='APPC' version='2.0.1'>","outputs":1,"x":148.66665649414062,"y":158,"z":"214d83f7.3c518c","wires":[["6a91792e.7babd8"]]},{"id":"40dd126c.6467ac","type":"dgstart","name":"DGSTART","outputs":1,"x":114.66665649414062,"y":64,"z":"214d83f7.3c518c","wires":[["5b236231.d788cc"]]},{"id":"c5b3ed4c.7a51e","type":"execute","name":"execute_getVNF_Hierarchy","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />","comments":"","outputs":1,"x":712.6666564941406,"y":418,"z":"214d83f7.3c518c","wires":[["4167438c.1e614c","5c2b2174.d5d2d","72adec34.6cebc4"]]},{"id":"4167438c.1e614c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1042.6666717529297,"y":359,"z":"214d83f7.3c518c","wires":[["f36ab527.a7f0a8"]]},{"id":"40745781.e26f38","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":743.6666717529297,"y":1031.0000610351562,"z":"214d83f7.3c518c","wires":[["9a947cc5.23ce8","51330ad7.924734","82d02640.710dc8"]]},{"id":"9a947cc5.23ce8","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":1201.6666717529297,"y":888,"z":"214d83f7.3c518c","wires":[["a18c1d82.ceb56"]]},{"id":"a18c1d82.ceb56","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":1291.6666717529297,"y":717,"z":"214d83f7.3c518c","wires":[["1f5ac652.ff0a0a"]]},{"id":"1f5ac652.ff0a0a","type":"execute","name":"execute_UpdateAA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Terminating\" />\n","comments":"","outputs":1,"x":1432.6666717529297,"y":811,"z":"214d83f7.3c518c","wires":[["ba2d3b93.0fc308","e013018e.c2ce6"]]},{"id":"ba2d3b93.0fc308","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1607.6666717529297,"y":814,"z":"214d83f7.3c518c","wires":[["30ec2ffc.29dd4"]]},{"id":"5c2b2174.d5d2d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1171.6666717529297,"y":255,"z":"214d83f7.3c518c","wires":[["7af3024a.0c77ec"]]},{"id":"6f9d109d.47a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1580.6666717529297,"y":307,"z":"214d83f7.3c518c","wires":[]},{"id":"a9d9b6a5.ff7028","type":"execute","name":"execute_Delete_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n","comments":"","outputs":1,"x":1777.6669158935547,"y":1548.000244140625,"z":"214d83f7.3c518c","wires":[["f0a60773.983e78","791fa776.b19fa8"]]},{"id":"f0a60773.983e78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1958.6669158935547,"y":1605.000244140625,"z":"214d83f7.3c518c","wires":[["1418d53d.7f133b"]]},{"id":"db7092d6.8fae","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2043.6669158935547,"y":1933.000244140625,"z":"214d83f7.3c518c","wires":[]},{"id":"791fa776.b19fa8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1959.6669158935547,"y":1474.000244140625,"z":"214d83f7.3c518c","wires":[["ddbbf603.b53e18"]]},{"id":"e013018e.c2ce6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1607.6666717529297,"y":634,"z":"214d83f7.3c518c","wires":[["47ccb57f.6543ec"]]},{"id":"e72b6702.279708","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2075.6666717529297,"y":545,"z":"214d83f7.3c518c","wires":[]},{"id":"8bf91d02.277ac","type":"comment","name":"update VNFCs to terminating","info":"","comments":"","x":1353.6666717529297,"y":860,"z":"214d83f7.3c518c","wires":[]},{"id":"e269577f.6b4058","type":"comment","name":"call south bound to delete VMs","info":"","comments":"","x":1921.6666717529297,"y":354,"z":"214d83f7.3c518c","wires":[]},{"id":"8b30f8a4.f6e778","type":"comment","name":"Delete VNFCs from AA&I","info":"","comments":"","x":1804.6669158935547,"y":1582.000244140625,"z":"214d83f7.3c518c","wires":[]},{"id":"be86022b.82158","type":"comment","name":"Fetch all VMs and VNFCs from AA&I for given VNF_ID","info":"","comments":"","x":962.6666564941406,"y":471,"z":"214d83f7.3c518c","wires":[]},{"id":"78588c7a.743e14","type":"switchNode","name":"switch","xml":"<switch test='`$VNF.VMCount`'>\n","comments":"","outputs":1,"x":867.6666717529297,"y":792,"z":"214d83f7.3c518c","wires":[["166c71ac.291f6e","724fce8c.100f6"]]},{"id":"166c71ac.291f6e","type":"other","name":"outcome_0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1040.6666717529297,"y":697,"z":"214d83f7.3c518c","wires":[["74e7a734.c69f38"]]},{"id":"724fce8c.100f6","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":988.6666717529297,"y":882,"z":"214d83f7.3c518c","wires":[["40745781.e26f38"]]},{"id":"f36ab527.a7f0a8","type":"switchNode","name":"switch","xml":"<switch test='`$getVnfHierarchy_result`'>\n","comments":"","outputs":1,"x":957.6666717529297,"y":504,"z":"214d83f7.3c518c","wires":[["605c9bcb.12d854","8eb5283f.78b858"]]},{"id":"605c9bcb.12d854","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":956.6666717529297,"y":591,"z":"214d83f7.3c518c","wires":[["78588c7a.743e14"]]},{"id":"8eb5283f.78b858","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1212.6666717529297,"y":500,"z":"214d83f7.3c518c","wires":[["bc16b835.e67df8"]]},{"id":"30ec2ffc.29dd4","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1740.6666717529297,"y":676,"z":"214d83f7.3c518c","wires":[["486bc0b7.06e2c","6b589062.343aa","46ffb052.ef31d"]]},{"id":"486bc0b7.06e2c","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1896.6666717529297,"y":644,"z":"214d83f7.3c518c","wires":[[]]},{"id":"6b589062.343aa","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1905.6666717529297,"y":680,"z":"214d83f7.3c518c","wires":[["d6575672.8b8888"]]},{"id":"46ffb052.ef31d","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1900.6666717529297,"y":717,"z":"214d83f7.3c518c","wires":[["a6264772.8b5a18"]]},{"id":"ddbbf603.b53e18","type":"switchNode","name":"switch","xml":"<switch test='`$deleteResource_result`'>\n","comments":"","outputs":1,"x":2172.6669158935547,"y":1544.0002136230469,"z":"214d83f7.3c518c","wires":[["f03cdfd2.9419f","75d0e135.830a5","b144c34e.c13ab"]]},{"id":"f03cdfd2.9419f","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>","comments":"","outputs":1,"x":2349.6669158935547,"y":1510.000244140625,"z":"214d83f7.3c518c","wires":[[]]},{"id":"75d0e135.830a5","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":2349.6669158935547,"y":1624.000244140625,"z":"214d83f7.3c518c","wires":[["8e0f8ac1.b9e7e8"]]},{"id":"b144c34e.c13ab","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":2343.6669158935547,"y":1735.000244140625,"z":"214d83f7.3c518c","wires":[["2ae8e8ce.c451c8"]]},{"id":"6b97d665.4e5aa8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2673.6669158935547,"y":1648.000244140625,"z":"214d83f7.3c518c","wires":[]},{"id":"ffc50795.32ef28","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2687.6669158935547,"y":1781.000244140625,"z":"214d83f7.3c518c","wires":[]},{"id":"79a07e38.a86d4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1319.6666717529297,"y":679,"z":"214d83f7.3c518c","wires":[]},{"id":"f4d2923.3dec37","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2273.6666717529297,"y":687,"z":"214d83f7.3c518c","wires":[]},{"id":"4a7e04c9.bf41cc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2235.667007446289,"y":900,"z":"214d83f7.3c518c","wires":[]},{"id":"2adb8b66.3f8504","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1460.6666717529297,"y":524,"z":"214d83f7.3c518c","wires":[]},{"id":"7af3024a.0c77ec","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1289.6666717529297,"y":323,"z":"214d83f7.3c518c","wires":[["6f9d109d.47a","ebf5dd23.4a38f"]]},{"id":"ebf5dd23.4a38f","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Exception in getting VNF Hierachy\"/>\n","comments":"","outputs":1,"x":1570.6666717529297,"y":133,"z":"214d83f7.3c518c","wires":[["c956679b.bab7b8"]]},{"id":"c956679b.bab7b8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1795.6666717529297,"y":104,"z":"214d83f7.3c518c","wires":[[]]},{"id":"bc16b835.e67df8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1354.6666717529297,"y":466,"z":"214d83f7.3c518c","wires":[["2adb8b66.3f8504","a41aef94.7e09"]]},{"id":"a41aef94.7e09","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Failure in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Failure in getting VNF Hierachy\"/>\n\n","comments":"","outputs":1,"x":1420.6666717529297,"y":392,"z":"214d83f7.3c518c","wires":[["109fc3cc.165b8c"]]},{"id":"109fc3cc.165b8c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1627.6666717529297,"y":408,"z":"214d83f7.3c518c","wires":[[]]},{"id":"74e7a734.c69f38","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1159.6666717529297,"y":635,"z":"214d83f7.3c518c","wires":[["79a07e38.a86d4","1fdafa81.05cb55"]]},{"id":"1fdafa81.05cb55","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name='output.status.message' value=\"VM Count is 0\"/>\n\n","comments":"","outputs":1,"x":1260.6666717529297,"y":563,"z":"214d83f7.3c518c","wires":[["a638cc12.c03da"]]},{"id":"a638cc12.c03da","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1426.6666717529297,"y":623,"z":"214d83f7.3c518c","wires":[[]]},{"id":"47ccb57f.6543ec","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1922.6666717529297,"y":492,"z":"214d83f7.3c518c","wires":[["e72b6702.279708","203420f8.4a6c8"]]},{"id":"203420f8.4a6c8","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Exception in AAI Update for vnfc '+$VNF.VM[$i].VNFC`\"/>\n","comments":"","outputs":1,"x":2147.6666717529297,"y":490,"z":"214d83f7.3c518c","wires":[["81561833.a0f998"]]},{"id":"81561833.a0f998","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2350.6666717529297,"y":493,"z":"214d83f7.3c518c","wires":[[]]},{"id":"a6264772.8b5a18","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2006.6666412353516,"y":796,"z":"214d83f7.3c518c","wires":[["4a7e04c9.bf41cc","d22c813.a8fe48"]]},{"id":"d22c813.a8fe48","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in updating AAI for '+$VNF.VM[$i].VNFC`\"/>\n\n","comments":"","outputs":1,"x":2278.6671295166016,"y":813,"z":"214d83f7.3c518c","wires":[["9df8c65a.d36ae8"]]},{"id":"9df8c65a.d36ae8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2499.667037963867,"y":809.0000915527344,"z":"214d83f7.3c518c","wires":[[]]},{"id":"d6575672.8b8888","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2068.6666412353516,"y":685,"z":"214d83f7.3c518c","wires":[["f4d2923.3dec37","d0f739a9.299bf8"]]},{"id":"d0f739a9.299bf8","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI'+ $VNF.VM[$i].VNFC`\" />\n<parameter name='output.status.message' value=\"`'VNFC not found in AAI'+ $VNF.VM[$i].VNFC`\" />\n\n","comments":"","outputs":1,"x":2263.6666717529297,"y":621,"z":"214d83f7.3c518c","wires":[["bede9367.77c9d"]]},{"id":"bede9367.77c9d","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2455.6669158935547,"y":621,"z":"214d83f7.3c518c","wires":[[]]},{"id":"8e0f8ac1.b9e7e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2521.6669158935547,"y":1618.000244140625,"z":"214d83f7.3c518c","wires":[["6b97d665.4e5aa8","27493e98.52c6e2"]]},{"id":"2ae8e8ce.c451c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2521.6669158935547,"y":1739.000244140625,"z":"214d83f7.3c518c","wires":[["ffc50795.32ef28","49dfea1b.954844"]]},{"id":"27493e98.52c6e2","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":2695.6669158935547,"y":1543.000244140625,"z":"214d83f7.3c518c","wires":[["3265161a.da4fda"]]},{"id":"49dfea1b.954844","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n","comments":"","outputs":1,"x":2715.6669158935547,"y":1702.000244140625,"z":"214d83f7.3c518c","wires":[["a931d97f.0a8ef8"]]},{"id":"3265161a.da4fda","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2915.6669158935547,"y":1545.000244140625,"z":"214d83f7.3c518c","wires":[[]]},{"id":"a931d97f.0a8ef8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2936.6669158935547,"y":1697.000244140625,"z":"214d83f7.3c518c","wires":[[]]},{"id":"1418d53d.7f133b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1854.6669158935547,"y":1869.000244140625,"z":"214d83f7.3c518c","wires":[["db7092d6.8fae","d2c04b2.c7333b8"]]},{"id":"d2c04b2.c7333b8","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n\n","comments":"","outputs":1,"x":2076.6669158935547,"y":1866.000244140625,"z":"214d83f7.3c518c","wires":[["76c8bb58.d4a2b4"]]},{"id":"76c8bb58.d4a2b4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2277.6669158935547,"y":1867.000244140625,"z":"214d83f7.3c518c","wires":[[]]},{"id":"51330ad7.924734","type":"execute","name":"execute_TerminateStack","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='terminateStack' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n <parameter name=\"org.onap.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>","comments":"","outputs":1,"x":1128.6666717529297,"y":1052,"z":"214d83f7.3c518c","wires":[["8014c3bc.7e994","9518b74c.9dfbe8","500bd329.f4843c"]]},{"id":"8014c3bc.7e994","type":"outcome","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1019.6666717529297,"y":1364,"z":"214d83f7.3c518c","wires":[["e36fc9a0.8f4758"]]},{"id":"9518b74c.9dfbe8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1315.6666412353516,"y":1143.0000305175781,"z":"214d83f7.3c518c","wires":[["f1cff1ca.4f3fa"]]},{"id":"f1cff1ca.4f3fa","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1474.6666412353516,"y":1226.0000305175781,"z":"214d83f7.3c518c","wires":[["d26c7cdb.1a1c1","e21c7013.2a511","4e395d8c.0e8654"]]},{"id":"bffd5141.6c547","type":"execute","name":"execute_Update_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"ERROR\" />\n","comments":"","outputs":1,"x":2290.6666412353516,"y":1171.0000915527344,"z":"214d83f7.3c518c","wires":[["13d1960d.9c176a","ee50c4be.2e9d28"]]},{"id":"ee50c4be.2e9d28","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2449.6666717529297,"y":1105.0001220703125,"z":"214d83f7.3c518c","wires":[["6876f9ee.88d068"]]},{"id":"104f28b8.5f4c67","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":2728.6664276123047,"y":1316.000244140625,"z":"214d83f7.3c518c","wires":[[]]},{"id":"2129246.f55abdc","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":2737.6666107177734,"y":1293.0001525878906,"z":"214d83f7.3c518c","wires":[[]]},{"id":"75bf7111.51ae5","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":2722.6666717529297,"y":1272.0001220703125,"z":"214d83f7.3c518c","wires":[[]]},{"id":"b334397d.c3d958","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":2598.6666717529297,"y":1225.0001220703125,"z":"214d83f7.3c518c","wires":[["104f28b8.5f4c67","2129246.f55abdc","75bf7111.51ae5"]]},{"id":"13d1960d.9c176a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2451.6666717529297,"y":1233.0001220703125,"z":"214d83f7.3c518c","wires":[["b334397d.c3d958"]]},{"id":"d26c7cdb.1a1c1","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>\n","comments":"","outputs":1,"x":1729.6666717529297,"y":1219,"z":"214d83f7.3c518c","wires":[["8be889a9.6d6c68"]]},{"id":"8be889a9.6d6c68","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1918.6666717529297,"y":1211,"z":"214d83f7.3c518c","wires":[[]]},{"id":"500bd329.f4843c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1293.6666412353516,"y":1194.0001525878906,"z":"214d83f7.3c518c","wires":[["f1cff1ca.4f3fa"]]},{"id":"4a03d8fe.d47068","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":1455.6666717529297,"y":1498.666748046875,"z":"214d83f7.3c518c","wires":[["6b7368e3.64b308"]]},{"id":"e21c7013.2a511","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":1428.6666717529297,"y":1029.3333740234375,"z":"214d83f7.3c518c","wires":[["7b636d61.d0b554"]]},{"id":"7099d9d3.ce2a88","type":"execute","name":"execute_lookupServer","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='lookupServer' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[$i].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n","comments":"","outputs":1,"x":1649.6666717529297,"y":1033.3333740234375,"z":"214d83f7.3c518c","wires":[["d40d4181.f4c28","e3a51c64.b39b9"]]},{"id":"7a853c33.9204b4","type":"switchNode","name":"switch_isServerFound","xml":"<switch test='`$serverFound`'>\n","comments":"","outputs":1,"x":2054.333297729492,"y":1036.3333740234375,"z":"214d83f7.3c518c","wires":[["ba8d600.0a405a","dec7ed8e.6bb98","f0ec0e5b.68c6"]]},{"id":"ba8d600.0a405a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2255.3331756591797,"y":1029.3333740234375,"z":"214d83f7.3c518c","wires":[["bffd5141.6c547"]]},{"id":"dec7ed8e.6bb98","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2250.333297729492,"y":1098.3333740234375,"z":"214d83f7.3c518c","wires":[["bffd5141.6c547"]]},{"id":"a8c9d533.157048","type":"execute","name":"execute_Delete_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n","comments":"","outputs":1,"x":2708.8888397216797,"y":813.1111450195312,"z":"214d83f7.3c518c","wires":[["b85685cd.59cc58","adbd6019.dddcf"]]},{"id":"b85685cd.59cc58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2921.8888397216797,"y":909.1111755371094,"z":"214d83f7.3c518c","wires":[["a26d7ad7.fc3678"]]},{"id":"51877c7e.0ed344","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3065.8888397216797,"y":1149.1111755371094,"z":"214d83f7.3c518c","wires":[]},{"id":"adbd6019.dddcf","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2911.8888397216797,"y":737.1111755371094,"z":"214d83f7.3c518c","wires":[["a32e8ff0.fd949"]]},{"id":"6b1dcaae.a26de4","type":"comment","name":"Delete VNFCs from AA&I","info":"","comments":"","x":2943.8888397216797,"y":836.1111755371094,"z":"214d83f7.3c518c","wires":[]},{"id":"a32e8ff0.fd949","type":"switchNode","name":"switch","xml":"<switch test='`$deleteResource_result`'>\n","comments":"","outputs":1,"x":3103.8888397216797,"y":740.1111755371094,"z":"214d83f7.3c518c","wires":[["6367d45e.f568bc","a2b057d0.ae5338","af8908d5.a293b8"]]},{"id":"6367d45e.f568bc","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>","comments":"","outputs":1,"x":3328.8888397216797,"y":741.1111755371094,"z":"214d83f7.3c518c","wires":[[]]},{"id":"a2b057d0.ae5338","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":3328.8888397216797,"y":855.1111755371094,"z":"214d83f7.3c518c","wires":[["2e777347.c58bac"]]},{"id":"af8908d5.a293b8","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":3322.8888397216797,"y":966.1111755371094,"z":"214d83f7.3c518c","wires":[["d3aee095.4eaad"]]},{"id":"b0455566.ea43d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3652.8888397216797,"y":879.1111755371094,"z":"214d83f7.3c518c","wires":[]},{"id":"8320aaf5.fac488","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3666.8888397216797,"y":1012.1111755371094,"z":"214d83f7.3c518c","wires":[]},{"id":"2e777347.c58bac","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3500.8888397216797,"y":849.1111755371094,"z":"214d83f7.3c518c","wires":[["b0455566.ea43d8","c013a213.b6497"]]},{"id":"d3aee095.4eaad","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3500.8888397216797,"y":970.1111755371094,"z":"214d83f7.3c518c","wires":[["8320aaf5.fac488","fc0ad0dd.1a778"]]},{"id":"c013a213.b6497","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>","comments":"","outputs":1,"x":3632.8888397216797,"y":769.1111755371094,"z":"214d83f7.3c518c","wires":[["92ed3d58.93848"]]},{"id":"fc0ad0dd.1a778","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n","comments":"","outputs":1,"x":3694.8888397216797,"y":933.1111755371094,"z":"214d83f7.3c518c","wires":[["d9ca4a14.fc8388"]]},{"id":"92ed3d58.93848","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3849.8888397216797,"y":769.1111755371094,"z":"214d83f7.3c518c","wires":[[]]},{"id":"d9ca4a14.fc8388","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3873.8888397216797,"y":930.1111755371094,"z":"214d83f7.3c518c","wires":[[]]},{"id":"a26d7ad7.fc3678","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2873.8888397216797,"y":1074.1111755371094,"z":"214d83f7.3c518c","wires":[["51877c7e.0ed344","63fbb548.bd5b9c"]]},{"id":"63fbb548.bd5b9c","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n\n","comments":"","outputs":1,"x":3098.8888397216797,"y":1018.1111755371094,"z":"214d83f7.3c518c","wires":[["fc4ad188.46539"]]},{"id":"fc4ad188.46539","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3286.8888397216797,"y":1022.1111755371094,"z":"214d83f7.3c518c","wires":[[]]},{"id":"d40d4181.f4c28","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1852.6666717529297,"y":1032,"z":"214d83f7.3c518c","wires":[["7a853c33.9204b4"]]},{"id":"e3a51c64.b39b9","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1841.6666717529297,"y":1102,"z":"214d83f7.3c518c","wires":[["bffd5141.6c547"]]},{"id":"7b636d61.d0b554","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1519.6666717529297,"y":979,"z":"214d83f7.3c518c","wires":[["7099d9d3.ce2a88"]]},{"id":"72adec34.6cebc4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1265.6666717529297,"y":80,"z":"214d83f7.3c518c","wires":[["7af3024a.0c77ec"]]},{"id":"6b7368e3.64b308","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1554.6666717529297,"y":1555,"z":"214d83f7.3c518c","wires":[["a9d9b6a5.ff7028"]]},{"id":"621d1ea9.529a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1356.6665954589844,"y":1548,"z":"214d83f7.3c518c","wires":[["4a03d8fe.d47068"]]},{"id":"e36fc9a0.8f4758","type":"switchNode","name":"switch","xml":"<switch test='`$TERMINATE_STATUS`'>\n","comments":"","outputs":1,"x":867.6666717529297,"y":1607,"z":"214d83f7.3c518c","wires":[["d112b421.f478c8","dd33deb1.aac3a","be14d688.32f998"]]},{"id":"be14d688.32f998","type":"other","name":"outcome_Stack_NOT_FOUND","xml":"<outcome value='STACK_NOT_FOUND'>\n","comments":"","outputs":1,"x":1118.6666717529297,"y":1657,"z":"214d83f7.3c518c","wires":[["54e72492.4b6c5c"]]},{"id":"d112b421.f478c8","type":"success","name":"outcome_SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1101.6666717529297,"y":1551,"z":"214d83f7.3c518c","wires":[["30776976.0fc246"]]},{"id":"dd33deb1.aac3a","type":"other","name":"outcome_ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":1099.6666717529297,"y":1599,"z":"214d83f7.3c518c","wires":[["f1cff1ca.4f3fa"]]},{"id":"4e395d8c.0e8654","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1690.6666717529297,"y":1305,"z":"214d83f7.3c518c","wires":[]},{"id":"6876f9ee.88d068","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2671.6664276123047,"y":1110.000244140625,"z":"214d83f7.3c518c","wires":[]},{"id":"43a0f845.a872c8","type":"execute","name":"execute_Update_AA&I","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"ERROR\" />\n","comments":"","outputs":1,"x":1340.6666717529297,"y":2128,"z":"214d83f7.3c518c","wires":[["3294635e.27511c","b1093d6.01027c"]]},{"id":"b1093d6.01027c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1539.6666717529297,"y":2107,"z":"214d83f7.3c518c","wires":[["8dd7506b.ff07f"]]},{"id":"3294635e.27511c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1536.6666717529297,"y":2152,"z":"214d83f7.3c518c","wires":[["33c89bc.80ab564"]]},{"id":"33c89bc.80ab564","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1671.6666717529297,"y":2156,"z":"214d83f7.3c518c","wires":[["4c727a1.c013684","c7169490.8b0688","555157fd.482568"]]},{"id":"4c727a1.c013684","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1824.6665496826172,"y":2175.000244140625,"z":"214d83f7.3c518c","wires":[[]]},{"id":"c7169490.8b0688","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1836.6666717529297,"y":2157,"z":"214d83f7.3c518c","wires":[[]]},{"id":"555157fd.482568","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1815.6666717529297,"y":2128,"z":"214d83f7.3c518c","wires":[[]]},{"id":"54e72492.4b6c5c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":899.6666717529297,"y":1925,"z":"214d83f7.3c518c","wires":[["402e577a.9942b8","1e80e12b.08e96f"]]},{"id":"402e577a.9942b8","type":"for","name":"for_each_VMs","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >","comments":"","outputs":1,"x":1246.6666717529297,"y":1987.666748046875,"z":"214d83f7.3c518c","wires":[["f67c30dc.e3327"]]},{"id":"f67c30dc.e3327","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1310.6666717529297,"y":2053,"z":"214d83f7.3c518c","wires":[["43a0f845.a872c8"]]},{"id":"8dd7506b.ff07f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1996.6666717529297,"y":2103,"z":"214d83f7.3c518c","wires":[["5519adf3.6b21c4","62c19bb2.6e4ff4"]]},{"id":"62c19bb2.6e4ff4","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updatig Error in AAI for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in updatig Error in AAI for '+$VNF.VM[$i].VNFC`\"/>\n\n\n","comments":"","outputs":1,"x":2190.6666717529297,"y":2040,"z":"214d83f7.3c518c","wires":[["b88c942f.647928"]]},{"id":"b88c942f.647928","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2394.6666717529297,"y":2041,"z":"214d83f7.3c518c","wires":[[]]},{"id":"5519adf3.6b21c4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2161.6666717529297,"y":2163,"z":"214d83f7.3c518c","wires":[]},{"id":"f0ec0e5b.68c6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2249.6666717529297,"y":973,"z":"214d83f7.3c518c","wires":[["a8c9d533.157048"]]},{"id":"1e80e12b.08e96f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1205.6666717529297,"y":2241,"z":"214d83f7.3c518c","wires":[["b275796.53f2988","4c597638.4430e8"]]},{"id":"4c597638.4430e8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1437.666732788086,"y":2285,"z":"214d83f7.3c518c","wires":[]},{"id":"b275796.53f2988","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>\n","comments":"","outputs":1,"x":1477.666732788086,"y":2228,"z":"214d83f7.3c518c","wires":[["6f875274.e7da5c"]]},{"id":"6f875274.e7da5c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1698.6666717529297,"y":2224,"z":"214d83f7.3c518c","wires":[[]]},{"id":"82d02640.710dc8","type":"update","name":"update","xml":"<update resource='SQL' force='true' plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' key=\"UPDATE UPLOAD_CONFIG SET PENDING_DELETE='Y' where VNF_ID = $input.action-identifiers.vnf-id\">","comments":"","outputs":1,"x":487.4444274902344,"y":1245.8418579101562,"z":"214d83f7.3c518c","wires":[["f2a83f28.727f8","e85986a4.fe52f8"]]},{"id":"e85986a4.fe52f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":651.0158538818359,"y":1183.6987915039062,"z":"214d83f7.3c518c","wires":[["1dbbd253.259b4e"]]},{"id":"f2a83f28.727f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":645.7062225341797,"y":1290.1268920898438,"z":"214d83f7.3c518c","wires":[["5cfca817.a09e08"]]},{"id":"1dbbd253.259b4e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":820.4444427490234,"y":1184.8577270507812,"z":"214d83f7.3c518c","wires":[["5cfca817.a09e08","eb213ae1.5247d8"]]},{"id":"5cfca817.a09e08","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":907.3729934692383,"y":1289.9843034744263,"z":"214d83f7.3c518c","wires":[]},{"id":"d95314ce.20c6c8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1021.047607421875,"y":1196.7144775390625,"z":"214d83f7.3c518c","wires":[[]]},{"id":"eb213ae1.5247d8","type":"execute","name":"execute_SendUEBEvent","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'SQL Exception : Unable to execute Update query for  '+$input.action-identifiers.vnf-id`\"/>\n<parameter name='output.status.message' value=\"`'SQL Exception : Unable to execute Update query for  '+$input.action-identifiers.vnf-id`\"/>\n","comments":"","outputs":1,"x":980.2959442138672,"y":1123.273681640625,"z":"214d83f7.3c518c","wires":[["d95314ce.20c6c8"]]},{"id":"8842ebb3.34ae88","type":"execute","name":"execute: flatAndAddToContext","xml":"<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />","comments":"","outputs":1,"x":364.33331298828125,"y":322.8888854980469,"z":"214d83f7.3c518c","wires":[["78b42273.8539ac","20f2de7b.a00212","45f44361.d41d9c"]]},{"id":"78b42273.8539ac","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":592.3333435058594,"y":365.88885498046875,"z":"214d83f7.3c518c","wires":[["c5b3ed4c.7a51e"]]},{"id":"73d772ff.d3cd6c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","x":486.99999618530273,"y":651.6666946411133,"z":"214d83f7.3c518c","wires":[]},{"id":"40aa2873.9839d8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":275.6667175292969,"y":577.1429710388184,"z":"214d83f7.3c518c","wires":[["73d772ff.d3cd6c","7bb5a0a6.e48e1"]]},{"id":"7bb5a0a6.e48e1","type":"execute","name":"Report_Error_Flattening_Payload_Json","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","outputs":1,"x":564.5714111328125,"y":504.5238914489746,"z":"214d83f7.3c518c","wires":[["6772c7b9.c47d68"]]},{"id":"6772c7b9.c47d68","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":649.8572235107422,"y":575.9524984359741,"z":"214d83f7.3c518c","wires":[[]]},{"id":"20f2de7b.a00212","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":100,"y":578.6666679382324,"z":"214d83f7.3c518c","wires":[["40aa2873.9839d8"]]},{"id":"d0048652.b34e78","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","x":494,"y":874.666690826416,"z":"214d83f7.3c518c","wires":[]},{"id":"1b04dee7.d382d1","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":282.66672134399414,"y":800.1429672241211,"z":"214d83f7.3c518c","wires":[["d0048652.b34e78","1bd902de.9423ad"]]},{"id":"1bd902de.9423ad","type":"execute","name":"Report_Error_Loading_Json_Flattening_Plugin","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","outputs":1,"x":571.5714149475098,"y":727.5238876342773,"z":"214d83f7.3c518c","wires":[["f2afc01e.a912c"]]},{"id":"f2afc01e.a912c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":656.8572273254395,"y":798.9524946212769,"z":"214d83f7.3c518c","wires":[[]]},{"id":"45f44361.d41d9c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":107,"y":798.6666679382324,"z":"214d83f7.3c518c","wires":[["1b04dee7.d382d1"]]},{"id":"30776976.0fc246","type":"execute","name":"Report_Success_in_Terminate","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"TERMINATE event executed successfully\" />","comments":"","outputs":1,"x":1212.6666259765625,"y":1419.0000610351562,"z":"214d83f7.3c518c","wires":[["8e5bf1b1.4b98e","3651cf1b.ebe7d"]]},{"id":"8e5bf1b1.4b98e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1283.6666564941406,"y":1486.6666641235352,"z":"214d83f7.3c518c","wires":[["621d1ea9.529a"]]},{"id":"3651cf1b.ebe7d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1480.6665954589844,"y":1416.6666870117188,"z":"214d83f7.3c518c","wires":[[]]}]
+[\r
+    {\r
+        "id": "3b011f31.e1f7c",\r
+        "type": "method",\r
+        "name": "Generic_Terminate",\r
+        "xml": "<method rpc='Generic_Terminate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 198.515625,\r
+        "y": 208.99999809265137,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "363185d6.77050a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "725aaf7a.285c7",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.1",\r
+        "module": "APPC",\r
+        "version": "2.0.1",\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='APPC' version='2.0.1'>",\r
+        "outputs": 1,\r
+        "x": 198.515625,\r
+        "y": 135.99999809265137,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "3b011f31.e1f7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1631c842.aa0cb8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 164.515625,\r
+        "y": 41.99999809265137,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "725aaf7a.285c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bdc33fc.b923c",\r
+        "type": "execute",\r
+        "name": "execute_getVNF_Hierarchy",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 695.5156860351562,\r
+        "y": 188.00002670288086,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "b2cb11a7.13bb8",\r
+                "d3d6019b.904a7",\r
+                "38504850.61d7b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2cb11a7.13bb8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 982.5157775878906,\r
+        "y": 270.00004482269287,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "b9d79a3a.863048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5c9c763.079278",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 438.5157241821289,\r
+        "y": 854.000150680542,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "d54dfb6c.b35808",\r
+                "e48a9296.17631"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3d6019b.904a7",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 978.5156860351562,\r
+        "y": 224.00002002716064,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "744fa2f4.ec261c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7d85358.6288d",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1555.5156707763672,\r
+        "y": 237.00000762939453,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "23b323e.b0706dc",\r
+        "type": "execute",\r
+        "name": "execute_Delete_AA&I",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2641.5159606933594,\r
+        "y": 1268.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "898a1900.25a4a8",\r
+                "47d1f240.1ab7dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "898a1900.25a4a8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2822.5159606933594,\r
+        "y": 1325.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "5986f2c2.fb67ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0c9af91.6bcb4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2907.5159606933594,\r
+        "y": 1653.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "47d1f240.1ab7dc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2823.5159606933594,\r
+        "y": 1194.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "a05a06c0.e40ca8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9d64a75.bd6248",\r
+        "type": "comment",\r
+        "name": "call south bound to delete VMs",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1971.515640258789,\r
+        "y": 331.99999809265137,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "40ed368e.3ab5a8",\r
+        "type": "comment",\r
+        "name": "Delete VNFCs from AA&I",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2668.5159606933594,\r
+        "y": 1302.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9ce96bf3.5564d8",\r
+        "type": "comment",\r
+        "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 722.5156555175781,\r
+        "y": 143.0000400543213,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1f360c85.7129b3",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$VNF.VMCount`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1190.5159187316895,\r
+        "y": 466.00019550323486,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "9255e068.9820d",\r
+                "286c3d59.1028e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9255e068.9820d",\r
+        "type": "other",\r
+        "name": "outcome_0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1350.5156784057617,\r
+        "y": 433.00013542175293,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "2489a942.4a3516"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "286c3d59.1028e2",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 918.5157470703125,\r
+        "y": 659.0001831054688,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "e5c9c763.079278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b9d79a3a.863048",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$getVnfHierarchy_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1135.5156555175781,\r
+        "y": 265.0000400543213,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "84f363f0.e8e7",\r
+                "13086394.420dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84f363f0.e8e7",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1160.5157012939453,\r
+        "y": 357.00007247924805,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "1f360c85.7129b3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13086394.420dbc",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1309.5158462524414,\r
+        "y": 262.0000457763672,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "84ab69c7.596568"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a05a06c0.e40ca8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$deleteResource_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3036.5159606933594,\r
+        "y": 1264.0001621246338,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "284cd65f.943f9a",\r
+                "594dbfa0.dad62",\r
+                "99f1090c.d7af38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "284cd65f.943f9a",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3213.5159606933594,\r
+        "y": 1230.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "594dbfa0.dad62",\r
+        "type": "outcome",\r
+        "name": "NOT_FOUND",\r
+        "xml": "<outcome value='NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3213.5159606933594,\r
+        "y": 1344.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "8b2f310c.3a667"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99f1090c.d7af38",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3207.5159606933594,\r
+        "y": 1455.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "b552b052.c7a2d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a876e4b.687d",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3537.5159606933594,\r
+        "y": 1368.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c597d37.a62174",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3551.5159606933594,\r
+        "y": 1501.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8ae5f92a.6ca718",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1560.5157508850098,\r
+        "y": 599.0000905990601,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fc67ab6.6eaa158",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1654.5156707763672,\r
+        "y": 412.00004291534424,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "744fa2f4.ec261c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1376.5156631469727,\r
+        "y": 195.00001525878906,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f7d85358.6288d",\r
+                "c8406caa.cd573"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c8406caa.cd573",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Exception in getting VNF Hierachy\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1593.5157318115234,\r
+        "y": 124.00000190734863,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "cf262ce9.19e47"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf262ce9.19e47",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1804.5157356262207,\r
+        "y": 123.00000190734863,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "84ab69c7.596568",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1425.5158157348633,\r
+        "y": 342.00000762939453,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "fc67ab6.6eaa158",\r
+                "65bc229c.8e3e7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65bc229c.8e3e7c",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Failure in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Failure in getting VNF Hierachy\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1726.5157928466797,\r
+        "y": 334.000039100647,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "aa2ec1f2.09915"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aa2ec1f2.09915",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1990.5158576965332,\r
+        "y": 391.0000467300415,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2489a942.4a3516",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1416.515712738037,\r
+        "y": 542.0001201629639,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "8ae5f92a.6ca718",\r
+                "ceef1c28.04b3b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ceef1c28.04b3b",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name='output.status.message' value=\"VM Count is 0\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1623.5156860351562,\r
+        "y": 486.00011825561523,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "1cbe28de.fbbbc7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cbe28de.fbbbc7",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1838.5156936645508,\r
+        "y": 482.00012016296387,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b2f310c.3a667",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3385.5159606933594,\r
+        "y": 1338.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "4a876e4b.687d",\r
+                "89f5923c.b131b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b552b052.c7a2d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3385.5159606933594,\r
+        "y": 1459.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "4c597d37.a62174",\r
+                "5456f703.22e8b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89f5923c.b131b",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'VNFC not found in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3559.5159606933594,\r
+        "y": 1263.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f3823a70.1d45e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5456f703.22e8b8",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3579.5159606933594,\r
+        "y": 1422.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "acaaebad.6b05d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3823a70.1d45e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3779.5159606933594,\r
+        "y": 1265.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "acaaebad.6b05d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3800.5159606933594,\r
+        "y": 1417.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5986f2c2.fb67ec",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2718.5159606933594,\r
+        "y": 1589.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "b0c9af91.6bcb4",\r
+                "70159783.5c5988"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70159783.5c5988",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in deleting from AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2940.5159606933594,\r
+        "y": 1586.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "1d853e7.f8c78c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d853e7.f8c78c2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3141.5159606933594,\r
+        "y": 1587.000192642212,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d54dfb6c.b35808",\r
+        "type": "execute",\r
+        "name": "execute_TerminateStack",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='terminateStack' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n <parameter name=\"org.onap.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 866.5160369873047,\r
+        "y": 829.0000877380371,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f2fa183b.fe2478",\r
+                "76390931.63f678",\r
+                "a248e01d.5554f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2fa183b.fe2478",\r
+        "type": "outcome",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1252.51566696167,\r
+        "y": 928.0000247955322,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "c74e4035.9683a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "76390931.63f678",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1240.5156936645508,\r
+        "y": 755.0001010894775,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f8f7aee.725285"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8f7aee.725285",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1528.5157318115234,\r
+        "y": 730.0000734329224,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f99445f7.3ce2d8",\r
+                "8a56439.dd87dc",\r
+                "9342b26e.d79f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f99445f7.3ce2d8",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured while terminating Stack '+$VNF.heat-stack-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1799.515739440918,\r
+        "y": 723.0000419616699,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "865efb71.f65ad8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "865efb71.f65ad8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2031.515739440918,\r
+        "y": 716.0000743865967,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a248e01d.5554f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1225.515661239624,\r
+        "y": 846.0001335144043,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f8f7aee.725285"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46beb99f.c7e858",\r
+        "type": "for",\r
+        "name": "for_each_VMs",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1964.5156173706055,\r
+        "y": 1364.6667251586914,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "c6185f4d.2407a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a56439.dd87dc",\r
+        "type": "for",\r
+        "name": "for_each_VMs",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1698.5156326293945,\r
+        "y": 661.3334426879883,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "d7bdbf57.26c59"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7faf4283.ee2c5c",\r
+        "type": "execute",\r
+        "name": "execute_lookupServer",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='lookupServer' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[$i].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2122.515884399414,\r
+        "y": 642.3335418701172,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "5811b8e1.1d2788",\r
+                "c452c6e3.2270a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3dd16271.7df95e",\r
+        "type": "switchNode",\r
+        "name": "switch_isServerFound",\r
+        "xml": "<switch test='`$serverFound`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2351.18253326416,\r
+        "y": 701.3335514068604,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "5ffde0c2.e1cea",\r
+                "8af7e11f.7ec97",\r
+                "8970003d.899c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ffde0c2.e1cea",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2602.182342529297,\r
+        "y": 719.3334407806396,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "3d14d236.13d75e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8af7e11f.7ec97",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2471.1826095581055,\r
+        "y": 785.3333911895752,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "3d14d236.13d75e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3901ca12.d18be6",\r
+        "type": "execute",\r
+        "name": "execute_Delete_AA&I",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='deleteResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $VNF.VM[$i].VNFC' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2983.738006591797,\r
+        "y": 662.1112365722656,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "64546985.ed5cb8",\r
+                "f30b8a9a.4898e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "64546985.ed5cb8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3178.73779296875,\r
+        "y": 776.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "35855037.b86ab"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "349a6222.b0f83e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3322.73779296875,\r
+        "y": 1016.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f30b8a9a.4898e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3168.73779296875,\r
+        "y": 604.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "61f2cd5c.7a4204"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe9d6d88.d73b",\r
+        "type": "comment",\r
+        "name": "Delete VNFCs from AA&I",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3200.73779296875,\r
+        "y": 703.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "61f2cd5c.7a4204",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$deleteResource_result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3360.73779296875,\r
+        "y": 607.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f04d10ed.eb8b5",\r
+                "f58520bc.39a13",\r
+                "ddbcc19.6b9554"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f04d10ed.eb8b5",\r
+        "type": "outcome",\r
+        "name": "SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3585.73779296875,\r
+        "y": 608.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f58520bc.39a13",\r
+        "type": "outcome",\r
+        "name": "NOT_FOUND",\r
+        "xml": "<outcome value='NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3585.73779296875,\r
+        "y": 722.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "1c3006e1.5f9999"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddbcc19.6b9554",\r
+        "type": "outcome",\r
+        "name": "FAILURE",\r
+        "xml": "<outcome value='FAILURE'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3579.73779296875,\r
+        "y": 833.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "3bc91faf.9721e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d570627e.ff9b6",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3909.73779296875,\r
+        "y": 746.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "839c4e83.7ba91",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 3923.73779296875,\r
+        "y": 879.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c3006e1.5f9999",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3757.73779296875,\r
+        "y": 716.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "d570627e.ff9b6",\r
+                "77dc6d59.596044"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3bc91faf.9721e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3757.73779296875,\r
+        "y": 837.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "839c4e83.7ba91",\r
+                "9e8ba944.fc3f28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77dc6d59.596044",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'VNFC not found in AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3889.73779296875,\r
+        "y": 636.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "5d5b4278.833adc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e8ba944.fc3f28",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in updating VNFC in AAI after terminate for '+$VNF.VM[$i].VNFC`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3951.73779296875,\r
+        "y": 800.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "b736bbf9.05cf58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d5b4278.833adc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4106.73779296875,\r
+        "y": 636.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b736bbf9.05cf58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4130.73779296875,\r
+        "y": 797.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "35855037.b86ab",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3130.73779296875,\r
+        "y": 941.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "349a6222.b0f83e",\r
+                "3bb2497b.7c5ea6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3bb2497b.7c5ea6",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n<parameter name='output.status.message' value=\"`'Failure in deleting from AAI after terminate for'+ $VNF.VM[$i].VNFC`\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3355.73779296875,\r
+        "y": 885.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "659440b.711e1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "659440b.711e1c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3543.73779296875,\r
+        "y": 889.1111736297607,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5811b8e1.1d2788",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2292.515766143799,\r
+        "y": 607.0000991821289,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "3dd16271.7df95e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c452c6e3.2270a8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2268.515785217285,\r
+        "y": 819.9999866485596,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "3d14d236.13d75e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7bdbf57.26c59",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic='true'>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1929.5156021118164,\r
+        "y": 637.000036239624,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "7faf4283.ee2c5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38504850.61d7b8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 982.5158996582031,\r
+        "y": 174.00000286102295,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "744fa2f4.ec261c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6185f4d.2407a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2178.515739440918,\r
+        "y": 1352.999948501587,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "23b323e.b0706dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75318a54.96d274",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1751.5157089233398,\r
+        "y": 1366.0000095367432,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "46beb99f.c7e858"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c74e4035.9683a",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$TERMINATE_STATUS`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 917.5156402587891,\r
+        "y": 1584.9999980926514,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "4ad7e2e2.80fbbc",\r
+                "321d4258.ea6c8e",\r
+                "7fb5d4a0.d8d72c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7fb5d4a0.d8d72c",\r
+        "type": "other",\r
+        "name": "outcome_Stack_NOT_FOUND",\r
+        "xml": "<outcome value='STACK_NOT_FOUND'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1168.515640258789,\r
+        "y": 1634.9999980926514,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f6cd71b0.e103b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ad7e2e2.80fbbc",\r
+        "type": "success",\r
+        "name": "outcome_SUCCESS",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1151.5157318115234,\r
+        "y": 1565.0000095367432,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "10447b00.3ac135"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "321d4258.ea6c8e",\r
+        "type": "other",\r
+        "name": "outcome_ERROR",\r
+        "xml": "<outcome value='ERROR'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1147.5157318115234,\r
+        "y": 1483.0000104904175,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "f8f7aee.725285"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9342b26e.d79f8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1785.5157356262207,\r
+        "y": 796.0001058578491,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3d14d236.13d75e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 2679.5155067443848,\r
+        "y": 851.0002326965332,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f6cd71b0.e103b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 949.5156402587891,\r
+        "y": 1902.9999980926514,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "cd903206.5b733",\r
+                "bfb6cbc7.f815b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8970003d.899c7",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2697.5157775878906,\r
+        "y": 581.0000352859497,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "3901ca12.d18be6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfb6cbc7.f815b8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n",\r
+        "comments": "",\r
+        "x": 1210.5157928466797,\r
+        "y": 1943.0000886917114,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cd903206.5b733",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Stack not found with id: '+$VNF.heat-stack-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1236.5158309936523,\r
+        "y": 1847.0000953674316,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "150ff9f8.81ec96"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "150ff9f8.81ec96",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1475.5159225463867,\r
+        "y": 1847.9999618530273,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e48a9296.17631",\r
+        "type": "update",\r
+        "name": "update",\r
+        "xml": "<update resource='SQL' force='true' plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' key=\"UPDATE UPLOAD_CONFIG SET PENDING_DELETE='Y' where VNF_ID = $input.action-identifiers.vnf-id\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 544.2934722900391,\r
+        "y": 1087.8418626785278,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "72c89b11.854c54",\r
+                "d49586d4.b195e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d49586d4.b195e8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 707.8648986816406,\r
+        "y": 1025.6987962722778,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "54464c7.a69a6b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72c89b11.854c54",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 702.5552673339844,\r
+        "y": 1132.1268968582153,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "be28fb9e.5f28a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54464c7.a69a6b4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 877.2934875488281,\r
+        "y": 1026.8577318191528,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "be28fb9e.5f28a8",\r
+                "a160743d.7d7be8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be28fb9e.5f28a8",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 964.222038269043,\r
+        "y": 1131.9843082427979,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7ab9e974.61aa28",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1077.8966522216797,\r
+        "y": 1038.714482307434,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a160743d.7d7be8",\r
+        "type": "execute",\r
+        "name": "execute_SendUEBEvent",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'SQL Exception : Unable to execute Update query for  '+$input.action-identifiers.vnf-id`\"/>\n<parameter name='output.status.message' value=\"`'SQL Exception : Unable to execute Update query for  '+$input.action-identifiers.vnf-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1037.1449890136719,\r
+        "y": 965.2736864089966,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "7ab9e974.61aa28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "363185d6.77050a",\r
+        "type": "execute",\r
+        "name": "execute: flatAndAddToContext",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 198.1823272705078,\r
+        "y": 286.88888931274414,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "de8a7c9e.836e2",\r
+                "826418f0.a63c28",\r
+                "85e99c65.4a4fa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de8a7c9e.836e2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 477.18240547180176,\r
+        "y": 188.88887405395508,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "9bdc33fc.b923c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "118166ac.45a069",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "x": 529.8490829467773,\r
+        "y": 430.6667289733887,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "54ab5c3a.edf484",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 495.5158386230469,\r
+        "y": 342.1429901123047,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "118166ac.45a069",\r
+                "41001205.ed847c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "41001205.ed847c",\r
+        "type": "execute",\r
+        "name": "Report_Error_Flattening_Payload_Json",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 714.4206314086914,\r
+        "y": 296.52393341064453,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "4ca68541.0d26ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ca68541.0d26ac",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 852.7063293457031,\r
+        "y": 350.9525852203369,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "826418f0.a63c28",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 469.8490409851074,\r
+        "y": 267.6667642593384,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "54ab5c3a.edf484"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "259c7a25.8f70b6",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />",\r
+        "comments": "",\r
+        "x": 639.8489990234375,\r
+        "y": 594.6667098999023,\r
+        "z": "964268d8.247e58",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2b2051d.e75f08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 482.51572036743164,\r
+        "y": 502.14301776885986,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "259c7a25.8f70b6",\r
+                "20855cd9.639674"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20855cd9.639674",\r
+        "type": "execute",\r
+        "name": "Report_Error_Loading_Json_Flattening_Plugin",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 775.4204406738281,\r
+        "y": 517.5239543914795,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "fac50adb.b1e8c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fac50adb.b1e8c8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1037.706211090088,\r
+        "y": 511.9525508880615,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "85e99c65.4a4fa",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321.8489646911621,\r
+        "y": 488.66676139831543,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "b2b2051d.e75f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10447b00.3ac135",\r
+        "type": "execute",\r
+        "name": "Report_Success_in_Terminate",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"TERMINATE event executed successfully\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1472.5158386230469,\r
+        "y": 1551.999948501587,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "783fc1dc.7345e",\r
+                "62150030.6031e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "783fc1dc.7345e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1692.5157470703125,\r
+        "y": 1502.6666049957275,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            [\r
+                "75318a54.96d274"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "62150030.6031e",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1663.5158004760742,\r
+        "y": 1598.6666975021362,\r
+        "z": "964268d8.247e58",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index ef0e565..41eeca4 100644 (file)
@@ -1 +1,1124 @@
-[{"id":"2bf5503c.d388e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":664.888916015625,"y":58.25000762939453,"z":"276d1f6b.9bb71","wires":[["dbafdb1b.934f58"]]},{"id":"faf55a2.8a3cca8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":749.138916015625,"y":374.75,"z":"276d1f6b.9bb71","wires":[["b59140c4.f0d26"]]},{"id":"5a7e4d0c.a3ad34","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":745.138916015625,"y":427.5,"z":"276d1f6b.9bb71","wires":[["eda2123c.64453"]]},{"id":"3371a22a.28dfee","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":667.888916015625,"y":127.25,"z":"276d1f6b.9bb71","wires":[["577dc0de.87c37"]]},{"id":"c372101a.aa5ea","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":665.1388549804688,"y":278.50000762939453,"z":"276d1f6b.9bb71","wires":[["2cc0ecf5.2756c4"]]},{"id":"feb957d9.9b3838","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":659.1388549804688,"y":213.25000762939453,"z":"276d1f6b.9bb71","wires":[["48d059a1.2c1378"]]},{"id":"757aad86.e63454","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":737.388916015625,"y":472.75,"z":"276d1f6b.9bb71","wires":[["cbdc9a91.622178"]]},{"id":"c6746ea4.d8171","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":736.888916015625,"y":523.75,"z":"276d1f6b.9bb71","wires":[["fbb83850.3ab008"]]},{"id":"4ac10f26.bb958","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1406.888916015625,"y":608.0000076293945,"z":"276d1f6b.9bb71","wires":[["8f213625.b48068"]]},{"id":"202e4abf.4f39b6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1411.638916015625,"y":706.5000076293945,"z":"276d1f6b.9bb71","wires":[["db7afb3c.2c58c8"]]},{"id":"15804f82.f28b4","type":"success","name":"multipleRunningConfig","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":859.388916015625,"y":579.0000076293945,"z":"276d1f6b.9bb71","wires":[["64a22d10.d8c794"]]},{"id":"a20d1d4b.9026d","type":"get-resource","name":"Retrieve device credentials","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select USER_NAME , PASSWORD , PORT_NUMBER from DEVICE_AUTHENTICATION where VNF_TYPE = $vnf-type \" >\n<parameter name=\"nodeName\" value=\"retrieveDeviceCredentials\" />\n","comments":"","outputs":1,"x":429.63897705078125,"y":123,"z":"276d1f6b.9bb71","wires":[["2bf5503c.d388e","3371a22a.28dfee","d3311276.7aeb5"]]},{"id":"b39573b0.7834d","type":"call","name":"Call device interfacing DG","xml":"<call rpc='`$dg-rpc`' module = '`$module`'  mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n","comments":"","outputs":1,"x":479.888916015625,"y":428.75,"z":"276d1f6b.9bb71","wires":[["faf55a2.8a3cca8","5a7e4d0c.a3ad34","27a86a4d.b60b06"]]},{"id":"26e12fcf.61188","type":"get-resource","name":"Get device interfacing DG","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select dg_rpc , module , protocol from DEVICE_INTERFACE_PROTOCOL where VNF_TYPE = $vnf-type and DG_RPC is not null \" >\n<parameter name=\"nodeName\" value=\"getDeviceInterfacingDG\" />\n","comments":"","outputs":1,"x":406.638916015625,"y":277.75000762939453,"z":"276d1f6b.9bb71","wires":[["c372101a.aa5ea","feb957d9.9b3838","7730960.662fc6c"]]},{"id":"d1f75432.3fab98","type":"get-resource","name":"Check if running config exists","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select count(1) as value from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig.count'>\n<parameter name=\"nodeName\" value=\"getDBRunningConf\" />\n","comments":"","outputs":1,"x":439.8889465332031,"y":562.5,"z":"276d1f6b.9bb71","wires":[["757aad86.e63454","c6746ea4.d8171","df801ff7.3334"]]},{"id":"6624b792.a4c4e8","type":"save","name":"Insert configuration","xml":"<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (REQUEST_ID,  ORIGINATOR_ID,  SERVICE_DESCRIPTION,   ACTION,  VNF_ID,  VNF_NAME, VM_NAME,  VNF_TYPE,  VNFC_TYPE,  HOST_IP_ADDRESS,  CONFIG_INDICATOR,  PENDING_DELETE,  CONTENT ) VALUES ( $input.common-header.request-id , $input.common-header.originator-id , $service-description , $input.action , $input.action-identifiers.vnf-id , $vnf-name , $vm-name , $vnf-type , $vnfc-type , $host-ip-address , 'Running' , NULL , $device-running-config ) \" force='true' >\n<parameter name=\"nodeName\" value=\"InsertConfiguration\" />\n","comments":"","outputs":1,"x":1198.638916015625,"y":619.2500076293945,"z":"276d1f6b.9bb71","wires":[["4ac10f26.bb958","b2654dc9.f9d45"]]},{"id":"11aa7b01.78e3c5","type":"save","name":"Update configuration","xml":"<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"update UPLOAD_CONFIG set CONTENT = $device-running-config , REQUEST_ID = $input.common-header.request-id , ORIGINATOR_ID = $input.common-header.originator-id ,  SERVICE_DESCRIPTION = $service-description , ACTION = $input.action , UPLOAD_DATE = CURRENT_TIMESTAMP  where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='update'>\n<parameter name=\"nodeName\" value=\"updateConfiguration\" />\n","comments":"","outputs":1,"x":1198.1389045715332,"y":716,"z":"276d1f6b.9bb71","wires":[["202e4abf.4f39b6","5fee9fb0.f2325"]]},{"id":"2dbbd306.12300c","type":"switchNode","name":"switch","xml":"<switch test='`$runningConfig.count.value`'>\n","comments":"","outputs":1,"x":650.6389122009277,"y":614.2500095367432,"z":"276d1f6b.9bb71","wires":[["15804f82.f28b4","ede96b3d.4c0f28","c37b362b.01c868"]]},{"id":"c183af40.7e96b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":164.38891983032227,"y":235.50000381469727,"z":"276d1f6b.9bb71","wires":[["a20d1d4b.9026d","b696a7db.8ca138"]]},{"id":"d3311276.7aeb5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":477.13885498046875,"y":187.00000762939453,"z":"276d1f6b.9bb71","wires":[["26e12fcf.61188"]]},{"id":"27a86a4d.b60b06","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":441.63885498046875,"y":499.75,"z":"276d1f6b.9bb71","wires":[["d1f75432.3fab98"]]},{"id":"7730960.662fc6c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":263.1387939453125,"y":353.5,"z":"276d1f6b.9bb71","wires":[["29603b9a.2c5b84"]]},{"id":"df801ff7.3334","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":479.38885498046875,"y":664.75,"z":"276d1f6b.9bb71","wires":[["2dbbd306.12300c"]]},{"id":"b2654dc9.f9d45","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1408.638916015625,"y":657.2500076293945,"z":"276d1f6b.9bb71","wires":[["e8b89f13.0bbb4"]]},{"id":"35b04eb6.6d2212","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1024.638916015625,"y":631.2500076293945,"z":"276d1f6b.9bb71","wires":[["6624b792.a4c4e8"]]},{"id":"5fee9fb0.f2325","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1411.388916015625,"y":772.5000305175781,"z":"276d1f6b.9bb71","wires":[["e8b89f13.0bbb4"]]},{"id":"ed19ec7d.1ee2b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1026.138916015625,"y":694.5000076293945,"z":"276d1f6b.9bb71","wires":[["11aa7b01.78e3c5"]]},{"id":"ede96b3d.4c0f28","type":"success","name":"noRunningConfig","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":850.638916015625,"y":630.0000076293945,"z":"276d1f6b.9bb71","wires":[["35b04eb6.6d2212"]]},{"id":"c37b362b.01c868","type":"failure","name":"runningConfigExists","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":854.138916015625,"y":695.0000076293945,"z":"276d1f6b.9bb71","wires":[["ed19ec7d.1ee2b"]]},{"id":"4896d6e4.5270f8","type":"method","name":"GetRunningConfig","xml":"<method rpc='GetRunningConfig' mode='sync'>\n","comments":"","outputs":1,"x":154.888916015625,"y":152,"z":"276d1f6b.9bb71","wires":[["c183af40.7e96b"]]},{"id":"13a41622.3f89ca","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","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='APPC' version='2.0.0'>","outputs":1,"x":291.88890838623047,"y":67.25000190734863,"z":"276d1f6b.9bb71","wires":[["4896d6e4.5270f8"]]},{"id":"b696a7db.8ca138","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":144.88894653320312,"y":441.5,"z":"276d1f6b.9bb71","wires":[]},{"id":"251494ff.29474c","type":"dgstart","name":"DGSTART","outputs":1,"x":124.3889045715332,"y":68,"z":"276d1f6b.9bb71","wires":[["13a41622.3f89ca"]]},{"id":"dbafdb1b.934f58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":839.888916015625,"y":59.750003814697266,"z":"276d1f6b.9bb71","wires":[["c5226259.21e3e","2490a85b.6f7c38","253f5533.50173a"]]},{"id":"c5226259.21e3e","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n","comments":"","x":1046.388916015625,"y":46,"z":"276d1f6b.9bb71","wires":[]},{"id":"577dc0de.87c37","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":844.638916015625,"y":126.25,"z":"276d1f6b.9bb71","wires":[["920835f9.5449d8","2490a85b.6f7c38","253f5533.50173a"]]},{"id":"920835f9.5449d8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n","comments":"","x":1048.388916015625,"y":85.5,"z":"276d1f6b.9bb71","wires":[]},{"id":"48d059a1.2c1378","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":839.388916015625,"y":196.25000762939453,"z":"276d1f6b.9bb71","wires":[["ed173feb.0d45f","253f5533.50173a","2490a85b.6f7c38"]]},{"id":"2cc0ecf5.2756c4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":843.388916015625,"y":252.50000762939453,"z":"276d1f6b.9bb71","wires":[["e5af31d.d7d11d","253f5533.50173a","2490a85b.6f7c38"]]},{"id":"ed173feb.0d45f","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n","comments":"","x":1053.3889045715332,"y":133.00000762939453,"z":"276d1f6b.9bb71","wires":[]},{"id":"e5af31d.d7d11d","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n","comments":"","x":1051.138916015625,"y":176.00000762939453,"z":"276d1f6b.9bb71","wires":[]},{"id":"253f5533.50173a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />","comments":"","x":1079.138916015625,"y":271.25000762939453,"z":"276d1f6b.9bb71","wires":[]},{"id":"b59140c4.f0d26","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":910.638916015625,"y":325,"z":"276d1f6b.9bb71","wires":[["11ce3fcd.175be","9a30398b.6a1268","81b0e59d.dd52a8"]]},{"id":"eda2123c.64453","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":924.638916015625,"y":410.25,"z":"276d1f6b.9bb71","wires":[["e924feb9.1fc4b","9a30398b.6a1268","81b0e59d.dd52a8"]]},{"id":"11ce3fcd.175be","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n","comments":"","x":1178.638916015625,"y":316.5,"z":"276d1f6b.9bb71","wires":[]},{"id":"e924feb9.1fc4b","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n","comments":"","x":1180.638916015625,"y":359.75,"z":"276d1f6b.9bb71","wires":[]},{"id":"fbb83850.3ab008","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":941.138916015625,"y":522.75,"z":"276d1f6b.9bb71","wires":[["9897d37f.3e86f","81b0e59d.dd52a8","9a30398b.6a1268"]]},{"id":"cbdc9a91.622178","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":939.888916015625,"y":468.25,"z":"276d1f6b.9bb71","wires":[["1dd1ceae.7c5731","81b0e59d.dd52a8","9a30398b.6a1268"]]},{"id":"1dd1ceae.7c5731","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n","comments":"","x":1179.388916015625,"y":404.25,"z":"276d1f6b.9bb71","wires":[]},{"id":"9897d37f.3e86f","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n","comments":"","x":1179.638916015625,"y":444.25,"z":"276d1f6b.9bb71","wires":[]},{"id":"81b0e59d.dd52a8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />","comments":"","x":1187.138916015625,"y":543.5,"z":"276d1f6b.9bb71","wires":[]},{"id":"64a22d10.d8c794","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1577.638916015625,"y":576.7500076293945,"z":"276d1f6b.9bb71","wires":[["d55829a0.692118","53f66547.a56dac","75356e6f.a67ac"]]},{"id":"d55829a0.692118","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n","comments":"","x":1803.388916015625,"y":530.2500610351562,"z":"276d1f6b.9bb71","wires":[]},{"id":"53f66547.a56dac","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />","comments":"","x":1802.638916015625,"y":710.0000305175781,"z":"276d1f6b.9bb71","wires":[]},{"id":"8f213625.b48068","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1582.138916015625,"y":632.75,"z":"276d1f6b.9bb71","wires":[["b2368a5.6789578","53f66547.a56dac","75356e6f.a67ac"]]},{"id":"b2368a5.6789578","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n","comments":"","x":1806.638916015625,"y":575.2500305175781,"z":"276d1f6b.9bb71","wires":[]},{"id":"db7afb3c.2c58c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1582.638916015625,"y":693.25,"z":"276d1f6b.9bb71","wires":[["cc111001.f32a8","53f66547.a56dac","75356e6f.a67ac"]]},{"id":"cc111001.f32a8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n","comments":"","x":1807.388916015625,"y":621.2500305175781,"z":"276d1f6b.9bb71","wires":[]},{"id":"2490a85b.6f7c38","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n","comments":"","outputs":1,"x":1070.888916015625,"y":227.25000762939453,"z":"276d1f6b.9bb71","wires":[[]]},{"id":"9a30398b.6a1268","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n","comments":"","outputs":1,"x":1186.888916015625,"y":499.25,"z":"276d1f6b.9bb71","wires":[[]]},{"id":"75356e6f.a67ac","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n","comments":"","outputs":1,"x":1800.888916015625,"y":663.2500305175781,"z":"276d1f6b.9bb71","wires":[[]]},{"id":"21660aea.e01ea6","type":"set","name":"set DG parameters","xml":"<set>\n<parameter name='config.vnf-type' value=\"`$vnf-type`\" />\n<parameter name='config.vnf-name' value=\"`$vnf-name`\" />\n<parameter name='config.protocol' value=\"`$protocol`\" />\n<parameter name='config.host-ip-address' value=\"`$host-ip-address`\" />\n<parameter name='config.user-name' value=\"`$USER-NAME`\" />\n<parameter name='config.password' value=\"`$PASSWORD`\" />\n<parameter name='config.port-number' value=\"`$PORT-NUMBER`\" />","comments":"","x":585.888916015625,"y":330,"z":"276d1f6b.9bb71","wires":[]},{"id":"29603b9a.2c5b84","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":395.888916015625,"y":353,"z":"276d1f6b.9bb71","wires":[["21660aea.e01ea6","b39573b0.7834d"]]},{"id":"e8b89f13.0bbb4","type":"get-resource","name":"Get Running Config Id","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select UPLOAD_CONFIG_ID from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig'>\n","comments":"","outputs":1,"x":1648.888916015625,"y":779.3333435058594,"z":"276d1f6b.9bb71","wires":[["ab251259.3d74","d14179e1.547d98","aec5de94.0b1ee"]]},{"id":"ab251259.3d74","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2001.388916015625,"y":733.5833740234375,"z":"276d1f6b.9bb71","wires":[["bf29ea96.6ffa68"]]},{"id":"d14179e1.547d98","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1993.888916015625,"y":793.5833740234375,"z":"276d1f6b.9bb71","wires":[["e27c0f02.9b77"]]},{"id":"bf29ea96.6ffa68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2158.8885498046875,"y":732.0833740234375,"z":"276d1f6b.9bb71","wires":[["5b24ae34.dd7d9","dfd2268c.d462e8","babb2c3a.ce283"]]},{"id":"5b24ae34.dd7d9","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n","comments":"","x":2393.3887939453125,"y":673.0833740234375,"z":"276d1f6b.9bb71","wires":[]},{"id":"babb2c3a.ce283","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n","comments":"","outputs":1,"x":2384.8885498046875,"y":772.0833740234375,"z":"276d1f6b.9bb71","wires":[[]]},{"id":"e27c0f02.9b77","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2159.1387939453125,"y":794.5833740234375,"z":"276d1f6b.9bb71","wires":[["cf88cbf8.678fd8","dfd2268c.d462e8","babb2c3a.ce283"]]},{"id":"dfd2268c.d462e8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />","comments":"","x":2400.1385498046875,"y":827.3333740234375,"z":"276d1f6b.9bb71","wires":[]},{"id":"aec5de94.0b1ee","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1985.388671875,"y":861.5833740234375,"z":"276d1f6b.9bb71","wires":[[]]},{"id":"cf88cbf8.678fd8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n","comments":"","x":2400.6387939453125,"y":723.0833740234375,"z":"276d1f6b.9bb71","wires":[]}]
+[\r
+    {\r
+        "id": "2bf5503c.d388e",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 664.888916015625,\r
+        "y": 58.25000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "dbafdb1b.934f58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "faf55a2.8a3cca8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 749.138916015625,\r
+        "y": 374.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "b59140c4.f0d26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a7e4d0c.a3ad34",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 745.138916015625,\r
+        "y": 427.5,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "eda2123c.64453"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3371a22a.28dfee",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 667.888916015625,\r
+        "y": 127.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "577dc0de.87c37"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c372101a.aa5ea",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 665.1388549804688,\r
+        "y": 278.50000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "2cc0ecf5.2756c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "feb957d9.9b3838",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 659.1388549804688,\r
+        "y": 213.25000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "48d059a1.2c1378"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "757aad86.e63454",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 737.388916015625,\r
+        "y": 472.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "cbdc9a91.622178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6746ea4.d8171",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 736.888916015625,\r
+        "y": 523.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "fbb83850.3ab008"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ac10f26.bb958",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1406.888916015625,\r
+        "y": 608.0000076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "8f213625.b48068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "202e4abf.4f39b6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1411.638916015625,\r
+        "y": 706.5000076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "db7afb3c.2c58c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15804f82.f28b4",\r
+        "type": "success",\r
+        "name": "multipleRunningConfig",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 859.388916015625,\r
+        "y": 579.0000076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "64a22d10.d8c794"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a20d1d4b.9026d",\r
+        "type": "get-resource",\r
+        "name": "Retrieve device credentials",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select USER_NAME , PASSWORD , PORT_NUMBER from DEVICE_AUTHENTICATION where VNF_TYPE = $vnf-type \" >\n<parameter name=\"nodeName\" value=\"retrieveDeviceCredentials\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 429.63897705078125,\r
+        "y": 123,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "2bf5503c.d388e",\r
+                "3371a22a.28dfee",\r
+                "d3311276.7aeb5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b39573b0.7834d",\r
+        "type": "call",\r
+        "name": "Call device interfacing DG",\r
+        "xml": "<call rpc='`$dg-rpc`' module = '`$module`'  mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 479.888916015625,\r
+        "y": 428.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "faf55a2.8a3cca8",\r
+                "5a7e4d0c.a3ad34",\r
+                "27a86a4d.b60b06"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26e12fcf.61188",\r
+        "type": "get-resource",\r
+        "name": "Get device interfacing DG",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select dg_rpc , module , protocol from DEVICE_INTERFACE_PROTOCOL where VNF_TYPE = $vnf-type and DG_RPC is not null \" >\n<parameter name=\"nodeName\" value=\"getDeviceInterfacingDG\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 406.638916015625,\r
+        "y": 277.75000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "c372101a.aa5ea",\r
+                "feb957d9.9b3838",\r
+                "7730960.662fc6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1f75432.3fab98",\r
+        "type": "get-resource",\r
+        "name": "Check if running config exists",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select count(1) as value from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig.count'>\n<parameter name=\"nodeName\" value=\"getDBRunningConf\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 439.8889465332031,\r
+        "y": 562.5,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "757aad86.e63454",\r
+                "c6746ea4.d8171",\r
+                "df801ff7.3334"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6624b792.a4c4e8",\r
+        "type": "save",\r
+        "name": "Insert configuration",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (REQUEST_ID,  ORIGINATOR_ID,  SERVICE_DESCRIPTION,   ACTION,  VNF_ID,  VNF_NAME, VM_NAME,  VNF_TYPE,  VNFC_TYPE,  HOST_IP_ADDRESS,  CONFIG_INDICATOR,  PENDING_DELETE,  CONTENT ) VALUES ( $input.common-header.request-id , $input.common-header.originator-id , $service-description , $input.action , $input.action-identifiers.vnf-id , $vnf-name , $vm-name , $vnf-type , $vnfc-type , $host-ip-address , 'Running' , NULL , $device-running-config ) \" force='true' >\n<parameter name=\"nodeName\" value=\"InsertConfiguration\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1198.638916015625,\r
+        "y": 619.2500076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "4ac10f26.bb958",\r
+                "b2654dc9.f9d45"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11aa7b01.78e3c5",\r
+        "type": "save",\r
+        "name": "Update configuration",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"update UPLOAD_CONFIG set CONTENT = $device-running-config , REQUEST_ID = $input.common-header.request-id , ORIGINATOR_ID = $input.common-header.originator-id ,  SERVICE_DESCRIPTION = $service-description , ACTION = $input.action , UPLOAD_DATE = CURRENT_TIMESTAMP  where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='update'>\n<parameter name=\"nodeName\" value=\"updateConfiguration\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1198.1389045715332,\r
+        "y": 716,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "202e4abf.4f39b6",\r
+                "5fee9fb0.f2325"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2dbbd306.12300c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$runningConfig.count.value`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 650.6389122009277,\r
+        "y": 614.2500095367432,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "15804f82.f28b4",\r
+                "ede96b3d.4c0f28",\r
+                "c37b362b.01c868"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c183af40.7e96b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 164.38891983032227,\r
+        "y": 235.50000381469727,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "a20d1d4b.9026d",\r
+                "b696a7db.8ca138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3311276.7aeb5",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 477.13885498046875,\r
+        "y": 187.00000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "26e12fcf.61188"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27a86a4d.b60b06",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 441.63885498046875,\r
+        "y": 499.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "d1f75432.3fab98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7730960.662fc6c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 263.1387939453125,\r
+        "y": 353.5,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "29603b9a.2c5b84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df801ff7.3334",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 479.38885498046875,\r
+        "y": 664.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "2dbbd306.12300c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2654dc9.f9d45",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1408.638916015625,\r
+        "y": 657.2500076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "e8b89f13.0bbb4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35b04eb6.6d2212",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1024.638916015625,\r
+        "y": 631.2500076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "6624b792.a4c4e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fee9fb0.f2325",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1411.388916015625,\r
+        "y": 772.5000305175781,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "e8b89f13.0bbb4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed19ec7d.1ee2b",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1026.138916015625,\r
+        "y": 694.5000076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "11aa7b01.78e3c5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ede96b3d.4c0f28",\r
+        "type": "success",\r
+        "name": "noRunningConfig",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 850.638916015625,\r
+        "y": 630.0000076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "35b04eb6.6d2212"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c37b362b.01c868",\r
+        "type": "failure",\r
+        "name": "runningConfigExists",\r
+        "xml": "<outcome value='1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 854.138916015625,\r
+        "y": 695.0000076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "ed19ec7d.1ee2b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4896d6e4.5270f8",\r
+        "type": "method",\r
+        "name": "GetRunningConfig",\r
+        "xml": "<method rpc='GetRunningConfig' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 154.888916015625,\r
+        "y": 152,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "c183af40.7e96b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13a41622.3f89ca",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 291.88890838623047,\r
+        "y": 67.25000190734863,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "4896d6e4.5270f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b696a7db.8ca138",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 144.88894653320312,\r
+        "y": 441.5,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "251494ff.29474c",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 124.3889045715332,\r
+        "y": 68,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "13a41622.3f89ca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbafdb1b.934f58",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 839.888916015625,\r
+        "y": 59.750003814697266,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "c5226259.21e3e",\r
+                "2490a85b.6f7c38",\r
+                "253f5533.50173a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5226259.21e3e",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n",\r
+        "comments": "",\r
+        "x": 1046.388916015625,\r
+        "y": 46,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "577dc0de.87c37",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 844.638916015625,\r
+        "y": 126.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "920835f9.5449d8",\r
+                "2490a85b.6f7c38",\r
+                "253f5533.50173a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "920835f9.5449d8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n",\r
+        "comments": "",\r
+        "x": 1048.388916015625,\r
+        "y": 85.5,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "48d059a1.2c1378",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 839.388916015625,\r
+        "y": 196.25000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "ed173feb.0d45f",\r
+                "253f5533.50173a",\r
+                "2490a85b.6f7c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cc0ecf5.2756c4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 843.388916015625,\r
+        "y": 252.50000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "e5af31d.d7d11d",\r
+                "253f5533.50173a",\r
+                "2490a85b.6f7c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed173feb.0d45f",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n",\r
+        "comments": "",\r
+        "x": 1053.3889045715332,\r
+        "y": 133.00000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5af31d.d7d11d",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n",\r
+        "comments": "",\r
+        "x": 1051.138916015625,\r
+        "y": 176.00000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "253f5533.50173a",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
+        "comments": "",\r
+        "x": 1079.138916015625,\r
+        "y": 271.25000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b59140c4.f0d26",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 910.638916015625,\r
+        "y": 325,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "11ce3fcd.175be",\r
+                "9a30398b.6a1268",\r
+                "81b0e59d.dd52a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eda2123c.64453",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 924.638916015625,\r
+        "y": 410.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "e924feb9.1fc4b",\r
+                "9a30398b.6a1268",\r
+                "81b0e59d.dd52a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11ce3fcd.175be",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "x": 1178.638916015625,\r
+        "y": 316.5,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e924feb9.1fc4b",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",\r
+        "comments": "",\r
+        "x": 1180.638916015625,\r
+        "y": 359.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fbb83850.3ab008",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941.138916015625,\r
+        "y": 522.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "9897d37f.3e86f",\r
+                "81b0e59d.dd52a8",\r
+                "9a30398b.6a1268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbdc9a91.622178",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 939.888916015625,\r
+        "y": 468.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "1dd1ceae.7c5731",\r
+                "81b0e59d.dd52a8",\r
+                "9a30398b.6a1268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1dd1ceae.7c5731",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n",\r
+        "comments": "",\r
+        "x": 1179.388916015625,\r
+        "y": 404.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9897d37f.3e86f",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",\r
+        "comments": "",\r
+        "x": 1179.638916015625,\r
+        "y": 444.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "81b0e59d.dd52a8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
+        "comments": "",\r
+        "x": 1187.138916015625,\r
+        "y": 543.5,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "64a22d10.d8c794",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1577.638916015625,\r
+        "y": 576.7500076293945,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "d55829a0.692118",\r
+                "53f66547.a56dac",\r
+                "75356e6f.a67ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d55829a0.692118",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n",\r
+        "comments": "",\r
+        "x": 1803.388916015625,\r
+        "y": 530.2500610351562,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "53f66547.a56dac",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
+        "comments": "",\r
+        "x": 1802.638916015625,\r
+        "y": 710.0000305175781,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8f213625.b48068",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1582.138916015625,\r
+        "y": 632.75,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "b2368a5.6789578",\r
+                "53f66547.a56dac",\r
+                "75356e6f.a67ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2368a5.6789578",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",\r
+        "comments": "",\r
+        "x": 1806.638916015625,\r
+        "y": 575.2500305175781,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "db7afb3c.2c58c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1582.638916015625,\r
+        "y": 693.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "cc111001.f32a8",\r
+                "53f66547.a56dac",\r
+                "75356e6f.a67ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc111001.f32a8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",\r
+        "comments": "",\r
+        "x": 1807.388916015625,\r
+        "y": 621.2500305175781,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2490a85b.6f7c38",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1070.888916015625,\r
+        "y": 227.25000762939453,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a30398b.6a1268",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1186.888916015625,\r
+        "y": 499.25,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "75356e6f.a67ac",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1800.888916015625,\r
+        "y": 663.2500305175781,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "21660aea.e01ea6",\r
+        "type": "set",\r
+        "name": "set DG parameters",\r
+        "xml": "<set>\n<parameter name='config.vnf-type' value=\"`$vnf-type`\" />\n<parameter name='config.vnf-name' value=\"`$vnf-name`\" />\n<parameter name='config.protocol' value=\"`$protocol`\" />\n<parameter name='config.host-ip-address' value=\"`$host-ip-address`\" />\n<parameter name='config.user-name' value=\"`$USER-NAME`\" />\n<parameter name='config.password' value=\"`$PASSWORD`\" />\n<parameter name='config.port-number' value=\"`$PORT-NUMBER`\" />",\r
+        "comments": "",\r
+        "x": 585.888916015625,\r
+        "y": 330,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29603b9a.2c5b84",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 395.888916015625,\r
+        "y": 353,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "21660aea.e01ea6",\r
+                "b39573b0.7834d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8b89f13.0bbb4",\r
+        "type": "get-resource",\r
+        "name": "Get Running Config Id",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select UPLOAD_CONFIG_ID from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1648.888916015625,\r
+        "y": 779.3333435058594,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "ab251259.3d74",\r
+                "d14179e1.547d98",\r
+                "aec5de94.0b1ee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab251259.3d74",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2001.388916015625,\r
+        "y": 733.5833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "bf29ea96.6ffa68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d14179e1.547d98",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1993.888916015625,\r
+        "y": 793.5833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "e27c0f02.9b77"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf29ea96.6ffa68",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2158.8885498046875,\r
+        "y": 732.0833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "5b24ae34.dd7d9",\r
+                "dfd2268c.d462e8",\r
+                "babb2c3a.ce283"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b24ae34.dd7d9",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n",\r
+        "comments": "",\r
+        "x": 2393.3887939453125,\r
+        "y": 673.0833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "babb2c3a.ce283",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2384.8885498046875,\r
+        "y": 772.0833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e27c0f02.9b77",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2159.1387939453125,\r
+        "y": 794.5833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            [\r
+                "cf88cbf8.678fd8",\r
+                "dfd2268c.d462e8",\r
+                "babb2c3a.ce283"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfd2268c.d462e8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
+        "comments": "",\r
+        "x": 2400.1385498046875,\r
+        "y": 827.3333740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aec5de94.0b1ee",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1985.388671875,\r
+        "y": 861.5833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf88cbf8.678fd8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",\r
+        "comments": "",\r
+        "x": 2400.6387939453125,\r
+        "y": 723.0833740234375,\r
+        "z": "276d1f6b.9bb71",\r
+        "wires": []\r
+    }\r
+]\r
index 4ad2d6b..a65258e 100644 (file)
@@ -1 +1,127 @@
-[{"id":"1a937537.26e25b","type":"dgstart","name":"DGSTART","outputs":1,"x":128,"y":84,"z":"766912fd.5b210c","wires":[["cb060236.e98d1"]]},{"id":"cb060236.e98d1","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","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='APPC' version='2.0.0'>","outputs":1,"x":132,"y":174,"z":"766912fd.5b210c","wires":[["40de1ddd.58f674"]]},{"id":"40de1ddd.58f674","type":"method","name":"SWITCH_Restart","xml":"<method rpc='SWITCH_Restart' mode='sync'>\n","comments":"","outputs":1,"x":153,"y":260,"z":"766912fd.5b210c","wires":[["5b95ace9.c583d4"]]},{"id":"ec6eb90f.cac088","type":"execute","name":"execute","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='waitMethod' >\n<parameter name=\"waitTime\" value=\"60000\" />\n","comments":"","outputs":1,"x":549,"y":260,"z":"766912fd.5b210c","wires":[["db7e112d.9bbe4","6aa99cde.cd13f4"]]},{"id":"5b95ace9.c583d4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":364,"y":260,"z":"766912fd.5b210c","wires":[["ec6eb90f.cac088"]]},{"id":"db7e112d.9bbe4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":725,"y":218,"z":"766912fd.5b210c","wires":[["d79b02d0.df76d"]]},{"id":"d79b02d0.df76d","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":910,"y":252,"z":"766912fd.5b210c","wires":[]},{"id":"6aa99cde.cd13f4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":726,"y":283,"z":"766912fd.5b210c","wires":[["d79b02d0.df76d"]]}]
+[\r
+    {\r
+        "id": "1a937537.26e25b",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 128,\r
+        "y": 84,\r
+        "z": "766912fd.5b210c",\r
+        "wires": [\r
+            [\r
+                "cb060236.e98d1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb060236.e98d1",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 132,\r
+        "y": 174,\r
+        "z": "766912fd.5b210c",\r
+        "wires": [\r
+            [\r
+                "40de1ddd.58f674"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40de1ddd.58f674",\r
+        "type": "method",\r
+        "name": "SWITCH_Restart",\r
+        "xml": "<method rpc='SWITCH_Restart' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 153,\r
+        "y": 260,\r
+        "z": "766912fd.5b210c",\r
+        "wires": [\r
+            [\r
+                "5b95ace9.c583d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec6eb90f.cac088",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='waitMethod' >\n<parameter name=\"waitTime\" value=\"60000\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 549,\r
+        "y": 260,\r
+        "z": "766912fd.5b210c",\r
+        "wires": [\r
+            [\r
+                "db7e112d.9bbe4",\r
+                "6aa99cde.cd13f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b95ace9.c583d4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 364,\r
+        "y": 260,\r
+        "z": "766912fd.5b210c",\r
+        "wires": [\r
+            [\r
+                "ec6eb90f.cac088"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db7e112d.9bbe4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 725,\r
+        "y": 218,\r
+        "z": "766912fd.5b210c",\r
+        "wires": [\r
+            [\r
+                "d79b02d0.df76d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d79b02d0.df76d",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n\n",\r
+        "comments": "",\r
+        "x": 910,\r
+        "y": 252,\r
+        "z": "766912fd.5b210c",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6aa99cde.cd13f4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 726,\r
+        "y": 283,\r
+        "z": "766912fd.5b210c",\r
+        "wires": [\r
+            [\r
+                "d79b02d0.df76d"\r
+            ]\r
+        ]\r
+    }\r
+]\r
index 9e35200..a6ca541 100644 (file)
@@ -1 +1,275 @@
-[{"id":"f0a14063.49fef","type":"dgstart","name":"DGSTART","outputs":1,"x":144.66665649414062,"y":113,"z":"a4e67f56.cb2c9","wires":[["71609fd4.fe5e7"]]},{"id":"71609fd4.fe5e7","type":"service-logic","name":"APPC 2.0.0.0","module":"APPC","version":"2.0.0.0","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='APPC' version='2.0.0.0'>","outputs":1,"x":187.66665649414062,"y":161,"z":"a4e67f56.cb2c9","wires":[["7a306dce.e01f54"]]},{"id":"7a306dce.e01f54","type":"method","name":"VSBG_Test","xml":"<method rpc='VSBG_Test' mode='sync'>\n","comments":"","outputs":1,"x":233.66665649414062,"y":213,"z":"a4e67f56.cb2c9","wires":[["33d1bd3b.3839b2"]]},{"id":"f8461bde.e321d8","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":1050.3810119628906,"y":819.5714111328125,"z":"a4e67f56.cb2c9","wires":[]},{"id":"dcf02cbe.eaddb","type":"execute","name":"execute: operationStateValidation","xml":"<execute plugin='org.onap.appc.dg.netconf.NetconfClientPlugin' method='operationStateValidation' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"org.onap.appc.vftype\" value=\"`$vnf-type`\" />\n","comments":"","outputs":1,"x":642.6666564941406,"y":522,"z":"a4e67f56.cb2c9","wires":[["f5fa430a.9e4f7","1de49110.b5b6cf"]]},{"id":"1de49110.b5b6cf","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":948.4444274902344,"y":475.77777099609375,"z":"a4e67f56.cb2c9","wires":[["460816d8.46ee68"]]},{"id":"f5fa430a.9e4f7","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":956.3334045410156,"y":702.22216796875,"z":"a4e67f56.cb2c9","wires":[["f8461bde.e321d8"]]},{"id":"460816d8.46ee68","type":"execute","name":"execute: handleErrorToDCAE","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n<parameter name='output.status.message' value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","outputs":1,"x":1058.4604187011719,"y":545.7619018554688,"z":"a4e67f56.cb2c9","wires":[["4160821.27be47c"]]},{"id":"39bde04b.627fc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value=\"`$org.onap.appc.dg.error`\" />\n<parameter name='output.status.code' value='401'/>","comments":"","x":1192.6665344238281,"y":702.857177734375,"z":"a4e67f56.cb2c9","wires":[]},{"id":"4160821.27be47c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1128.2380676269531,"y":645.4285888671875,"z":"a4e67f56.cb2c9","wires":[["39bde04b.627fc"]]},{"id":"33d1bd3b.3839b2","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":285.6666564941406,"y":264.0000305175781,"z":"a4e67f56.cb2c9","wires":[["23f9f2ae.ed9cde","ea3be85c.c64088"]]},{"id":"ea3be85c.c64088","type":"execute","name":"execute: getVNFData","xml":"<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >","comments":"","outputs":1,"x":440.6665344238281,"y":312.00006103515625,"z":"a4e67f56.cb2c9","wires":[["d5e1f466.c9bfe8","cd5322eb.78cc6"]]},{"id":"23f9f2ae.ed9cde","type":"set","name":"set","xml":"<set>\n\t<parameter name='aai.vnfID' value='`$org.onap.appc.vfid`' />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t","comments":"","x":455.6666564941406,"y":259.0000305175781,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"cd5322eb.78cc6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":707.6666564941406,"y":260.3332824707031,"z":"a4e67f56.cb2c9","wires":[["a7848345.ee52c"]]},{"id":"d5e1f466.c9bfe8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":459.6666564941406,"y":379.9999694824219,"z":"a4e67f56.cb2c9","wires":[["82d20977.7a5348"]]},{"id":"a7848345.ee52c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\n","comments":"","x":874.6666564941406,"y":259.3332824707031,"z":"a4e67f56.cb2c9","wires":[]},{"id":"ed1b86af.b4bf98","type":"set","name":"set","xml":"<set>\n\t<parameter name='org.onap.appc.vftype' value='`$aai.input.data.vnf-type`' />\t\n\t<parameter name='vnf-type' value='`$aai.input.data.vnf-type`' />","comments":"","x":716.6666564941406,"y":445,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"82d20977.7a5348","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":512.6666564941406,"y":445,"z":"a4e67f56.cb2c9","wires":[["ed1b86af.b4bf98","dcf02cbe.eaddb"]]}]
+[\r
+    {\r
+        "id": "f0a14063.49fef",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 144.66665649414062,\r
+        "y": 113,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "71609fd4.fe5e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "71609fd4.fe5e7",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0.0",\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='APPC' version='2.0.0.0'>",\r
+        "outputs": 1,\r
+        "x": 187.66665649414062,\r
+        "y": 161,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "7a306dce.e01f54"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a306dce.e01f54",\r
+        "type": "method",\r
+        "name": "VSBG_Test",\r
+        "xml": "<method rpc='VSBG_Test' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 233.66665649414062,\r
+        "y": 213,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "33d1bd3b.3839b2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8461bde.e321d8",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 1050.3810119628906,\r
+        "y": 819.5714111328125,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dcf02cbe.eaddb",\r
+        "type": "execute",\r
+        "name": "execute: operationStateValidation",\r
+        "xml": "<execute plugin='org.onap.appc.dg.netconf.NetconfClientPlugin' method='operationStateValidation' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"org.onap.appc.vftype\" value=\"`$vnf-type`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 642.6666564941406,\r
+        "y": 522,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "f5fa430a.9e4f7",\r
+                "1de49110.b5b6cf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1de49110.b5b6cf",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 948.4444274902344,\r
+        "y": 475.77777099609375,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "460816d8.46ee68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f5fa430a.9e4f7",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 956.3334045410156,\r
+        "y": 702.22216796875,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "f8461bde.e321d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "460816d8.46ee68",\r
+        "type": "execute",\r
+        "name": "execute: handleErrorToDCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n<parameter name='output.status.message' value=\"`$org.onap.appc.dg.error`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1058.4604187011719,\r
+        "y": 545.7619018554688,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "4160821.27be47c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39bde04b.627fc",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value=\"`$org.onap.appc.dg.error`\" />\n<parameter name='output.status.code' value='401'/>",\r
+        "comments": "",\r
+        "x": 1192.6665344238281,\r
+        "y": 702.857177734375,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4160821.27be47c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1128.2380676269531,\r
+        "y": 645.4285888671875,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "39bde04b.627fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33d1bd3b.3839b2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 285.6666564941406,\r
+        "y": 264.0000305175781,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "23f9f2ae.ed9cde",\r
+                "ea3be85c.c64088"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea3be85c.c64088",\r
+        "type": "execute",\r
+        "name": "execute: getVNFData",\r
+        "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 440.6665344238281,\r
+        "y": 312.00006103515625,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "d5e1f466.c9bfe8",\r
+                "cd5322eb.78cc6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23f9f2ae.ed9cde",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n\t<parameter name='aai.vnfID' value='`$org.onap.appc.vfid`' />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t",\r
+        "comments": "",\r
+        "x": 455.6666564941406,\r
+        "y": 259.0000305175781,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd5322eb.78cc6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 707.6666564941406,\r
+        "y": 260.3332824707031,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "a7848345.ee52c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5e1f466.c9bfe8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 459.6666564941406,\r
+        "y": 379.9999694824219,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "82d20977.7a5348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a7848345.ee52c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\n",\r
+        "comments": "",\r
+        "x": 874.6666564941406,\r
+        "y": 259.3332824707031,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ed1b86af.b4bf98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n\t<parameter name='org.onap.appc.vftype' value='`$aai.input.data.vnf-type`' />\t\n\t<parameter name='vnf-type' value='`$aai.input.data.vnf-type`' />",\r
+        "comments": "",\r
+        "x": 716.6666564941406,\r
+        "y": 445,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "82d20977.7a5348",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 512.6666564941406,\r
+        "y": 445,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "ed1b86af.b4bf98",\r
+                "dcf02cbe.eaddb"\r
+            ]\r
+        ]\r
+    }\r
+]\r
index 6b2b64b..f888238 100644 (file)
@@ -1 +1,318 @@
-[{"id":"3a3db435.c14d7c","type":"dgstart","name":"DGSTART","outputs":1,"x":2774.666748046875,"y":111.66666412353516,"z":"a8867a54.b68aa8","wires":[["427b0879.a63f58"]]},{"id":"427b0879.a63f58","type":"service-logic","name":"APPC 2.0.0.1","module":"APPC","version":"2.0.0.1","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='APPC' version='2.0.0.1'>","outputs":1,"x":2817.666748046875,"y":159.66666412353516,"z":"a8867a54.b68aa8","wires":[["3d555498.3ca7bc"]]},{"id":"3d555498.3ca7bc","type":"method","name":"VSBG_Test","xml":"<method rpc='VSBG_Test' mode='sync'>\n","comments":"","outputs":1,"x":2863.666748046875,"y":211.66666412353516,"z":"a8867a54.b68aa8","wires":[["231dec0e.0771c4"]]},{"id":"d736d249.7d49d","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":3697.381103515625,"y":960.2380599975586,"z":"a8867a54.b68aa8","wires":[]},{"id":"b8218641.e8a788","type":"execute","name":"execute: operationStateValidation","xml":"<execute plugin='org.onap.appc.dg.netconf.NetconfClientPlugin' method='operationStateValidation' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"org.onap.appc.vftype\" value=\"`$vnf-type`\" />\n","comments":"","outputs":1,"x":3289.666748046875,"y":662.6666488647461,"z":"a8867a54.b68aa8","wires":[["b0b4fe67.6a463","9e903785.2aab28"]]},{"id":"9e903785.2aab28","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3595.4445190429688,"y":616.4444198608398,"z":"a8867a54.b68aa8","wires":[["834e02e0.1b95d"]]},{"id":"b0b4fe67.6a463","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3603.33349609375,"y":842.8888168334961,"z":"a8867a54.b68aa8","wires":[["d736d249.7d49d"]]},{"id":"834e02e0.1b95d","type":"execute","name":"execute: handleErrorToDCAE","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","outputs":1,"x":3705.4605102539062,"y":686.4285507202148,"z":"a8867a54.b68aa8","wires":[["dbbfce3e.4a9d7"]]},{"id":"7ef22aa1.c2f8f4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value=\"`$org.onap.appc.dg.error`\" />\n<parameter name='output.status.code' value='401'/>","comments":"","x":3839.6666259765625,"y":843.5238265991211,"z":"a8867a54.b68aa8","wires":[]},{"id":"dbbfce3e.4a9d7","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3775.2381591796875,"y":786.0952377319336,"z":"a8867a54.b68aa8","wires":[["7ef22aa1.c2f8f4"]]},{"id":"19fa898d.6ab716","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2932.666748046875,"y":404.6666793823242,"z":"a8867a54.b68aa8","wires":[["bae44e29.4cfa5","ff4aa6b.9a66558"]]},{"id":"ff4aa6b.9a66558","type":"execute","name":"execute: getVNFData","xml":"<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >","comments":"","outputs":1,"x":3087.6666259765625,"y":452.66670989990234,"z":"a8867a54.b68aa8","wires":[["4284b163.4ffc1","4c1b9cb6.5050f4"]]},{"id":"bae44e29.4cfa5","type":"set","name":"set","xml":"<set>\n\t<parameter name='aai.vnfID' value=\"`$input.action-identifiers.vnf-id`\" />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t","comments":"","x":3102.666748046875,"y":399.6666793823242,"z":"a8867a54.b68aa8","wires":[]},{"id":"4c1b9cb6.5050f4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3354.666748046875,"y":400.9999313354492,"z":"a8867a54.b68aa8","wires":[["a29a3ba4.2bd308"]]},{"id":"4284b163.4ffc1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3106.666748046875,"y":520.666618347168,"z":"a8867a54.b68aa8","wires":[["94c7df7b.7fbd"]]},{"id":"a29a3ba4.2bd308","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\n","comments":"","x":3521.666748046875,"y":399.9999313354492,"z":"a8867a54.b68aa8","wires":[]},{"id":"f5661947.16b088","type":"set","name":"set","xml":"<set>\n\t<parameter name='org.onap.appc.vftype' value='`$aai.input.data.vnf-type`' />\t\n\t<parameter name='vnf-type' value='`$aai.input.data.vnf-type`' />","comments":"","x":3363.666748046875,"y":585.6666488647461,"z":"a8867a54.b68aa8","wires":[]},{"id":"94c7df7b.7fbd","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3159.666748046875,"y":585.6666488647461,"z":"a8867a54.b68aa8","wires":[["f5661947.16b088","b8218641.e8a788"]]},{"id":"231dec0e.0771c4","type":"execute","name":"execute: flatAndAddToContext","xml":"<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />","comments":"","outputs":1,"x":2929.666748046875,"y":266.6666488647461,"z":"a8867a54.b68aa8","wires":[["c986922d.bf1bc","8a7c3f37.20d9"]]},{"id":"c986922d.bf1bc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2996.6666564941406,"y":338.66666412353516,"z":"a8867a54.b68aa8","wires":[["19fa898d.6ab716"]]},{"id":"8a7c3f37.20d9","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3246.6666564941406,"y":286.66666412353516,"z":"a8867a54.b68aa8","wires":[[]]}]
+[\r
+    {\r
+        "id": "3a3db435.c14d7c",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 2774.666748046875,\r
+        "y": 111.66666412353516,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "427b0879.a63f58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "427b0879.a63f58",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0.1",\r
+        "module": "APPC",\r
+        "version": "2.0.0.1",\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='APPC' version='2.0.0.1'>",\r
+        "outputs": 1,\r
+        "x": 2817.666748046875,\r
+        "y": 159.66666412353516,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "3d555498.3ca7bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d555498.3ca7bc",\r
+        "type": "method",\r
+        "name": "VSBG_Test",\r
+        "xml": "<method rpc='VSBG_Test' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2863.666748046875,\r
+        "y": 211.66666412353516,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "231dec0e.0771c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d736d249.7d49d",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 3697.381103515625,\r
+        "y": 960.2380599975586,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b8218641.e8a788",\r
+        "type": "execute",\r
+        "name": "execute: operationStateValidation",\r
+        "xml": "<execute plugin='org.onap.appc.dg.netconf.NetconfClientPlugin' method='operationStateValidation' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"org.onap.appc.vftype\" value=\"`$vnf-type`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3289.666748046875,\r
+        "y": 662.6666488647461,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "b0b4fe67.6a463",\r
+                "9e903785.2aab28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e903785.2aab28",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3595.4445190429688,\r
+        "y": 616.4444198608398,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "834e02e0.1b95d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0b4fe67.6a463",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3603.33349609375,\r
+        "y": 842.8888168334961,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "d736d249.7d49d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "834e02e0.1b95d",\r
+        "type": "execute",\r
+        "name": "execute: handleErrorToDCAE",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$org.onap.appc.dg.error`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3705.4605102539062,\r
+        "y": 686.4285507202148,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "dbbfce3e.4a9d7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ef22aa1.c2f8f4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value=\"`$org.onap.appc.dg.error`\" />\n<parameter name='output.status.code' value='401'/>",\r
+        "comments": "",\r
+        "x": 3839.6666259765625,\r
+        "y": 843.5238265991211,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dbbfce3e.4a9d7",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3775.2381591796875,\r
+        "y": 786.0952377319336,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "7ef22aa1.c2f8f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19fa898d.6ab716",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2932.666748046875,\r
+        "y": 404.6666793823242,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "bae44e29.4cfa5",\r
+                "ff4aa6b.9a66558"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff4aa6b.9a66558",\r
+        "type": "execute",\r
+        "name": "execute: getVNFData",\r
+        "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3087.6666259765625,\r
+        "y": 452.66670989990234,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "4284b163.4ffc1",\r
+                "4c1b9cb6.5050f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bae44e29.4cfa5",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n\t<parameter name='aai.vnfID' value=\"`$input.action-identifiers.vnf-id`\" />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t",\r
+        "comments": "",\r
+        "x": 3102.666748046875,\r
+        "y": 399.6666793823242,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c1b9cb6.5050f4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3354.666748046875,\r
+        "y": 400.9999313354492,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "a29a3ba4.2bd308"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4284b163.4ffc1",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3106.666748046875,\r
+        "y": 520.666618347168,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "94c7df7b.7fbd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a29a3ba4.2bd308",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\n",\r
+        "comments": "",\r
+        "x": 3521.666748046875,\r
+        "y": 399.9999313354492,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f5661947.16b088",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n\t<parameter name='org.onap.appc.vftype' value='`$aai.input.data.vnf-type`' />\t\n\t<parameter name='vnf-type' value='`$aai.input.data.vnf-type`' />",\r
+        "comments": "",\r
+        "x": 3363.666748046875,\r
+        "y": 585.6666488647461,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "94c7df7b.7fbd",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3159.666748046875,\r
+        "y": 585.6666488647461,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "f5661947.16b088",\r
+                "b8218641.e8a788"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "231dec0e.0771c4",\r
+        "type": "execute",\r
+        "name": "execute: flatAndAddToContext",\r
+        "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2929.666748046875,\r
+        "y": 266.6666488647461,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "c986922d.bf1bc",\r
+                "8a7c3f37.20d9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c986922d.bf1bc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2996.6666564941406,\r
+        "y": 338.66666412353516,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            [\r
+                "19fa898d.6ab716"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a7c3f37.20d9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3246.6666564941406,\r
+        "y": 286.66666412353516,\r
+        "z": "a8867a54.b68aa8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]\r
index d7cae8c..1a391e5 100644 (file)
@@ -1 +1,723 @@
-[{"id":"7f8764e7.1c542c","type":"dgstart","name":"DGSTART","outputs":1,"x":140.88888549804688,"y":58,"z":"e3f97b79.d3ae78","wires":[["b994e559.02dd38"]]},{"id":"b994e559.02dd38","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","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='APPC' version='2.0.0'>","outputs":1,"x":133.88888549804688,"y":112,"z":"e3f97b79.d3ae78","wires":[["e64a43a7.d28a6"]]},{"id":"e64a43a7.d28a6","type":"method","name":"VSRX_ConfigModify","xml":"<method rpc='VSRX_ConfigModify' mode='sync'>\n","comments":"","outputs":1,"x":159.88888549804688,"y":176,"z":"e3f97b79.d3ae78","wires":[["755b14f2.231e2c"]]},{"id":"8755712f.5d5e2","type":"execute","name":"execute_getVnfHierarchy","xml":"<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy' >\n<parameter name=\"resourceKey\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"nodeName\" value=\"execute_getVnfHierarchy\" />\n","comments":"","outputs":1,"x":340.4343566894531,"y":217.27272033691406,"z":"e3f97b79.d3ae78","wires":[["744bf594.91468c","9a95025e.3abb7"]]},{"id":"744bf594.91468c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1121.2524108886719,"y":86,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"9a95025e.3abb7","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":354.7978820800781,"y":319.3636474609375,"z":"e3f97b79.d3ae78","wires":[["ddc0dcdd.0c53c"]]},{"id":"4c4b034a.d05dbc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1657.8888854980469,"y":531,"z":"e3f97b79.d3ae78","wires":[["dde156a3.5b7258","9bd7e953.2d6638"]]},{"id":"9bd7e953.2d6638","type":"execute","name":"execute_DCAEReporterPlugin","xml":"<execute plugin='org.onap.appc.dg.util.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$org.onap.appc.apiversion`\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />","comments":"","outputs":1,"x":1872.8888854980469,"y":444,"z":"e3f97b79.d3ae78","wires":[["954a79a7.253398"]]},{"id":"dde156a3.5b7258","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\n","comments":"","x":1837.8888854980469,"y":620,"z":"e3f97b79.d3ae78","wires":[]},{"id":"ddc0dcdd.0c53c","type":"switchNode","name":"switch","xml":"<switch test='`$VNF.VMCount`'>\n","comments":"","outputs":1,"x":339.6161804199219,"y":393.5454406738281,"z":"e3f97b79.d3ae78","wires":[["d4d84951.bf4a78","ea6e2bf0.9bfc18"]]},{"id":"d4d84951.bf4a78","type":"outcome","name":"outcome_0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1115.6163024902344,"y":147.5454864501953,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"ea6e2bf0.9bfc18","type":"outcome","name":"outcome_other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":321.9798278808594,"y":498.9999694824219,"z":"e3f97b79.d3ae78","wires":[["e37888a7.55e2e8"]]},{"id":"e37888a7.55e2e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":406.25250244140625,"y":588.2727661132812,"z":"e3f97b79.d3ae78","wires":[["222d615a.833e5e","b3c1f8d8.d04008"]]},{"id":"222d615a.833e5e","type":"for","name":"foreach_vnfc","xml":"<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >\n","comments":"","outputs":1,"x":527.5252990722656,"y":454.36358642578125,"z":"e3f97b79.d3ae78","wires":[["c8281303.b9663"]]},{"id":"c8281303.b9663","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":561.8889465332031,"y":389.181884765625,"z":"e3f97b79.d3ae78","wires":[["1cae10ed.8218ff"]]},{"id":"1cae10ed.8218ff","type":"execute","name":"execute_retrieveVMConfiguration","xml":"<execute plugin='org.onap.appc.dg.util.NetconfDBPlugin' method='retrieveVMDSConfiguration' >\n<parameter name=\"configuration-file-name\" value=\"`$configuration-file-name`\" />\n<parameter name=\"vnf-type\" value=\"`$vnf-type`\" />\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"resourceKey\" value=\"`$VNF.VM[$i].vserver.vserver-name`\" />\n<parameter name=\"nodeName\" value=\"execute_retrieveVMConfiguration\" />\n","comments":"","outputs":1,"x":863.8890075683594,"y":303.36370849609375,"z":"e3f97b79.d3ae78","wires":[["42069768.bd0c68","a68e4eae.2af27"]]},{"id":"a68e4eae.2af27","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":853.7980041503906,"y":354.6363525390625,"z":"e3f97b79.d3ae78","wires":[["54fcb6c2.027148"]]},{"id":"42069768.bd0c68","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1201.3433532714844,"y":366.45458984375,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"6592a286.b317ec","type":"execute","name":"execute_modifyConfiguration","xml":"<execute plugin='org.onap.appc.dg.util.NetconfClientPlugin' method='modifyConfiguration' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"file-content\" value=\"`$file-content`\" />\n<parameter name=\"nodeName\" value=\"execute_modifyConfiguration\" />\n","comments":"","outputs":1,"x":857.5253601074219,"y":566.3637084960938,"z":"e3f97b79.d3ae78","wires":[["fc1e7228.fbd9d","de949f48.36d61"]]},{"id":"fc1e7228.fbd9d","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":877.0707702636719,"y":629.0908813476562,"z":"e3f97b79.d3ae78","wires":[["c3d5b7e7.9a2a58"]]},{"id":"de949f48.36d61","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1203.3435974121094,"y":500.27276611328125,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"b3c1f8d8.d04008","type":"execute","name":"execute_saveConfig","xml":"<execute plugin='org.onap.appc.dg.util.ConfigurationManagerPlugin' method='saveConfiguration' >\n<parameter name=\"fullConfig\" value=\"`$fullConfig`\" />\n<parameter name=\"nodeName\" value=\"execute_saveConfig\" />\n","comments":"","outputs":1,"x":468.7979431152344,"y":882.4546203613281,"z":"e3f97b79.d3ae78","wires":[["86fd9c6b.47858","a6e93d4e.a3791"]]},{"id":"a6e93d4e.a3791","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1171.5252685546875,"y":877.3636779785156,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"98ac5c02.6be86","type":"execute","name":"execute_readConfiguration","xml":"<execute plugin='org.onap.appc.dg.util.NetconfClientPlugin' method='getConfig' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"current\" />\n<parameter name=\"nodeName\" value=\"execute_readConfiguration\" />\n\n","comments":"","outputs":1,"x":734.2525939941406,"y":813.1817321777344,"z":"e3f97b79.d3ae78","wires":[["a985fa15.5d4168","a6e93d4e.a3791"]]},{"id":"54fcb6c2.027148","type":"execute","name":"execute_retrieveConfigFile","xml":"<execute plugin='org.onap.appc.dg.util.NetconfDBPlugin' method='retrieveConfigFile' >\n<parameter name=\"configuration-file-name\" value=\"`$configuration-file-name`\" />\n<parameter name=\"nodeName\" value=\"execute_retrieveConfigFile\" />\n\n","comments":"","outputs":1,"x":847.8888854980469,"y":433,"z":"e3f97b79.d3ae78","wires":[["6ad14a83.ded604","858e63d7.b08b9"]]},{"id":"858e63d7.b08b9","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":853.8888854980469,"y":493,"z":"e3f97b79.d3ae78","wires":[["6592a286.b317ec"]]},{"id":"6ad14a83.ded604","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1206.8888854980469,"y":431,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"ded29ca9.c326a","type":"switchNode","name":"switch","xml":"<switch test='`$getConfig_Result`'>\n","comments":"","outputs":1,"x":1055.8889465332031,"y":734.000244140625,"z":"e3f97b79.d3ae78","wires":[["611ee584.7de67c","853375ef.cefa58"]]},{"id":"611ee584.7de67c","type":"outcome","name":"outcome_failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1236.8888854980469,"y":568,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"853375ef.cefa58","type":"outcome","name":"outcome_Success","xml":"<outcome value='Success'>\n","comments":"","outputs":1,"x":1258.8889465332031,"y":692.0000305175781,"z":"e3f97b79.d3ae78","wires":[[]]},{"id":"755b14f2.231e2c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":132.38888549804688,"y":255,"z":"e3f97b79.d3ae78","wires":[["205284fd.d2df5c","8755712f.5d5e2"]]},{"id":"205284fd.d2df5c","type":"execute","name":"ctxCleanup","xml":"<execute plugin='org.onap.appc.dg.util.DGPayloadCleanupPlugin' method='cleanup' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.onap.appc.confid`\" />\n","comments":"","outputs":1,"x":136.88888549804688,"y":348,"z":"e3f97b79.d3ae78","wires":[["3023e302.ead02c"]]},{"id":"3023e302.ead02c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":132.88888549804688,"y":431,"z":"e3f97b79.d3ae78","wires":[["88bef30b.130ef"]]},{"id":"88bef30b.130ef","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":120.38888549804688,"y":564,"z":"e3f97b79.d3ae78","wires":[]},{"id":"827f8b54.a2f738","type":"switchNode","name":"switch","xml":"<switch test='`$saveConfigResult`'>\n","comments":"","outputs":1,"x":752.388916015625,"y":941.0000305175781,"z":"e3f97b79.d3ae78","wires":[["4091b575.ef1d7c","28989f20.c2934"]]},{"id":"4091b575.ef1d7c","type":"outcome","name":"outcome_Success","xml":"<outcome value='Success'>\n","comments":"","outputs":1,"x":857.3888854980469,"y":1008,"z":"e3f97b79.d3ae78","wires":[[]]},{"id":"28989f20.c2934","type":"outcome","name":"outcome_failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1200.3888854980469,"y":946,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"954a79a7.253398","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2100.888885498047,"y":445,"z":"e3f97b79.d3ae78","wires":[["428f2b9f.d074b4"]]},{"id":"428f2b9f.d074b4","type":"execute","name":"ctxCleanup","xml":"<execute plugin='org.onap.appc.dg.util.DGPayloadCleanupPlugin' method='cleanup' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.onap.appc.confid`\" />\n","comments":"","outputs":1,"x":2264.888885498047,"y":445,"z":"e3f97b79.d3ae78","wires":[["da6af38.2701c1"]]},{"id":"da6af38.2701c1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2437.888885498047,"y":445,"z":"e3f97b79.d3ae78","wires":[[]]},{"id":"c3d5b7e7.9a2a58","type":"execute","name":"execute_commitConfiguration","xml":"<execute plugin='org.onap.appc.dg.util.NetconfClientPlugin' method='commitConfiguration' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"nodeName\" value=\"execute_commitConfiguration\" />\n","comments":"","outputs":1,"x":755.8889465332031,"y":689.0000915527344,"z":"e3f97b79.d3ae78","wires":[["75565b82.5ba9e4","e2ff07e0.f33ec8"]]},{"id":"75565b82.5ba9e4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1208.8888854980469,"y":640,"z":"e3f97b79.d3ae78","wires":[["4c4b034a.d05dbc"]]},{"id":"e2ff07e0.f33ec8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":735.8889465332031,"y":747.0001525878906,"z":"e3f97b79.d3ae78","wires":[["98ac5c02.6be86"]]},{"id":"86fd9c6b.47858","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":602,"y":949.3333435058594,"z":"e3f97b79.d3ae78","wires":[["827f8b54.a2f738"]]},{"id":"a985fa15.5d4168","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":931.8889465332031,"y":772.3333435058594,"z":"e3f97b79.d3ae78","wires":[["ded29ca9.c326a"]]}]
+[\r
+    {\r
+        "id": "7f8764e7.1c542c",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 140.88888549804688,\r
+        "y": 58,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "b994e559.02dd38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b994e559.02dd38",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 133.88888549804688,\r
+        "y": 112,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "e64a43a7.d28a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e64a43a7.d28a6",\r
+        "type": "method",\r
+        "name": "VSRX_ConfigModify",\r
+        "xml": "<method rpc='VSRX_ConfigModify' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 159.88888549804688,\r
+        "y": 176,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "755b14f2.231e2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8755712f.5d5e2",\r
+        "type": "execute",\r
+        "name": "execute_getVnfHierarchy",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy' >\n<parameter name=\"resourceKey\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"nodeName\" value=\"execute_getVnfHierarchy\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 340.4343566894531,\r
+        "y": 217.27272033691406,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "744bf594.91468c",\r
+                "9a95025e.3abb7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "744bf594.91468c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1121.2524108886719,\r
+        "y": 86,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a95025e.3abb7",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 354.7978820800781,\r
+        "y": 319.3636474609375,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "ddc0dcdd.0c53c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c4b034a.d05dbc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1657.8888854980469,\r
+        "y": 531,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "dde156a3.5b7258",\r
+                "9bd7e953.2d6638"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bd7e953.2d6638",\r
+        "type": "execute",\r
+        "name": "execute_DCAEReporterPlugin",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$org.onap.appc.apiversion`\"/>\n<parameter name=\"eventId\" value=\"`$org.onap.appc.vfid`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1872.8888854980469,\r
+        "y": 444,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "954a79a7.253398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dde156a3.5b7258",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\n",\r
+        "comments": "",\r
+        "x": 1837.8888854980469,\r
+        "y": 620,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ddc0dcdd.0c53c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$VNF.VMCount`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 339.6161804199219,\r
+        "y": 393.5454406738281,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "d4d84951.bf4a78",\r
+                "ea6e2bf0.9bfc18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4d84951.bf4a78",\r
+        "type": "outcome",\r
+        "name": "outcome_0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1115.6163024902344,\r
+        "y": 147.5454864501953,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea6e2bf0.9bfc18",\r
+        "type": "outcome",\r
+        "name": "outcome_other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321.9798278808594,\r
+        "y": 498.9999694824219,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "e37888a7.55e2e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e37888a7.55e2e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 406.25250244140625,\r
+        "y": 588.2727661132812,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "222d615a.833e5e",\r
+                "b3c1f8d8.d04008"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "222d615a.833e5e",\r
+        "type": "for",\r
+        "name": "foreach_vnfc",\r
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 527.5252990722656,\r
+        "y": 454.36358642578125,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "c8281303.b9663"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c8281303.b9663",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 561.8889465332031,\r
+        "y": 389.181884765625,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "1cae10ed.8218ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cae10ed.8218ff",\r
+        "type": "execute",\r
+        "name": "execute_retrieveVMConfiguration",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.NetconfDBPlugin' method='retrieveVMDSConfiguration' >\n<parameter name=\"configuration-file-name\" value=\"`$configuration-file-name`\" />\n<parameter name=\"vnf-type\" value=\"`$vnf-type`\" />\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"resourceKey\" value=\"`$VNF.VM[$i].vserver.vserver-name`\" />\n<parameter name=\"nodeName\" value=\"execute_retrieveVMConfiguration\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 863.8890075683594,\r
+        "y": 303.36370849609375,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "42069768.bd0c68",\r
+                "a68e4eae.2af27"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a68e4eae.2af27",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 853.7980041503906,\r
+        "y": 354.6363525390625,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "54fcb6c2.027148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42069768.bd0c68",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1201.3433532714844,\r
+        "y": 366.45458984375,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6592a286.b317ec",\r
+        "type": "execute",\r
+        "name": "execute_modifyConfiguration",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.NetconfClientPlugin' method='modifyConfiguration' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"file-content\" value=\"`$file-content`\" />\n<parameter name=\"nodeName\" value=\"execute_modifyConfiguration\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 857.5253601074219,\r
+        "y": 566.3637084960938,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "fc1e7228.fbd9d",\r
+                "de949f48.36d61"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc1e7228.fbd9d",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 877.0707702636719,\r
+        "y": 629.0908813476562,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "c3d5b7e7.9a2a58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de949f48.36d61",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1203.3435974121094,\r
+        "y": 500.27276611328125,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3c1f8d8.d04008",\r
+        "type": "execute",\r
+        "name": "execute_saveConfig",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.ConfigurationManagerPlugin' method='saveConfiguration' >\n<parameter name=\"fullConfig\" value=\"`$fullConfig`\" />\n<parameter name=\"nodeName\" value=\"execute_saveConfig\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 468.7979431152344,\r
+        "y": 882.4546203613281,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "86fd9c6b.47858",\r
+                "a6e93d4e.a3791"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6e93d4e.a3791",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171.5252685546875,\r
+        "y": 877.3636779785156,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98ac5c02.6be86",\r
+        "type": "execute",\r
+        "name": "execute_readConfiguration",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.NetconfClientPlugin' method='getConfig' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"current\" />\n<parameter name=\"nodeName\" value=\"execute_readConfiguration\" />\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734.2525939941406,\r
+        "y": 813.1817321777344,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "a985fa15.5d4168",\r
+                "a6e93d4e.a3791"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54fcb6c2.027148",\r
+        "type": "execute",\r
+        "name": "execute_retrieveConfigFile",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.NetconfDBPlugin' method='retrieveConfigFile' >\n<parameter name=\"configuration-file-name\" value=\"`$configuration-file-name`\" />\n<parameter name=\"nodeName\" value=\"execute_retrieveConfigFile\" />\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847.8888854980469,\r
+        "y": 433,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "6ad14a83.ded604",\r
+                "858e63d7.b08b9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "858e63d7.b08b9",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 853.8888854980469,\r
+        "y": 493,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "6592a286.b317ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ad14a83.ded604",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1206.8888854980469,\r
+        "y": 431,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ded29ca9.c326a",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$getConfig_Result`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1055.8889465332031,\r
+        "y": 734.000244140625,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "611ee584.7de67c",\r
+                "853375ef.cefa58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "611ee584.7de67c",\r
+        "type": "outcome",\r
+        "name": "outcome_failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1236.8888854980469,\r
+        "y": 568,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "853375ef.cefa58",\r
+        "type": "outcome",\r
+        "name": "outcome_Success",\r
+        "xml": "<outcome value='Success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1258.8889465332031,\r
+        "y": 692.0000305175781,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "755b14f2.231e2c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 132.38888549804688,\r
+        "y": 255,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "205284fd.d2df5c",\r
+                "8755712f.5d5e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "205284fd.d2df5c",\r
+        "type": "execute",\r
+        "name": "ctxCleanup",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.DGPayloadCleanupPlugin' method='cleanup' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.onap.appc.confid`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 136.88888549804688,\r
+        "y": 348,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "3023e302.ead02c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3023e302.ead02c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 132.88888549804688,\r
+        "y": 431,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "88bef30b.130ef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "88bef30b.130ef",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 120.38888549804688,\r
+        "y": 564,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "827f8b54.a2f738",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$saveConfigResult`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 752.388916015625,\r
+        "y": 941.0000305175781,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4091b575.ef1d7c",\r
+                "28989f20.c2934"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4091b575.ef1d7c",\r
+        "type": "outcome",\r
+        "name": "outcome_Success",\r
+        "xml": "<outcome value='Success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 857.3888854980469,\r
+        "y": 1008,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "28989f20.c2934",\r
+        "type": "outcome",\r
+        "name": "outcome_failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1200.3888854980469,\r
+        "y": 946,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "954a79a7.253398",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2100.888885498047,\r
+        "y": 445,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "428f2b9f.d074b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "428f2b9f.d074b4",\r
+        "type": "execute",\r
+        "name": "ctxCleanup",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.DGPayloadCleanupPlugin' method='cleanup' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.onap.appc.confid`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2264.888885498047,\r
+        "y": 445,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "da6af38.2701c1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da6af38.2701c1",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2437.888885498047,\r
+        "y": 445,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3d5b7e7.9a2a58",\r
+        "type": "execute",\r
+        "name": "execute_commitConfiguration",\r
+        "xml": "<execute plugin='org.onap.appc.dg.util.NetconfClientPlugin' method='commitConfiguration' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"nodeName\" value=\"execute_commitConfiguration\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 755.8889465332031,\r
+        "y": 689.0000915527344,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "75565b82.5ba9e4",\r
+                "e2ff07e0.f33ec8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75565b82.5ba9e4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1208.8888854980469,\r
+        "y": 640,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "4c4b034a.d05dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2ff07e0.f33ec8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735.8889465332031,\r
+        "y": 747.0001525878906,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "98ac5c02.6be86"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86fd9c6b.47858",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 602,\r
+        "y": 949.3333435058594,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "827f8b54.a2f738"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a985fa15.5d4168",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 931.8889465332031,\r
+        "y": 772.3333435058594,\r
+        "z": "e3f97b79.d3ae78",\r
+        "wires": [\r
+            [\r
+                "ded29ca9.c326a"\r
+            ]\r
+        ]\r
+    }\r
+]\r