aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph/provider/src
diff options
context:
space:
mode:
authorTaka <tc012c@att.com>2017-12-22 13:52:51 -0500
committerTaka <tc012c@att.com>2017-12-22 13:53:36 -0500
commit716232ab0cf1b0989db443843b0551869d7c97bb (patch)
tree20eb57228c9affb492b9689c60655888c5a58d0a /appc-directed-graph/appc-dgraph/provider/src
parent2b281254999abce8c6e905d8b26627f25f0eff2e (diff)
Platform Hardening for DG Json files - Part 3
Change-Id: Ib5534da1dc26e8942be56b5a3742876cebd4b2fc Issue-ID: APPC-305 Signed-off-by: Taka <tc012c@att.com>
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src')
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Rollback.json1154
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Snapshot.json1176
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_Generic_GetRunningConfig.json996
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_vSRX_GetXmlRunningConfig.json219
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Check-Active_VNFC_vSCP.json306
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_HealthCheck_VNF_vSCP.json319
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VM.json562
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNF.json1494
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNFC.json1358
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Active_VNFC.json1562
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Passive_VNFC.json2909
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_RestartVM_VM.json470
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VM.json1141
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json1580
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNFC.json534
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StartApplication_VM_vSCP.json435
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VM.json666
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNF.json1439
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNFC.json1317
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StopApplication_VM_vSCP_2.0.0.json1162
20 files changed, 18704 insertions, 2095 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Rollback.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Rollback.json
index f0c0bd3db..f1eee150b 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Rollback.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Rollback.json
@@ -1,577 +1,577 @@
-[
- {
- "id": "5e8f7716.499198",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 555,
- "y": 396.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "4b22d8a1.f3d148"
- ]
- ]
- },
- {
- "id": "145d561d.5cc62a",
- "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": 318,
- "y": 396.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "5e8f7716.499198",
- "bb8a0f0f.b2fe4",
- "a25b25dc.c0a438"
- ]
- ]
- },
- {
- "id": "4b22d8a1.f3d148",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 692.0000610351562,
- "y": 396.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "25fd98ba.13e158",
- "606b452c.8152dc"
- ]
- ]
- },
- {
- "id": "bb8a0f0f.b2fe4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 848,
- "y": 235.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "c13d50ec.a9c2"
- ]
- ]
- },
- {
- "id": "a25b25dc.c0a438",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 863,
- "y": 155.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "c13d50ec.a9c2"
- ]
- ]
- },
- {
- "id": "6d026903.3c9f08",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 318.66668701171875,
- "y": 319.4444417953491,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "145d561d.5cc62a"
- ]
- ]
- },
- {
- "id": "25fd98ba.13e158",
- "type": "outcome",
- "name": "SUCCESS",
- "xml": "<outcome value='SUCCESS'>\n",
- "comments": "",
- "outputs": 1,
- "x": 657,
- "y": 563.5555562973022,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "7d6b675f.944888"
- ]
- ]
- },
- {
- "id": "606b452c.8152dc",
- "type": "outcome",
- "name": "FAILURE",
- "xml": "<outcome value='FAILURE'>\n",
- "comments": "",
- "outputs": 1,
- "x": 860,
- "y": 325.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "c13d50ec.a9c2"
- ]
- ]
- },
- {
- "id": "c13d50ec.a9c2",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1045,
- "y": 269.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "6b85300.44ae5d",
- "b50265a4.9ec658",
- "ff92154a.222ad8"
- ]
- ]
- },
- {
- "id": "f205d4a8.a6d008",
- "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": 273.6666564941406,
- "y": 255.44444179534912,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "6d026903.3c9f08",
- "d9efdcd7.d999"
- ]
- ]
- },
- {
- "id": "7d6b675f.944888",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$VNF.VMCount`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 803.0000305175781,
- "y": 563.5555562973022,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "b3dc1924.975c18",
- "61b52cec.5b91d4"
- ]
- ]
- },
- {
- "id": "6b85300.44ae5d",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1308,
- "y": 205.55555725097656,
- "z": "75a9f4e5.a1649c",
- "wires": []
- },
- {
- "id": "b50265a4.9ec658",
- "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": 1315,
- "y": 91.55555725097656,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- },
- {
- "id": "d9efdcd7.d999",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 529.6666870117188,
- "y": 196.44444179534912,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- },
- {
- "id": "b3dc1924.975c18",
- "type": "other",
- "name": "outcome_0",
- "xml": "<outcome value='0'>\n",
- "comments": "",
- "outputs": 1,
- "x": 881,
- "y": 481.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "7edbf7e6.e29b28"
- ]
- ]
- },
- {
- "id": "61b52cec.5b91d4",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 865,
- "y": 652.5555562973022,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "1afd140e.b8e10c"
- ]
- ]
- },
- {
- "id": "7edbf7e6.e29b28",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1002,
- "y": 405.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "ce24c821.4cd8e8",
- "c6500acc.d09d98",
- "f9c012e3.68717"
- ]
- ]
- },
- {
- "id": "1afd140e.b8e10c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>\n",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1016.0000610351562,
- "y": 653.5556173324585,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "e690e466.a45438"
- ]
- ]
- },
- {
- "id": "ce24c821.4cd8e8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1230,
- "y": 496.5555419921875,
- "z": "75a9f4e5.a1649c",
- "wires": []
- },
- {
- "id": "c6500acc.d09d98",
- "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,
- "y": 347.55555629730225,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- },
- {
- "id": "e690e466.a45438",
- "type": "execute",
- "name": "execute_RollbackStack",
- "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restoreStack' >\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=\"`$input.identity-url`\" />\n <parameter name=\"org.onap.appc.stack.id\" value =\"`$VNF.heat-stack-id`\" />\n <parameter name=\"org.onap.appc.snapshot.id\" value=\"`$input.snapshot-id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1235,
- "y": 653.5555562973022,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "755e1d66.83efb4",
- "99ec0c41.3c7b8",
- "e20a4882.f1ee38"
- ]
- ]
- },
- {
- "id": "755e1d66.83efb4",
- "type": "outcome",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1383,
- "y": 751.5555419921875,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "2d2f9438.4676ec"
- ]
- ]
- },
- {
- "id": "99ec0c41.3c7b8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1378,
- "y": 560.5555562973022,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "4ef40628.63bd68"
- ]
- ]
- },
- {
- "id": "e20a4882.f1ee38",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1434,
- "y": 653.5556783676147,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "4ef40628.63bd68"
- ]
- ]
- },
- {
- "id": "290b41b8.e128ee",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>",
- "comments": "",
- "x": 1813.4285888671875,
- "y": 800.126953125,
- "z": "75a9f4e5.a1649c",
- "wires": []
- },
- {
- "id": "4ef40628.63bd68",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1627.4285888671875,
- "y": 653.6983785629272,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "da2d458c.b135f8",
- "57c76a69.3aba64",
- "c1763a92.eaaf28"
- ]
- ]
- },
- {
- "id": "da2d458c.b135f8",
- "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 during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1888,
- "y": 520.5555419921875,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "4571b850.f77f68"
- ]
- ]
- },
- {
- "id": "57c76a69.3aba64",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1877,
- "y": 648.5555419921875,
- "z": "75a9f4e5.a1649c",
- "wires": []
- },
- {
- "id": "4571b850.f77f68",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2111.666748046875,
- "y": 494.888916015625,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- },
- {
- "id": "7068b4fa.7f618c",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 111.66665649414062,
- "y": 20,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "3f3fa052.71537"
- ]
- ]
- },
- {
- "id": "3f3fa052.71537",
- "type": "service-logic",
- "name": "APPC-API 2.0.0.0",
- "module": "APPC-API",
- "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-API' version='2.0.0.0'>",
- "outputs": 1,
- "x": 145.66665649414062,
- "y": 114,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "90f1096d.987a68"
- ]
- ]
- },
- {
- "id": "90f1096d.987a68",
- "type": "method",
- "name": "VNF_Rollback",
- "xml": "<method rpc='VNF_Rollback' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 145.66665649414062,
- "y": 187,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "f205d4a8.a6d008"
- ]
- ]
- },
- {
- "id": "ff92154a.222ad8",
- "type": "execute",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1331,
- "y": 150,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- },
- {
- "id": "f9c012e3.68717",
- "type": "execute",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1257,
- "y": 424,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- },
- {
- "id": "c1763a92.eaaf28",
- "type": "execute",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1904,
- "y": 586,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- },
- {
- "id": "2d2f9438.4676ec",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1567,
- "y": 754,
- "z": "75a9f4e5.a1649c",
- "wires": [
- [
- "290b41b8.e128ee",
- "b75c6c94.830d4"
- ]
- ]
- },
- {
- "id": "b75c6c94.830d4",
- "type": "execute",
- "name": "Set success code and message",
- "xml": "<set>\n<parameter name='error-code' value='400'/>\n<parameter name='error-message' value=\"Success\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1833,
- "y": 731,
- "z": "75a9f4e5.a1649c",
- "wires": [
- []
- ]
- }
-]
+[
+ {
+ "id": "5e8f7716.499198",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 555,
+ "y": 396.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "4b22d8a1.f3d148"
+ ]
+ ]
+ },
+ {
+ "id": "145d561d.5cc62a",
+ "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": 318,
+ "y": 396.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "5e8f7716.499198",
+ "bb8a0f0f.b2fe4",
+ "a25b25dc.c0a438"
+ ]
+ ]
+ },
+ {
+ "id": "4b22d8a1.f3d148",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 692.0000610351562,
+ "y": 396.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "25fd98ba.13e158",
+ "606b452c.8152dc"
+ ]
+ ]
+ },
+ {
+ "id": "bb8a0f0f.b2fe4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 848,
+ "y": 235.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "c13d50ec.a9c2"
+ ]
+ ]
+ },
+ {
+ "id": "a25b25dc.c0a438",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 863,
+ "y": 155.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "c13d50ec.a9c2"
+ ]
+ ]
+ },
+ {
+ "id": "6d026903.3c9f08",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 318.66668701171875,
+ "y": 319.4444417953491,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "145d561d.5cc62a"
+ ]
+ ]
+ },
+ {
+ "id": "25fd98ba.13e158",
+ "type": "outcome",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 657,
+ "y": 563.5555562973022,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "7d6b675f.944888"
+ ]
+ ]
+ },
+ {
+ "id": "606b452c.8152dc",
+ "type": "outcome",
+ "name": "FAILURE",
+ "xml": "<outcome value='FAILURE'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 860,
+ "y": 325.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "c13d50ec.a9c2"
+ ]
+ ]
+ },
+ {
+ "id": "c13d50ec.a9c2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1045,
+ "y": 269.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "6b85300.44ae5d",
+ "b50265a4.9ec658",
+ "ff92154a.222ad8"
+ ]
+ ]
+ },
+ {
+ "id": "f205d4a8.a6d008",
+ "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": 273.6666564941406,
+ "y": 255.44444179534912,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "6d026903.3c9f08",
+ "d9efdcd7.d999"
+ ]
+ ]
+ },
+ {
+ "id": "7d6b675f.944888",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$VNF.VMCount`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 803.0000305175781,
+ "y": 563.5555562973022,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "b3dc1924.975c18",
+ "61b52cec.5b91d4"
+ ]
+ ]
+ },
+ {
+ "id": "6b85300.44ae5d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1308,
+ "y": 205.55555725097656,
+ "z": "75a9f4e5.a1649c",
+ "wires": []
+ },
+ {
+ "id": "b50265a4.9ec658",
+ "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": 1315,
+ "y": 91.55555725097656,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d9efdcd7.d999",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 529.6666870117188,
+ "y": 196.44444179534912,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b3dc1924.975c18",
+ "type": "other",
+ "name": "outcome_0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 881,
+ "y": 481.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "7edbf7e6.e29b28"
+ ]
+ ]
+ },
+ {
+ "id": "61b52cec.5b91d4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 865,
+ "y": 652.5555562973022,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "1afd140e.b8e10c"
+ ]
+ ]
+ },
+ {
+ "id": "7edbf7e6.e29b28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1002,
+ "y": 405.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "ce24c821.4cd8e8",
+ "c6500acc.d09d98",
+ "f9c012e3.68717"
+ ]
+ ]
+ },
+ {
+ "id": "1afd140e.b8e10c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1016.0000610351562,
+ "y": 653.5556173324585,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "e690e466.a45438"
+ ]
+ ]
+ },
+ {
+ "id": "ce24c821.4cd8e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1230,
+ "y": 496.5555419921875,
+ "z": "75a9f4e5.a1649c",
+ "wires": []
+ },
+ {
+ "id": "c6500acc.d09d98",
+ "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,
+ "y": 347.55555629730225,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e690e466.a45438",
+ "type": "execute",
+ "name": "execute_RollbackStack",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restoreStack' >\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=\"`$input.identity-url`\" />\n <parameter name=\"org.onap.appc.stack.id\" value =\"`$VNF.heat-stack-id`\" />\n <parameter name=\"org.onap.appc.snapshot.id\" value=\"`$input.snapshot-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1235,
+ "y": 653.5555562973022,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "755e1d66.83efb4",
+ "99ec0c41.3c7b8",
+ "e20a4882.f1ee38"
+ ]
+ ]
+ },
+ {
+ "id": "755e1d66.83efb4",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1383,
+ "y": 751.5555419921875,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "2d2f9438.4676ec"
+ ]
+ ]
+ },
+ {
+ "id": "99ec0c41.3c7b8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1378,
+ "y": 560.5555562973022,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "4ef40628.63bd68"
+ ]
+ ]
+ },
+ {
+ "id": "e20a4882.f1ee38",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1434,
+ "y": 653.5556783676147,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "4ef40628.63bd68"
+ ]
+ ]
+ },
+ {
+ "id": "290b41b8.e128ee",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>",
+ "comments": "",
+ "x": 1813.4285888671875,
+ "y": 800.126953125,
+ "z": "75a9f4e5.a1649c",
+ "wires": []
+ },
+ {
+ "id": "4ef40628.63bd68",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1627.4285888671875,
+ "y": 653.6983785629272,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "da2d458c.b135f8",
+ "57c76a69.3aba64",
+ "c1763a92.eaaf28"
+ ]
+ ]
+ },
+ {
+ "id": "da2d458c.b135f8",
+ "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 during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1888,
+ "y": 520.5555419921875,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "4571b850.f77f68"
+ ]
+ ]
+ },
+ {
+ "id": "57c76a69.3aba64",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1877,
+ "y": 648.5555419921875,
+ "z": "75a9f4e5.a1649c",
+ "wires": []
+ },
+ {
+ "id": "4571b850.f77f68",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2111.666748046875,
+ "y": 494.888916015625,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7068b4fa.7f618c",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 111.66665649414062,
+ "y": 20,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "3f3fa052.71537"
+ ]
+ ]
+ },
+ {
+ "id": "3f3fa052.71537",
+ "type": "service-logic",
+ "name": "APPC-API 2.0.0.0",
+ "module": "APPC-API",
+ "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-API' version='2.0.0.0'>",
+ "outputs": 1,
+ "x": 145.66665649414062,
+ "y": 114,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "90f1096d.987a68"
+ ]
+ ]
+ },
+ {
+ "id": "90f1096d.987a68",
+ "type": "method",
+ "name": "VNF_Rollback",
+ "xml": "<method rpc='VNF_Rollback' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 145.66665649414062,
+ "y": 187,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "f205d4a8.a6d008"
+ ]
+ ]
+ },
+ {
+ "id": "ff92154a.222ad8",
+ "type": "execute",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1331,
+ "y": 150,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f9c012e3.68717",
+ "type": "execute",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1257,
+ "y": 424,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c1763a92.eaaf28",
+ "type": "execute",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1904,
+ "y": 586,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d2f9438.4676ec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1567,
+ "y": 754,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ [
+ "290b41b8.e128ee",
+ "b75c6c94.830d4"
+ ]
+ ]
+ },
+ {
+ "id": "b75c6c94.830d4",
+ "type": "execute",
+ "name": "Set success code and message",
+ "xml": "<set>\n<parameter name='error-code' value='400'/>\n<parameter name='error-message' value=\"Success\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1833,
+ "y": 731,
+ "z": "75a9f4e5.a1649c",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Snapshot.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Snapshot.json
index e60606d01..71cfe1abd 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Snapshot.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC-API_2.0.0.0_method_VNF_Snapshot.json
@@ -1,588 +1,588 @@
-[
- {
- "id": "ff6e6220.ef272",
- "type": "comment",
- "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",
- "info": "",
- "comments": "",
- "x": 259.75,
- "y": 590.9999923706055,
- "z": "17bb73d2.dd297c",
- "wires": []
- },
- {
- "id": "66552f09.5bfb9",
- "type": "method",
- "name": "Generic_Snapshot_1610",
- "xml": "<method rpc='VNF_Snapshot' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 233.25001525878906,
- "y": 308,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "5e66c189.09a2d"
- ]
- ]
- },
- {
- "id": "1ee152f2.68166d",
- "type": "service-logic",
- "name": "APPC-API 2.0.0.0",
- "module": "APPC-API",
- "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-API' version='2.0.0.0'>",
- "outputs": 1,
- "x": 233.25001525878906,
- "y": 235,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "66552f09.5bfb9"
- ]
- ]
- },
- {
- "id": "bc49eb6a.380068",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 199.25001525878906,
- "y": 141,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "1ee152f2.68166d"
- ]
- ]
- },
- {
- "id": "af0a8fe0.da1b7",
- "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": 233.25001525878906,
- "y": 537,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "12d4d1c5.960c3e",
- "7e33d3b6.7154dc",
- "90b99458.d8a878"
- ]
- ]
- },
- {
- "id": "12d4d1c5.960c3e",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 470.25001525878906,
- "y": 537,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "39db95fa.9b98fa"
- ]
- ]
- },
- {
- "id": "d5a8df0e.172fc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>\n",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 931.2500762939453,
- "y": 794.0000610351562,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "3b9af4e2.33c62c"
- ]
- ]
- },
- {
- "id": "7e33d3b6.7154dc",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 763.2500152587891,
- "y": 376,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "b1613d32.71d45"
- ]
- ]
- },
- {
- "id": "5928eca4.e76c24",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1259.2500228881836,
- "y": 428.99999618530273,
- "z": "17bb73d2.dd297c",
- "wires": []
- },
- {
- "id": "b017daad.296d58",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$VNF.VMCount`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 718.2500457763672,
- "y": 704,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "74042ec0.4106",
- "ae5fd24a.9b418"
- ]
- ]
- },
- {
- "id": "74042ec0.4106",
- "type": "other",
- "name": "outcome_0",
- "xml": "<outcome value='0'>\n",
- "comments": "",
- "outputs": 1,
- "x": 796.2500152587891,
- "y": 622,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "eb4eeb9.a81d318"
- ]
- ]
- },
- {
- "id": "ae5fd24a.9b418",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 780.2500152587891,
- "y": 793,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "d5a8df0e.172fc"
- ]
- ]
- },
- {
- "id": "39db95fa.9b98fa",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 607.2500762939453,
- "y": 537,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "dc55fcb7.a5b3c",
- "d75a8b25.9fe778"
- ]
- ]
- },
- {
- "id": "dc55fcb7.a5b3c",
- "type": "outcome",
- "name": "SUCCESS",
- "xml": "<outcome value='SUCCESS'>\n",
- "comments": "",
- "outputs": 1,
- "x": 572.2500152587891,
- "y": 704,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "b017daad.296d58"
- ]
- ]
- },
- {
- "id": "d75a8b25.9fe778",
- "type": "outcome",
- "name": "FAILURE",
- "xml": "<outcome value='FAILURE'>\n",
- "comments": "",
- "outputs": 1,
- "x": 775.2500152587891,
- "y": 466,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "b1613d32.71d45"
- ]
- ]
- },
- {
- "id": "36ef2784.6cc318",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1163.2500457763672,
- "y": 594,
- "z": "17bb73d2.dd297c",
- "wires": []
- },
- {
- "id": "b1613d32.71d45",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 972.2500610351562,
- "y": 377.00000381469727,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "5928eca4.e76c24",
- "e2eaef09.070be",
- "fd0a971.5208268"
- ]
- ]
- },
- {
- "id": "e2eaef09.070be",
- "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": 1229.250015258789,
- "y": 307,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "eb4eeb9.a81d318",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 917.2500152587891,
- "y": 546,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "36ef2784.6cc318",
- "bf7f84ce.5a7938",
- "bdcf415a.45ed5"
- ]
- ]
- },
- {
- "id": "bf7f84ce.5a7938",
- "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": 1233.250015258789,
- "y": 477.00002002716064,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "3b9af4e2.33c62c",
- "type": "execute",
- "name": "execute_SnapshotStack",
- "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='snapshotStack' >\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=\"`$input.identity-url`\" />\n <parameter name=\"org.onap.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1150.250015258789,
- "y": 794,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "2b3d7e9b.51bbe2",
- "88b7c652.0ec9d8",
- "2497760f.ec3caa"
- ]
- ]
- },
- {
- "id": "2b3d7e9b.51bbe2",
- "type": "outcome",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1311.250015258789,
- "y": 895,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "81c1ec58.459ae"
- ]
- ]
- },
- {
- "id": "88b7c652.0ec9d8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1293.250015258789,
- "y": 701,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "f66b9736.cfaab8"
- ]
- ]
- },
- {
- "id": "f66b9736.cfaab8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1542.6786041259766,
- "y": 794.142822265625,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "8a2adc3b.adcda",
- "32071474.80d0fc",
- "eae86873.6b23d8"
- ]
- ]
- },
- {
- "id": "8a2adc3b.adcda",
- "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 during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1817.250015258789,
- "y": 712,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "a58ca5df.f45298"
- ]
- ]
- },
- {
- "id": "a58ca5df.f45298",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2013.9168434143066,
- "y": 712.333381652832,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "2497760f.ec3caa",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1349.250015258789,
- "y": 794.0001220703125,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "f66b9736.cfaab8"
- ]
- ]
- },
- {
- "id": "90b99458.d8a878",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 778.2500152587891,
- "y": 296,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "b1613d32.71d45"
- ]
- ]
- },
- {
- "id": "32071474.80d0fc",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1782.2499923706055,
- "y": 831.0000247955322,
- "z": "17bb73d2.dd297c",
- "wires": []
- },
- {
- "id": "5e66c189.09a2d",
- "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": 188.9166717529297,
- "y": 395.8888854980469,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "952f9338.7cfd6",
- "3427840b.e5926c"
- ]
- ]
- },
- {
- "id": "952f9338.7cfd6",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 233.9167022705078,
- "y": 459.8888854980469,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "af0a8fe0.da1b7"
- ]
- ]
- },
- {
- "id": "3427840b.e5926c",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 444.9167022705078,
- "y": 336.8888854980469,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "fe324b44.d467d8",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>",
- "comments": "",
- "x": 1715.6786727905273,
- "y": 991.5715913772583,
- "z": "17bb73d2.dd297c",
- "wires": []
- },
- {
- "id": "fd0a971.5208268",
- "type": "execute",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1256.7501907348633,
- "y": 370.7499990463257,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "bdcf415a.45ed5",
- "type": "execute",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1208.7501220703125,
- "y": 540.75,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "eae86873.6b23d8",
- "type": "execute",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`'Error occured during snapshot of Stack '+ $VNF.heat-stack-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1797.750144958496,
- "y": 774.7500247955322,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "832572c6.ef7df",
- "type": "execute",
- "name": "Set output payload, success code and message",
- "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"Success\" />\n<parameter name='output.payload' value=\"`'snapshot.id :' + $output.snapshot.id`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1803.7501525878906,
- "y": 915.7500114440918,
- "z": "17bb73d2.dd297c",
- "wires": [
- []
- ]
- },
- {
- "id": "81c1ec58.459ae",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1513.7500839233398,
- "y": 950.750057220459,
- "z": "17bb73d2.dd297c",
- "wires": [
- [
- "832572c6.ef7df",
- "fe324b44.d467d8"
- ]
- ]
- }
-]
+[
+ {
+ "id": "ff6e6220.ef272",
+ "type": "comment",
+ "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",
+ "info": "",
+ "comments": "",
+ "x": 259.75,
+ "y": 590.9999923706055,
+ "z": "17bb73d2.dd297c",
+ "wires": []
+ },
+ {
+ "id": "66552f09.5bfb9",
+ "type": "method",
+ "name": "Generic_Snapshot_1610",
+ "xml": "<method rpc='VNF_Snapshot' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 233.25001525878906,
+ "y": 308,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "5e66c189.09a2d"
+ ]
+ ]
+ },
+ {
+ "id": "1ee152f2.68166d",
+ "type": "service-logic",
+ "name": "APPC-API 2.0.0.0",
+ "module": "APPC-API",
+ "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-API' version='2.0.0.0'>",
+ "outputs": 1,
+ "x": 233.25001525878906,
+ "y": 235,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "66552f09.5bfb9"
+ ]
+ ]
+ },
+ {
+ "id": "bc49eb6a.380068",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 199.25001525878906,
+ "y": 141,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "1ee152f2.68166d"
+ ]
+ ]
+ },
+ {
+ "id": "af0a8fe0.da1b7",
+ "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": 233.25001525878906,
+ "y": 537,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "12d4d1c5.960c3e",
+ "7e33d3b6.7154dc",
+ "90b99458.d8a878"
+ ]
+ ]
+ },
+ {
+ "id": "12d4d1c5.960c3e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 470.25001525878906,
+ "y": 537,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "39db95fa.9b98fa"
+ ]
+ ]
+ },
+ {
+ "id": "d5a8df0e.172fc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 931.2500762939453,
+ "y": 794.0000610351562,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "3b9af4e2.33c62c"
+ ]
+ ]
+ },
+ {
+ "id": "7e33d3b6.7154dc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 763.2500152587891,
+ "y": 376,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "b1613d32.71d45"
+ ]
+ ]
+ },
+ {
+ "id": "5928eca4.e76c24",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1259.2500228881836,
+ "y": 428.99999618530273,
+ "z": "17bb73d2.dd297c",
+ "wires": []
+ },
+ {
+ "id": "b017daad.296d58",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$VNF.VMCount`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 718.2500457763672,
+ "y": 704,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "74042ec0.4106",
+ "ae5fd24a.9b418"
+ ]
+ ]
+ },
+ {
+ "id": "74042ec0.4106",
+ "type": "other",
+ "name": "outcome_0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 796.2500152587891,
+ "y": 622,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "eb4eeb9.a81d318"
+ ]
+ ]
+ },
+ {
+ "id": "ae5fd24a.9b418",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 780.2500152587891,
+ "y": 793,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "d5a8df0e.172fc"
+ ]
+ ]
+ },
+ {
+ "id": "39db95fa.9b98fa",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 607.2500762939453,
+ "y": 537,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "dc55fcb7.a5b3c",
+ "d75a8b25.9fe778"
+ ]
+ ]
+ },
+ {
+ "id": "dc55fcb7.a5b3c",
+ "type": "outcome",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 572.2500152587891,
+ "y": 704,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "b017daad.296d58"
+ ]
+ ]
+ },
+ {
+ "id": "d75a8b25.9fe778",
+ "type": "outcome",
+ "name": "FAILURE",
+ "xml": "<outcome value='FAILURE'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 775.2500152587891,
+ "y": 466,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "b1613d32.71d45"
+ ]
+ ]
+ },
+ {
+ "id": "36ef2784.6cc318",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1163.2500457763672,
+ "y": 594,
+ "z": "17bb73d2.dd297c",
+ "wires": []
+ },
+ {
+ "id": "b1613d32.71d45",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 972.2500610351562,
+ "y": 377.00000381469727,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "5928eca4.e76c24",
+ "e2eaef09.070be",
+ "fd0a971.5208268"
+ ]
+ ]
+ },
+ {
+ "id": "e2eaef09.070be",
+ "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": 1229.250015258789,
+ "y": 307,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eb4eeb9.a81d318",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 917.2500152587891,
+ "y": 546,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "36ef2784.6cc318",
+ "bf7f84ce.5a7938",
+ "bdcf415a.45ed5"
+ ]
+ ]
+ },
+ {
+ "id": "bf7f84ce.5a7938",
+ "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": 1233.250015258789,
+ "y": 477.00002002716064,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3b9af4e2.33c62c",
+ "type": "execute",
+ "name": "execute_SnapshotStack",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='snapshotStack' >\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=\"`$input.identity-url`\" />\n <parameter name=\"org.onap.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1150.250015258789,
+ "y": 794,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "2b3d7e9b.51bbe2",
+ "88b7c652.0ec9d8",
+ "2497760f.ec3caa"
+ ]
+ ]
+ },
+ {
+ "id": "2b3d7e9b.51bbe2",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1311.250015258789,
+ "y": 895,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "81c1ec58.459ae"
+ ]
+ ]
+ },
+ {
+ "id": "88b7c652.0ec9d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1293.250015258789,
+ "y": 701,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "f66b9736.cfaab8"
+ ]
+ ]
+ },
+ {
+ "id": "f66b9736.cfaab8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1542.6786041259766,
+ "y": 794.142822265625,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "8a2adc3b.adcda",
+ "32071474.80d0fc",
+ "eae86873.6b23d8"
+ ]
+ ]
+ },
+ {
+ "id": "8a2adc3b.adcda",
+ "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 during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1817.250015258789,
+ "y": 712,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "a58ca5df.f45298"
+ ]
+ ]
+ },
+ {
+ "id": "a58ca5df.f45298",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2013.9168434143066,
+ "y": 712.333381652832,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2497760f.ec3caa",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1349.250015258789,
+ "y": 794.0001220703125,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "f66b9736.cfaab8"
+ ]
+ ]
+ },
+ {
+ "id": "90b99458.d8a878",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 778.2500152587891,
+ "y": 296,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "b1613d32.71d45"
+ ]
+ ]
+ },
+ {
+ "id": "32071474.80d0fc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1782.2499923706055,
+ "y": 831.0000247955322,
+ "z": "17bb73d2.dd297c",
+ "wires": []
+ },
+ {
+ "id": "5e66c189.09a2d",
+ "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": 188.9166717529297,
+ "y": 395.8888854980469,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "952f9338.7cfd6",
+ "3427840b.e5926c"
+ ]
+ ]
+ },
+ {
+ "id": "952f9338.7cfd6",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 233.9167022705078,
+ "y": 459.8888854980469,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "af0a8fe0.da1b7"
+ ]
+ ]
+ },
+ {
+ "id": "3427840b.e5926c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 444.9167022705078,
+ "y": 336.8888854980469,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fe324b44.d467d8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>",
+ "comments": "",
+ "x": 1715.6786727905273,
+ "y": 991.5715913772583,
+ "z": "17bb73d2.dd297c",
+ "wires": []
+ },
+ {
+ "id": "fd0a971.5208268",
+ "type": "execute",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1256.7501907348633,
+ "y": 370.7499990463257,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bdcf415a.45ed5",
+ "type": "execute",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1208.7501220703125,
+ "y": 540.75,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eae86873.6b23d8",
+ "type": "execute",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`'Error occured during snapshot of Stack '+ $VNF.heat-stack-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1797.750144958496,
+ "y": 774.7500247955322,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "832572c6.ef7df",
+ "type": "execute",
+ "name": "Set output payload, success code and message",
+ "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"Success\" />\n<parameter name='output.payload' value=\"`'snapshot.id :' + $output.snapshot.id`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1803.7501525878906,
+ "y": 915.7500114440918,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "81c1ec58.459ae",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1513.7500839233398,
+ "y": 950.750057220459,
+ "z": "17bb73d2.dd297c",
+ "wires": [
+ [
+ "832572c6.ef7df",
+ "fe324b44.d467d8"
+ ]
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_Generic_GetRunningConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_Generic_GetRunningConfig.json
index 7237ad6a8..f5f18dc3c 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_Generic_GetRunningConfig.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_Generic_GetRunningConfig.json
@@ -1 +1,995 @@
-[{"id":"180bf863.7ff698","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":638,"y":47,"z":"a4e67f56.cb2c9","wires":[["b1e85b4d.4de818"]]},{"id":"7b831419.1eac8c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":722.25,"y":363.49999237060547,"z":"a4e67f56.cb2c9","wires":[["63daa94e.76aae8"]]},{"id":"140f6ea5.4e8041","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":718.25,"y":416.24999237060547,"z":"a4e67f56.cb2c9","wires":[["3ce56e6e.d0d1b2"]]},{"id":"47086c60.ba95f4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":641,"y":115.99999237060547,"z":"a4e67f56.cb2c9","wires":[["fc731431.b82788"]]},{"id":"11938b45.589b15","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":638.2499389648438,"y":267.25,"z":"a4e67f56.cb2c9","wires":[["372c3af9.966c56"]]},{"id":"dbe515ac.28eb98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":632.2499389648438,"y":202,"z":"a4e67f56.cb2c9","wires":[["ba6f005b.3e44e"]]},{"id":"5f02c1cf.37b4f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":710.5,"y":461.49999237060547,"z":"a4e67f56.cb2c9","wires":[["60cd06a7.dbee98"]]},{"id":"3a82553d.6d98ea","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":710,"y":512.4999923706055,"z":"a4e67f56.cb2c9","wires":[["358af0c2.a30ea"]]},{"id":"46c38e22.64329","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1380,"y":596.75,"z":"a4e67f56.cb2c9","wires":[["9806fd80.49448"]]},{"id":"8ecbeb04.4666d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1384.75,"y":695.25,"z":"a4e67f56.cb2c9","wires":[["13894430.36b39c"]]},{"id":"35ce6e5b.761062","type":"success","name":"multipleRunningConfig","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":832.5,"y":567.75,"z":"a4e67f56.cb2c9","wires":[["7b36969f.21ea78"]]},{"id":"c7e15c3e.27cb3","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":402.75006103515625,"y":111.74999237060547,"z":"a4e67f56.cb2c9","wires":[["180bf863.7ff698","47086c60.ba95f4","551adf9c.16e0f"]]},{"id":"8215021c.22176","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":453,"y":417.49999237060547,"z":"a4e67f56.cb2c9","wires":[["7b831419.1eac8c","140f6ea5.4e8041","11955887.62d437"]]},{"id":"ab93e21b.a1f7e","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":379.75,"y":266.5,"z":"a4e67f56.cb2c9","wires":[["11938b45.589b15","dbe515ac.28eb98","e9858666.192658"]]},{"id":"afcdc902.93d708","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":413.0000305175781,"y":551.2499923706055,"z":"a4e67f56.cb2c9","wires":[["5f02c1cf.37b4f","3a82553d.6d98ea","7b612e94.00088"]]},{"id":"b890cd70.906b9","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":1171.75,"y":608,"z":"a4e67f56.cb2c9","wires":[["46c38e22.64329","473728a6.0b2d68"]]},{"id":"a92cddb8.c9d51","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":1171.2499885559082,"y":704.7499923706055,"z":"a4e67f56.cb2c9","wires":[["8ecbeb04.4666d8","541750f1.605a4"]]},{"id":"b92bafaa.6f832","type":"switchNode","name":"switch","xml":"<switch test='`$runningConfig.count.value`'>\n","comments":"","outputs":1,"x":623.7499961853027,"y":603.0000019073486,"z":"a4e67f56.cb2c9","wires":[["35ce6e5b.761062","78f7b47a.d6ce1c","4ed41f3c.8441d"]]},{"id":"3e4780c.eefb78","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":137.50000381469727,"y":224.24999618530273,"z":"a4e67f56.cb2c9","wires":[["c7e15c3e.27cb3","5449a18d.439af"]]},{"id":"551adf9c.16e0f","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":450.24993896484375,"y":175.75,"z":"a4e67f56.cb2c9","wires":[["ab93e21b.a1f7e"]]},{"id":"11955887.62d437","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":414.74993896484375,"y":488.49999237060547,"z":"a4e67f56.cb2c9","wires":[["afcdc902.93d708"]]},{"id":"e9858666.192658","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":236.2498779296875,"y":342.24999237060547,"z":"a4e67f56.cb2c9","wires":[["90297c5e.6500e"]]},{"id":"7b612e94.00088","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":452.49993896484375,"y":653.4999923706055,"z":"a4e67f56.cb2c9","wires":[["b92bafaa.6f832"]]},{"id":"473728a6.0b2d68","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1381.75,"y":646,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"35aaded4.f11712","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":997.75,"y":620,"z":"a4e67f56.cb2c9","wires":[["b890cd70.906b9"]]},{"id":"541750f1.605a4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1386.5,"y":744.25,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"8c3cc0da.7b207","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":999.25,"y":683.25,"z":"a4e67f56.cb2c9","wires":[["a92cddb8.c9d51"]]},{"id":"78f7b47a.d6ce1c","type":"success","name":"noRunningConfig","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":823.75,"y":618.75,"z":"a4e67f56.cb2c9","wires":[["35aaded4.f11712"]]},{"id":"4ed41f3c.8441d","type":"failure","name":"runningConfigExists","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":827.25,"y":683.75,"z":"a4e67f56.cb2c9","wires":[["8c3cc0da.7b207"]]},{"id":"6c20bf89.5231d","type":"method","name":"GetRunningConfig","xml":"<method rpc='Generic_GetRunningConfig' mode='sync'>\n","comments":"","outputs":1,"x":128,"y":140.74999237060547,"z":"a4e67f56.cb2c9","wires":[["3e4780c.eefb78"]]},{"id":"84baaf90.5a32d","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":264.99999237060547,"y":55.9999942779541,"z":"a4e67f56.cb2c9","wires":[["6c20bf89.5231d"]]},{"id":"5449a18d.439af","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":118.00003051757812,"y":430.24999237060547,"z":"a4e67f56.cb2c9","wires":[]},{"id":"60394b9e.416b44","type":"dgstart","name":"DGSTART","outputs":1,"x":97.4999885559082,"y":56.74999237060547,"z":"a4e67f56.cb2c9","wires":[["84baaf90.5a32d"]]},{"id":"b1e85b4d.4de818","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":813,"y":48.499996185302734,"z":"a4e67f56.cb2c9","wires":[["c6bbc167.8e6de","a535318d.76e89","743a8961.a83bb8"]]},{"id":"c6bbc167.8e6de","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n","comments":"","x":1019.5,"y":34.74999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"fc731431.b82788","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":817.75,"y":114.99999237060547,"z":"a4e67f56.cb2c9","wires":[["5a58c62.8050138","a535318d.76e89","743a8961.a83bb8"]]},{"id":"5a58c62.8050138","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":1021.5,"y":74.24999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"ba6f005b.3e44e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":812.5,"y":185,"z":"a4e67f56.cb2c9","wires":[["27e3ed66.16f0c2","743a8961.a83bb8","a535318d.76e89"]]},{"id":"372c3af9.966c56","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":816.5,"y":241.25,"z":"a4e67f56.cb2c9","wires":[["c98aab75.3231f8","743a8961.a83bb8","a535318d.76e89"]]},{"id":"27e3ed66.16f0c2","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":1026.4999885559082,"y":121.75,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"c98aab75.3231f8","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":1024.25,"y":164.75,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"743a8961.a83bb8","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":1052.25,"y":260,"z":"a4e67f56.cb2c9","wires":[]},{"id":"63daa94e.76aae8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":883.75,"y":313.74999237060547,"z":"a4e67f56.cb2c9","wires":[["6b1bdb26.cbe694","e53f7a1.c43ed88","ffb12b2e.32f4f8"]]},{"id":"3ce56e6e.d0d1b2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":897.75,"y":398.99999237060547,"z":"a4e67f56.cb2c9","wires":[["189f4de.d45a0b2","e53f7a1.c43ed88","ffb12b2e.32f4f8"]]},{"id":"6b1bdb26.cbe694","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n","comments":"","x":1151.75,"y":305.24999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"189f4de.d45a0b2","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n","comments":"","x":1153.75,"y":348.49999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"358af0c2.a30ea","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":914.25,"y":511.49999237060547,"z":"a4e67f56.cb2c9","wires":[["3871609f.8f563","ffb12b2e.32f4f8","e53f7a1.c43ed88"]]},{"id":"60cd06a7.dbee98","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":913,"y":456.99999237060547,"z":"a4e67f56.cb2c9","wires":[["4f35fa3d.a4b784","ffb12b2e.32f4f8","e53f7a1.c43ed88"]]},{"id":"4f35fa3d.a4b784","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":1152.5,"y":392.99999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"3871609f.8f563","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":1152.75,"y":432.99999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"ffb12b2e.32f4f8","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":1160.25,"y":532.2499923706055,"z":"a4e67f56.cb2c9","wires":[]},{"id":"7b36969f.21ea78","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1550.75,"y":565.5,"z":"a4e67f56.cb2c9","wires":[["d90b7545.846c58","b1eeb2dd.58bb4","8702f3c1.de0c"]]},{"id":"d90b7545.846c58","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":1758.5,"y":557,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"b1eeb2dd.58bb4","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":1772.75,"y":782.75,"z":"a4e67f56.cb2c9","wires":[]},{"id":"9806fd80.49448","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1542.25,"y":627.5,"z":"a4e67f56.cb2c9","wires":[["c10f41b7.4725d","b1eeb2dd.58bb4","8702f3c1.de0c"]]},{"id":"c10f41b7.4725d","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":1758.75,"y":612,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"13894430.36b39c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1537.75,"y":689,"z":"a4e67f56.cb2c9","wires":[["8a66df46.83bf","b1eeb2dd.58bb4","8702f3c1.de0c"]]},{"id":"8a66df46.83bf","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":1764.5,"y":664,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"a535318d.76e89","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":1044,"y":216,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"e53f7a1.c43ed88","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":1160,"y":487.99999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"8702f3c1.de0c","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":1769,"y":720,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"e5f7f554.e2b2d8","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":559,"y":318.74999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"90297c5e.6500e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":369,"y":341.74999237060547,"z":"a4e67f56.cb2c9","wires":[["e5f7f554.e2b2d8","8215021c.22176"]]}]
+[
+ {
+ "id": "180bf863.7ff698",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 638,
+ "y": 47,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "b1e85b4d.4de818"
+ ]
+ ]
+ },
+ {
+ "id": "7b831419.1eac8c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 722.25,
+ "y": 363.49999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "63daa94e.76aae8"
+ ]
+ ]
+ },
+ {
+ "id": "140f6ea5.4e8041",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 718.25,
+ "y": 416.24999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "3ce56e6e.d0d1b2"
+ ]
+ ]
+ },
+ {
+ "id": "47086c60.ba95f4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 641,
+ "y": 115.99999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "fc731431.b82788"
+ ]
+ ]
+ },
+ {
+ "id": "11938b45.589b15",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 638.2499389648438,
+ "y": 267.25,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "372c3af9.966c56"
+ ]
+ ]
+ },
+ {
+ "id": "dbe515ac.28eb98",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 632.2499389648438,
+ "y": 202,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "ba6f005b.3e44e"
+ ]
+ ]
+ },
+ {
+ "id": "5f02c1cf.37b4f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710.5,
+ "y": 461.49999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "60cd06a7.dbee98"
+ ]
+ ]
+ },
+ {
+ "id": "3a82553d.6d98ea",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710,
+ "y": 512.4999923706055,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "358af0c2.a30ea"
+ ]
+ ]
+ },
+ {
+ "id": "46c38e22.64329",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1380,
+ "y": 596.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "9806fd80.49448"
+ ]
+ ]
+ },
+ {
+ "id": "8ecbeb04.4666d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1384.75,
+ "y": 695.25,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "13894430.36b39c"
+ ]
+ ]
+ },
+ {
+ "id": "35ce6e5b.761062",
+ "type": "success",
+ "name": "multipleRunningConfig",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 832.5,
+ "y": 567.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "7b36969f.21ea78"
+ ]
+ ]
+ },
+ {
+ "id": "c7e15c3e.27cb3",
+ "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": 402.75006103515625,
+ "y": 111.74999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "180bf863.7ff698",
+ "47086c60.ba95f4",
+ "551adf9c.16e0f"
+ ]
+ ]
+ },
+ {
+ "id": "8215021c.22176",
+ "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": 453,
+ "y": 417.49999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "7b831419.1eac8c",
+ "140f6ea5.4e8041",
+ "11955887.62d437"
+ ]
+ ]
+ },
+ {
+ "id": "ab93e21b.a1f7e",
+ "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": 379.75,
+ "y": 266.5,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "11938b45.589b15",
+ "dbe515ac.28eb98",
+ "e9858666.192658"
+ ]
+ ]
+ },
+ {
+ "id": "afcdc902.93d708",
+ "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": 413.0000305175781,
+ "y": 551.2499923706055,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "5f02c1cf.37b4f",
+ "3a82553d.6d98ea",
+ "7b612e94.00088"
+ ]
+ ]
+ },
+ {
+ "id": "b890cd70.906b9",
+ "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": 1171.75,
+ "y": 608,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "46c38e22.64329",
+ "473728a6.0b2d68"
+ ]
+ ]
+ },
+ {
+ "id": "a92cddb8.c9d51",
+ "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": 1171.2499885559082,
+ "y": 704.7499923706055,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "8ecbeb04.4666d8",
+ "541750f1.605a4"
+ ]
+ ]
+ },
+ {
+ "id": "b92bafaa.6f832",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$runningConfig.count.value`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 623.7499961853027,
+ "y": 603.0000019073486,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "35ce6e5b.761062",
+ "78f7b47a.d6ce1c",
+ "4ed41f3c.8441d"
+ ]
+ ]
+ },
+ {
+ "id": "3e4780c.eefb78",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 137.50000381469727,
+ "y": 224.24999618530273,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "c7e15c3e.27cb3",
+ "5449a18d.439af"
+ ]
+ ]
+ },
+ {
+ "id": "551adf9c.16e0f",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 450.24993896484375,
+ "y": 175.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "ab93e21b.a1f7e"
+ ]
+ ]
+ },
+ {
+ "id": "11955887.62d437",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 414.74993896484375,
+ "y": 488.49999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "afcdc902.93d708"
+ ]
+ ]
+ },
+ {
+ "id": "e9858666.192658",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 236.2498779296875,
+ "y": 342.24999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "90297c5e.6500e"
+ ]
+ ]
+ },
+ {
+ "id": "7b612e94.00088",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 452.49993896484375,
+ "y": 653.4999923706055,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "b92bafaa.6f832"
+ ]
+ ]
+ },
+ {
+ "id": "473728a6.0b2d68",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1381.75,
+ "y": 646,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "35aaded4.f11712",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 997.75,
+ "y": 620,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "b890cd70.906b9"
+ ]
+ ]
+ },
+ {
+ "id": "541750f1.605a4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1386.5,
+ "y": 744.25,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8c3cc0da.7b207",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 999.25,
+ "y": 683.25,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "a92cddb8.c9d51"
+ ]
+ ]
+ },
+ {
+ "id": "78f7b47a.d6ce1c",
+ "type": "success",
+ "name": "noRunningConfig",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 823.75,
+ "y": 618.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "35aaded4.f11712"
+ ]
+ ]
+ },
+ {
+ "id": "4ed41f3c.8441d",
+ "type": "failure",
+ "name": "runningConfigExists",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 827.25,
+ "y": 683.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "8c3cc0da.7b207"
+ ]
+ ]
+ },
+ {
+ "id": "6c20bf89.5231d",
+ "type": "method",
+ "name": "GetRunningConfig",
+ "xml": "<method rpc='Generic_GetRunningConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 128,
+ "y": 140.74999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "3e4780c.eefb78"
+ ]
+ ]
+ },
+ {
+ "id": "84baaf90.5a32d",
+ "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": 264.99999237060547,
+ "y": 55.9999942779541,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "6c20bf89.5231d"
+ ]
+ ]
+ },
+ {
+ "id": "5449a18d.439af",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 118.00003051757812,
+ "y": 430.24999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": []
+ },
+ {
+ "id": "60394b9e.416b44",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 97.4999885559082,
+ "y": 56.74999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "84baaf90.5a32d"
+ ]
+ ]
+ },
+ {
+ "id": "b1e85b4d.4de818",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 813,
+ "y": 48.499996185302734,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "c6bbc167.8e6de",
+ "a535318d.76e89",
+ "743a8961.a83bb8"
+ ]
+ ]
+ },
+ {
+ "id": "c6bbc167.8e6de",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n",
+ "comments": "",
+ "x": 1019.5,
+ "y": 34.74999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fc731431.b82788",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 817.75,
+ "y": 114.99999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "5a58c62.8050138",
+ "a535318d.76e89",
+ "743a8961.a83bb8"
+ ]
+ ]
+ },
+ {
+ "id": "5a58c62.8050138",
+ "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": 1021.5,
+ "y": 74.24999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ba6f005b.3e44e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 812.5,
+ "y": 185,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "27e3ed66.16f0c2",
+ "743a8961.a83bb8",
+ "a535318d.76e89"
+ ]
+ ]
+ },
+ {
+ "id": "372c3af9.966c56",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 816.5,
+ "y": 241.25,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "c98aab75.3231f8",
+ "743a8961.a83bb8",
+ "a535318d.76e89"
+ ]
+ ]
+ },
+ {
+ "id": "27e3ed66.16f0c2",
+ "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": 1026.4999885559082,
+ "y": 121.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c98aab75.3231f8",
+ "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": 1024.25,
+ "y": 164.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "743a8961.a83bb8",
+ "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": 1052.25,
+ "y": 260,
+ "z": "a4e67f56.cb2c9",
+ "wires": []
+ },
+ {
+ "id": "63daa94e.76aae8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 883.75,
+ "y": 313.74999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "6b1bdb26.cbe694",
+ "e53f7a1.c43ed88",
+ "ffb12b2e.32f4f8"
+ ]
+ ]
+ },
+ {
+ "id": "3ce56e6e.d0d1b2",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 897.75,
+ "y": 398.99999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "189f4de.d45a0b2",
+ "e53f7a1.c43ed88",
+ "ffb12b2e.32f4f8"
+ ]
+ ]
+ },
+ {
+ "id": "6b1bdb26.cbe694",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",
+ "comments": "",
+ "x": 1151.75,
+ "y": 305.24999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "189f4de.d45a0b2",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",
+ "comments": "",
+ "x": 1153.75,
+ "y": 348.49999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "358af0c2.a30ea",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.25,
+ "y": 511.49999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "3871609f.8f563",
+ "ffb12b2e.32f4f8",
+ "e53f7a1.c43ed88"
+ ]
+ ]
+ },
+ {
+ "id": "60cd06a7.dbee98",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 913,
+ "y": 456.99999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "4f35fa3d.a4b784",
+ "ffb12b2e.32f4f8",
+ "e53f7a1.c43ed88"
+ ]
+ ]
+ },
+ {
+ "id": "4f35fa3d.a4b784",
+ "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": 1152.5,
+ "y": 392.99999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3871609f.8f563",
+ "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": 1152.75,
+ "y": 432.99999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ffb12b2e.32f4f8",
+ "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": 1160.25,
+ "y": 532.2499923706055,
+ "z": "a4e67f56.cb2c9",
+ "wires": []
+ },
+ {
+ "id": "7b36969f.21ea78",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1550.75,
+ "y": 565.5,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "d90b7545.846c58",
+ "b1eeb2dd.58bb4",
+ "8702f3c1.de0c"
+ ]
+ ]
+ },
+ {
+ "id": "d90b7545.846c58",
+ "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": 1758.5,
+ "y": 557,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b1eeb2dd.58bb4",
+ "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": 1772.75,
+ "y": 782.75,
+ "z": "a4e67f56.cb2c9",
+ "wires": []
+ },
+ {
+ "id": "9806fd80.49448",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1542.25,
+ "y": 627.5,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "c10f41b7.4725d",
+ "b1eeb2dd.58bb4",
+ "8702f3c1.de0c"
+ ]
+ ]
+ },
+ {
+ "id": "c10f41b7.4725d",
+ "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": 1758.75,
+ "y": 612,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13894430.36b39c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1537.75,
+ "y": 689,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "8a66df46.83bf",
+ "b1eeb2dd.58bb4",
+ "8702f3c1.de0c"
+ ]
+ ]
+ },
+ {
+ "id": "8a66df46.83bf",
+ "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": 1764.5,
+ "y": 664,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a535318d.76e89",
+ "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": 1044,
+ "y": 216,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e53f7a1.c43ed88",
+ "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": 1160,
+ "y": 487.99999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8702f3c1.de0c",
+ "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": 1769,
+ "y": 720,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e5f7f554.e2b2d8",
+ "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": 559,
+ "y": 318.74999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90297c5e.6500e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 369,
+ "y": 341.74999237060547,
+ "z": "a4e67f56.cb2c9",
+ "wires": [
+ [
+ "e5f7f554.e2b2d8",
+ "8215021c.22176"
+ ]
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_vSRX_GetXmlRunningConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_vSRX_GetXmlRunningConfig.json
index 554b3c8dd..9720cab0d 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_vSRX_GetXmlRunningConfig.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_2.0.0_method_vSRX_GetXmlRunningConfig.json
@@ -1 +1,218 @@
-[{"id":"81a75d19.d19de","type":"dgstart","name":"DGSTART","outputs":1,"x":102,"y":37,"z":"214d83f7.3c518c","wires":[["910e9ec4.7af88"]]},{"id":"910e9ec4.7af88","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":110.50000762939453,"y":109.75,"z":"214d83f7.3c518c","wires":[["26feaf5a.9171d"]]},{"id":"26feaf5a.9171d","type":"method","name":"GetRunningConfig","xml":"<method rpc='vSRX_GetXmlRunningConfig' mode='sync'>\n","comments":"","outputs":1,"x":148.75003051757812,"y":191.75,"z":"214d83f7.3c518c","wires":[["b1c0732b.61d2e"]]},{"id":"42ce5f64.d4dc7","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":485.5,"y":464,"z":"214d83f7.3c518c","wires":[]},{"id":"b1c0732b.61d2e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":315,"y":308.25,"z":"214d83f7.3c518c","wires":[["42ce5f64.d4dc7","34a60a4b.c91646","14ef8882.fe0a17"]]},{"id":"34a60a4b.c91646","type":"execute","name":"get_Configuration","xml":"<execute plugin='org.onap.appc.dg.netconf.NetconfClientPlugin' method='getRunningConfig'>\n<parameter name=\"host-ip-address\" value=\"`$host-ip-address`\" />\n<parameter name=\"user-name\" value=\"`$USER-NAME`\" />\n<parameter name=\"password\" value=\"`$PASSWORD`\" />\n<parameter name=\"port-number\" value=\"`$PORT-NUMBER`\" />","comments":"","outputs":1,"x":472.75,"y":132.75,"z":"214d83f7.3c518c","wires":[["5931040.78065fc","f1a57725.85dd58","459d3ca2.15d404"]]},{"id":"f1a57725.85dd58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":682.5,"y":77,"z":"214d83f7.3c518c","wires":[["6bf71909.695d08"]]},{"id":"882a18a4.de2258","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":851.25,"y":239.75,"z":"214d83f7.3c518c","wires":[["6bf71909.695d08"]]},{"id":"6fb7e232.a4781c","type":"switchNode","name":"switch","xml":"<switch test='`$getRunningConfig_Result`'>\n","comments":"","outputs":1,"x":792.5,"y":398,"z":"214d83f7.3c518c","wires":[["f312cd43.e2751","882a18a4.de2258"]]},{"id":"5931040.78065fc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":677.75,"y":250.25,"z":"214d83f7.3c518c","wires":[["6fb7e232.a4781c"]]},{"id":"f312cd43.e2751","type":"success","name":"success","xml":"<outcome value='Success'>\n","comments":"","outputs":1,"x":907.5,"y":495.5,"z":"214d83f7.3c518c","wires":[[]]},{"id":"6bf71909.695d08","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","x":984.5,"y":89.75,"z":"214d83f7.3c518c","wires":[]},{"id":"459d3ca2.15d404","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":690.5,"y":154.75,"z":"214d83f7.3c518c","wires":[["6bf71909.695d08"]]},{"id":"14ef8882.fe0a17","type":"set","name":"set","xml":"<set>\n<parameter name='device-running-config' value=\"`$running-config`\" />\n","comments":"","outputs":1,"x":537,"y":281,"z":"214d83f7.3c518c","wires":[[]]}]
+[
+ {
+ "id": "81a75d19.d19de",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 102,
+ "y": 37,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "910e9ec4.7af88"
+ ]
+ ]
+ },
+ {
+ "id": "910e9ec4.7af88",
+ "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": 110.50000762939453,
+ "y": 109.75,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "26feaf5a.9171d"
+ ]
+ ]
+ },
+ {
+ "id": "26feaf5a.9171d",
+ "type": "method",
+ "name": "GetRunningConfig",
+ "xml": "<method rpc='vSRX_GetXmlRunningConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 148.75003051757812,
+ "y": 191.75,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "b1c0732b.61d2e"
+ ]
+ ]
+ },
+ {
+ "id": "42ce5f64.d4dc7",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 485.5,
+ "y": 464,
+ "z": "214d83f7.3c518c",
+ "wires": []
+ },
+ {
+ "id": "b1c0732b.61d2e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 315,
+ "y": 308.25,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "42ce5f64.d4dc7",
+ "34a60a4b.c91646",
+ "14ef8882.fe0a17"
+ ]
+ ]
+ },
+ {
+ "id": "34a60a4b.c91646",
+ "type": "execute",
+ "name": "get_Configuration",
+ "xml": "<execute plugin='org.onap.appc.dg.netconf.NetconfClientPlugin' method='getRunningConfig'>\n<parameter name=\"host-ip-address\" value=\"`$host-ip-address`\" />\n<parameter name=\"user-name\" value=\"`$USER-NAME`\" />\n<parameter name=\"password\" value=\"`$PASSWORD`\" />\n<parameter name=\"port-number\" value=\"`$PORT-NUMBER`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 472.75,
+ "y": 132.75,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "5931040.78065fc",
+ "f1a57725.85dd58",
+ "459d3ca2.15d404"
+ ]
+ ]
+ },
+ {
+ "id": "f1a57725.85dd58",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 682.5,
+ "y": 77,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "6bf71909.695d08"
+ ]
+ ]
+ },
+ {
+ "id": "882a18a4.de2258",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.25,
+ "y": 239.75,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "6bf71909.695d08"
+ ]
+ ]
+ },
+ {
+ "id": "6fb7e232.a4781c",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$getRunningConfig_Result`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.5,
+ "y": 398,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "f312cd43.e2751",
+ "882a18a4.de2258"
+ ]
+ ]
+ },
+ {
+ "id": "5931040.78065fc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 677.75,
+ "y": 250.25,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "6fb7e232.a4781c"
+ ]
+ ]
+ },
+ {
+ "id": "f312cd43.e2751",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='Success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 907.5,
+ "y": 495.5,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6bf71909.695d08",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`$org.onap.appc.dg.error`\" />\n",
+ "comments": "",
+ "x": 984.5,
+ "y": 89.75,
+ "z": "214d83f7.3c518c",
+ "wires": []
+ },
+ {
+ "id": "459d3ca2.15d404",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 690.5,
+ "y": 154.75,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ [
+ "6bf71909.695d08"
+ ]
+ ]
+ },
+ {
+ "id": "14ef8882.fe0a17",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='device-running-config' value=\"`$running-config`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 537,
+ "y": 281,
+ "z": "214d83f7.3c518c",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Check-Active_VNFC_vSCP.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Check-Active_VNFC_vSCP.json
index 980244935..7754ee777 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Check-Active_VNFC_vSCP.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Check-Active_VNFC_vSCP.json
@@ -1 +1,305 @@
-[{"id":"49deed42.81d544","type":"method","name":"Check-Active_VNFC_vSCP","xml":"<method rpc='Check-Active_VNFC_vSCP' mode='sync'>\n","comments":"","outputs":1,"x":167.80625915527344,"y":252.00000762939453,"z":"c0682e3f.3173c","wires":[["2f73c48e.7de84c"]]},{"id":"56154020.16fac","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":153.80625915527344,"y":173.0000004768375,"z":"c0682e3f.3173c","wires":[["49deed42.81d544"]]},{"id":"5b09cf65.4228c","type":"dgstart","name":"DGSTART","outputs":1,"x":128.80625915527344,"y":98.0000004768375,"z":"c0682e3f.3173c","wires":[["56154020.16fac"]]},{"id":"906908fc.43cf18","type":"execute","name":"execute","xml":"<execute plugin='com.att.appc.dg.vSCP.v3_5_5.smp.SMPDGPlugin' method='checkIfActive' >\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n\n","comments":"","outputs":1,"x":920.306266784668,"y":601.0000061988834,"z":"c0682e3f.3173c","wires":[["7805d251.09c37c","5622b0c9.b2e2d","fcf85234.6afd8"]]},{"id":"f08644b.81ce3b8","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":1151.8061981201172,"y":835.2500233650211,"z":"c0682e3f.3173c","wires":[]},{"id":"7805d251.09c37c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1121.806282043457,"y":696.5000138282779,"z":"c0682e3f.3173c","wires":[["f08644b.81ce3b8"]]},{"id":"5622b0c9.b2e2d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1149.8061981201172,"y":639.2500233650211,"z":"c0682e3f.3173c","wires":[["fcc5b930.9c3858"]]},{"id":"2f73c48e.7de84c","type":"switchNode","name":"switch","xml":"<switch test='`length($connection-details) == 0`'>\n\n\n","comments":"","outputs":1,"x":290.80625915527344,"y":442.0000004768375,"z":"c0682e3f.3173c","wires":[["6a23cb1e.58a7a4","d7b3fd49.e8382"]]},{"id":"6a23cb1e.58a7a4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":454.55626678466797,"y":374.5000061988834,"z":"c0682e3f.3173c","wires":[["e548aab0.213398"]]},{"id":"d7b3fd49.e8382","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":454.05625915527344,"y":522.7500004768375,"z":"c0682e3f.3173c","wires":[["906908fc.43cf18"]]},{"id":"e548aab0.213398","type":"execute","name":"execute: retrieveConnectionDetails","xml":"<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n","comments":"","outputs":1,"x":743.3062744140625,"y":355.7500061988834,"z":"c0682e3f.3173c","wires":[["ae264d49.ae7ad","99b67ee2.a89a5"]]},{"id":"ae264d49.ae7ad","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":837.0562591552734,"y":469.5000004768375,"z":"c0682e3f.3173c","wires":[["906908fc.43cf18"]]},{"id":"99b67ee2.a89a5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1007.0562591552734,"y":275.7500004768375,"z":"c0682e3f.3173c","wires":[["c78d1a7f.685198"]]},{"id":"2730046b.7b6b6c","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","comments":"","x":1610.8061981201172,"y":752.7115101814273,"z":"c0682e3f.3173c","wires":[]},{"id":"2e2a4b44.42d064","type":"set","name":"set","xml":"<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve connection details of the vnfc : ' + $vnfcType`\"/> ","comments":"","x":1529.287353515625,"y":187.00000143051182,"z":"c0682e3f.3173c","wires":[]},{"id":"c78d1a7f.685198","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1302.5179901123047,"y":297.8461232185367,"z":"c0682e3f.3173c","wires":[["2e2a4b44.42d064","2c80a8ba.83a878"]]},{"id":"fcf85234.6afd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1144.8061981201172,"y":569.6667103767398,"z":"c0682e3f.3173c","wires":[["fcc5b930.9c3858"]]},{"id":"7171117c.85bcd","type":"set","name":"Set event message","xml":"<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve the role(Active/Passive) of the vnfc : ' + $vnfcType`\"/> ","comments":"","x":1482.8061981201172,"y":501.6666798591617,"z":"c0682e3f.3173c","wires":[]},{"id":"fcc5b930.9c3858","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1348.8062591552734,"y":577.6666646003727,"z":"c0682e3f.3173c","wires":[["7171117c.85bcd","2730046b.7b6b6c"]]},{"id":"2c80a8ba.83a878","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","comments":"","x":1495.8062286376953,"y":384.6666569709781,"z":"c0682e3f.3173c","wires":[]}]
+[
+ {
+ "id": "49deed42.81d544",
+ "type": "method",
+ "name": "Check-Active_VNFC_vSCP",
+ "xml": "<method rpc='Check-Active_VNFC_vSCP' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 167.80625915527344,
+ "y": 252.00000762939453,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "2f73c48e.7de84c"
+ ]
+ ]
+ },
+ {
+ "id": "56154020.16fac",
+ "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": 153.80625915527344,
+ "y": 173.0000004768375,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "49deed42.81d544"
+ ]
+ ]
+ },
+ {
+ "id": "5b09cf65.4228c",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 128.80625915527344,
+ "y": 98.0000004768375,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "56154020.16fac"
+ ]
+ ]
+ },
+ {
+ "id": "906908fc.43cf18",
+ "type": "execute",
+ "name": "execute",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.smp.SMPDGPlugin' method='checkIfActive' >\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 920.306266784668,
+ "y": 601.0000061988834,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "7805d251.09c37c",
+ "5622b0c9.b2e2d",
+ "fcf85234.6afd8"
+ ]
+ ]
+ },
+ {
+ "id": "f08644b.81ce3b8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1151.8061981201172,
+ "y": 835.2500233650211,
+ "z": "c0682e3f.3173c",
+ "wires": []
+ },
+ {
+ "id": "7805d251.09c37c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1121.806282043457,
+ "y": 696.5000138282779,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "f08644b.81ce3b8"
+ ]
+ ]
+ },
+ {
+ "id": "5622b0c9.b2e2d",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1149.8061981201172,
+ "y": 639.2500233650211,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "fcc5b930.9c3858"
+ ]
+ ]
+ },
+ {
+ "id": "2f73c48e.7de84c",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`length($connection-details) == 0`'>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 290.80625915527344,
+ "y": 442.0000004768375,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "6a23cb1e.58a7a4",
+ "d7b3fd49.e8382"
+ ]
+ ]
+ },
+ {
+ "id": "6a23cb1e.58a7a4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 454.55626678466797,
+ "y": 374.5000061988834,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "e548aab0.213398"
+ ]
+ ]
+ },
+ {
+ "id": "d7b3fd49.e8382",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 454.05625915527344,
+ "y": 522.7500004768375,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "906908fc.43cf18"
+ ]
+ ]
+ },
+ {
+ "id": "e548aab0.213398",
+ "type": "execute",
+ "name": "execute: retrieveConnectionDetails",
+ "xml": "<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 743.3062744140625,
+ "y": 355.7500061988834,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "ae264d49.ae7ad",
+ "99b67ee2.a89a5"
+ ]
+ ]
+ },
+ {
+ "id": "ae264d49.ae7ad",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 837.0562591552734,
+ "y": 469.5000004768375,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "906908fc.43cf18"
+ ]
+ ]
+ },
+ {
+ "id": "99b67ee2.a89a5",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1007.0562591552734,
+ "y": 275.7500004768375,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "c78d1a7f.685198"
+ ]
+ ]
+ },
+ {
+ "id": "2730046b.7b6b6c",
+ "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",
+ "comments": "",
+ "x": 1610.8061981201172,
+ "y": 752.7115101814273,
+ "z": "c0682e3f.3173c",
+ "wires": []
+ },
+ {
+ "id": "2e2a4b44.42d064",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve connection details of the vnfc : ' + $vnfcType`\"/> ",
+ "comments": "",
+ "x": 1529.287353515625,
+ "y": 187.00000143051182,
+ "z": "c0682e3f.3173c",
+ "wires": []
+ },
+ {
+ "id": "c78d1a7f.685198",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1302.5179901123047,
+ "y": 297.8461232185367,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "2e2a4b44.42d064",
+ "2c80a8ba.83a878"
+ ]
+ ]
+ },
+ {
+ "id": "fcf85234.6afd8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1144.8061981201172,
+ "y": 569.6667103767398,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "fcc5b930.9c3858"
+ ]
+ ]
+ },
+ {
+ "id": "7171117c.85bcd",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve the role(Active/Passive) of the vnfc : ' + $vnfcType`\"/> ",
+ "comments": "",
+ "x": 1482.8061981201172,
+ "y": 501.6666798591617,
+ "z": "c0682e3f.3173c",
+ "wires": []
+ },
+ {
+ "id": "fcc5b930.9c3858",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1348.8062591552734,
+ "y": 577.6666646003727,
+ "z": "c0682e3f.3173c",
+ "wires": [
+ [
+ "7171117c.85bcd",
+ "2730046b.7b6b6c"
+ ]
+ ]
+ },
+ {
+ "id": "2c80a8ba.83a878",
+ "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",
+ "comments": "",
+ "x": 1495.8062286376953,
+ "y": 384.6666569709781,
+ "z": "c0682e3f.3173c",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_HealthCheck_VNF_vSCP.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_HealthCheck_VNF_vSCP.json
index a9483cb55..3169f3b04 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_HealthCheck_VNF_vSCP.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_HealthCheck_VNF_vSCP.json
@@ -1 +1,318 @@
-[{"id":"63ee9929.4f7758","type":"dgstart","name":"DGSTART","outputs":1,"x":167.80625915527344,"y":110.82500457763672,"z":"dc4cc75e.06b738","wires":[["cb9d6d77.df0cb"]]},{"id":"cb9d6d77.df0cb","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":266.80625915527344,"y":159.82500457763672,"z":"dc4cc75e.06b738","wires":[["c2c949ab.cfbdb8"]]},{"id":"c2c949ab.cfbdb8","type":"method","name":"HealthCheck_VNF_vSCP","xml":"<method rpc='HealthCheck_VNF_vSCP' mode='sync'>\n","comments":"","outputs":1,"x":322.80625915527344,"y":260.8250045776367,"z":"dc4cc75e.06b738","wires":[["ec7a529c.e62e5"]]},{"id":"c00f6c66.afecd","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","comments":"","x":1247.5750579833984,"y":498.28661346435547,"z":"dc4cc75e.06b738","wires":[]},{"id":"97e98dca.283de","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='error-code' value='400' />\n","comments":"","x":1140.8060150146484,"y":896.8251266479492,"z":"dc4cc75e.06b738","wires":[]},{"id":"f55bbc3a.10506","type":"execute","name":"execute: retrieveConnectionDetails","xml":"<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n","comments":"","outputs":1,"x":715.8061370849609,"y":413.82506561279297,"z":"dc4cc75e.06b738","wires":[["7b5a3bce.849884","c7f4caa4.4c7e88"]]},{"id":"83ed6d82.27f7b","type":"set","name":"set","xml":"<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve connection details for vnfc : ' + $vnfcType`\"/> ","comments":"","x":1350.806137084961,"y":213.82512664794922,"z":"dc4cc75e.06b738","wires":[]},{"id":"7b5a3bce.849884","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":717.8061370849609,"y":545.825065612793,"z":"dc4cc75e.06b738","wires":[["3f7d06de.4adc9a"]]},{"id":"48769737.4cb898","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":848.8060150146484,"y":895.8251266479492,"z":"dc4cc75e.06b738","wires":[["97e98dca.283de"]]},{"id":"3f7d06de.4adc9a","type":"execute","name":"executeTest","xml":"<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='healthCheckVMs'>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"retry-healthcheck\" value=\"`$retry-healthcheck`\"/>","comments":"","outputs":1,"x":741.8060150146484,"y":738.825065612793,"z":"dc4cc75e.06b738","wires":[["48769737.4cb898","51efdcf8.289614"]]},{"id":"5eaef937.ba54c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1119.036849975586,"y":274.67125701904297,"z":"dc4cc75e.06b738","wires":[["83ed6d82.27f7b","de589d77.aee22","9d5c2e19.ae055"]]},{"id":"37d3c438.cac5ec","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":978.3442230224609,"y":460.4404830932617,"z":"dc4cc75e.06b738","wires":[["f52994d0.a42ec8","c00f6c66.afecd","ec0b5de3.efb66"]]},{"id":"ec7a529c.e62e5","type":"switchNode","name":"switch","xml":"<switch test='`length($connection-details) == 0`'>\n\n\n","comments":"","outputs":1,"x":302.80625915527344,"y":379.5750045776367,"z":"dc4cc75e.06b738","wires":[["f28dc950.083398","d4c1bf0.970e44"]]},{"id":"f28dc950.083398","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":472.80625915527344,"y":324.5750045776367,"z":"dc4cc75e.06b738","wires":[["f55bbc3a.10506"]]},{"id":"d4c1bf0.970e44","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":429.80625915527344,"y":461.5750045776367,"z":"dc4cc75e.06b738","wires":[["3f7d06de.4adc9a"]]},{"id":"c7f4caa4.4c7e88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":953.8062591552734,"y":287.8250045776367,"z":"dc4cc75e.06b738","wires":[["5eaef937.ba54c8"]]},{"id":"51efdcf8.289614","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":881.8062591552734,"y":670.8250045776367,"z":"dc4cc75e.06b738","wires":[["37d3c438.cac5ec"]]},{"id":"f52994d0.a42ec8","type":"set","name":"set","xml":"<set>\n<parameter name=\"event-message\" value=\"`'Failed to do health check of the vnfc : ' + $vnfcType`\"/> ","comments":"","x":1226.8062591552734,"y":400.8250045776367,"z":"dc4cc75e.06b738","wires":[]},{"id":"de589d77.aee22","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":1359.8062591552734,"y":273.8250045776367,"z":"dc4cc75e.06b738","wires":[[]]},{"id":"ec0b5de3.efb66","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":1236.8062591552734,"y":454.8250045776367,"z":"dc4cc75e.06b738","wires":[[]]},{"id":"9d5c2e19.ae055","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","comments":"","x":1358.6552276611328,"y":336.3406295776367,"z":"dc4cc75e.06b738","wires":[]}]
+[
+ {
+ "id": "63ee9929.4f7758",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 167.80625915527344,
+ "y": 110.82500457763672,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "cb9d6d77.df0cb"
+ ]
+ ]
+ },
+ {
+ "id": "cb9d6d77.df0cb",
+ "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": 266.80625915527344,
+ "y": 159.82500457763672,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "c2c949ab.cfbdb8"
+ ]
+ ]
+ },
+ {
+ "id": "c2c949ab.cfbdb8",
+ "type": "method",
+ "name": "HealthCheck_VNF_vSCP",
+ "xml": "<method rpc='HealthCheck_VNF_vSCP' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 322.80625915527344,
+ "y": 260.8250045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "ec7a529c.e62e5"
+ ]
+ ]
+ },
+ {
+ "id": "c00f6c66.afecd",
+ "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",
+ "comments": "",
+ "x": 1247.5750579833984,
+ "y": 498.28661346435547,
+ "z": "dc4cc75e.06b738",
+ "wires": []
+ },
+ {
+ "id": "97e98dca.283de",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='error-code' value='400' />\n",
+ "comments": "",
+ "x": 1140.8060150146484,
+ "y": 896.8251266479492,
+ "z": "dc4cc75e.06b738",
+ "wires": []
+ },
+ {
+ "id": "f55bbc3a.10506",
+ "type": "execute",
+ "name": "execute: retrieveConnectionDetails",
+ "xml": "<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 715.8061370849609,
+ "y": 413.82506561279297,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "7b5a3bce.849884",
+ "c7f4caa4.4c7e88"
+ ]
+ ]
+ },
+ {
+ "id": "83ed6d82.27f7b",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve connection details for vnfc : ' + $vnfcType`\"/> ",
+ "comments": "",
+ "x": 1350.806137084961,
+ "y": 213.82512664794922,
+ "z": "dc4cc75e.06b738",
+ "wires": []
+ },
+ {
+ "id": "7b5a3bce.849884",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 717.8061370849609,
+ "y": 545.825065612793,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "3f7d06de.4adc9a"
+ ]
+ ]
+ },
+ {
+ "id": "48769737.4cb898",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 848.8060150146484,
+ "y": 895.8251266479492,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "97e98dca.283de"
+ ]
+ ]
+ },
+ {
+ "id": "3f7d06de.4adc9a",
+ "type": "execute",
+ "name": "executeTest",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='healthCheckVMs'>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"retry-healthcheck\" value=\"`$retry-healthcheck`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 741.8060150146484,
+ "y": 738.825065612793,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "48769737.4cb898",
+ "51efdcf8.289614"
+ ]
+ ]
+ },
+ {
+ "id": "5eaef937.ba54c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1119.036849975586,
+ "y": 274.67125701904297,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "83ed6d82.27f7b",
+ "de589d77.aee22",
+ "9d5c2e19.ae055"
+ ]
+ ]
+ },
+ {
+ "id": "37d3c438.cac5ec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 978.3442230224609,
+ "y": 460.4404830932617,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "f52994d0.a42ec8",
+ "c00f6c66.afecd",
+ "ec0b5de3.efb66"
+ ]
+ ]
+ },
+ {
+ "id": "ec7a529c.e62e5",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`length($connection-details) == 0`'>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 302.80625915527344,
+ "y": 379.5750045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "f28dc950.083398",
+ "d4c1bf0.970e44"
+ ]
+ ]
+ },
+ {
+ "id": "f28dc950.083398",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 472.80625915527344,
+ "y": 324.5750045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "f55bbc3a.10506"
+ ]
+ ]
+ },
+ {
+ "id": "d4c1bf0.970e44",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 429.80625915527344,
+ "y": 461.5750045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "3f7d06de.4adc9a"
+ ]
+ ]
+ },
+ {
+ "id": "c7f4caa4.4c7e88",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 953.8062591552734,
+ "y": 287.8250045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "5eaef937.ba54c8"
+ ]
+ ]
+ },
+ {
+ "id": "51efdcf8.289614",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 881.8062591552734,
+ "y": 670.8250045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ [
+ "37d3c438.cac5ec"
+ ]
+ ]
+ },
+ {
+ "id": "f52994d0.a42ec8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to do health check of the vnfc : ' + $vnfcType`\"/> ",
+ "comments": "",
+ "x": 1226.8062591552734,
+ "y": 400.8250045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": []
+ },
+ {
+ "id": "de589d77.aee22",
+ "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": 1359.8062591552734,
+ "y": 273.8250045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ec0b5de3.efb66",
+ "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": 1236.8062591552734,
+ "y": 454.8250045776367,
+ "z": "dc4cc75e.06b738",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9d5c2e19.ae055",
+ "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",
+ "comments": "",
+ "x": 1358.6552276611328,
+ "y": 336.3406295776367,
+ "z": "dc4cc75e.06b738",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VM.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VM.json
index 8752402b8..0acb4fc3e 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VM.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VM.json
@@ -1 +1,561 @@
-[{"id":"40b86792.424e28","type":"dgstart","name":"DGSTART","outputs":1,"x":118.88888549804688,"y":77.88888549804688,"z":"d53a62cc.c8145","wires":[["bc032b26.e89658"]]},{"id":"bc032b26.e89658","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":295.88897705078125,"y":77.45555877685547,"z":"d53a62cc.c8145","wires":[["cd1bcdc.c4f313"]]},{"id":"cd1bcdc.c4f313","type":"method","name":"Rebuild_VM","xml":"<method rpc='Rebuild_VM' mode='sync'>\n","comments":"","outputs":1,"x":238.3532485961914,"y":169.27698135375977,"z":"d53a62cc.c8145","wires":[["b74d1e6.3a22ce"]]},{"id":"34f167f4.74fba8","type":"execute","name":"Rebuild","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$rebuild-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n","comments":"","outputs":1,"x":786.5222053527832,"y":474.9246606826782,"z":"d53a62cc.c8145","wires":[["c389f8ca.0d8db8","63bb4f30.2be92"]]},{"id":"c389f8ca.0d8db8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":903.6770362854004,"y":734.2462749481201,"z":"d53a62cc.c8145","wires":[["45b189ba.d7c4e8"]]},{"id":"63bb4f30.2be92","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":942.6393356323242,"y":441.8532495498657,"z":"d53a62cc.c8145","wires":[["96e74630.8df888"]]},{"id":"a546e205.8a738","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1582.3176345825195,"y":724.8893241882324,"z":"d53a62cc.c8145","wires":[["17c11aa2.c734e5","27d3846c.08be6c","d38bac72.40eca"]]},{"id":"17c11aa2.c734e5","type":"set","name":"Set error message","xml":"<set>\n<parameter name='event-message' value=\"`'Failure while rebuilding the server: ' + $rebuild-vm-url`\"/>\n","comments":"","x":1843.6394386291504,"y":676.8535795211792,"z":"d53a62cc.c8145","wires":[]},{"id":"27d3846c.08be6c","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":1836.0683631896973,"y":717.043927192688,"z":"d53a62cc.c8145","wires":[[]]},{"id":"de90dda7.71a4e","type":"set","name":"Set Success Message","xml":"<set>\n<parameter name='success-message' value=\"`'Rebuild succeeded for the server : ' + $rebuild-vm-url`\"/>\n\n\n","comments":"","x":1597.3530807495117,"y":272.99626636505127,"z":"d53a62cc.c8145","wires":[]},{"id":"ee54bf93.e9baa","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":1587.2102661132812,"y":324.5676784515381,"z":"d53a62cc.c8145","wires":[[]]},{"id":"d7feb7b1.3b6cd8","type":"switchNode","name":"switch:Last Attempt","xml":"<switch test='`$rebuildRetryCount == $retryIndex`'>\n","comments":"","outputs":1,"x":1232.3013343811035,"y":730.460786819458,"z":"d53a62cc.c8145","wires":[["2cc28296.df8a6e","9c67fa27.c3ff98"]]},{"id":"9c67fa27.c3ff98","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1441.1940994262695,"y":722.7822074890137,"z":"d53a62cc.c8145","wires":[["a546e205.8a738"]]},{"id":"2cc28296.df8a6e","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1426.5510845184326,"y":835.4961585998535,"z":"d53a62cc.c8145","wires":[["b3cb1d2b.62265"]]},{"id":"87033bf0.a89218","type":"for","name":"Loop","xml":"<for index=\"retryIndex\" start=\"1\" end=\"`$rebuildRetryCount + 1`\" >","comments":"","outputs":1,"x":295.7502975463867,"y":479.8532304763794,"z":"d53a62cc.c8145","wires":[["8f0dac95.828bd"]]},{"id":"b3cb1d2b.62265","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=\"`'Rebuild attempt ' + $retryIndex + ' of ' + $rebuildRetryCount + ' failed for server : ' + $rebuild-vm-url + '. Retrying.'`\"/>\n","comments":"","outputs":1,"x":1669.6347026824951,"y":833.7461585998535,"z":"d53a62cc.c8145","wires":[[]]},{"id":"d38bac72.40eca","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1852.0837440490723,"y":766.282208442688,"z":"d53a62cc.c8145","wires":[]},{"id":"8187513d.589d1","type":"returnSuccess","name":"return success","xml":"<return status='success'>","comments":"","x":1595.4485092163086,"y":449.1390333175659,"z":"d53a62cc.c8145","wires":[]},{"id":"96e74630.8df888","type":"switchNode","name":"switch STATUS","xml":"<switch test='`$REBUILD_STATUS`'>\n","comments":"","outputs":1,"x":1103.4325485229492,"y":443.4086961746216,"z":"d53a62cc.c8145","wires":[["ae2b10cb.cec5a","cd52c85b.5249d8","59307536.ee844c"]]},{"id":"ae2b10cb.cec5a","type":"other","name":"ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":1184.9563446044922,"y":529.3134174346924,"z":"d53a62cc.c8145","wires":[["45b189ba.d7c4e8"]]},{"id":"cd52c85b.5249d8","type":"success","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1350.3850173950195,"y":412.3134517669678,"z":"d53a62cc.c8145","wires":[["f91485e2.798dc8"]]},{"id":"45b189ba.d7c4e8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1064.6191062927246,"y":731.3493366241455,"z":"d53a62cc.c8145","wires":[["d7feb7b1.3b6cd8"]]},{"id":"59307536.ee844c","type":"other","name":"CONTEXT_NOT_FOUND","xml":"<outcome value='CONTEXT_NOT_FOUND'>\n","comments":"","outputs":1,"x":1413.8692588806152,"y":507.0785312652588,"z":"d53a62cc.c8145","wires":[["9a2a7a92.885b08"]]},{"id":"b74d1e6.3a22ce","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":297.7976417541504,"y":386.36428356170654,"z":"d53a62cc.c8145","wires":[["8c5bde88.c0aee","87033bf0.a89218","2d98dcb5.d16b44"]]},{"id":"8c5bde88.c0aee","type":"switchNode","name":"switch : rebuildRetryCount >= 0","xml":"<switch test='`$rebuildRetryCount >= 0`'>\n","comments":"","outputs":1,"x":567.797679901123,"y":317.7928533554077,"z":"d53a62cc.c8145","wires":[["2451c726.0ffbe8","6a4082a3.a5778c"]]},{"id":"2451c726.0ffbe8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":784.9404716491699,"y":276.3643217086792,"z":"d53a62cc.c8145","wires":[["23f87454.807cfc"]]},{"id":"6a4082a3.a5778c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":792.0833587646484,"y":353.5072250366211,"z":"d53a62cc.c8145","wires":[["39be1fd1.165f6"]]},{"id":"39be1fd1.165f6","type":"set","name":"increment rebuildRetryCount","xml":"<set>\n<parameter name=\"rebuildRetryCount\" value=\"`$rebuildRetryCount + 1`\" />\n","comments":"","x":974.9404563903809,"y":352.0786123275757,"z":"d53a62cc.c8145","wires":[]},{"id":"23f87454.807cfc","type":"set","name":"set rebuildRetryCount","xml":"<set>\n<parameter name='rebuildRetryCount' value='1' />\n","comments":"","x":956.3690452575684,"y":274.93574237823486,"z":"d53a62cc.c8145","wires":[]},{"id":"f91485e2.798dc8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1372.6388702392578,"y":319.85316371917725,"z":"d53a62cc.c8145","wires":[["de90dda7.71a4e","ee54bf93.e9baa","8187513d.589d1","8fdfd6a.1692b28"]]},{"id":"2d98dcb5.d16b44","type":"set","name":"initialize exitLoop","xml":"<set>\n<parameter name='exitLoop' value='false' />\n","comments":"","x":532.6389007568359,"y":209.85318422317505,"z":"d53a62cc.c8145","wires":[]},{"id":"8fdfd6a.1692b28","type":"set","name":"set exitLoop","xml":"<set>\n<parameter name='exitLoop' value='true' />\n","comments":"","x":1602.6389770507812,"y":384.1389150619507,"z":"d53a62cc.c8145","wires":[]},{"id":"8f0dac95.828bd","type":"switchNode","name":"switch exitLoop","xml":"<switch test='`$exitLoop`'>\n","comments":"","outputs":1,"x":462.63885498046875,"y":478.4245901107788,"z":"d53a62cc.c8145","wires":[["82ddebcb.4c72e8","e243de19.25b81"]]},{"id":"82ddebcb.4c72e8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":631.2102127075195,"y":479.853196144104,"z":"d53a62cc.c8145","wires":[["34f167f4.74fba8"]]},{"id":"e243de19.25b81","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":628.3532104492188,"y":545.5675039291382,"z":"d53a62cc.c8145","wires":[[]]},{"id":"9a2a7a92.885b08","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1578.263916015625,"y":657.8888959884644,"z":"d53a62cc.c8145","wires":[["63a3f95c.1a3338","27d3846c.08be6c","d38bac72.40eca"]]},{"id":"63a3f95c.1a3338","type":"set","name":"Set error message","xml":"<set>\n<parameter name='event-message' value=\"`'Failure while rebuilding the server: ' + $rebuild-vm-url + ' due to Invalid AICIdentity or tenant or credentials. Skipping all other VMs'`\"/>\n","comments":"","x":1837.0139465332031,"y":611.6389179229736,"z":"d53a62cc.c8145","wires":[]}]
+[
+ {
+ "id": "40b86792.424e28",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 118.88888549804688,
+ "y": 77.88888549804688,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "bc032b26.e89658"
+ ]
+ ]
+ },
+ {
+ "id": "bc032b26.e89658",
+ "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": 295.88897705078125,
+ "y": 77.45555877685547,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "cd1bcdc.c4f313"
+ ]
+ ]
+ },
+ {
+ "id": "cd1bcdc.c4f313",
+ "type": "method",
+ "name": "Rebuild_VM",
+ "xml": "<method rpc='Rebuild_VM' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 238.3532485961914,
+ "y": 169.27698135375977,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "b74d1e6.3a22ce"
+ ]
+ ]
+ },
+ {
+ "id": "34f167f4.74fba8",
+ "type": "execute",
+ "name": "Rebuild",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$rebuild-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 786.5222053527832,
+ "y": 474.9246606826782,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "c389f8ca.0d8db8",
+ "63bb4f30.2be92"
+ ]
+ ]
+ },
+ {
+ "id": "c389f8ca.0d8db8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 903.6770362854004,
+ "y": 734.2462749481201,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "45b189ba.d7c4e8"
+ ]
+ ]
+ },
+ {
+ "id": "63bb4f30.2be92",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 942.6393356323242,
+ "y": 441.8532495498657,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "96e74630.8df888"
+ ]
+ ]
+ },
+ {
+ "id": "a546e205.8a738",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1582.3176345825195,
+ "y": 724.8893241882324,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "17c11aa2.c734e5",
+ "27d3846c.08be6c",
+ "d38bac72.40eca"
+ ]
+ ]
+ },
+ {
+ "id": "17c11aa2.c734e5",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Failure while rebuilding the server: ' + $rebuild-vm-url`\"/>\n",
+ "comments": "",
+ "x": 1843.6394386291504,
+ "y": 676.8535795211792,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "27d3846c.08be6c",
+ "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": 1836.0683631896973,
+ "y": 717.043927192688,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "de90dda7.71a4e",
+ "type": "set",
+ "name": "Set Success Message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Rebuild succeeded for the server : ' + $rebuild-vm-url`\"/>\n\n\n",
+ "comments": "",
+ "x": 1597.3530807495117,
+ "y": 272.99626636505127,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "ee54bf93.e9baa",
+ "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": 1587.2102661132812,
+ "y": 324.5676784515381,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d7feb7b1.3b6cd8",
+ "type": "switchNode",
+ "name": "switch:Last Attempt",
+ "xml": "<switch test='`$rebuildRetryCount == $retryIndex`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1232.3013343811035,
+ "y": 730.460786819458,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "2cc28296.df8a6e",
+ "9c67fa27.c3ff98"
+ ]
+ ]
+ },
+ {
+ "id": "9c67fa27.c3ff98",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1441.1940994262695,
+ "y": 722.7822074890137,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "a546e205.8a738"
+ ]
+ ]
+ },
+ {
+ "id": "2cc28296.df8a6e",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1426.5510845184326,
+ "y": 835.4961585998535,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "b3cb1d2b.62265"
+ ]
+ ]
+ },
+ {
+ "id": "87033bf0.a89218",
+ "type": "for",
+ "name": "Loop",
+ "xml": "<for index=\"retryIndex\" start=\"1\" end=\"`$rebuildRetryCount + 1`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 295.7502975463867,
+ "y": 479.8532304763794,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "8f0dac95.828bd"
+ ]
+ ]
+ },
+ {
+ "id": "b3cb1d2b.62265",
+ "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=\"`'Rebuild attempt ' + $retryIndex + ' of ' + $rebuildRetryCount + ' failed for server : ' + $rebuild-vm-url + '. Retrying.'`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1669.6347026824951,
+ "y": 833.7461585998535,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d38bac72.40eca",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1852.0837440490723,
+ "y": 766.282208442688,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "8187513d.589d1",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>",
+ "comments": "",
+ "x": 1595.4485092163086,
+ "y": 449.1390333175659,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "96e74630.8df888",
+ "type": "switchNode",
+ "name": "switch STATUS",
+ "xml": "<switch test='`$REBUILD_STATUS`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1103.4325485229492,
+ "y": 443.4086961746216,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "ae2b10cb.cec5a",
+ "cd52c85b.5249d8",
+ "59307536.ee844c"
+ ]
+ ]
+ },
+ {
+ "id": "ae2b10cb.cec5a",
+ "type": "other",
+ "name": "ERROR",
+ "xml": "<outcome value='ERROR'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.9563446044922,
+ "y": 529.3134174346924,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "45b189ba.d7c4e8"
+ ]
+ ]
+ },
+ {
+ "id": "cd52c85b.5249d8",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1350.3850173950195,
+ "y": 412.3134517669678,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "f91485e2.798dc8"
+ ]
+ ]
+ },
+ {
+ "id": "45b189ba.d7c4e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1064.6191062927246,
+ "y": 731.3493366241455,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "d7feb7b1.3b6cd8"
+ ]
+ ]
+ },
+ {
+ "id": "59307536.ee844c",
+ "type": "other",
+ "name": "CONTEXT_NOT_FOUND",
+ "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1413.8692588806152,
+ "y": 507.0785312652588,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "9a2a7a92.885b08"
+ ]
+ ]
+ },
+ {
+ "id": "b74d1e6.3a22ce",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 297.7976417541504,
+ "y": 386.36428356170654,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "8c5bde88.c0aee",
+ "87033bf0.a89218",
+ "2d98dcb5.d16b44"
+ ]
+ ]
+ },
+ {
+ "id": "8c5bde88.c0aee",
+ "type": "switchNode",
+ "name": "switch : rebuildRetryCount >= 0",
+ "xml": "<switch test='`$rebuildRetryCount >= 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 567.797679901123,
+ "y": 317.7928533554077,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "2451c726.0ffbe8",
+ "6a4082a3.a5778c"
+ ]
+ ]
+ },
+ {
+ "id": "2451c726.0ffbe8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 784.9404716491699,
+ "y": 276.3643217086792,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "23f87454.807cfc"
+ ]
+ ]
+ },
+ {
+ "id": "6a4082a3.a5778c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.0833587646484,
+ "y": 353.5072250366211,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "39be1fd1.165f6"
+ ]
+ ]
+ },
+ {
+ "id": "39be1fd1.165f6",
+ "type": "set",
+ "name": "increment rebuildRetryCount",
+ "xml": "<set>\n<parameter name=\"rebuildRetryCount\" value=\"`$rebuildRetryCount + 1`\" />\n",
+ "comments": "",
+ "x": 974.9404563903809,
+ "y": 352.0786123275757,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "23f87454.807cfc",
+ "type": "set",
+ "name": "set rebuildRetryCount",
+ "xml": "<set>\n<parameter name='rebuildRetryCount' value='1' />\n",
+ "comments": "",
+ "x": 956.3690452575684,
+ "y": 274.93574237823486,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "f91485e2.798dc8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1372.6388702392578,
+ "y": 319.85316371917725,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "de90dda7.71a4e",
+ "ee54bf93.e9baa",
+ "8187513d.589d1",
+ "8fdfd6a.1692b28"
+ ]
+ ]
+ },
+ {
+ "id": "2d98dcb5.d16b44",
+ "type": "set",
+ "name": "initialize exitLoop",
+ "xml": "<set>\n<parameter name='exitLoop' value='false' />\n",
+ "comments": "",
+ "x": 532.6389007568359,
+ "y": 209.85318422317505,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "8fdfd6a.1692b28",
+ "type": "set",
+ "name": "set exitLoop",
+ "xml": "<set>\n<parameter name='exitLoop' value='true' />\n",
+ "comments": "",
+ "x": 1602.6389770507812,
+ "y": 384.1389150619507,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ },
+ {
+ "id": "8f0dac95.828bd",
+ "type": "switchNode",
+ "name": "switch exitLoop",
+ "xml": "<switch test='`$exitLoop`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 462.63885498046875,
+ "y": 478.4245901107788,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "82ddebcb.4c72e8",
+ "e243de19.25b81"
+ ]
+ ]
+ },
+ {
+ "id": "82ddebcb.4c72e8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 631.2102127075195,
+ "y": 479.853196144104,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "34f167f4.74fba8"
+ ]
+ ]
+ },
+ {
+ "id": "e243de19.25b81",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 628.3532104492188,
+ "y": 545.5675039291382,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9a2a7a92.885b08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1578.263916015625,
+ "y": 657.8888959884644,
+ "z": "d53a62cc.c8145",
+ "wires": [
+ [
+ "63a3f95c.1a3338",
+ "27d3846c.08be6c",
+ "d38bac72.40eca"
+ ]
+ ]
+ },
+ {
+ "id": "63a3f95c.1a3338",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Failure while rebuilding the server: ' + $rebuild-vm-url + ' due to Invalid AICIdentity or tenant or credentials. Skipping all other VMs'`\"/>\n",
+ "comments": "",
+ "x": 1837.0139465332031,
+ "y": 611.6389179229736,
+ "z": "d53a62cc.c8145",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNF.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNF.json
index 515600dbc..5d2505854 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNF.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNF.json
@@ -1 +1,1493 @@
-[{"id":"99f53284.c7a4f","type":"dgstart","name":"DGSTART","outputs":1,"x":235.31257247924805,"y":119.68750190734863,"z":"f77957d3.436788","wires":[["a9b40552.94aed8"]]},{"id":"a9b40552.94aed8","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":410.31257247924805,"y":118.68750190734863,"z":"f77957d3.436788","wires":[["da95e894.c26c18"]]},{"id":"da95e894.c26c18","type":"method","name":"Rebuild_VNF","xml":"<method rpc='Rebuild_VNF' mode='sync'>\n","comments":"","outputs":1,"x":255.0626335144043,"y":223.18749523162842,"z":"f77957d3.436788","wires":[["5ad7a0e2.e23a5"]]},{"id":"3b455418.9d0d5c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":540.3129081726074,"y":236.68750190734863,"z":"f77957d3.436788","wires":[["b2aedd26.cf3c9"]]},{"id":"8fe42265.357f9","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":539.3129081726074,"y":186.68750190734863,"z":"f77957d3.436788","wires":[["b2aedd26.cf3c9"]]},{"id":"9790f27c.2ad33","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":533.3129081726074,"y":291.6875171661377,"z":"f77957d3.436788","wires":[["b2aedd26.cf3c9"]]},{"id":"5ad7a0e2.e23a5","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":313.3126640319824,"y":290.68753242492676,"z":"f77957d3.436788","wires":[["3b455418.9d0d5c","8fe42265.357f9","9790f27c.2ad33","410c982.243e868"]]},{"id":"410c982.243e868","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":539.3126029968262,"y":354.68753242492676,"z":"f77957d3.436788","wires":[["75980c6e.458ef4"]]},{"id":"75980c6e.458ef4","type":"execute","name":"Get Vnf Hierarchy","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":710.9792594909668,"y":354.68753242492676,"z":"f77957d3.436788","wires":[["efa01d4c.daf8a","feae5d34.8a474"]]},{"id":"feae5d34.8a474","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":898.979320526123,"y":313.68753242492676,"z":"f77957d3.436788","wires":[["215e20aa.17f1c"]]},{"id":"efa01d4c.daf8a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":886.9792747497559,"y":391.6874713897705,"z":"f77957d3.436788","wires":[["377be37d.dbad3c"]]},{"id":"377be37d.dbad3c","type":"switchNode","name":"getVnfHierarchy_result ?","xml":"<switch test='`$getVnfHierarchy_result`'>\n","comments":"","outputs":1,"x":1047.9791984558105,"y":459.79861640930176,"z":"f77957d3.436788","wires":[["11ebb613.07c99a","43836cda.890e74"]]},{"id":"11ebb613.07c99a","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1254.97953414917,"y":520.7986755371094,"z":"f77957d3.436788","wires":[["ef94726d.4aae5"]]},{"id":"43836cda.890e74","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1253.9794425964355,"y":399.79861640930176,"z":"f77957d3.436788","wires":[["215e20aa.17f1c"]]},{"id":"ef94726d.4aae5","type":"switchNode","name":"VNF_VMCount ?","xml":"<switch test='`$VNF.VMCount`'>","comments":"","outputs":1,"x":1288.97953414917,"y":588.9095458984375,"z":"f77957d3.436788","wires":[["952ce3f8.01a9e","eb66eab0.036e88"]]},{"id":"952ce3f8.01a9e","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1474.9791679382324,"y":521.9096984863281,"z":"f77957d3.436788","wires":[["3a947231.c5d04e"]]},{"id":"eb66eab0.036e88","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1394.9791679382324,"y":654.90966796875,"z":"f77957d3.436788","wires":[["777e65f.8ffec9c"]]},{"id":"777e65f.8ffec9c","type":"execute","name":"Get Execution Flow","xml":"<execute plugin='org.onap.appc.dg.common.VnfExecutionFlow' method='getVnfExecutionFlowData' >\n<parameter name=\"DependencyType\" value='RESOURCE' />\n<parameter name=\"FlowStrategy\" value='FORWARD' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n","comments":"","outputs":1,"x":1452.9791679382324,"y":730.0208740234375,"z":"f77957d3.436788","wires":[["522a1860.9fb9c8","b54140f0.04101"]]},{"id":"522a1860.9fb9c8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1644.9789848327637,"y":730.0207233428955,"z":"f77957d3.436788","wires":[["1e3f1032.b213d"]]},{"id":"b54140f0.04101","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1643.97904586792,"y":651.020751953125,"z":"f77957d3.436788","wires":[["328235af.1f26fa"]]},{"id":"b2aedd26.cf3c9","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":713.979564666748,"y":237.68750190734863,"z":"f77957d3.436788","wires":[["a17353c8.0a34b","76da6170.dde8f"]]},{"id":"a17353c8.0a34b","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","x":911.3125114440918,"y":238.21122932434082,"z":"f77957d3.436788","wires":[]},{"id":"215e20aa.17f1c","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1408.7570457458496,"y":316.57641792297363,"z":"f77957d3.436788","wires":[["4fe9b7ed.1601f8","ca19586f.86d648"]]},{"id":"4fe9b7ed.1601f8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1597.7572135925293,"y":377.57641792297363,"z":"f77957d3.436788","wires":[]},{"id":"3a947231.c5d04e","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1605.3126640319824,"y":520.9097595214844,"z":"f77957d3.436788","wires":[["97f70dfc.79444","e1d3466f.0e7098"]]},{"id":"97f70dfc.79444","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1794.3126640319824,"y":549.9098205566406,"z":"f77957d3.436788","wires":[]},{"id":"328235af.1f26fa","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1778.3126640319824,"y":652.1318073272705,"z":"f77957d3.436788","wires":[["24b5e0d0.c01c6","d3f21815.793788"]]},{"id":"24b5e0d0.c01c6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1967.3131523132324,"y":687.131929397583,"z":"f77957d3.436788","wires":[]},{"id":"93d0ecc5.6556b","type":"for","name":"For each VNFC","xml":"<for index='i' start='0' end='`$vnfcFlowCount`' >\n","comments":"","outputs":1,"x":2342.5345039367676,"y":866.3541383743286,"z":"f77957d3.436788","wires":[["11fb64b5.aabd0b"]]},{"id":"67a8f3f3.8d9cbc","type":"call","name":"call VNFC DG","xml":"<call module='`$Rebuild.dg_module`' rpc='`$Rebuild.dg_name`' mode='sync' version='`$Rebuild.dg_version`'>\n","comments":"","outputs":1,"x":2754.534282684326,"y":950.4653339385986,"z":"f77957d3.436788","wires":[["d9556b49.ff6288","5d547b5d.13dd54","259d70ea.9205b"]]},{"id":"4a7f68fb.0b9158","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2137.534770965576,"y":864.3543109893799,"z":"f77957d3.436788","wires":[["93d0ecc5.6556b","ccca5726.839cc8","1ab58ce2.ef51e3"]]},{"id":"44559cc.a01e864","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2990.534526824951,"y":717.3544635772705,"z":"f77957d3.436788","wires":[["2596cb0e.a268b4"]]},{"id":"c8863e0a.cada4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2986.534282684326,"y":799.3544635772705,"z":"f77957d3.436788","wires":[["a339e96.0db2d18"]]},{"id":"a339e96.0db2d18","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3132.819637298584,"y":796.3544721603394,"z":"f77957d3.436788","wires":[["b6d198f4.0d1278","b0d45e14.49d5c"]]},{"id":"b6d198f4.0d1278","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3354.534038543701,"y":799.3544635772705,"z":"f77957d3.436788","wires":[]},{"id":"259d70ea.9205b","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2950.311870574951,"y":998.5765399932861,"z":"f77957d3.436788","wires":[["926558dc.646c48"]]},{"id":"5d547b5d.13dd54","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2948.312114715576,"y":906.576509475708,"z":"f77957d3.436788","wires":[["50a44cd4.d414e4"]]},{"id":"d9556b49.ff6288","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2960.312358856201,"y":950.5765399932861,"z":"f77957d3.436788","wires":[["99a282c4.2df92"]]},{"id":"11fb64b5.aabd0b","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2513.2009086608887,"y":865.5765399932861,"z":"f77957d3.436788","wires":[["67a8f3f3.8d9cbc","7b35db37.4c0c44","f46a554a.bb3ab8","404a068e.f88bb8"]]},{"id":"1e3f1032.b213d","type":"switchNode","name":"dependencyModelFound","xml":"<switch test='`$dependencyModelFound`'>\n","comments":"","outputs":1,"x":1790.9791679382324,"y":809.4653015136719,"z":"f77957d3.436788","wires":[["22bf2bd5.9d34d4","dc4848ab.c0f558"]]},{"id":"22bf2bd5.9d34d4","type":"outcome","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1988.6460990905762,"y":754.5763874053955,"z":"f77957d3.436788","wires":[["d3204260.85134"]]},{"id":"d3204260.85134","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2114.0908012390137,"y":754.6874713897705,"z":"f77957d3.436788","wires":[["52cba35.33bcb5c","58b344dc.ff91ec"]]},{"id":"52cba35.33bcb5c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2294.0905570983887,"y":754.6874713897705,"z":"f77957d3.436788","wires":[]},{"id":"dc4848ab.c0f558","type":"outcome","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1995.9791069030762,"y":864.4655170440674,"z":"f77957d3.436788","wires":[["4a7f68fb.0b9158"]]},{"id":"7b35db37.4c0c44","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=\"Rebuild\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"Rebuild\" />\n","comments":"","outputs":1,"x":2747.312114715576,"y":758.437593460083,"z":"f77957d3.436788","wires":[["44559cc.a01e864","c8863e0a.cada4"]]},{"id":"f46a554a.bb3ab8","type":"set","name":"set DG Parameters","xml":"<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$i].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$i].vnfcType`' />\n<parameter name='resilienceType' value='`$vnfcFlow[$i].resilienceType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$i].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='HealthyVMCountAfterRebuild' value='0' />\n<parameter name='AAIUpdateSuccessFlag' value='false' />\n<parameter name='HealthcheckDGResolutionFlag' value='false' />","comments":"","x":2748.3394660949707,"y":809.5209503173828,"z":"f77957d3.436788","wires":[]},{"id":"404a068e.f88bb8","type":"for","name":"For Each VM","xml":"<for index='j' start='0' end='`$vnfcFlow[$i].vmCount`' >\n","comments":"","outputs":1,"x":2742.11727142334,"y":864.4929323196411,"z":"f77957d3.436788","wires":[["278b0a4a.a73a06"]]},{"id":"278b0a4a.a73a06","type":"set","name":"Set VM URL","xml":"<set>\n<parameter name=\"$vm[$j].url\" value='`$vnfcFlow[$i].vm[$j].url`' />","comments":"","x":2940.117290496826,"y":858.4928302764893,"z":"f77957d3.436788","wires":[]},{"id":"50a44cd4.d414e4","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3111.201030731201,"y":905.6875324249268,"z":"f77957d3.436788","wires":[["caad9bb9.958e28","788bd40a.39f6cc"]]},{"id":"caad9bb9.958e28","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3337.201274871826,"y":903.6875629425049,"z":"f77957d3.436788","wires":[]},{"id":"99a282c4.2df92","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3126.201030731201,"y":951.6875629425049,"z":"f77957d3.436788","wires":[["c1c2198e.b73818"]]},{"id":"ae52a5c8.97a288","type":"switchNode","name":"switch_vm_rebuild_success","xml":"<switch test='`$HealthyVMCountAfterRebuild >= 1 and $AAIUpdateSuccessFlag == true`'>\n","comments":"","outputs":1,"x":3738.7842330932617,"y":953.0489025115967,"z":"f77957d3.436788","wires":[["b21bf1ff.bd44","5b5f2276.10bb4c"]]},{"id":"5b5f2276.10bb4c","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":3945.062313079834,"y":896.7989635467529,"z":"f77957d3.436788","wires":[["f4ce492.fb423b8"]]},{"id":"b21bf1ff.bd44","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3929.062313079834,"y":1008.5488433837891,"z":"f77957d3.436788","wires":[["a294dfb8.f861e"]]},{"id":"f4ce492.fb423b8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4081.0620727539062,"y":898.0489025115967,"z":"f77957d3.436788","wires":[["122dbb1e.5a5a05","e05695d0.20cab8","1a818ff1.7d3c","e479b650.bda0f8","96766d41.3d0c2"]]},{"id":"91041bf9.e984f8","type":"set","name":"update failed VNFC count","xml":"<set>\n<parameter name=\"FailedVNFCCount\" value=\"`$FailedVNFCCount + 1`\" />\n","comments":"","x":4266.229263305664,"y":1062.7987823486328,"z":"f77957d3.436788","wires":[]},{"id":"122dbb1e.5a5a05","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":4265.367492675781,"y":953.5490856170654,"z":"f77957d3.436788","wires":[]},{"id":"a294dfb8.f861e","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4065.423107147217,"y":1009.9099273681641,"z":"f77957d3.436788","wires":[["91041bf9.e984f8","6f1de83d.2a2998"]]},{"id":"1ab58ce2.ef51e3","type":"switchNode","name":"switch_vnfc_rebuild_success","xml":"<switch test='`$FailedVNFCCount == 0`'>\n","comments":"","outputs":1,"x":2389.756694793701,"y":1038.687593460083,"z":"f77957d3.436788","wires":[["637851ad.9627a","f0efea53.43f2c8"]]},{"id":"637851ad.9627a","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2603.756694793701,"y":1000.6875324249268,"z":"f77957d3.436788","wires":[["cc826579.efac68"]]},{"id":"f0efea53.43f2c8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2604.256938934326,"y":1077.687593460083,"z":"f77957d3.436788","wires":[["e4468fd0.07a52"]]},{"id":"cc826579.efac68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2762.025737762451,"y":1000.2043781280518,"z":"f77957d3.436788","wires":[]},{"id":"e4468fd0.07a52","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":2765.256694793701,"y":1076.6044025421143,"z":"f77957d3.436788","wires":[]},{"id":"ccca5726.839cc8","type":"set","name":"set Failed VNFC Count","xml":"<set>\n<parameter name='FailedVNFCCount' value='0' />","comments":"","x":2359.756694793701,"y":806.6875629425049,"z":"f77957d3.436788","wires":[]},{"id":"926558dc.646c48","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=\"`'Rebuild successful for VNFC : ' + $vnfcName `\"/>\n","comments":"","outputs":1,"x":3130.0897178649902,"y":999.6878213882446,"z":"f77957d3.436788","wires":[[]]},{"id":"e05695d0.20cab8","type":"record","name":"Log message","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":4282.089900970459,"y":831.4378781318665,"z":"f77957d3.436788","wires":[[]]},{"id":"6f1de83d.2a2998","type":"record","name":"Log message","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=\"`'Failed to Rebuild all VMs for VNFC : ' + $vnfcName + '. But successfully Rebuilt '+ $HealthyVMCountAfterRebuild +' VM/s so continue to next VNFC'`\"/>\n","comments":"","outputs":1,"x":4232.768569946289,"y":1006.5807037353516,"z":"f77957d3.436788","wires":[[]]},{"id":"2596cb0e.a268b4","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=\"`'VNFC DG for ' + $vnfcName + ' resolves to rpc: ' + $Rebuild.dg_name + ', module: ' + $Rebuild.dg_module + ', version: ' + $Rebuild.dg_version `\"/>\n","comments":"","outputs":1,"x":3148.201274871826,"y":717.6877765655518,"z":"f77957d3.436788","wires":[[]]},{"id":"67776999.51d8f8","type":"set","name":"Set error message","xml":"<set>\n<parameter name=\"event-message\" value=\"`'None of the VMs of VNFC ' + $vnfcName + ' are Rebuilt successfully. Not proceeding to the next VNFC.'`\" />","comments":"","x":4692.192939758301,"y":825.5412721633911,"z":"f77957d3.436788","wires":[]},{"id":"1a818ff1.7d3c","type":"switchNode","name":"switch_aai_update_success","xml":"<switch test='`$AAIUpdateSuccessFlag`'>\n","comments":"","outputs":1,"x":4300.367980957031,"y":791.6320915222168,"z":"f77957d3.436788","wires":[["65446424.620e0c","ae30b408.0a1e68"]]},{"id":"ae30b408.0a1e68","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4508.146545410156,"y":825.3822145462036,"z":"f77957d3.436788","wires":[["67776999.51d8f8"]]},{"id":"65446424.620e0c","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":4507.146789550781,"y":760.6319689750671,"z":"f77957d3.436788","wires":[["261792e6.bf79be"]]},{"id":"261792e6.bf79be","type":"set","name":"Set error message","xml":"<set>\n<parameter name=\"event-message\" value=\"`'AAI update for VNFC ' + $vnfcName + ' failed. Not proceeding to the next VNFC.'`\" />","comments":"","x":4697.479560852051,"y":760.3822135925293,"z":"f77957d3.436788","wires":[]},{"id":"76da6170.dde8f","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":944.3126335144043,"y":189.5763874053955,"z":"f77957d3.436788","wires":[["87b305c2.55be58"]]},{"id":"24fda060.75b99","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1792.3126029968262,"y":268.5763874053955,"z":"f77957d3.436788","wires":[["a4743018.e3d08"]]},{"id":"a4743018.e3d08","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":1970.8841361999512,"y":268.29065132141113,"z":"f77957d3.436788","wires":[[]]},{"id":"ca19586f.86d648","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\" />","comments":"","outputs":1,"x":1613.3126335144043,"y":267.5763874053955,"z":"f77957d3.436788","wires":[["24fda060.75b99"]]},{"id":"6d00b87f.e84a98","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":1353.9791984558105,"y":188.5763874053955,"z":"f77957d3.436788","wires":[[]]},{"id":"87b305c2.55be58","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1152.4076652526855,"y":188.86212348937988,"z":"f77957d3.436788","wires":[["6d00b87f.e84a98"]]},{"id":"e1d3466f.0e7098","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=\"Server/VNFC does not exists in A&amp;AI for the VNF\" />","comments":"","outputs":1,"x":1803.97953414917,"y":488.6875,"z":"f77957d3.436788","wires":[["2b410a66.bb6ac6"]]},{"id":"2b410a66.bb6ac6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2348.9794731140137,"y":486.68750190734863,"z":"f77957d3.436788","wires":[["9e2af8d.3cbc608"]]},{"id":"9e2af8d.3cbc608","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":2522.5510063171387,"y":486.40176582336426,"z":"f77957d3.436788","wires":[[]]},{"id":"d3f21815.793788","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":1994.9794692993164,"y":611.7985947132111,"z":"f77957d3.436788","wires":[["2b410a66.bb6ac6"]]},{"id":"58b344dc.ff91ec","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":2281.6454887390137,"y":665.7985553741455,"z":"f77957d3.436788","wires":[["2b410a66.bb6ac6"]]},{"id":"b0d45e14.49d5c","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":3381.7571983337402,"y":752.9097415208817,"z":"f77957d3.436788","wires":[["72dfca4f.62a4d4"]]},{"id":"72dfca4f.62a4d4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3618.8770141601562,"y":750.8344230651855,"z":"f77957d3.436788","wires":[["dc2979a5.4b84e8"]]},{"id":"dc2979a5.4b84e8","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":3845.4485473632812,"y":750.1200675964355,"z":"f77957d3.436788","wires":[[]]},{"id":"788bd40a.39f6cc","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 : ' + $vnfcName`\"/>","comments":"","outputs":1,"x":3346.8682823181152,"y":858.9097442626953,"z":"f77957d3.436788","wires":[["72dfca4f.62a4d4"]]},{"id":"33642eb2.ef4d82","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":4630.340351104736,"y":912.9097423553467,"z":"f77957d3.436788","wires":[["aa0c5a08.e34788"]]},{"id":"aa0c5a08.e34788","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4820.56333732605,"y":912.5487775802612,"z":"f77957d3.436788","wires":[["729c89d.f391b78"]]},{"id":"729c89d.f391b78","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":5005.31268119812,"y":912.187593460083,"z":"f77957d3.436788","wires":[[]]},{"id":"e479b650.bda0f8","type":"set","name":"Set last count","xml":"<set>\n<parameter name='lastVNFCIndex' value='`$vnfcFlowCount - 1`' />","comments":"","x":4276.250019073486,"y":874.6875133514404,"z":"f77957d3.436788","wires":[]},{"id":"96766d41.3d0c2","type":"switchNode","name":"Last vnfc?","xml":"<switch test='`$i >= $lastVNFCIndex`'>\n","comments":"","outputs":1,"x":4285.6250648498535,"y":912.1875133514404,"z":"f77957d3.436788","wires":[["16047b15.b41365"]]},{"id":"16047b15.b41365","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":4444.687517166138,"y":912.8125133514404,"z":"f77957d3.436788","wires":[["33642eb2.ef4d82"]]},{"id":"c1c2198e.b73818","type":"switchNode","name":"switch_healthcheck_res_flag","xml":"<switch test='`$HealthcheckDGResolutionFlag`'>\n","comments":"","outputs":1,"x":3334.6875534057617,"y":952.1875152587891,"z":"f77957d3.436788","wires":[["4727ccbc.cc3de4","27793737.47e1b8"]]},{"id":"4727ccbc.cc3de4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3539.6875534057617,"y":952.1875143051147,"z":"f77957d3.436788","wires":[["ae52a5c8.97a288"]]},{"id":"27793737.47e1b8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":3544.6875,"y":1029.6875,"z":"f77957d3.436788","wires":[["47b9a4c3.5580bc"]]},{"id":"47b9a4c3.5580bc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3722.1875534057617,"y":1029.687515258789,"z":"f77957d3.436788","wires":[]}]
+[
+ {
+ "id": "14bedb0b.fc03e5",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 100.03125,
+ "y": 89.03125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "e0af88da.462018"
+ ]
+ ]
+ },
+ {
+ "id": "e0af88da.462018",
+ "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": 275.03125,
+ "y": 88.03125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "4dcd94f8.b1dd5c"
+ ]
+ ]
+ },
+ {
+ "id": "4dcd94f8.b1dd5c",
+ "type": "method",
+ "name": "Rebuild_VNF",
+ "xml": "<method rpc='Rebuild_VNF' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 119.78131103515625,
+ "y": 192.53124332427979,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "637e5577.889a3c"
+ ]
+ ]
+ },
+ {
+ "id": "c29bcf1c.26407",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 405.0315856933594,
+ "y": 206.03125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "74a1f9fa.18a2b8"
+ ]
+ ]
+ },
+ {
+ "id": "6f459816.143ec8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 404.0315856933594,
+ "y": 156.03125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "74a1f9fa.18a2b8"
+ ]
+ ]
+ },
+ {
+ "id": "9169964c.ecc0a8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 398.0315856933594,
+ "y": 261.03126525878906,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "74a1f9fa.18a2b8"
+ ]
+ ]
+ },
+ {
+ "id": "637e5577.889a3c",
+ "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": 178.03134155273438,
+ "y": 260.0312805175781,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "c29bcf1c.26407",
+ "6f459816.143ec8",
+ "9169964c.ecc0a8",
+ "2e9a68b3.b5ec68"
+ ]
+ ]
+ },
+ {
+ "id": "2e9a68b3.b5ec68",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 404.0312805175781,
+ "y": 324.0312805175781,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "c05169cf.975b78"
+ ]
+ ]
+ },
+ {
+ "id": "c05169cf.975b78",
+ "type": "execute",
+ "name": "Get Vnf Hierarchy",
+ "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": 575.6979370117188,
+ "y": 324.0312805175781,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "9925a96e.8475c8",
+ "a44377c4.b67b08"
+ ]
+ ]
+ },
+ {
+ "id": "a44377c4.b67b08",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 763.697998046875,
+ "y": 283.0312805175781,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "36a6168.c8c83ea"
+ ]
+ ]
+ },
+ {
+ "id": "9925a96e.8475c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 751.6979522705078,
+ "y": 361.0312194824219,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "1965b438.48ea4c"
+ ]
+ ]
+ },
+ {
+ "id": "1965b438.48ea4c",
+ "type": "switchNode",
+ "name": "getVnfHierarchy_result ?",
+ "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 912.6978759765625,
+ "y": 429.1423645019531,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "ea78bcaa.90afc",
+ "2838f90.3c00208"
+ ]
+ ]
+ },
+ {
+ "id": "ea78bcaa.90afc",
+ "type": "outcome",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1119.6982116699219,
+ "y": 490.14242362976074,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "45a91bde.4cc084"
+ ]
+ ]
+ },
+ {
+ "id": "2838f90.3c00208",
+ "type": "outcome",
+ "name": "FAILURE",
+ "xml": "<outcome value='FAILURE'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1118.6981201171875,
+ "y": 369.1423645019531,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "36a6168.c8c83ea"
+ ]
+ ]
+ },
+ {
+ "id": "45a91bde.4cc084",
+ "type": "switchNode",
+ "name": "VNF_VMCount ?",
+ "xml": "<switch test='`$VNF.VMCount`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1153.6982116699219,
+ "y": 558.2532939910889,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "24544446.8c3f3c",
+ "e1dc03f3.1e72f"
+ ]
+ ]
+ },
+ {
+ "id": "24544446.8c3f3c",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1339.6978454589844,
+ "y": 491.2534465789795,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "97131751.a14738"
+ ]
+ ]
+ },
+ {
+ "id": "e1dc03f3.1e72f",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1259.6978454589844,
+ "y": 624.2534160614014,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "5d59e03c.f3021"
+ ]
+ ]
+ },
+ {
+ "id": "5d59e03c.f3021",
+ "type": "execute",
+ "name": "Get Execution Flow",
+ "xml": "<execute plugin='org.onap.appc.dg.common.VnfExecutionFlow' method='getVnfExecutionFlowData' >\n<parameter name=\"DependencyType\" value='RESOURCE' />\n<parameter name=\"FlowStrategy\" value='FORWARD' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1317.6978454589844,
+ "y": 699.3646221160889,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "42c0d877.866eb8",
+ "bac1204b.a61c9"
+ ]
+ ]
+ },
+ {
+ "id": "42c0d877.866eb8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1509.6976623535156,
+ "y": 699.3644714355469,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "a782ade1.b83cd"
+ ]
+ ]
+ },
+ {
+ "id": "bac1204b.a61c9",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1508.6977233886719,
+ "y": 620.3645000457764,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "55100cc6.7fed64"
+ ]
+ ]
+ },
+ {
+ "id": "74a1f9fa.18a2b8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 578.6982421875,
+ "y": 207.03125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "ca2515dc.f51848",
+ "10e02b32.a43435"
+ ]
+ ]
+ },
+ {
+ "id": "ca2515dc.f51848",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
+ "comments": "",
+ "x": 776.0311889648438,
+ "y": 207.5549774169922,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "36a6168.c8c83ea",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1273.4757232666016,
+ "y": 285.920166015625,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "c8c5352e.d85e88",
+ "354d6e8c.f31102"
+ ]
+ ]
+ },
+ {
+ "id": "c8c5352e.d85e88",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1462.4758911132812,
+ "y": 346.920166015625,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "97131751.a14738",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1470.0313415527344,
+ "y": 490.25350761413574,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "d039e9fd.0c12a8",
+ "c08a61cf.9a3ac"
+ ]
+ ]
+ },
+ {
+ "id": "d039e9fd.0c12a8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1659.0313415527344,
+ "y": 519.253568649292,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "55100cc6.7fed64",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1643.0313415527344,
+ "y": 621.4755554199219,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "f7b58dae.67bd3",
+ "166abc17.dc1b54"
+ ]
+ ]
+ },
+ {
+ "id": "f7b58dae.67bd3",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1832.0318298339844,
+ "y": 656.4756774902344,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "aead89d1.33dd08",
+ "type": "for",
+ "name": "For each VNFC",
+ "xml": "<for index='i' start='0' end='`$vnfcFlowCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2207.2531814575195,
+ "y": 835.69788646698,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "6600516d.37ad1"
+ ]
+ ]
+ },
+ {
+ "id": "498ece32.37e4e",
+ "type": "call",
+ "name": "call VNFC DG",
+ "xml": "<call module='`$Rebuild.dg_module`' rpc='`$Rebuild.dg_name`' mode='sync' version='`$Rebuild.dg_version`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2619.252960205078,
+ "y": 919.80908203125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "b33a4ecc.b3b67",
+ "f80e7c53.e3e7c",
+ "a74eca86.b52618"
+ ]
+ ]
+ },
+ {
+ "id": "1bcf2108.0429df",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2002.2534484863281,
+ "y": 833.6980590820312,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "aead89d1.33dd08",
+ "2ce3fa1f.5a9af6",
+ "90a22a5d.50a1c8"
+ ]
+ ]
+ },
+ {
+ "id": "d8b95007.e7542",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2855.253204345703,
+ "y": 686.6982116699219,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "92f4b354.e9a2e"
+ ]
+ ]
+ },
+ {
+ "id": "3cf35b05.914b94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2851.252960205078,
+ "y": 768.6982116699219,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "f9ff21b0.b3549"
+ ]
+ ]
+ },
+ {
+ "id": "f9ff21b0.b3549",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2997.538314819336,
+ "y": 765.6982202529907,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "daaf57ae.34c218",
+ "fdaa30b4.b15b2"
+ ]
+ ]
+ },
+ {
+ "id": "daaf57ae.34c218",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 3219.252716064453,
+ "y": 768.6982116699219,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "a74eca86.b52618",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2815.030548095703,
+ "y": 967.9202880859375,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "e45bf354.95355"
+ ]
+ ]
+ },
+ {
+ "id": "f80e7c53.e3e7c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2813.030792236328,
+ "y": 875.9202575683594,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "4c1fb7c.b8c6c48"
+ ]
+ ]
+ },
+ {
+ "id": "b33a4ecc.b3b67",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2825.031036376953,
+ "y": 919.9202880859375,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "bf4f7247.aa8de"
+ ]
+ ]
+ },
+ {
+ "id": "6600516d.37ad1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2377.9195861816406,
+ "y": 834.9202880859375,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "498ece32.37e4e",
+ "8aae577.f52c8a8",
+ "7fa5305d.0aa62",
+ "8e4bbbd4.223358"
+ ]
+ ]
+ },
+ {
+ "id": "a782ade1.b83cd",
+ "type": "switchNode",
+ "name": "dependencyModelFound",
+ "xml": "<switch test='`$dependencyModelFound`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1655.6978454589844,
+ "y": 778.8090496063232,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "1b9da7a3.1ded28",
+ "c3ceb526.1fca18"
+ ]
+ ]
+ },
+ {
+ "id": "1b9da7a3.1ded28",
+ "type": "outcome",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1853.3647766113281,
+ "y": 723.9201354980469,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "3d78214f.9f0e0e"
+ ]
+ ]
+ },
+ {
+ "id": "3d78214f.9f0e0e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1978.8094787597656,
+ "y": 724.0312194824219,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "7257286a.6729a8",
+ "d80226bb.30a6e8"
+ ]
+ ]
+ },
+ {
+ "id": "7257286a.6729a8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2158.8092346191406,
+ "y": 724.0312194824219,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "c3ceb526.1fca18",
+ "type": "outcome",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1860.6977844238281,
+ "y": 833.8092651367188,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "1bcf2108.0429df"
+ ]
+ ]
+ },
+ {
+ "id": "8aae577.f52c8a8",
+ "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=\"Rebuild\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"Rebuild\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2612.030792236328,
+ "y": 727.7813415527344,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "d8b95007.e7542",
+ "3cf35b05.914b94"
+ ]
+ ]
+ },
+ {
+ "id": "7fa5305d.0aa62",
+ "type": "set",
+ "name": "set DG Parameters",
+ "xml": "<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$i].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$i].vnfcType`' />\n<parameter name='resilienceType' value='`$vnfcFlow[$i].resilienceType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$i].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='HealthyVMCountAfterRebuild' value='0' />\n<parameter name='AAIUpdateSuccessFlag' value='false' />\n<parameter name='HealthcheckDGResolutionFlag' value='false' />",
+ "comments": "",
+ "x": 2613.0581436157227,
+ "y": 778.8646984100342,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "8e4bbbd4.223358",
+ "type": "for",
+ "name": "For Each VM",
+ "xml": "<for index='j' start='0' end='`$vnfcFlow[$i].vmCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2606.835948944092,
+ "y": 833.8366804122925,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "ce59807f.9ef8b"
+ ]
+ ]
+ },
+ {
+ "id": "ce59807f.9ef8b",
+ "type": "set",
+ "name": "Set VM URL",
+ "xml": "<set>\n<parameter name=\"$vm[$j].url\" value='`$vnfcFlow[$i].vm[$j].url`' />",
+ "comments": "",
+ "x": 2804.835968017578,
+ "y": 827.8365783691406,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "4c1fb7c.b8c6c48",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2975.919708251953,
+ "y": 875.0312805175781,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "97a9b533.bab058",
+ "77a1f307.e77f2c"
+ ]
+ ]
+ },
+ {
+ "id": "97a9b533.bab058",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 3201.919952392578,
+ "y": 873.0313110351562,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "bf4f7247.aa8de",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2990.919708251953,
+ "y": 921.0313110351562,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "7a8e1dc8.f88904"
+ ]
+ ]
+ },
+ {
+ "id": "d4ec5d9f.87aa2",
+ "type": "switchNode",
+ "name": "switch_vm_rebuild_success",
+ "xml": "<switch test='`$HealthyVMCountAfterRebuild >= 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3603.5029106140137,
+ "y": 922.392650604248,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "1faf5ce0.ba9333",
+ "207ffc23.e8c554"
+ ]
+ ]
+ },
+ {
+ "id": "207ffc23.e8c554",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3809.780990600586,
+ "y": 866.1427116394043,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "4db2cbe6.4a5464"
+ ]
+ ]
+ },
+ {
+ "id": "1faf5ce0.ba9333",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3793.780990600586,
+ "y": 977.8925914764404,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "3f778c62.bd0f64"
+ ]
+ ]
+ },
+ {
+ "id": "4db2cbe6.4a5464",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3945.780750274658,
+ "y": 867.392650604248,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "fbc5ba73.a59208",
+ "b6cb2006.f99a3",
+ "70507789.f3d478",
+ "b71db166.932c5",
+ "c31339d0.a87528"
+ ]
+ ]
+ },
+ {
+ "id": "8aeeb0cc.3f804",
+ "type": "set",
+ "name": "update failed VNFC count",
+ "xml": "<set>\n<parameter name=\"FailedVNFCCount\" value=\"`$FailedVNFCCount + 1`\" />\n",
+ "comments": "",
+ "x": 4130.947940826416,
+ "y": 1032.1425304412842,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "fbc5ba73.a59208",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 4130.086170196533,
+ "y": 922.8928337097168,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "3f778c62.bd0f64",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3930.1417846679688,
+ "y": 979.2536754608154,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "8aeeb0cc.3f804",
+ "ee6892c2.494b5"
+ ]
+ ]
+ },
+ {
+ "id": "90a22a5d.50a1c8",
+ "type": "switchNode",
+ "name": "switch_vnfc_rebuild_success",
+ "xml": "<switch test='`$FailedVNFCCount == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2254.475372314453,
+ "y": 1008.0313415527344,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "56fc11f6.d16bd",
+ "4873eb0f.a31cd4"
+ ]
+ ]
+ },
+ {
+ "id": "56fc11f6.d16bd",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2468.475372314453,
+ "y": 970.0312805175781,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "5edbbf29.b5d5"
+ ]
+ ]
+ },
+ {
+ "id": "4873eb0f.a31cd4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2468.975616455078,
+ "y": 1047.0313415527344,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "e1385c77.1ddb8"
+ ]
+ ]
+ },
+ {
+ "id": "5edbbf29.b5d5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2626.744415283203,
+ "y": 969.5481262207031,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "e1385c77.1ddb8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 2629.975372314453,
+ "y": 1045.9481506347656,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "2ce3fa1f.5a9af6",
+ "type": "set",
+ "name": "set Failed VNFC Count",
+ "xml": "<set>\n<parameter name='FailedVNFCCount' value='0' />",
+ "comments": "",
+ "x": 2224.475372314453,
+ "y": 776.0313110351562,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "e45bf354.95355",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Rebuild successful for VNFC : ' + $vnfcName `\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2994.808395385742,
+ "y": 969.031569480896,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b6cb2006.f99a3",
+ "type": "record",
+ "name": "Log message",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4146.808578491211,
+ "y": 800.7816262245178,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ee6892c2.494b5",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Failed to Rebuild all VMs for VNFC : ' + $vnfcName + '. But successfully Rebuilt '+ $HealthyVMCountAfterRebuild +' VM/s so continue to next VNFC'`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4097.487247467041,
+ "y": 975.9244518280029,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "92f4b354.e9a2e",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'VNFC DG for ' + $vnfcName + ' resolves to rpc: ' + $Rebuild.dg_name + ', module: ' + $Rebuild.dg_module + ', version: ' + $Rebuild.dg_version `\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3012.919952392578,
+ "y": 687.0315246582031,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3a9b214c.98617e",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'None of the VMs of VNFC ' + $vnfcName + ' are Rebuilt successfully. Not proceeding to the next VNFC.'`\" />",
+ "comments": "",
+ "x": 4556.911617279053,
+ "y": 794.8850202560425,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "70507789.f3d478",
+ "type": "switchNode",
+ "name": "switch_aai_update_success",
+ "xml": "<switch test='`$AAIUpdateSuccessFlag`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4165.086658477783,
+ "y": 760.9758396148682,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "d1c9d543.58c9e8",
+ "a1a240ee.bfd14"
+ ]
+ ]
+ },
+ {
+ "id": "a1a240ee.bfd14",
+ "type": "outcomeFalse",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4372.865222930908,
+ "y": 794.725962638855,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "3a9b214c.98617e"
+ ]
+ ]
+ },
+ {
+ "id": "d1c9d543.58c9e8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4371.865467071533,
+ "y": 729.9757170677185,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "10e02b32.a43435",
+ "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": 809.0313110351562,
+ "y": 158.92013549804688,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "128f3df8.f25ab2"
+ ]
+ ]
+ },
+ {
+ "id": "97aac7a0.bc6c68",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1657.0312805175781,
+ "y": 237.92013549804688,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "c8bbd13.741d63"
+ ]
+ ]
+ },
+ {
+ "id": "c8bbd13.741d63",
+ "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": 1835.6028137207031,
+ "y": 237.6343994140625,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "354d6e8c.f31102",
+ "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\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1478.0313110351562,
+ "y": 236.92013549804688,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "97aac7a0.bc6c68"
+ ]
+ ]
+ },
+ {
+ "id": "486603c6.65ca4c",
+ "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": 1218.6978759765625,
+ "y": 157.92013549804688,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "128f3df8.f25ab2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1017.1263427734375,
+ "y": 158.20587158203125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "486603c6.65ca4c"
+ ]
+ ]
+ },
+ {
+ "id": "c08a61cf.9a3ac",
+ "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=\"Server/VNFC does not exists in A&amp;AI for the VNF\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1668.6982116699219,
+ "y": 458.03124809265137,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "17bf3633.785cfa"
+ ]
+ ]
+ },
+ {
+ "id": "17bf3633.785cfa",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2213.6981506347656,
+ "y": 456.03125,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "1d7fce7b.489b02"
+ ]
+ ]
+ },
+ {
+ "id": "1d7fce7b.489b02",
+ "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": 2387.2696838378906,
+ "y": 455.7455139160156,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "166abc17.dc1b54",
+ "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": 1859.6981468200684,
+ "y": 581.1423428058624,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "17bf3633.785cfa"
+ ]
+ ]
+ },
+ {
+ "id": "d80226bb.30a6e8",
+ "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": 2146.3641662597656,
+ "y": 635.1423034667969,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "17bf3633.785cfa"
+ ]
+ ]
+ },
+ {
+ "id": "fdaa30b4.b15b2",
+ "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": 3246.475875854492,
+ "y": 722.253489613533,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "4a2db3fb.3e2d4c"
+ ]
+ ]
+ },
+ {
+ "id": "4a2db3fb.3e2d4c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3483.595691680908,
+ "y": 720.1781711578369,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "58fed926.729228"
+ ]
+ ]
+ },
+ {
+ "id": "58fed926.729228",
+ "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": 3710.167224884033,
+ "y": 719.4638156890869,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77a1f307.e77f2c",
+ "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 : ' + $vnfcName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3211.586959838867,
+ "y": 828.2534923553467,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "4a2db3fb.3e2d4c"
+ ]
+ ]
+ },
+ {
+ "id": "3b7cf1ad.8e4dbe",
+ "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": 4495.059028625488,
+ "y": 882.253490447998,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "b4444524.70d308"
+ ]
+ ]
+ },
+ {
+ "id": "b4444524.70d308",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4685.282014846802,
+ "y": 881.8925256729126,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "1fee8470.4268dc"
+ ]
+ ]
+ },
+ {
+ "id": "1fee8470.4268dc",
+ "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": 4870.031358718872,
+ "y": 881.5313415527344,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b71db166.932c5",
+ "type": "set",
+ "name": "Set last count",
+ "xml": "<set>\n<parameter name='lastVNFCIndex' value='`$vnfcFlowCount - 1`' />",
+ "comments": "",
+ "x": 4140.968696594238,
+ "y": 844.0312614440918,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ },
+ {
+ "id": "c31339d0.a87528",
+ "type": "switchNode",
+ "name": "Last vnfc?",
+ "xml": "<switch test='`$i >= $lastVNFCIndex`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4150.3437423706055,
+ "y": 881.5312614440918,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "65e5f04e.c729e"
+ ]
+ ]
+ },
+ {
+ "id": "65e5f04e.c729e",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4309.40619468689,
+ "y": 882.1562614440918,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "3b7cf1ad.8e4dbe"
+ ]
+ ]
+ },
+ {
+ "id": "7a8e1dc8.f88904",
+ "type": "switchNode",
+ "name": "switch_healthcheck_res_flag",
+ "xml": "<switch test='`$HealthcheckDGResolutionFlag`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3199.4062309265137,
+ "y": 921.5312633514404,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "afb610ec.03a43",
+ "b29c590a.09c078"
+ ]
+ ]
+ },
+ {
+ "id": "afb610ec.03a43",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3404.4062309265137,
+ "y": 921.5312623977661,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "d4ec5d9f.87aa2"
+ ]
+ ]
+ },
+ {
+ "id": "b29c590a.09c078",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3409.406177520752,
+ "y": 999.0312480926514,
+ "z": "b08b9d6b.a2e2",
+ "wires": [
+ [
+ "1a390ed5.8427d1"
+ ]
+ ]
+ },
+ {
+ "id": "1a390ed5.8427d1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 3586.9062309265137,
+ "y": 999.0312633514404,
+ "z": "b08b9d6b.a2e2",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNFC.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNFC.json
index f9aeb293f..245489f18 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNFC.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Rebuild_VNFC.json
@@ -1 +1,1357 @@
-[{"id":"d0c7cb01.587088","type":"dgstart","name":"DGSTART","outputs":1,"x":95.80625915527344,"y":66.82500457763672,"z":"1d241215.b25dde","wires":[["dd12bd67.a0f56"]]},{"id":"dd12bd67.a0f56","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":254.8063735961914,"y":66.8249921798706,"z":"1d241215.b25dde","wires":[["5f7f02ec.a69dbc"]]},{"id":"5f7f02ec.a69dbc","type":"method","name":"Rebuild_VNFC","xml":"<method rpc='Rebuild_VNFC' mode='sync'>\n","comments":"","outputs":1,"x":168.80636978149414,"y":213.8249807357788,"z":"1d241215.b25dde","wires":[["4d5149f1.260ce8"]]},{"id":"4d5149f1.260ce8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"false","comments":"","outputs":1,"x":170.16352081298828,"y":986.6821060180664,"z":"1d241215.b25dde","wires":[["ebd0580f.b36a18","758341ee.5afe2","8f3931fa.2e44a","67cc2227.82d17c","86eb9e9c.6b536"]]},{"id":"ebd0580f.b36a18","type":"execute","name":"Resolve Healthcheck DG","xml":"<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"HealthCheck\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"HealthCheckDG\" />\n","comments":"","outputs":1,"x":617.806396484375,"y":436.07499980926514,"z":"1d241215.b25dde","wires":[["3adb353.99b99ca","c46da7cb.0edfd8","62240bdd.b27214"]]},{"id":"3adb353.99b99ca","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":912.806396484375,"y":381.32499980926514,"z":"1d241215.b25dde","wires":[["ae0cdeda.66656"]]},{"id":"ae0cdeda.66656","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1099.5286884307861,"y":380.49382305145264,"z":"1d241215.b25dde","wires":[["5c9c676a.abbfb8","65d3ed59.5345c4","57e27acc.e98974","1aebb7be.5306f8"]]},{"id":"5c9c676a.abbfb8","type":"set","name":"Set Message","xml":"<set>\n<parameter name='event-message' value=\"`'Healthcheck DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":1285.0564041137695,"y":368.0749988555908,"z":"1d241215.b25dde","wires":[]},{"id":"c46da7cb.0edfd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":929.5564575195312,"y":435.07499980926514,"z":"1d241215.b25dde","wires":[["befd0327.5a538"]]},{"id":"befd0327.5a538","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1076.0286903381348,"y":434.9638547897339,"z":"1d241215.b25dde","wires":[["f008480f.166a88","65d3ed59.5345c4","57e27acc.e98974","1aebb7be.5306f8"]]},{"id":"f008480f.166a88","type":"set","name":"Set Message","xml":"<set>\n<parameter name='event-message' value=\"`'Error while resolving Healthcheck DG for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":1286.278450012207,"y":408.96391582489014,"z":"1d241215.b25dde","wires":[]},{"id":"62240bdd.b27214","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":818.9451293945312,"y":499.7138566970825,"z":"1d241215.b25dde","wires":[["6080e29d.eac52c"]]},{"id":"2940d020.da57b","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=\"`'Healthchek DG resolved to : ' + $HealthCheckDG.dg_name`\"/>\n","comments":"","outputs":1,"x":1111.3619422912598,"y":492.2138566970825,"z":"1d241215.b25dde","wires":[[]]},{"id":"65d3ed59.5345c4","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":1307.8472995758057,"y":450.263783454895,"z":"1d241215.b25dde","wires":[[]]},{"id":"1aebb7be.5306f8","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":1349.7229080200195,"y":489.07500171661377,"z":"1d241215.b25dde","wires":[["d60d692e.990628"]]},{"id":"57e27acc.e98974","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>","comments":"","x":1318.834186553955,"y":528.4339361190796,"z":"1d241215.b25dde","wires":[]},{"id":"d60d692e.990628","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1844.722339630127,"y":496.07498836517334,"z":"1d241215.b25dde","wires":[["145d9131.e1d4cf"]]},{"id":"145d9131.e1d4cf","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":2030.2939949035645,"y":495.78925228118896,"z":"1d241215.b25dde","wires":[[]]},{"id":"758341ee.5afe2","type":"execute","name":"Update AAI Status","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Rebuilding\" />","comments":"","outputs":1,"x":652.3063011169434,"y":724.0750169754028,"z":"1d241215.b25dde","wires":[["dfd330fa.83396","bc51b6b6.be5498"]]},{"id":"dfd330fa.83396","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":857.3057975769043,"y":724.0750017166138,"z":"1d241215.b25dde","wires":[["13d3c724.57ca69"]]},{"id":"13d3c724.57ca69","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1020.2739448547363,"y":722.1067428588867,"z":"1d241215.b25dde","wires":[["28827390.015fdc","52dcec48.33a434","d0b6d307.edd5e"]]},{"id":"a2de3da7.a56b5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1411.9095191955566,"y":725.9639024734497,"z":"1d241215.b25dde","wires":[["993e98c.e0c8868","7b879bdd.4e64d4"]]},{"id":"7b879bdd.4e64d4","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 VNFC details in A&amp;AI for VNFC ' + $vnfcName`\" />","comments":"","outputs":1,"x":1599.9565200805664,"y":687.0750160217285,"z":"1d241215.b25dde","wires":[["d60d692e.990628"]]},{"id":"993e98c.e0c8868","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1573.8138542175293,"y":752.356743812561,"z":"1d241215.b25dde","wires":[]},{"id":"8f3931fa.2e44a","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":484.8062400817871,"y":919.1107482910156,"z":"1d241215.b25dde","wires":[["888c87ed.367a08","51109337.2748fc"]]},{"id":"888c87ed.367a08","type":"set","name":"init","xml":"<set>\n<parameter name='rebuildFailedCount' value='0' />\n<parameter name='rebuildSuccessCount' value='0' />\n","comments":"","x":680.7853965759277,"y":875.3965349197388,"z":"1d241215.b25dde","wires":[]},{"id":"51109337.2748fc","type":"for","name":"For Each VM","xml":"<for index=\"index1\" start=\"0\" end=\"`$vmCount`\" >","comments":"","outputs":1,"x":686.820613861084,"y":969.1465358734131,"z":"1d241215.b25dde","wires":[["8db2e331.18b49"]]},{"id":"adb5e84a.4c3068","type":"comment","name":"Rebuild server","info":"","comments":"","x":489.7518119812012,"y":872.405366897583,"z":"1d241215.b25dde","wires":[]},{"id":"e9be6721.06d0e8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1340.6279067993164,"y":978.9679269790649,"z":"1d241215.b25dde","wires":[["cebfb71a.399308","45d955de.ffd76c","257e0cb.97519f4"]]},{"id":"cebfb71a.399308","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 rebuild the server : ' + $vm[$index1].url`\"/>\n","comments":"","outputs":1,"x":1540.4853630065918,"y":939.2535924911499,"z":"1d241215.b25dde","wires":[[]]},{"id":"257e0cb.97519f4","type":"set","name":"Set Parameters","xml":"<set>\n<parameter name=\"rebuild-vm-url\" value=\"`$vm[$index1].url`\" />\n<parameter name='rebuildRetryCount' value='3'/>\n","comments":"","x":1530.1462478637695,"y":986.6823034286499,"z":"1d241215.b25dde","wires":[]},{"id":"45d955de.ffd76c","type":"call","name":"Rebuild","xml":"<call module='APPC' rpc='Rebuild_VM' mode='sync' >\n","comments":"","outputs":1,"x":1537.1463737487793,"y":1037.6820602416992,"z":"1d241215.b25dde","wires":[["4821dca9.597c04","acffa2c8.84ab5","3b311d1c.0273c2"]]},{"id":"3b311d1c.0273c2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1733.4795379638672,"y":958.6821508407593,"z":"1d241215.b25dde","wires":[["a831888e.1f1638"]]},{"id":"4821dca9.597c04","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1741.3467254638672,"y":1039.6107397079468,"z":"1d241215.b25dde","wires":[["4229269a.bab898"]]},{"id":"acffa2c8.84ab5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1734.7016906738281,"y":1123.6821508407593,"z":"1d241215.b25dde","wires":[["3727c6bd.c3842a"]]},{"id":"a831888e.1f1638","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1869.4795379638672,"y":958.682089805603,"z":"1d241215.b25dde","wires":[["6c160aea.84b384","be1298ee.227198","8541099f.4e46e8"]]},{"id":"4229269a.bab898","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1887.1304168701172,"y":1039.539267539978,"z":"1d241215.b25dde","wires":[["be1298ee.227198","8541099f.4e46e8","faf4f9eb.717e58"]]},{"id":"3727c6bd.c3842a","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1887.8442687988281,"y":1123.8250341415405,"z":"1d241215.b25dde","wires":[["5192b20a.4107fc","d7a887d6.a9e708","6158eeca.5f084"]]},{"id":"6c160aea.84b384","type":"set","name":"Set message","xml":"<set>\n<parameter name='event-message' value=\"`'DG to execute Rebuild action not found for VM: ' + $vm[$index1].url`\"/>\n<parameter name=\"rebuildFailedCount\" value=\"`$rebuildFailedCount + 1`\" />","comments":"","x":2116.550678253174,"y":900.6465406417847,"z":"1d241215.b25dde","wires":[]},{"id":"be1298ee.227198","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":2109.381244659424,"y":994.1226167678833,"z":"1d241215.b25dde","wires":[[]]},{"id":"8541099f.4e46e8","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":2125.7230377197266,"y":1040.6504487991333,"z":"1d241215.b25dde","wires":[["951f2311.e3f1b"]]},{"id":"d7a887d6.a9e708","type":"set","name":"Increment Rebuilt vm count","xml":"<set>\n<parameter name='rebuildSuccessCount' value='`$rebuildSuccessCount+1`' />\n","comments":"","x":2121.9837799072266,"y":1138.459776878357,"z":"1d241215.b25dde","wires":[]},{"id":"5192b20a.4107fc","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=\"`'Rebuild succeeded for the server : ' + $vm[$index1].url`\"/>\n","comments":"","outputs":1,"x":2081.2371978759766,"y":1188.2535953521729,"z":"1d241215.b25dde","wires":[[]]},{"id":"134d6532.cc4ccb","type":"call","name":"Call Healthcheck DG","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":1127.7873611450195,"y":1460.7326030731201,"z":"1d241215.b25dde","wires":[["9955c6b2.3a20f8","c3075985.85d5c8","eb07eb85.4d0ce8"]]},{"id":"9955c6b2.3a20f8","type":"outcome","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1334.4823684692383,"y":1460.4997491836548,"z":"1d241215.b25dde","wires":[["e108e61a.0b54c8"]]},{"id":"c3075985.85d5c8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1342.9990921020508,"y":1418.8376398086548,"z":"1d241215.b25dde","wires":[["db553441.3b6ad8"]]},{"id":"eb07eb85.4d0ce8","type":"outcome","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1341.7326126098633,"y":1508.9996271133423,"z":"1d241215.b25dde","wires":[["aaccc107.0bdfa"]]},{"id":"aaccc107.0bdfa","type":"for","name":"For Each VM","xml":"<for index=\"index1\" start=\"0\" end=\"`$healthcheck.vmCount`\" >","comments":"","outputs":1,"x":1526.2326736450195,"y":1530.8212323188782,"z":"1d241215.b25dde","wires":[["43ac397d.ec34c8"]]},{"id":"db553441.3b6ad8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1532.4824829101562,"y":1417.2497177124023,"z":"1d241215.b25dde","wires":[["b734f6e2.e9c078","c9cb0dac.8ad56","aeea61b7.91b7d","c4c875e.5363488"]]},{"id":"e108e61a.0b54c8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1537.232494354248,"y":1464.249656677246,"z":"1d241215.b25dde","wires":[["7f1fd1b5.693fb","b734f6e2.e9c078","aeea61b7.91b7d","c4c875e.5363488"]]},{"id":"43ac397d.ec34c8","type":"switchNode","name":"Healthcheck status ?","xml":"<switch test=\"`$healthcheck.vm[$index1].status`\">\n","comments":"","outputs":1,"x":1789.947036743164,"y":1530.8209829330444,"z":"1d241215.b25dde","wires":[["dceaf505.ff0098","f36ff68e.abe4e8"]]},{"id":"dceaf505.ff0098","type":"other","name":"UP","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":2042.483139038086,"y":1562.1426229476929,"z":"1d241215.b25dde","wires":[["51697d75.cd6674"]]},{"id":"7f1fd1b5.693fb","type":"set","name":"Set Message","xml":"<set>\n<parameter name='event-message' value=\"Error occurred during health check of the rebuilt servers\"/>","comments":"","x":1785.2325592041016,"y":1315.249568939209,"z":"1d241215.b25dde","wires":[]},{"id":"c9cb0dac.8ad56","type":"set","name":"Set Message","xml":"<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":1783.8995513916016,"y":1352.2495698928833,"z":"1d241215.b25dde","wires":[]},{"id":"b734f6e2.e9c078","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":1771.3658599853516,"y":1389.0623140335083,"z":"1d241215.b25dde","wires":[[]]},{"id":"d45c9614.ff8588","type":"set","name":"Set Message","xml":"<set>\n<parameter name='event-message' value=\"`'Health check failed for the rebuilt server : ' + $healthcheck.vm[$index1].url`\"/>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />","comments":"","x":2491.161521911621,"y":1413.5354585647583,"z":"1d241215.b25dde","wires":[]},{"id":"89862589.b9b638","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":2485.857322692871,"y":1457.8856801986694,"z":"1d241215.b25dde","wires":[[]]},{"id":"10d8313b.6051bf","type":"set","name":"Set Success Message","xml":"<set>\n<parameter name='success-message' value=\"`'Rebuild succeeded for the server : ' + $healthcheck.vm[$index1].url`\"/>\n<parameter name=\"HealthyVMCountAfterRebuild\" value=\"`$HealthyVMCountAfterRebuild + 1`\" />\n\n","comments":"","x":2447.537498474121,"y":1598.0661010742188,"z":"1d241215.b25dde","wires":[]},{"id":"df716347.e6da2","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":2429.359275817871,"y":1639.2800912857056,"z":"1d241215.b25dde","wires":[[]]},{"id":"ed2f324f.da23d","type":"execute","name":"Report Success","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />\n\n","comments":"","outputs":1,"x":2430.697410583496,"y":1682.8208627700806,"z":"1d241215.b25dde","wires":[[]]},{"id":"951f2311.e3f1b","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2333.702350616455,"y":1039.4829206466675,"z":"1d241215.b25dde","wires":[["64179684.35f708"]]},{"id":"64179684.35f708","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":2536.218650817871,"y":1037.9474458694458,"z":"1d241215.b25dde","wires":[[]]},{"id":"aeea61b7.91b7d","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":1802.5201034545898,"y":1464.2884397506714,"z":"1d241215.b25dde","wires":[["1e2450dd.4a0e2f"]]},{"id":"cc6dfd01.896b3","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":2517.595359802246,"y":1494.3715200424194,"z":"1d241215.b25dde","wires":[["b4a8bb45.c9f6d8"]]},{"id":"c4c875e.5363488","type":"set","name":"update failed count","xml":"<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthcheck.vmCount`\" />\n","comments":"","x":1802.7420806884766,"y":1426.6218852996826,"z":"1d241215.b25dde","wires":[]},{"id":"b4a8bb45.c9f6d8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2708.318546295166,"y":1493.8884372711182,"z":"1d241215.b25dde","wires":[["716d9887.b27778"]]},{"id":"716d9887.b27778","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":2885.3351135253906,"y":1493.6029653549194,"z":"1d241215.b25dde","wires":[[]]},{"id":"414e92f3.6ca7cc","type":"execute","name":"Update_AAI_Status_Success","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Running\" />\n","comments":"","outputs":1,"x":1017.029541015625,"y":1923.084303855896,"z":"1d241215.b25dde","wires":[["e4f8a2ae.c664b","8830d2e7.45daa"]]},{"id":"dd55a83.d95aa58","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":992.0296249389648,"y":2025.084433555603,"z":"1d241215.b25dde","wires":[]},{"id":"cb3909f7.d8a288","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":797.4740219116211,"y":1923.0842504501343,"z":"1d241215.b25dde","wires":[["414e92f3.6ca7cc","dd55a83.d95aa58","a61ca9c.4fa5b58"]]},{"id":"a61ca9c.4fa5b58","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=\"`'VNFC Rebuilt successfully : ' + $vnfcName`\"/>\n","comments":"","outputs":1,"x":1001.91845703125,"y":1971.9732208251953,"z":"1d241215.b25dde","wires":[[]]},{"id":"8029027e.f9658","type":"execute","name":"Update_AAI_Status_Failure","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Error\" />","comments":"","outputs":1,"x":1007.0296630859375,"y":1780.08429813385,"z":"1d241215.b25dde","wires":[["e4f8a2ae.c664b","8830d2e7.45daa"]]},{"id":"2cac2089.b4761","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\n","comments":"","x":979.0297470092773,"y":1857.084891319275,"z":"1d241215.b25dde","wires":[]},{"id":"4ac23437.50ab0c","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":790.8073348999023,"y":1780.9731664657593,"z":"1d241215.b25dde","wires":[["2cac2089.b4761","8029027e.f9658"]]},{"id":"e4f8a2ae.c664b","type":"not-found","name":"not-found/failure","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1314.743911743164,"y":1797.2271070480347,"z":"1d241215.b25dde","wires":[["9b043e36.9d60c"]]},{"id":"8830d2e7.45daa","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1263.0293502807617,"y":1922.0841588974,"z":"1d241215.b25dde","wires":[["10442df8.10d6a2"]]},{"id":"9b043e36.9d60c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1768.918628692627,"y":1801.8659811019897,"z":"1d241215.b25dde","wires":[["868194ed.771f68","5c1ea7a.87a7d58","91badf68.35f46"]]},{"id":"10442df8.10d6a2","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1390.1400680541992,"y":1921.973074913025,"z":"1d241215.b25dde","wires":[["10aa9304.7c72bd","a63ab149.af106"]]},{"id":"10aa9304.7c72bd","type":"outcome","name":"NOT_FOUND/FAILURE","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1587.9982528686523,"y":1911.1159162521362,"z":"1d241215.b25dde","wires":[["9b043e36.9d60c"]]},{"id":"868194ed.771f68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1935.1451568603516,"y":1882.1873254776,"z":"1d241215.b25dde","wires":[]},{"id":"67cc2227.82d17c","type":"switchNode","name":"switch_server_rebuild_success","xml":"<switch test='`$rebuildFailedCount == 0 and $healthCheckFailedCount == 0`'>\n","comments":"","outputs":1,"x":426.8077926635742,"y":1807.94855594635,"z":"1d241215.b25dde","wires":[["4e97dabd.435314","167e8229.670afe"]]},{"id":"167e8229.670afe","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":648.5578231811523,"y":1923.6986303329468,"z":"1d241215.b25dde","wires":[["cb3909f7.d8a288"]]},{"id":"4e97dabd.435314","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":654.0578231811523,"y":1780.698691368103,"z":"1d241215.b25dde","wires":[["4ac23437.50ab0c"]]},{"id":"a63ab149.af106","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1567.8079071044922,"y":1967.0047960281372,"z":"1d241215.b25dde","wires":[["ec1e6eda.5ef93"]]},{"id":"ec1e6eda.5ef93","type":"set","name":"Set AAI update Flag","xml":"<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n","comments":"","x":1760.3475456237793,"y":1967.0049495697021,"z":"1d241215.b25dde","wires":[]},{"id":"5c1ea7a.87a7d58","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 VNFC details in A&amp;AI for VNFC ' + $vnfcName`\" />","comments":"","outputs":1,"x":1947.2247467041016,"y":1773.7151613235474,"z":"1d241215.b25dde","wires":[["d297d0a9.cd082"]]},{"id":"d297d0a9.cd082","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2171.545925140381,"y":1812.0364608764648,"z":"1d241215.b25dde","wires":[["fef71859.ed0688"]]},{"id":"fef71859.ed0688","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":2388.553768157959,"y":1811.8262910842896,"z":"1d241215.b25dde","wires":[[]]},{"id":"8db2e331.18b49","type":"switchNode","name":"switch STATUS","xml":"<switch test='`$REBUILD_STATUS`'>\n","comments":"","outputs":1,"x":932.1458740234375,"y":970.3964147567749,"z":"1d241215.b25dde","wires":[["695a1648.2fabf8","dc52391e.29dc48","6cbcba39.209574"]]},{"id":"dc52391e.29dc48","type":"other","name":"ERROR/EMPTY","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1142.1458587646484,"y":1018.9678344726562,"z":"1d241215.b25dde","wires":[["e9be6721.06d0e8"]]},{"id":"695a1648.2fabf8","type":"success","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1137.5746994018555,"y":907.6821279525757,"z":"1d241215.b25dde","wires":[["e9be6721.06d0e8"]]},{"id":"6cbcba39.209574","type":"other","name":"CONTEXT_NOT_FOUND","xml":"<outcome value='CONTEXT_NOT_FOUND'>\n","comments":"","outputs":1,"x":1113.5743942260742,"y":1123.2534818649292,"z":"1d241215.b25dde","wires":[["4ac23437.50ab0c"]]},{"id":"faf4f9eb.717e58","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name=\"rebuildFailedCount\" value=\"`$rebuildFailedCount + 1`\" />","comments":"","x":2132.056537628174,"y":945.2179517745972,"z":"1d241215.b25dde","wires":[]},{"id":"1e2450dd.4a0e2f","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1989.2350997924805,"y":1356.372338294983,"z":"1d241215.b25dde","wires":[["b3f01f64.5a4bb"]]},{"id":"b3f01f64.5a4bb","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":2191.751609802246,"y":1359.122859954834,"z":"1d241215.b25dde","wires":[[]]},{"id":"51697d75.cd6674","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2201.734573364258,"y":1632.0866012573242,"z":"1d241215.b25dde","wires":[["10d8313b.6051bf","df716347.e6da2","ed2f324f.da23d"]]},{"id":"6cc7ff9b.69bb7","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2259.2346572875977,"y":1483.5153160095215,"z":"1d241215.b25dde","wires":[["d45c9614.ff8588","89862589.b9b638","cc6dfd01.896b3"]]},{"id":"bc51b6b6.be5498","type":"failure","name":"failure/notFound","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1068.0204811096191,"y":788.6107168197632,"z":"1d241215.b25dde","wires":[["a2de3da7.a56b5"]]},{"id":"86eb9e9c.6b536","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":587.4069175720215,"y":1158.584038734436,"z":"1d241215.b25dde","wires":[["c43287cc.92e448","2a43c35e.5e84ac"]]},{"id":"6158eeca.5f084","type":"set","name":"Mark vm Started","xml":"<set>\n<parameter name=\"rebuildServerList[$rebuildSuccessCount].url\" value=\"`$vm[$index1].url`\" />\n","comments":"","x":2082.5562896728516,"y":1090.2626266479492,"z":"1d241215.b25dde","wires":[]},{"id":"2a43c35e.5e84ac","type":"set","name":"init","xml":"<set>\n<parameter name='healthCheckFailedCount' value='0' />\n","comments":"","x":774.9135131835938,"y":1155.896544456482,"z":"1d241215.b25dde","wires":[]},{"id":"c43287cc.92e448","type":"switchNode","name":"rebuilt server > 0","xml":"<switch test='`$rebuildSuccessCount > 0`'>\n","comments":"","outputs":1,"x":755.5587158203125,"y":1207.3251333236694,"z":"1d241215.b25dde","wires":[["4b48e794.82cd18"]]},{"id":"4b48e794.82cd18","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":902.594482421875,"y":1286.360993385315,"z":"1d241215.b25dde","wires":[["d6ae113.fa83bf"]]},{"id":"d6ae113.fa83bf","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1033.056411743164,"y":1286.6108713150024,"z":"1d241215.b25dde","wires":[["dbe107fc.610df8","6ce69f34.f7c1c","7b94b5cb.b2ec5c","134d6532.cc4ccb"]]},{"id":"dbe107fc.610df8","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 health check the rebuilt servers of the VNFC\"/>\n","comments":"","outputs":1,"x":1244.913459777832,"y":1254.468073606491,"z":"1d241215.b25dde","wires":[[]]},{"id":"6ce69f34.f7c1c","type":"for","name":"for_each_vm","xml":"<for index=\"index1\" start=\"0\" end=\"`$rebuildSuccessCount`\" >","comments":"","outputs":1,"x":1249.004035949707,"y":1299.087098121643,"z":"1d241215.b25dde","wires":[["abaea328.b02c7"]]},{"id":"7b94b5cb.b2ec5c","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$rebuildSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n","comments":"","x":1235.003791809082,"y":1342.0870933532715,"z":"1d241215.b25dde","wires":[]},{"id":"abaea328.b02c7","type":"set","name":"set : health check input list","xml":"<set>\n<parameter name=\"healthcheck.vm[$index1].url\" value=\"`$rebuildServerList[$index1].url`\" />\n","comments":"","x":1467.448257446289,"y":1300.1979331970215,"z":"1d241215.b25dde","wires":[]},{"id":"a3f09da0.00751","type":"comment","name":"Healthcheck Rebuilt servers","info":"","comments":"","x":564.9135284423828,"y":1243.0394353866577,"z":"1d241215.b25dde","wires":[]},{"id":"f36ff68e.abe4e8","type":"other","name":"UNKNOWN/DOWN","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2058.485061645508,"y":1484.4680242538452,"z":"1d241215.b25dde","wires":[["6cc7ff9b.69bb7"]]},{"id":"28827390.015fdc","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1204.02054977417,"y":696.646445274353,"z":"1d241215.b25dde","wires":[["a2de3da7.a56b5"]]},{"id":"52dcec48.33a434","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1191.020793914795,"y":744.646445274353,"z":"1d241215.b25dde","wires":[["a2de3da7.a56b5"]]},{"id":"55a13b8.748e8c4","type":"set","name":"Set flag","xml":"<set>\n<parameter name='HealthcheckDGResolutionFlag' value=\"true\"/>\n","comments":"","x":1112.3687782287598,"y":535.2625017166138,"z":"1d241215.b25dde","wires":[]},{"id":"6080e29d.eac52c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":957.3687782287598,"y":500.26250171661377,"z":"1d241215.b25dde","wires":[["2940d020.da57b","55a13b8.748e8c4"]]},{"id":"d0b6d307.edd5e","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1193.618782043457,"y":642.7625036239624,"z":"1d241215.b25dde","wires":[["b1345184.f11"]]},{"id":"b1345184.f11","type":"set","name":"Set AAI update Flag","xml":"<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n","comments":"","x":1401.118782043457,"y":644.0125036239624,"z":"1d241215.b25dde","wires":[]},{"id":"91badf68.35f46","type":"set","name":"Set AAI update Flag","xml":"<set>\n<parameter name='AAIUpdateSuccessFlag' value='false' />\n","comments":"","x":1966.1187896728516,"y":1825.2625207901,"z":"1d241215.b25dde","wires":[]}]
+[
+ {
+ "id": "eaad909.4847f7",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 121.515625,
+ "y": 44.00001049041748,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "477245bd.489fdc"
+ ]
+ ]
+ },
+ {
+ "id": "477245bd.489fdc",
+ "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": 280.51573944091797,
+ "y": 43.99999809265137,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "46f888eb.bb8db8"
+ ]
+ ]
+ },
+ {
+ "id": "46f888eb.bb8db8",
+ "type": "method",
+ "name": "Rebuild_VNFC",
+ "xml": "<method rpc='Rebuild_VNFC' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 194.5157356262207,
+ "y": 190.99998664855957,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "876cb51c.0c7748"
+ ]
+ ]
+ },
+ {
+ "id": "876cb51c.0c7748",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 195.87288665771484,
+ "y": 963.8571119308472,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "3845d833.9cc418",
+ "197554a7.de417b",
+ "cf9627f2.a3c948",
+ "625d23ed.e5485c"
+ ]
+ ]
+ },
+ {
+ "id": "3845d833.9cc418",
+ "type": "execute",
+ "name": "Resolve Healthcheck DG",
+ "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"HealthCheck\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"HealthCheckDG\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 643.5157623291016,
+ "y": 413.2500057220459,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "5a60e452.417a2c",
+ "ab5b99a4.bff1b8",
+ "28c18ec0.2bae92"
+ ]
+ ]
+ },
+ {
+ "id": "5a60e452.417a2c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 938.5157623291016,
+ "y": 358.5000057220459,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b1452b21.d0ac28"
+ ]
+ ]
+ },
+ {
+ "id": "b1452b21.d0ac28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1125.2380542755127,
+ "y": 357.6688289642334,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "5a24165.45c37e8",
+ "b89ec226.426eb",
+ "e4c5a25b.7b6df",
+ "eff7000a.1592d"
+ ]
+ ]
+ },
+ {
+ "id": "5a24165.45c37e8",
+ "type": "set",
+ "name": "Set Message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Healthcheck DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 1310.765769958496,
+ "y": 345.2500047683716,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "ab5b99a4.bff1b8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 955.2658233642578,
+ "y": 412.2500057220459,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "5f723a69.644e74"
+ ]
+ ]
+ },
+ {
+ "id": "5f723a69.644e74",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1101.7380561828613,
+ "y": 412.13886070251465,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "a494b597.fdd5b8",
+ "b89ec226.426eb",
+ "e4c5a25b.7b6df",
+ "eff7000a.1592d"
+ ]
+ ]
+ },
+ {
+ "id": "a494b597.fdd5b8",
+ "type": "set",
+ "name": "Set Message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Error while resolving Healthcheck DG for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 1311.9878158569336,
+ "y": 386.1389217376709,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "28c18ec0.2bae92",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 844.6544952392578,
+ "y": 476.8888626098633,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "bf7f7850.7be178"
+ ]
+ ]
+ },
+ {
+ "id": "d0e66bd6.9a5cf8",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Healthchek DG resolved to : ' + $HealthCheckDG.dg_name`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1137.0713081359863,
+ "y": 469.3888626098633,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b89ec226.426eb",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1333.5566654205322,
+ "y": 427.4387893676758,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eff7000a.1592d",
+ "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": 1375.432273864746,
+ "y": 466.25000762939453,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "f8d36fce.144d4"
+ ]
+ ]
+ },
+ {
+ "id": "e4c5a25b.7b6df",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>",
+ "comments": "",
+ "x": 1344.5435523986816,
+ "y": 505.60894203186035,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "f8d36fce.144d4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1870.4317054748535,
+ "y": 473.2499942779541,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "6ed1f54a.cc218c"
+ ]
+ ]
+ },
+ {
+ "id": "6ed1f54a.cc218c",
+ "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": 2056.003360748291,
+ "y": 472.9642581939697,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "197554a7.de417b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 510.5156059265137,
+ "y": 896.2857542037964,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "2da692a3.f3d24e",
+ "696563.76d13a9c"
+ ]
+ ]
+ },
+ {
+ "id": "2da692a3.f3d24e",
+ "type": "set",
+ "name": "init",
+ "xml": "<set>\n<parameter name='rebuildFailedCount' value='0' />\n<parameter name='rebuildSuccessCount' value='0' />\n",
+ "comments": "",
+ "x": 706.4947624206543,
+ "y": 852.5715408325195,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "696563.76d13a9c",
+ "type": "for",
+ "name": "For Each VM",
+ "xml": "<for index=\"index1\" start=\"0\" end=\"`$vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 712.5299797058105,
+ "y": 946.3215417861938,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "f936d415.cdf5d8"
+ ]
+ ]
+ },
+ {
+ "id": "f0d7c3c0.3357",
+ "type": "comment",
+ "name": "Rebuild server",
+ "info": "",
+ "comments": "",
+ "x": 515.4611778259277,
+ "y": 849.5803728103638,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "b95231a7.306f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1366.337272644043,
+ "y": 956.1429328918457,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "eefe17be.bcb8c8",
+ "d5774ec5.0c02c",
+ "5d776bb0.ca76f4"
+ ]
+ ]
+ },
+ {
+ "id": "eefe17be.bcb8c8",
+ "type": "record",
+ "name": "Log message",
+ "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 rebuild the server : ' + $vm[$index1].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1566.1947288513184,
+ "y": 916.4285984039307,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5d776bb0.ca76f4",
+ "type": "set",
+ "name": "Set Parameters",
+ "xml": "<set>\n<parameter name=\"rebuild-vm-url\" value=\"`$vm[$index1].url`\" />\n<parameter name='rebuildRetryCount' value='3'/>\n",
+ "comments": "",
+ "x": 1555.855613708496,
+ "y": 963.8573093414307,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "d5774ec5.0c02c",
+ "type": "call",
+ "name": "Rebuild",
+ "xml": "<call module='APPC' rpc='Rebuild_VM' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1562.8557395935059,
+ "y": 1014.85706615448,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "59a4e75d.d38548",
+ "1f0d98cc.b704c7",
+ "9f141c25.7249a"
+ ]
+ ]
+ },
+ {
+ "id": "9f141c25.7249a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1759.1889038085938,
+ "y": 935.85715675354,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b61d3aa4.e67e18"
+ ]
+ ]
+ },
+ {
+ "id": "59a4e75d.d38548",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1767.0560913085938,
+ "y": 1016.7857456207275,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "d956dbae.d9ba68"
+ ]
+ ]
+ },
+ {
+ "id": "1f0d98cc.b704c7",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1760.4110565185547,
+ "y": 1100.85715675354,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "85d276ba.d6de78"
+ ]
+ ]
+ },
+ {
+ "id": "b61d3aa4.e67e18",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1895.1889038085938,
+ "y": 935.8570957183838,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "7fc83896.9017f8",
+ "45467de.9c3d884",
+ "ec8d8517.b5e138"
+ ]
+ ]
+ },
+ {
+ "id": "d956dbae.d9ba68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1912.8397827148438,
+ "y": 1016.7142734527588,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "45467de.9c3d884",
+ "ec8d8517.b5e138",
+ "45772e5e.74203"
+ ]
+ ]
+ },
+ {
+ "id": "85d276ba.d6de78",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1913.5536346435547,
+ "y": 1101.0000400543213,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "2920713b.8ecbee",
+ "2f8f457d.9069ca",
+ "a56e38db.669e48"
+ ]
+ ]
+ },
+ {
+ "id": "7fc83896.9017f8",
+ "type": "set",
+ "name": "Set message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'DG to execute Rebuild action not found for VM: ' + $vm[$index1].url`\"/>\n<parameter name=\"rebuildFailedCount\" value=\"`$rebuildFailedCount + 1`\" />",
+ "comments": "",
+ "x": 2142.2600440979004,
+ "y": 877.8215465545654,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "45467de.9c3d884",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2135.0906105041504,
+ "y": 971.2976226806641,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ec8d8517.b5e138",
+ "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": 2151.432403564453,
+ "y": 1017.8254547119141,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "5dba5725.37ed08"
+ ]
+ ]
+ },
+ {
+ "id": "2f8f457d.9069ca",
+ "type": "set",
+ "name": "Increment Rebuilt vm count",
+ "xml": "<set>\n<parameter name='rebuildSuccessCount' value='`$rebuildSuccessCount+1`' />\n",
+ "comments": "",
+ "x": 2147.693145751953,
+ "y": 1115.6347827911377,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "2920713b.8ecbee",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Rebuild succeeded for the server : ' + $vm[$index1].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2106.946563720703,
+ "y": 1165.4286012649536,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bcefbe85.1105a",
+ "type": "call",
+ "name": "Call Healthcheck DG",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1153.496726989746,
+ "y": 1437.9076089859009,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "5d9bf492.adff0c",
+ "74b4379f.bebfb8",
+ "d033214b.0aeb8"
+ ]
+ ]
+ },
+ {
+ "id": "5d9bf492.adff0c",
+ "type": "outcome",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1360.1917343139648,
+ "y": 1437.6747550964355,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "7331efc9.7750b"
+ ]
+ ]
+ },
+ {
+ "id": "74b4379f.bebfb8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1368.7084579467773,
+ "y": 1396.0126457214355,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "4beb1e4e.47a8f"
+ ]
+ ]
+ },
+ {
+ "id": "d033214b.0aeb8",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1367.4419784545898,
+ "y": 1486.174633026123,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "f73a2115.bc8a4"
+ ]
+ ]
+ },
+ {
+ "id": "f73a2115.bc8a4",
+ "type": "for",
+ "name": "For Each VM",
+ "xml": "<for index=\"index1\" start=\"0\" end=\"`$healthcheck.vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1551.942039489746,
+ "y": 1507.996238231659,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "630851d7.42d62"
+ ]
+ ]
+ },
+ {
+ "id": "4beb1e4e.47a8f",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1558.1918487548828,
+ "y": 1394.424723625183,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "4bdeb116.8627e",
+ "b225d38f.9918c",
+ "c27e0644.371e18",
+ "6c91e733.9441c8"
+ ]
+ ]
+ },
+ {
+ "id": "7331efc9.7750b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1562.9418601989746,
+ "y": 1441.4246625900269,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b0a53c62.1f05c",
+ "4bdeb116.8627e",
+ "c27e0644.371e18",
+ "6c91e733.9441c8"
+ ]
+ ]
+ },
+ {
+ "id": "630851d7.42d62",
+ "type": "switchNode",
+ "name": "Healthcheck status ?",
+ "xml": "<switch test=\"`$healthcheck.vm[$index1].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1815.6564025878906,
+ "y": 1507.9959888458252,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "c669c1cf.8ea34",
+ "e2f83365.f181d"
+ ]
+ ]
+ },
+ {
+ "id": "c669c1cf.8ea34",
+ "type": "other",
+ "name": "UP",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2068.1925048828125,
+ "y": 1539.3176288604736,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "de6f6d2d.6003b"
+ ]
+ ]
+ },
+ {
+ "id": "b0a53c62.1f05c",
+ "type": "set",
+ "name": "Set Message",
+ "xml": "<set>\n<parameter name='event-message' value=\"Error occurred during health check of the rebuilt servers\"/>",
+ "comments": "",
+ "x": 1810.9419250488281,
+ "y": 1292.4245748519897,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "b225d38f.9918c",
+ "type": "set",
+ "name": "Set Message",
+ "xml": "<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 1809.6089172363281,
+ "y": 1329.424575805664,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "4bdeb116.8627e",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1797.0752258300781,
+ "y": 1366.237319946289,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "471fcde.b748a34",
+ "type": "set",
+ "name": "Set Message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Health check failed for the rebuilt server : ' + $healthcheck.vm[$index1].url`\"/>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />",
+ "comments": "",
+ "x": 2516.8708877563477,
+ "y": 1390.710464477539,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "e63d0e68.bd4f3",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2511.5666885375977,
+ "y": 1435.0606861114502,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ca5672e7.4dc8b",
+ "type": "set",
+ "name": "Set Success Message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Rebuild succeeded for the server : ' + $healthcheck.vm[$index1].url`\"/>\n<parameter name=\"HealthyVMCountAfterRebuild\" value=\"`$HealthyVMCountAfterRebuild + 1`\" />\n\n",
+ "comments": "",
+ "x": 2473.2468643188477,
+ "y": 1575.2411069869995,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "eeedd6c9.b99c68",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`$success-message`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2455.0686416625977,
+ "y": 1616.4550971984863,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9a27cf10.51a0e",
+ "type": "execute",
+ "name": "Report Success",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2456.4067764282227,
+ "y": 1659.9958686828613,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5dba5725.37ed08",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2359.4117164611816,
+ "y": 1016.6579265594482,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "c4ac0807.bbe838"
+ ]
+ ]
+ },
+ {
+ "id": "c4ac0807.bbe838",
+ "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": 2561.9280166625977,
+ "y": 1015.1224517822266,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c27e0644.371e18",
+ "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": 1828.2294692993164,
+ "y": 1441.4634456634521,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "54cd71b0.adc9a"
+ ]
+ ]
+ },
+ {
+ "id": "d6588952.ede9e8",
+ "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": 2543.3047256469727,
+ "y": 1471.5465259552002,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "2f5dff14.0d363"
+ ]
+ ]
+ },
+ {
+ "id": "6c91e733.9441c8",
+ "type": "set",
+ "name": "update failed count",
+ "xml": "<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthcheck.vmCount`\" />\n",
+ "comments": "",
+ "x": 1828.4514465332031,
+ "y": 1403.7968912124634,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "2f5dff14.0d363",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2734.0279121398926,
+ "y": 1471.063443183899,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "1e52cac0.5406d5"
+ ]
+ ]
+ },
+ {
+ "id": "1e52cac0.5406d5",
+ "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": 2911.044479370117,
+ "y": 1470.7779712677002,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b7bc492c.e7d788",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n\n",
+ "comments": "",
+ "x": 882.7390403747559,
+ "y": 1903.259358406067,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "86a6c187.16524",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\n",
+ "comments": "",
+ "x": 881.7392272949219,
+ "y": 1755.2599039077759,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "cf9627f2.a3c948",
+ "type": "switchNode",
+ "name": "switch_server_rebuild_success",
+ "xml": "<switch test='`$rebuildFailedCount == 0 and $healthCheckFailedCount == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 452.5171585083008,
+ "y": 1785.1235618591309,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b55430d2.12c3a",
+ "4e364f61.3d66"
+ ]
+ ]
+ },
+ {
+ "id": "4e364f61.3d66",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 674.2671890258789,
+ "y": 1900.8736362457275,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b7bc492c.e7d788"
+ ]
+ ]
+ },
+ {
+ "id": "b55430d2.12c3a",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 679.7671890258789,
+ "y": 1757.8736972808838,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "86a6c187.16524"
+ ]
+ ]
+ },
+ {
+ "id": "f936d415.cdf5d8",
+ "type": "switchNode",
+ "name": "switch STATUS",
+ "xml": "<switch test='`$REBUILD_STATUS`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 957.8552398681641,
+ "y": 947.5714206695557,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "855b6f1.b3f689",
+ "68734288.4e6dcc",
+ "9cfc922d.098f4"
+ ]
+ ]
+ },
+ {
+ "id": "68734288.4e6dcc",
+ "type": "other",
+ "name": "ERROR/EMPTY",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1167.855224609375,
+ "y": 996.142840385437,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b95231a7.306f8"
+ ]
+ ]
+ },
+ {
+ "id": "855b6f1.b3f689",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1163.284065246582,
+ "y": 884.8571338653564,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b95231a7.306f8"
+ ]
+ ]
+ },
+ {
+ "id": "9cfc922d.098f4",
+ "type": "other",
+ "name": "CONTEXT_NOT_FOUND",
+ "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1139.2837600708008,
+ "y": 1100.42848777771,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "e21406fe.870978"
+ ]
+ ]
+ },
+ {
+ "id": "45772e5e.74203",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name=\"rebuildFailedCount\" value=\"`$rebuildFailedCount + 1`\" />",
+ "comments": "",
+ "x": 2157.7659034729004,
+ "y": 922.3929576873779,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "54cd71b0.adc9a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2014.944465637207,
+ "y": 1333.5473442077637,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "96eac2ee.4a631"
+ ]
+ ]
+ },
+ {
+ "id": "96eac2ee.4a631",
+ "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": 2217.4609756469727,
+ "y": 1336.2978658676147,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "de6f6d2d.6003b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2227.4439392089844,
+ "y": 1609.261607170105,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "ca5672e7.4dc8b",
+ "eeedd6c9.b99c68",
+ "9a27cf10.51a0e"
+ ]
+ ]
+ },
+ {
+ "id": "9789eed7.59185",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2284.944023132324,
+ "y": 1460.6903219223022,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "471fcde.b748a34",
+ "e63d0e68.bd4f3",
+ "d6588952.ede9e8"
+ ]
+ ]
+ },
+ {
+ "id": "625d23ed.e5485c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 613.116283416748,
+ "y": 1135.7590446472168,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "34b74e1f.8b03a2",
+ "e13b093e.4b89d8"
+ ]
+ ]
+ },
+ {
+ "id": "a56e38db.669e48",
+ "type": "set",
+ "name": "Mark vm Started",
+ "xml": "<set>\n<parameter name=\"rebuildServerList[$rebuildSuccessCount].url\" value=\"`$vm[$index1].url`\" />\n",
+ "comments": "",
+ "x": 2108.265655517578,
+ "y": 1067.43763256073,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "e13b093e.4b89d8",
+ "type": "set",
+ "name": "init",
+ "xml": "<set>\n<parameter name='healthCheckFailedCount' value='0' />\n",
+ "comments": "",
+ "x": 800.6228790283203,
+ "y": 1133.0715503692627,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "34b74e1f.8b03a2",
+ "type": "switchNode",
+ "name": "rebuilt server > 0",
+ "xml": "<switch test='`$rebuildSuccessCount > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 781.2680816650391,
+ "y": 1184.5001392364502,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "fd385bf3.f3af58"
+ ]
+ ]
+ },
+ {
+ "id": "fd385bf3.f3af58",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 928.3038482666016,
+ "y": 1263.5359992980957,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "b30e5a44.ec1d68"
+ ]
+ ]
+ },
+ {
+ "id": "b30e5a44.ec1d68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.7657775878906,
+ "y": 1263.7858772277832,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "cf4f0246.98a17",
+ "1de1c606.06eb0a",
+ "1592ea7b.84e196",
+ "bcefbe85.1105a"
+ ]
+ ]
+ },
+ {
+ "id": "cf4f0246.98a17",
+ "type": "record",
+ "name": "Log message",
+ "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 health check the rebuilt servers of the VNFC\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1270.6228256225586,
+ "y": 1231.6430795192719,
+ "z": "a3df70df.04e24",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1de1c606.06eb0a",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"index1\" start=\"0\" end=\"`$rebuildSuccessCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1274.7134017944336,
+ "y": 1276.2621040344238,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "f20611f4.79fd9"
+ ]
+ ]
+ },
+ {
+ "id": "1592ea7b.84e196",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$rebuildSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n",
+ "comments": "",
+ "x": 1260.7131576538086,
+ "y": 1319.2620992660522,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "f20611f4.79fd9",
+ "type": "set",
+ "name": "set : health check input list",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[$index1].url\" value=\"`$rebuildServerList[$index1].url`\" />\n",
+ "comments": "",
+ "x": 1493.1576232910156,
+ "y": 1277.3729391098022,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "7c6710be.b224d",
+ "type": "comment",
+ "name": "Healthcheck Rebuilt servers",
+ "info": "",
+ "comments": "",
+ "x": 590.6228942871094,
+ "y": 1220.2144412994385,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "e2f83365.f181d",
+ "type": "other",
+ "name": "UNKNOWN/DOWN",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2084.1944274902344,
+ "y": 1461.643030166626,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "9789eed7.59185"
+ ]
+ ]
+ },
+ {
+ "id": "17c0b900.0992d7",
+ "type": "set",
+ "name": "Set flag",
+ "xml": "<set>\n<parameter name='HealthcheckDGResolutionFlag' value=\"true\"/>\n",
+ "comments": "",
+ "x": 1138.0781440734863,
+ "y": 512.4375076293945,
+ "z": "a3df70df.04e24",
+ "wires": []
+ },
+ {
+ "id": "bf7f7850.7be178",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 983.0781440734863,
+ "y": 477.43750762939453,
+ "z": "a3df70df.04e24",
+ "wires": [
+ [
+ "d0e66bd6.9a5cf8",
+ "17c0b900.0992d7"
+ ]
+ ]
+ },
+ {
+ "id": "e21406fe.870978",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\n",
+ "comments": "",
+ "x": 1385.5156707763672,
+ "y": 1102.5157146453857,
+ "z": "a3df70df.04e24",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Active_VNFC.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Active_VNFC.json
index 6b4ba54f3..f78ddaf7d 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Active_VNFC.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Active_VNFC.json
@@ -1 +1,1561 @@
-[{"id":"cd34f9f0.1d9868","type":"dgstart","name":"DGSTART","outputs":1,"x":127.28811645507812,"y":20.999963760375977,"z":"ae41b0e9.09ae2","wires":[["f6b6354f.0ddf38"]]},{"id":"f6b6354f.0ddf38","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.28817749023438,"y":70.56663703918457,"z":"ae41b0e9.09ae2","wires":[["8c403f40.821b5"]]},{"id":"8c403f40.821b5","type":"method","name":"Restart-Active-Active_VNFC","xml":"<method rpc='Restart-Active-Active_VNFC' mode='sync'>\n","comments":"","outputs":1,"x":387.03822326660156,"y":71.81661415100098,"z":"ae41b0e9.09ae2","wires":[["ed7c3c6d.a984c"]]},{"id":"45276a62.7c92c4","type":"for","name":"for_each_vm","xml":"<for index=\"vmIndex\" start=\"0\" end=\"`$vmCount`\" >","comments":"","outputs":1,"x":480.28807067871094,"y":455.0000247955322,"z":"ae41b0e9.09ae2","wires":[["b0f68ecc.113e"]]},{"id":"ed7c3c6d.a984c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"false","comments":"","outputs":1,"x":75.5,"y":222.75000190734863,"z":"ae41b0e9.09ae2","wires":[["5b372d0b.047e04","f72d65c7.04b878","860a3ff7.f7ce8","2e70b639.278d4a","ce24660a.70bd38"]]},{"id":"3fc5910d.6ff2ae","type":"for","name":"for_each_vm","xml":"<for index=\"vmIndex\" start=\"0\" end=\"`$vmCount`\" >","comments":"","outputs":1,"x":468.3783874511719,"y":719.5356998443604,"z":"ae41b0e9.09ae2","wires":[["793be6bd.8ef148"]]},{"id":"74b788b3.2be2f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1629.9331359863281,"y":707.9285507202148,"z":"ae41b0e9.09ae2","wires":[["aed13d59.d33b6"]]},{"id":"e546a2e8.8d275","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":804.8614959716797,"y":1335.7500252723694,"z":"ae41b0e9.09ae2","wires":[]},{"id":"b8f2e995.5da048","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":805.0924224853516,"y":1275.1499276161194,"z":"ae41b0e9.09ae2","wires":[]},{"id":"5b372d0b.047e04","type":"switchNode","name":"switch_server_restart_success","xml":"<switch test='`$restartFailedCount == 0 and $restartSkippedCount == 0 and $healthCheckFailedCount == 0`'>\n","comments":"","outputs":1,"x":371.34271240234375,"y":1302.4832401275635,"z":"ae41b0e9.09ae2","wires":[["a64987ff.3681c8","369d7bad.6115d4"]]},{"id":"a64987ff.3681c8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":594.5927124023438,"y":1335.2332711219788,"z":"ae41b0e9.09ae2","wires":[["e546a2e8.8d275"]]},{"id":"369d7bad.6115d4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":596.0927429199219,"y":1275.233332157135,"z":"ae41b0e9.09ae2","wires":[["b8f2e995.5da048"]]},{"id":"c833ddce.53e9a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1556.2881164550781,"y":796.9999618530273,"z":"ae41b0e9.09ae2","wires":[["3c5daadb.8b49d6"]]},{"id":"c78696a0.1c9918","type":"set","name":"set_mark_vm_failed","xml":"<set>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n","comments":"","x":2186.7174072265625,"y":618.7618103027344,"z":"ae41b0e9.09ae2","wires":[]},{"id":"2d7e5cc9.758c64","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":2156.717803955078,"y":684.7618637084961,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"a1fe0884.e414e8","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":2183.584560394287,"y":727.9492416381836,"z":"ae41b0e9.09ae2","wires":[["de56e9e1.0fb738"]]},{"id":"4019eb71.f46704","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 restart DOWN servers\"/>\n","comments":"","outputs":1,"x":497.2881317138672,"y":385.6665897369385,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"ccd05e9a.19417","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 restart UP servers\"/>\n","comments":"","outputs":1,"x":471.28812408447266,"y":662.9166669845581,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"4dbab17.c93485","type":"comment","name":"Restart Up servers","info":"","comments":"","x":319.2881164550781,"y":618.6666507720947,"z":"ae41b0e9.09ae2","wires":[]},{"id":"45176027.28e49","type":"comment","name":"Restart Down servers","info":"","comments":"","x":311.0381164550781,"y":322.1666202545166,"z":"ae41b0e9.09ae2","wires":[]},{"id":"aed13d59.d33b6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1846.7168273925781,"y":706.8571395874023,"z":"ae41b0e9.09ae2","wires":[["c78696a0.1c9918","2d7e5cc9.758c64","a1fe0884.e414e8"]]},{"id":"f7834d15.217b6","type":"comment","name":"Update VNFC restart status","info":"","comments":"","x":376.5739440917969,"y":1248.0000247955322,"z":"ae41b0e9.09ae2","wires":[]},{"id":"b0f68ecc.113e","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$vm[$vmIndex].status`\">\n","comments":"","outputs":1,"x":707.2881698608398,"y":457.99996185302734,"z":"ae41b0e9.09ae2","wires":[["d743b216.3511","a6315d8d.44126","3bfcb24a.fa473e"]]},{"id":"d743b216.3511","type":"other","name":"outcome_down","xml":"<outcome value='DOWN'>\n","comments":"","outputs":1,"x":975.5737915039062,"y":585.7142581939697,"z":"ae41b0e9.09ae2","wires":[["8ff4886b.b72338"]]},{"id":"7e312494.69dbec","type":"set","name":"set_mark_vm_restarted","xml":"<set>\n<parameter name=\"restartedServerList[$restartSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n","comments":"","x":1987.4308776855469,"y":766.1429386138916,"z":"ae41b0e9.09ae2","wires":[]},{"id":"72be6190.108dc","type":"set","name":"init","xml":"<set>\n<parameter name='restartFailedCount' value='0' />\n<parameter name='restartSkippedCount' value='0' />\n<parameter name='restartSuccessCount' value='0' />\n","comments":"","x":459.14527893066406,"y":342.2856693267822,"z":"ae41b0e9.09ae2","wires":[]},{"id":"ff29c3ed.900ee","type":"comment","name":"Health check restarted servers","info":"","comments":"","x":342.2881164550781,"y":819.999963760376,"z":"ae41b0e9.09ae2","wires":[]},{"id":"4b594278.ba7cac","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=\"`'Restart succeeded for the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":1961.4308776855469,"y":854.1428775787354,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"3c5daadb.8b49d6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1734.4309387207031,"y":799.1429080963135,"z":"ae41b0e9.09ae2","wires":[["4b594278.ba7cac","7e312494.69dbec","3908f3bc.3be64c"]]},{"id":"a6315d8d.44126","type":"other","name":"outcome_unknown","xml":"<outcome value='UNKNOWN'>\n","comments":"","outputs":1,"x":986.6428833007812,"y":522.2856693267822,"z":"ae41b0e9.09ae2","wires":[["8ff4886b.b72338"]]},{"id":"ba04eada.28e368","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 restart the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":1387.0715637207031,"y":531.5713729858398,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"8ff4886b.b72338","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1183.642822265625,"y":588.8570804595947,"z":"ae41b0e9.09ae2","wires":[["ba04eada.28e368","5a80da73.594524","239f297a.71d536"]]},{"id":"f72d65c7.04b878","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":301.5,"y":234.00002479553223,"z":"ae41b0e9.09ae2","wires":[["8f74d90e.2b6ca8","5bf4a4d7.86b44c","e5c61a50.5fd478","628f7207.6b94dc"]]},{"id":"8f74d90e.2b6ca8","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >","comments":"","outputs":1,"x":658.5,"y":214.00002479553223,"z":"ae41b0e9.09ae2","wires":[["c2e18a4b.2976a8"]]},{"id":"c2e18a4b.2976a8","type":"set","name":"set : health check input list","xml":"<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$vm[$i].url`\" />\n","comments":"","x":877.5000610351562,"y":213.99996376037598,"z":"ae41b0e9.09ae2","wires":[]},{"id":"5bf4a4d7.86b44c","type":"call","name":"call_vnfc_healthcheck_dg","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":693.8046875,"y":319.2333011627197,"z":"ae41b0e9.09ae2","wires":[["4139fead.003ea","f72b1721.a74a38","f4cc1b80.ecfd88"]]},{"id":"793be6bd.8ef148","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$vm[$vmIndex].status`\">\n","comments":"","outputs":1,"x":703.5,"y":718.9999713897705,"z":"ae41b0e9.09ae2","wires":[["ab80f920.4408b8"]]},{"id":"ab80f920.4408b8","type":"other","name":"outcome_up","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":958.0716552734375,"y":719.2856693267822,"z":"ae41b0e9.09ae2","wires":[["8ff4886b.b72338"]]},{"id":"2318f81f.7133f8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":699.5,"y":948.999963760376,"z":"ae41b0e9.09ae2","wires":[["7cccdfff.d92d3","80621325.2ca61","f5a17c54.48543","248ea7ff.fe9d18"]]},{"id":"7cccdfff.d92d3","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >","comments":"","outputs":1,"x":906.5,"y":926.999963760376,"z":"ae41b0e9.09ae2","wires":[["68eeb3e8.99f9ac"]]},{"id":"68eeb3e8.99f9ac","type":"set","name":"set : health check input list","xml":"<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$restartedServerList[$i].url`\" />\n","comments":"","x":1126.9444999694824,"y":927.1109943389893,"z":"ae41b0e9.09ae2","wires":[]},{"id":"80621325.2ca61","type":"call","name":"call_vnfc_healthcheck_dg","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":947.8046875,"y":1025.2332401275635,"z":"ae41b0e9.09ae2","wires":[["ad8e8d3.979a07","4d6bfe7.14324","30227c5f.41a2b4"]]},{"id":"f5a17c54.48543","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$restartSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n","comments":"","x":887.5,"y":975.999963760376,"z":"ae41b0e9.09ae2","wires":[]},{"id":"ad8e8d3.979a07","type":"outcome","name":"healthcheck_failed","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1211.5,"y":985.9999961853027,"z":"ae41b0e9.09ae2","wires":[["bead2929.f122e8"]]},{"id":"4d6bfe7.14324","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1183.0164947509766,"y":1038.3381748199463,"z":"ae41b0e9.09ae2","wires":[["67509b2d.7a3494"]]},{"id":"30227c5f.41a2b4","type":"outcome","name":"healthcheck_success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1220.75,"y":1148.5000247955322,"z":"ae41b0e9.09ae2","wires":[["ccdf433.6eb21c"]]},{"id":"ccdf433.6eb21c","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >","comments":"","outputs":1,"x":1022.5,"y":1240.999963760376,"z":"ae41b0e9.09ae2","wires":[["61a58ac8.9830e4"]]},{"id":"61a58ac8.9830e4","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$healthcheck.vm[$i].status`\">\n","comments":"","outputs":1,"x":1232.5,"y":1278.999963760376,"z":"ae41b0e9.09ae2","wires":[["7e3e3230.6dba1c","db1f7fae.3cb2f","bf70ffe6.d3a17"]]},{"id":"7e3e3230.6dba1c","type":"other","name":"outcome_up","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":1474.5000305175781,"y":1324.9999985694885,"z":"ae41b0e9.09ae2","wires":[["1652d018.e2aee"]]},{"id":"1652d018.e2aee","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1737.5,"y":1425.999963760376,"z":"ae41b0e9.09ae2","wires":[["1c064d7.3edc6b3","ba547465.f89908","8add556a.b92a78"]]},{"id":"1c064d7.3edc6b3","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":1994.5001068115234,"y":1533.5714511871338,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"ba547465.f89908","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":1983.5548553466797,"y":1476.0666618347168,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"8add556a.b92a78","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"RestartSuccessVMCount\" value=\"`$RestartSuccessVMCount + 1`\" />\n\n","comments":"","x":2006.5548553466797,"y":1426.0666618347168,"z":"ae41b0e9.09ae2","wires":[]},{"id":"bf70ffe6.d3a17","type":"other","name":"outcome_down","xml":"<outcome value='DOWN'>\n","comments":"","outputs":1,"x":1484.5000305175781,"y":1232.9999985694885,"z":"ae41b0e9.09ae2","wires":[["22071ff1.487f5"]]},{"id":"db1f7fae.3cb2f","type":"other","name":"outcome_unknown","xml":"<outcome value='UNKNOWN'>\n","comments":"","outputs":1,"x":1495.283447265625,"y":1279.142786026001,"z":"ae41b0e9.09ae2","wires":[["22071ff1.487f5"]]},{"id":"22071ff1.487f5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1731.21435546875,"y":1218.285608291626,"z":"ae41b0e9.09ae2","wires":[["d4d99d29.7a253","92aa83bf.6feed","f7e19e76.fbb7c","edeab88e.243dd8"]]},{"id":"d4d99d29.7a253","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Health check failed for the restarted server : ' + $restartedServerList[$i].url`\"/>\n","comments":"","x":1993.2144012451172,"y":1218.2856559753418,"z":"ae41b0e9.09ae2","wires":[]},{"id":"92aa83bf.6feed","type":"set","name":"increment healthCheck failed VM count","xml":"<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n","comments":"","x":2061.214401245117,"y":1267.2856559753418,"z":"ae41b0e9.09ae2","wires":[]},{"id":"f7e19e76.fbb7c","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":1968.1606903076172,"y":1315.8857536315918,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"edeab88e.243dd8","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":2009.0274658203125,"y":1364.0730838775635,"z":"ae41b0e9.09ae2","wires":[["de56e9e1.0fb738"]]},{"id":"146acfc4.db634","type":"set","name":"init","xml":"<set>\n<parameter name='healthCheckFailedCount' value='0' />\n","comments":"","x":468.5000305175781,"y":867.999963760376,"z":"ae41b0e9.09ae2","wires":[]},{"id":"248ea7ff.fe9d18","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 health check the restarted servers of the VNFC\"/>\n","comments":"","outputs":1,"x":909.4097290039062,"y":878.3809452056885,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"3bfcb24a.fa473e","type":"other","name":"outcome_failure","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":982.5,"y":457.999963760376,"z":"ae41b0e9.09ae2","wires":[["afe6d608.6433a8"]]},{"id":"f2029c3c.86a2f","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Error occurred during pre-health check : ' + $vm[$vmIndex].url + '. Hence skipping its restart.'`\"/>","comments":"","x":1763.5,"y":370.9999942779541,"z":"ae41b0e9.09ae2","wires":[]},{"id":"afe6d608.6433a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1373.833251953125,"y":456.9999942779541,"z":"ae41b0e9.09ae2","wires":[["f2029c3c.86a2f","bc689a04.21c6e8","77824ab1.d42474","c92c539c.fc047"]]},{"id":"bc689a04.21c6e8","type":"set","name":"set_mark_vm_skipped","xml":"<set>\n<parameter name=\"restartSkippedCount\" value=\"`$restartSkippedCount + 1`\" />\n","comments":"","x":1777.5,"y":417.9999942779541,"z":"ae41b0e9.09ae2","wires":[]},{"id":"4139fead.003ea","type":"outcome","name":"healthcheck_failed","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1052.5,"y":340.999963760376,"z":"ae41b0e9.09ae2","wires":[["d5d15505.317458"]]},{"id":"f72b1721.a74a38","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1031.0164794921875,"y":395.3381290435791,"z":"ae41b0e9.09ae2","wires":[["8a1531f1.c2158"]]},{"id":"f4cc1b80.ecfd88","type":"outcome","name":"healthcheck_success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1048.97216796875,"y":277.5000247955322,"z":"ae41b0e9.09ae2","wires":[["4c08ade6.fe4dd4"]]},{"id":"e5c61a50.5fd478","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$vmCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"false\"/>\n","comments":"","x":643.5,"y":262.999963760376,"z":"ae41b0e9.09ae2","wires":[]},{"id":"67509b2d.7a3494","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1429.5,"y":1038.999963760376,"z":"ae41b0e9.09ae2","wires":[["cbd3bc29.1cecd","15a249d1.cb3bc6","8fd2ec2e.de8f1","cfc2f0d9.4cf62"]]},{"id":"cfc2f0d9.4cf62","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":1704.166748046875,"y":1039.999948501587,"z":"ae41b0e9.09ae2","wires":[]},{"id":"8fd2ec2e.de8f1","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":1675.6329345703125,"y":1085.8125858306885,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"cbd3bc29.1cecd","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":1714.5001525878906,"y":1129.999963760376,"z":"ae41b0e9.09ae2","wires":[["de56e9e1.0fb738"]]},{"id":"15a249d1.cb3bc6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1684.2607421875,"y":1175.187952041626,"z":"ae41b0e9.09ae2","wires":[]},{"id":"bead2929.f122e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1433.5,"y":985.999963760376,"z":"ae41b0e9.09ae2","wires":[["207fed09.9a8492","8fd2ec2e.de8f1","cbd3bc29.1cecd","15a249d1.cb3bc6"]]},{"id":"207fed09.9a8492","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"Error occurred during post-health check of the restarted servers\"/>","comments":"","x":1700.5,"y":984.999963760376,"z":"ae41b0e9.09ae2","wires":[]},{"id":"d5d15505.317458","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1397.5,"y":344.999963760376,"z":"ae41b0e9.09ae2","wires":[["2c8c1b1d.016d24","77824ab1.d42474","c92c539c.fc047","428cb220.cb137c"]]},{"id":"8a1531f1.c2158","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1387.5,"y":400.999963760376,"z":"ae41b0e9.09ae2","wires":[["c92c539c.fc047","428cb220.cb137c","77824ab1.d42474","fd9d4346.08f21"]]},{"id":"2c8c1b1d.016d24","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"Error occurred during pre-health check\"/>","comments":"","x":1756.5,"y":269.999963760376,"z":"ae41b0e9.09ae2","wires":[]},{"id":"fd9d4346.08f21","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":1760.166748046875,"y":321.9999485015869,"z":"ae41b0e9.09ae2","wires":[]},{"id":"77824ab1.d42474","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":1734.6329345703125,"y":462.8125858306885,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"c92c539c.fc047","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":1771.5001220703125,"y":510.999963760376,"z":"ae41b0e9.09ae2","wires":[["de56e9e1.0fb738"]]},{"id":"428cb220.cb137c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1746.2607421875,"y":559.187952041626,"z":"ae41b0e9.09ae2","wires":[]},{"id":"860a3ff7.f7ce8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":296.5,"y":360.999963760376,"z":"ae41b0e9.09ae2","wires":[["72be6190.108dc","4019eb71.f46704","45276a62.7c92c4"]]},{"id":"2e70b639.278d4a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":303.5,"y":662.999963760376,"z":"ae41b0e9.09ae2","wires":[["ccd05e9a.19417","3fc5910d.6ff2ae"]]},{"id":"8c13cfcc.6b30e","type":"comment","name":"Health check servers","info":"","comments":"","x":340.5000305175781,"y":194.99996376037598,"z":"ae41b0e9.09ae2","wires":[]},{"id":"628f7207.6b94dc","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 health check the servers of the VNFC before restarting them.\"/>\n","comments":"","outputs":1,"x":665.611083984375,"y":160.88884925842285,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"3908f3bc.3be64c","type":"set","name":"increment_restarted_vm_count","xml":"<set>\n<parameter name='restartSuccessCount' value='`$restartSuccessCount+1`' />\n","comments":"","x":2014.1769714355469,"y":812.7777652740479,"z":"ae41b0e9.09ae2","wires":[]},{"id":"76ce77bd.4cacc8","type":"switchNode","name":"switch : restarted server > 0","xml":"<switch test='`$restartSuccessCount > 0`'>\n","comments":"","outputs":1,"x":347.2881164550781,"y":948.999963760376,"z":"ae41b0e9.09ae2","wires":[["9cfcf21e.faba1","c7044ad3.bc0ca8"]]},{"id":"c7044ad3.bc0ca8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":544.0381469726562,"y":948.7500858306885,"z":"ae41b0e9.09ae2","wires":[["2318f81f.7133f8"]]},{"id":"9cfcf21e.faba1","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":542.5381164550781,"y":998.7500247955322,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"ce24660a.70bd38","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":304.2881164550781,"y":867.999963760376,"z":"ae41b0e9.09ae2","wires":[["76ce77bd.4cacc8","146acfc4.db634"]]},{"id":"5a80da73.594524","type":"call","name":"Restart","xml":"<call module='APPC' rpc='Restart_VM' mode='sync' >\n","comments":"","outputs":1,"x":1370.7325744628906,"y":655.999963760376,"z":"ae41b0e9.09ae2","wires":[["74b788b3.2be2f8","c833ddce.53e9a","f8a530a5.dc002"]]},{"id":"239f297a.71d536","type":"set","name":"set restart parameters","xml":"<set>\n<parameter name=\"restart-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name=\"application-node-name\" value=\"`$vm[$vmIndex].node-name`\" />\n<parameter name=\"application-status\" value=\"`$vm[$vmIndex].status`\" />\n<parameter name='restartRetryCount' value='3'/>\n","comments":"","x":1416.7325744628906,"y":590.0000247955322,"z":"ae41b0e9.09ae2","wires":[]},{"id":"f8a530a5.dc002","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1618.0659484863281,"y":636.9999618530273,"z":"ae41b0e9.09ae2","wires":[["a7ed0995.4f2518"]]},{"id":"a7ed0995.4f2518","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1837.0659484863281,"y":636.9999618530273,"z":"ae41b0e9.09ae2","wires":[["78403997.4e6fc8","c78696a0.1c9918","2d7e5cc9.758c64","a1fe0884.e414e8"]]},{"id":"78403997.4e6fc8","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'DG to execute Restart action not found for VM: ' + $vm[$vmIndex].url`\"/>\n","comments":"","x":2131.637237548828,"y":515.7141952514648,"z":"ae41b0e9.09ae2","wires":[]},{"id":"de56e9e1.0fb738","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2612.803741455078,"y":967.515588760376,"z":"ae41b0e9.09ae2","wires":[["3a327862.942808"]]},{"id":"3a327862.942808","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":3142.303741455078,"y":958.515588760376,"z":"ae41b0e9.09ae2","wires":[["d990af07.e6417"]]},{"id":"d990af07.e6417","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3396.589141845703,"y":965.944299697876,"z":"ae41b0e9.09ae2","wires":[[]]},{"id":"4c08ade6.fe4dd4","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >","comments":"","outputs":1,"x":1261.8436279296875,"y":278.88884925842285,"z":"ae41b0e9.09ae2","wires":[["5866543a.6d051c"]]},{"id":"5866543a.6d051c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1456.544921875,"y":278.24883460998535,"z":"ae41b0e9.09ae2","wires":[["5cdd015c.a3958"]]},{"id":"5cdd015c.a3958","type":"set","name":"set VM params","xml":"<set>\n<parameter name=\"vm[$i].status\" value=\"`$healthcheck.vm[$i].status`\" />\n<parameter name=\"vm[$i].node-name\" value=\"`$healthcheck.vm[$i].nodeName`\" />\n","comments":"","x":1697.544921875,"y":199.24883460998535,"z":"ae41b0e9.09ae2","wires":[]}]
+[
+ {
+ "id": "cd34f9f0.1d9868",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 127.28811645507812,
+ "y": 20.999963760375977,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "f6b6354f.0ddf38"
+ ]
+ ]
+ },
+ {
+ "id": "f6b6354f.0ddf38",
+ "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.28817749023438,
+ "y": 70.56663703918457,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "8c403f40.821b5"
+ ]
+ ]
+ },
+ {
+ "id": "8c403f40.821b5",
+ "type": "method",
+ "name": "Restart-Active-Active_VNFC",
+ "xml": "<method rpc='Restart-Active-Active_VNFC' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 387.03822326660156,
+ "y": 71.81661415100098,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "ed7c3c6d.a984c"
+ ]
+ ]
+ },
+ {
+ "id": "45276a62.7c92c4",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"vmIndex\" start=\"0\" end=\"`$vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 480.28807067871094,
+ "y": 455.0000247955322,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "b0f68ecc.113e"
+ ]
+ ]
+ },
+ {
+ "id": "ed7c3c6d.a984c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 75.5,
+ "y": 222.75000190734863,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "5b372d0b.047e04",
+ "f72d65c7.04b878",
+ "860a3ff7.f7ce8",
+ "2e70b639.278d4a",
+ "ce24660a.70bd38"
+ ]
+ ]
+ },
+ {
+ "id": "3fc5910d.6ff2ae",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"vmIndex\" start=\"0\" end=\"`$vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 468.3783874511719,
+ "y": 719.5356998443604,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "793be6bd.8ef148"
+ ]
+ ]
+ },
+ {
+ "id": "74b788b3.2be2f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1629.9331359863281,
+ "y": 707.9285507202148,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "aed13d59.d33b6"
+ ]
+ ]
+ },
+ {
+ "id": "e546a2e8.8d275",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 804.8614959716797,
+ "y": 1335.7500252723694,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "b8f2e995.5da048",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 805.0924224853516,
+ "y": 1275.1499276161194,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "5b372d0b.047e04",
+ "type": "switchNode",
+ "name": "switch_server_restart_success",
+ "xml": "<switch test='`$restartFailedCount == 0 and $restartSkippedCount == 0 and $healthCheckFailedCount == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 371.34271240234375,
+ "y": 1302.4832401275635,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "a64987ff.3681c8",
+ "369d7bad.6115d4"
+ ]
+ ]
+ },
+ {
+ "id": "a64987ff.3681c8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 594.5927124023438,
+ "y": 1335.2332711219788,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "e546a2e8.8d275"
+ ]
+ ]
+ },
+ {
+ "id": "369d7bad.6115d4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 596.0927429199219,
+ "y": 1275.233332157135,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "b8f2e995.5da048"
+ ]
+ ]
+ },
+ {
+ "id": "c833ddce.53e9a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1556.2881164550781,
+ "y": 796.9999618530273,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "3c5daadb.8b49d6"
+ ]
+ ]
+ },
+ {
+ "id": "c78696a0.1c9918",
+ "type": "set",
+ "name": "set_mark_vm_failed",
+ "xml": "<set>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 2186.7174072265625,
+ "y": 618.7618103027344,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "2d7e5cc9.758c64",
+ "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": 2156.717803955078,
+ "y": 684.7618637084961,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a1fe0884.e414e8",
+ "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": 2183.584560394287,
+ "y": 727.9492416381836,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "de56e9e1.0fb738"
+ ]
+ ]
+ },
+ {
+ "id": "4019eb71.f46704",
+ "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 restart DOWN servers\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 497.2881317138672,
+ "y": 385.6665897369385,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ccd05e9a.19417",
+ "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 restart UP servers\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 471.28812408447266,
+ "y": 662.9166669845581,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4dbab17.c93485",
+ "type": "comment",
+ "name": "Restart Up servers",
+ "info": "",
+ "comments": "",
+ "x": 319.2881164550781,
+ "y": 618.6666507720947,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "45176027.28e49",
+ "type": "comment",
+ "name": "Restart Down servers",
+ "info": "",
+ "comments": "",
+ "x": 311.0381164550781,
+ "y": 322.1666202545166,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "aed13d59.d33b6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1846.7168273925781,
+ "y": 706.8571395874023,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "c78696a0.1c9918",
+ "2d7e5cc9.758c64",
+ "a1fe0884.e414e8"
+ ]
+ ]
+ },
+ {
+ "id": "f7834d15.217b6",
+ "type": "comment",
+ "name": "Update VNFC restart status",
+ "info": "",
+ "comments": "",
+ "x": 376.5739440917969,
+ "y": 1248.0000247955322,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "b0f68ecc.113e",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$vm[$vmIndex].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 707.2881698608398,
+ "y": 457.99996185302734,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "d743b216.3511",
+ "a6315d8d.44126",
+ "3bfcb24a.fa473e"
+ ]
+ ]
+ },
+ {
+ "id": "d743b216.3511",
+ "type": "other",
+ "name": "outcome_down",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 975.5737915039062,
+ "y": 585.7142581939697,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "8ff4886b.b72338"
+ ]
+ ]
+ },
+ {
+ "id": "7e312494.69dbec",
+ "type": "set",
+ "name": "set_mark_vm_restarted",
+ "xml": "<set>\n<parameter name=\"restartedServerList[$restartSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n",
+ "comments": "",
+ "x": 1987.4308776855469,
+ "y": 766.1429386138916,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "72be6190.108dc",
+ "type": "set",
+ "name": "init",
+ "xml": "<set>\n<parameter name='restartFailedCount' value='0' />\n<parameter name='restartSkippedCount' value='0' />\n<parameter name='restartSuccessCount' value='0' />\n",
+ "comments": "",
+ "x": 459.14527893066406,
+ "y": 342.2856693267822,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "ff29c3ed.900ee",
+ "type": "comment",
+ "name": "Health check restarted servers",
+ "info": "",
+ "comments": "",
+ "x": 342.2881164550781,
+ "y": 819.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "4b594278.ba7cac",
+ "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=\"`'Restart succeeded for the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1961.4308776855469,
+ "y": 854.1428775787354,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3c5daadb.8b49d6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1734.4309387207031,
+ "y": 799.1429080963135,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "4b594278.ba7cac",
+ "7e312494.69dbec",
+ "3908f3bc.3be64c"
+ ]
+ ]
+ },
+ {
+ "id": "a6315d8d.44126",
+ "type": "other",
+ "name": "outcome_unknown",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.6428833007812,
+ "y": 522.2856693267822,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "8ff4886b.b72338"
+ ]
+ ]
+ },
+ {
+ "id": "ba04eada.28e368",
+ "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 restart the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1387.0715637207031,
+ "y": 531.5713729858398,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8ff4886b.b72338",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1183.642822265625,
+ "y": 588.8570804595947,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "ba04eada.28e368",
+ "5a80da73.594524",
+ "239f297a.71d536"
+ ]
+ ]
+ },
+ {
+ "id": "f72d65c7.04b878",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 301.5,
+ "y": 234.00002479553223,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "8f74d90e.2b6ca8",
+ "5bf4a4d7.86b44c",
+ "e5c61a50.5fd478",
+ "628f7207.6b94dc"
+ ]
+ ]
+ },
+ {
+ "id": "8f74d90e.2b6ca8",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 658.5,
+ "y": 214.00002479553223,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "c2e18a4b.2976a8"
+ ]
+ ]
+ },
+ {
+ "id": "c2e18a4b.2976a8",
+ "type": "set",
+ "name": "set : health check input list",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$vm[$i].url`\" />\n",
+ "comments": "",
+ "x": 877.5000610351562,
+ "y": 213.99996376037598,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "5bf4a4d7.86b44c",
+ "type": "call",
+ "name": "call_vnfc_healthcheck_dg",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 693.8046875,
+ "y": 319.2333011627197,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "4139fead.003ea",
+ "f72b1721.a74a38",
+ "f4cc1b80.ecfd88"
+ ]
+ ]
+ },
+ {
+ "id": "793be6bd.8ef148",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$vm[$vmIndex].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 703.5,
+ "y": 718.9999713897705,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "ab80f920.4408b8"
+ ]
+ ]
+ },
+ {
+ "id": "ab80f920.4408b8",
+ "type": "other",
+ "name": "outcome_up",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 958.0716552734375,
+ "y": 719.2856693267822,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "8ff4886b.b72338"
+ ]
+ ]
+ },
+ {
+ "id": "2318f81f.7133f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 699.5,
+ "y": 948.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "7cccdfff.d92d3",
+ "80621325.2ca61",
+ "f5a17c54.48543",
+ "248ea7ff.fe9d18"
+ ]
+ ]
+ },
+ {
+ "id": "7cccdfff.d92d3",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 906.5,
+ "y": 926.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "68eeb3e8.99f9ac"
+ ]
+ ]
+ },
+ {
+ "id": "68eeb3e8.99f9ac",
+ "type": "set",
+ "name": "set : health check input list",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$restartedServerList[$i].url`\" />\n",
+ "comments": "",
+ "x": 1126.9444999694824,
+ "y": 927.1109943389893,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "80621325.2ca61",
+ "type": "call",
+ "name": "call_vnfc_healthcheck_dg",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 947.8046875,
+ "y": 1025.2332401275635,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "ad8e8d3.979a07",
+ "4d6bfe7.14324",
+ "30227c5f.41a2b4"
+ ]
+ ]
+ },
+ {
+ "id": "f5a17c54.48543",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$restartSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n",
+ "comments": "",
+ "x": 887.5,
+ "y": 975.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "ad8e8d3.979a07",
+ "type": "outcome",
+ "name": "healthcheck_failed",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1211.5,
+ "y": 985.9999961853027,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "bead2929.f122e8"
+ ]
+ ]
+ },
+ {
+ "id": "4d6bfe7.14324",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1183.0164947509766,
+ "y": 1038.3381748199463,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "67509b2d.7a3494"
+ ]
+ ]
+ },
+ {
+ "id": "30227c5f.41a2b4",
+ "type": "outcome",
+ "name": "healthcheck_success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1220.75,
+ "y": 1148.5000247955322,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "ccdf433.6eb21c"
+ ]
+ ]
+ },
+ {
+ "id": "ccdf433.6eb21c",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1022.5,
+ "y": 1240.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "61a58ac8.9830e4"
+ ]
+ ]
+ },
+ {
+ "id": "61a58ac8.9830e4",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$healthcheck.vm[$i].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1232.5,
+ "y": 1278.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "7e3e3230.6dba1c",
+ "db1f7fae.3cb2f",
+ "bf70ffe6.d3a17"
+ ]
+ ]
+ },
+ {
+ "id": "7e3e3230.6dba1c",
+ "type": "other",
+ "name": "outcome_up",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1474.5000305175781,
+ "y": 1324.9999985694885,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "1652d018.e2aee"
+ ]
+ ]
+ },
+ {
+ "id": "1652d018.e2aee",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1737.5,
+ "y": 1425.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "1c064d7.3edc6b3",
+ "ba547465.f89908",
+ "8add556a.b92a78"
+ ]
+ ]
+ },
+ {
+ "id": "1c064d7.3edc6b3",
+ "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": 1994.5001068115234,
+ "y": 1533.5714511871338,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ba547465.f89908",
+ "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": 1983.5548553466797,
+ "y": 1476.0666618347168,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8add556a.b92a78",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"RestartSuccessVMCount\" value=\"`$RestartSuccessVMCount + 1`\" />\n\n",
+ "comments": "",
+ "x": 2006.5548553466797,
+ "y": 1426.0666618347168,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "bf70ffe6.d3a17",
+ "type": "other",
+ "name": "outcome_down",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1484.5000305175781,
+ "y": 1232.9999985694885,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "22071ff1.487f5"
+ ]
+ ]
+ },
+ {
+ "id": "db1f7fae.3cb2f",
+ "type": "other",
+ "name": "outcome_unknown",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1495.283447265625,
+ "y": 1279.142786026001,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "22071ff1.487f5"
+ ]
+ ]
+ },
+ {
+ "id": "22071ff1.487f5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1731.21435546875,
+ "y": 1218.285608291626,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "d4d99d29.7a253",
+ "92aa83bf.6feed",
+ "f7e19e76.fbb7c",
+ "edeab88e.243dd8"
+ ]
+ ]
+ },
+ {
+ "id": "d4d99d29.7a253",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Health check failed for the restarted server : ' + $restartedServerList[$i].url`\"/>\n",
+ "comments": "",
+ "x": 1993.2144012451172,
+ "y": 1218.2856559753418,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "92aa83bf.6feed",
+ "type": "set",
+ "name": "increment healthCheck failed VM count",
+ "xml": "<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 2061.214401245117,
+ "y": 1267.2856559753418,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "f7e19e76.fbb7c",
+ "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": 1968.1606903076172,
+ "y": 1315.8857536315918,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "edeab88e.243dd8",
+ "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": 2009.0274658203125,
+ "y": 1364.0730838775635,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "de56e9e1.0fb738"
+ ]
+ ]
+ },
+ {
+ "id": "146acfc4.db634",
+ "type": "set",
+ "name": "init",
+ "xml": "<set>\n<parameter name='healthCheckFailedCount' value='0' />\n",
+ "comments": "",
+ "x": 468.5000305175781,
+ "y": 867.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "248ea7ff.fe9d18",
+ "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 health check the restarted servers of the VNFC\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 909.4097290039062,
+ "y": 878.3809452056885,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3bfcb24a.fa473e",
+ "type": "other",
+ "name": "outcome_failure",
+ "xml": "<outcome value='FAILURE'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 982.5,
+ "y": 457.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "afe6d608.6433a8"
+ ]
+ ]
+ },
+ {
+ "id": "f2029c3c.86a2f",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Error occurred during pre-health check : ' + $vm[$vmIndex].url + '. Hence skipping its restart.'`\"/>",
+ "comments": "",
+ "x": 1763.5,
+ "y": 370.9999942779541,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "afe6d608.6433a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1373.833251953125,
+ "y": 456.9999942779541,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "f2029c3c.86a2f",
+ "bc689a04.21c6e8",
+ "77824ab1.d42474",
+ "c92c539c.fc047"
+ ]
+ ]
+ },
+ {
+ "id": "bc689a04.21c6e8",
+ "type": "set",
+ "name": "set_mark_vm_skipped",
+ "xml": "<set>\n<parameter name=\"restartSkippedCount\" value=\"`$restartSkippedCount + 1`\" />\n",
+ "comments": "",
+ "x": 1777.5,
+ "y": 417.9999942779541,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "4139fead.003ea",
+ "type": "outcome",
+ "name": "healthcheck_failed",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1052.5,
+ "y": 340.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "d5d15505.317458"
+ ]
+ ]
+ },
+ {
+ "id": "f72b1721.a74a38",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1031.0164794921875,
+ "y": 395.3381290435791,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "8a1531f1.c2158"
+ ]
+ ]
+ },
+ {
+ "id": "f4cc1b80.ecfd88",
+ "type": "outcome",
+ "name": "healthcheck_success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1048.97216796875,
+ "y": 277.5000247955322,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "4c08ade6.fe4dd4"
+ ]
+ ]
+ },
+ {
+ "id": "e5c61a50.5fd478",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$vmCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"false\"/>\n",
+ "comments": "",
+ "x": 643.5,
+ "y": 262.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "67509b2d.7a3494",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1429.5,
+ "y": 1038.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "cbd3bc29.1cecd",
+ "15a249d1.cb3bc6",
+ "8fd2ec2e.de8f1",
+ "cfc2f0d9.4cf62"
+ ]
+ ]
+ },
+ {
+ "id": "cfc2f0d9.4cf62",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 1704.166748046875,
+ "y": 1039.999948501587,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "8fd2ec2e.de8f1",
+ "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": 1675.6329345703125,
+ "y": 1085.8125858306885,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cbd3bc29.1cecd",
+ "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": 1714.5001525878906,
+ "y": 1129.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "de56e9e1.0fb738"
+ ]
+ ]
+ },
+ {
+ "id": "15a249d1.cb3bc6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1684.2607421875,
+ "y": 1175.187952041626,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "bead2929.f122e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1433.5,
+ "y": 985.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "207fed09.9a8492",
+ "8fd2ec2e.de8f1",
+ "cbd3bc29.1cecd",
+ "15a249d1.cb3bc6"
+ ]
+ ]
+ },
+ {
+ "id": "207fed09.9a8492",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"Error occurred during post-health check of the restarted servers\"/>",
+ "comments": "",
+ "x": 1700.5,
+ "y": 984.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "d5d15505.317458",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1397.5,
+ "y": 344.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "2c8c1b1d.016d24",
+ "77824ab1.d42474",
+ "c92c539c.fc047",
+ "428cb220.cb137c"
+ ]
+ ]
+ },
+ {
+ "id": "8a1531f1.c2158",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1387.5,
+ "y": 400.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "c92c539c.fc047",
+ "428cb220.cb137c",
+ "77824ab1.d42474",
+ "fd9d4346.08f21"
+ ]
+ ]
+ },
+ {
+ "id": "2c8c1b1d.016d24",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"Error occurred during pre-health check\"/>",
+ "comments": "",
+ "x": 1756.5,
+ "y": 269.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "fd9d4346.08f21",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 1760.166748046875,
+ "y": 321.9999485015869,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "77824ab1.d42474",
+ "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": 1734.6329345703125,
+ "y": 462.8125858306885,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c92c539c.fc047",
+ "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": 1771.5001220703125,
+ "y": 510.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "de56e9e1.0fb738"
+ ]
+ ]
+ },
+ {
+ "id": "428cb220.cb137c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1746.2607421875,
+ "y": 559.187952041626,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "860a3ff7.f7ce8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 296.5,
+ "y": 360.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "72be6190.108dc",
+ "4019eb71.f46704",
+ "45276a62.7c92c4"
+ ]
+ ]
+ },
+ {
+ "id": "2e70b639.278d4a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 303.5,
+ "y": 662.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "ccd05e9a.19417",
+ "3fc5910d.6ff2ae"
+ ]
+ ]
+ },
+ {
+ "id": "8c13cfcc.6b30e",
+ "type": "comment",
+ "name": "Health check servers",
+ "info": "",
+ "comments": "",
+ "x": 340.5000305175781,
+ "y": 194.99996376037598,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "628f7207.6b94dc",
+ "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 health check the servers of the VNFC before restarting them.\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 665.611083984375,
+ "y": 160.88884925842285,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3908f3bc.3be64c",
+ "type": "set",
+ "name": "increment_restarted_vm_count",
+ "xml": "<set>\n<parameter name='restartSuccessCount' value='`$restartSuccessCount+1`' />\n",
+ "comments": "",
+ "x": 2014.1769714355469,
+ "y": 812.7777652740479,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "76ce77bd.4cacc8",
+ "type": "switchNode",
+ "name": "switch : restarted server > 0",
+ "xml": "<switch test='`$restartSuccessCount > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 347.2881164550781,
+ "y": 948.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "9cfcf21e.faba1",
+ "c7044ad3.bc0ca8"
+ ]
+ ]
+ },
+ {
+ "id": "c7044ad3.bc0ca8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 544.0381469726562,
+ "y": 948.7500858306885,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "2318f81f.7133f8"
+ ]
+ ]
+ },
+ {
+ "id": "9cfcf21e.faba1",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 542.5381164550781,
+ "y": 998.7500247955322,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ce24660a.70bd38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 304.2881164550781,
+ "y": 867.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "76ce77bd.4cacc8",
+ "146acfc4.db634"
+ ]
+ ]
+ },
+ {
+ "id": "5a80da73.594524",
+ "type": "call",
+ "name": "Restart",
+ "xml": "<call module='APPC' rpc='Restart_VM' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1370.7325744628906,
+ "y": 655.999963760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "74b788b3.2be2f8",
+ "c833ddce.53e9a",
+ "f8a530a5.dc002"
+ ]
+ ]
+ },
+ {
+ "id": "239f297a.71d536",
+ "type": "set",
+ "name": "set restart parameters",
+ "xml": "<set>\n<parameter name=\"restart-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name=\"application-node-name\" value=\"`$vm[$vmIndex].node-name`\" />\n<parameter name=\"application-status\" value=\"`$vm[$vmIndex].status`\" />\n<parameter name='restartRetryCount' value='3'/>\n",
+ "comments": "",
+ "x": 1416.7325744628906,
+ "y": 590.0000247955322,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "f8a530a5.dc002",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1618.0659484863281,
+ "y": 636.9999618530273,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "a7ed0995.4f2518"
+ ]
+ ]
+ },
+ {
+ "id": "a7ed0995.4f2518",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1837.0659484863281,
+ "y": 636.9999618530273,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "78403997.4e6fc8",
+ "c78696a0.1c9918",
+ "2d7e5cc9.758c64",
+ "a1fe0884.e414e8"
+ ]
+ ]
+ },
+ {
+ "id": "78403997.4e6fc8",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'DG to execute Restart action not found for VM: ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "x": 2131.637237548828,
+ "y": 515.7141952514648,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ },
+ {
+ "id": "de56e9e1.0fb738",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2612.803741455078,
+ "y": 967.515588760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "3a327862.942808"
+ ]
+ ]
+ },
+ {
+ "id": "3a327862.942808",
+ "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": 3142.303741455078,
+ "y": 958.515588760376,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "d990af07.e6417"
+ ]
+ ]
+ },
+ {
+ "id": "d990af07.e6417",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3396.589141845703,
+ "y": 965.944299697876,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4c08ade6.fe4dd4",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1261.8436279296875,
+ "y": 278.88884925842285,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "5866543a.6d051c"
+ ]
+ ]
+ },
+ {
+ "id": "5866543a.6d051c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1456.544921875,
+ "y": 278.24883460998535,
+ "z": "ae41b0e9.09ae2",
+ "wires": [
+ [
+ "5cdd015c.a3958"
+ ]
+ ]
+ },
+ {
+ "id": "5cdd015c.a3958",
+ "type": "set",
+ "name": "set VM params",
+ "xml": "<set>\n<parameter name=\"vm[$i].status\" value=\"`$healthcheck.vm[$i].status`\" />\n<parameter name=\"vm[$i].node-name\" value=\"`$healthcheck.vm[$i].nodeName`\" />\n",
+ "comments": "",
+ "x": 1697.544921875,
+ "y": 199.24883460998535,
+ "z": "ae41b0e9.09ae2",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Passive_VNFC.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Passive_VNFC.json
index 7065c3044..b7b919e3a 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Passive_VNFC.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart-Active-Passive_VNFC.json
@@ -1 +1,2908 @@
-[{"id":"565d7830.671f38","type":"dgstart","name":"DGSTART","outputs":1,"x":120,"y":46,"z":"3fd3b806.3e5988","wires":[["ac4eea18.913ab8"]]},{"id":"59101988.5e8918","type":"method","name":"Restart-Active-Passive_VNFC","xml":"<method rpc='Restart-Active-Passive_VNFC' mode='sync'>\n","comments":"","outputs":1,"x":140,"y":169,"z":"3fd3b806.3e5988","wires":[["794ec84e.03f458"]]},{"id":"ac4eea18.913ab8","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":301,"y":45,"z":"3fd3b806.3e5988","wires":[["59101988.5e8918"]]},{"id":"794ec84e.03f458","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":213.10713958740234,"y":1121.833251953125,"z":"3fd3b806.3e5988","wires":[["4be16fa8.af873","e7b3ea7a.c2c148","fcff96c4.ade008","1c612bb4.7e9b94","f4113929.049f68","c5cfc802.b4cf68","3a78a34c.56b16c","b35d1ce3.c179b","1ba5abd.58e3954","bbe6528e.9f013","6c87077e.9e46d8"]]},{"id":"1c67b9e.8d46346","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":782.4375,"y":246.1875,"z":"3fd3b806.3e5988","wires":[["49de287f.6f6438","83c8d474.49add8","dfe164aa.2d4e48"]]},{"id":"49de287f.6f6438","type":"for","name":"for_each_vm","xml":"<for index='i' start='0' end='`$vmCount`' >","comments":"","outputs":1,"x":956.9376068115234,"y":163.6875,"z":"3fd3b806.3e5988","wires":[["439a312b.1157c"]]},{"id":"dfe164aa.2d4e48","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$vmCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"false\"/>\n","comments":"","x":1000.6875152587891,"y":245.9373836517334,"z":"3fd3b806.3e5988","wires":[]},{"id":"83c8d474.49add8","type":"call","name":"call_vnfc_healthcheck_dg","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":962.7422485351562,"y":317.4207763671875,"z":"3fd3b806.3e5988","wires":[["14a8bba.80caa44","fd8d5af4.7df798","fff32611.8ae708"]]},{"id":"14a8bba.80caa44","type":"outcome","name":"healthcheck_failed","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1225.4375610351562,"y":264.9375,"z":"3fd3b806.3e5988","wires":[["ae67c815.dcdce8"]]},{"id":"fd8d5af4.7df798","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1200.9542846679688,"y":317.2757568359375,"z":"3fd3b806.3e5988","wires":[["fa98825d.3010c"]]},{"id":"fff32611.8ae708","type":"outcome","name":"healthcheck_success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1229.7233276367188,"y":368.7589111328125,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"98d9e8d0.be81a8","type":"comment","name":"Healthcheck VMs","info":"","comments":"","x":492.6597900390625,"y":199.29833984375,"z":"3fd3b806.3e5988","wires":[]},{"id":"439a312b.1157c","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$vm[$i].url`\" />\n","comments":"","x":1104.0765571594238,"y":162.71521377563477,"z":"3fd3b806.3e5988","wires":[]},{"id":"fa98825d.3010c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1581.8818969726562,"y":313.1596670150757,"z":"3fd3b806.3e5988","wires":[["4059468e.bea478","3662a5a.682225a","94c4b9c3.257ef8","2c062cf5.3f4d74"]]},{"id":"2c062cf5.3f4d74","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":1978.7986450195312,"y":247.65954399108887,"z":"3fd3b806.3e5988","wires":[]},{"id":"94c4b9c3.257ef8","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":1953.5149536132812,"y":320.72228813171387,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"4059468e.bea478","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":2043.3825073242188,"y":366.6596984863281,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"3662a5a.682225a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1959.3928833007812,"y":409.5977153778076,"z":"3fd3b806.3e5988","wires":[]},{"id":"ae67c815.dcdce8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1585.8818969726562,"y":260.1596670150757,"z":"3fd3b806.3e5988","wires":[["94c4b9c3.257ef8","4059468e.bea478","3662a5a.682225a"]]},{"id":"4be16fa8.af873","type":"switchNode","name":"switch_any_vm_to_healthcheck","xml":"<switch test='`$vmCount>=1`'>\n","comments":"","outputs":1,"x":507.96527099609375,"y":247.4375,"z":"3fd3b806.3e5988","wires":[["9613c9c6.03d988","584f2018.2bde8"]]},{"id":"9613c9c6.03d988","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":662.9652862548828,"y":181.43753147125244,"z":"3fd3b806.3e5988","wires":[["1c67b9e.8d46346"]]},{"id":"584f2018.2bde8","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":678.9652709960938,"y":343.4375,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"4724f50a.19007c","type":"execute","name":"Resolve_Check-Active_VNFC_vSCP","xml":"<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"IsActive\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"IsActiveDG\" />\n","comments":"","outputs":1,"x":1379.895980834961,"y":652.5207901000977,"z":"3fd3b806.3e5988","wires":[["1130e674.0489ea","2eb496e0.0cef8a","79cfc4c5.caf0ac"]]},{"id":"9cd35f9f.becbb","type":"call","name":"call_checkActive_DG","xml":"<call rpc='`$IsActiveDG.dg_name`' version='`$IsActiveDG.dg_version`' module='`$IsActiveDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":1750.6736450195312,"y":827.6320190429688,"z":"3fd3b806.3e5988","wires":[["f1fd8fe2.c9c05","fde23278.98f7d","fc061fd9.a985d"]]},{"id":"52572003.4e273","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"false","comments":"","outputs":1,"x":1709.7014770507812,"y":759.6875,"z":"3fd3b806.3e5988","wires":[["9cd35f9f.becbb"]]},{"id":"1130e674.0489ea","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1600.8959350585938,"y":704.5208129882812,"z":"3fd3b806.3e5988","wires":[["52572003.4e273"]]},{"id":"2eb496e0.0cef8a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1614.8958129882812,"y":607.5208129882812,"z":"3fd3b806.3e5988","wires":[["5c094025.a30ec"]]},{"id":"79cfc4c5.caf0ac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1625.8958740234375,"y":655.5208435058594,"z":"3fd3b806.3e5988","wires":[["be24d9c9.561338"]]},{"id":"5c094025.a30ec","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1796.1182250976562,"y":604.939697265625,"z":"3fd3b806.3e5988","wires":[["f306145d.fdc398","5c26451c.10c92c","2e7608a5.5732a8","d8d5bc0a.b708c"]]},{"id":"f306145d.fdc398","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'IsActive DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":2047.8960571289062,"y":540.5208129882812,"z":"3fd3b806.3e5988","wires":[]},{"id":"be24d9c9.561338","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1767.1182250976562,"y":656.4097900390625,"z":"3fd3b806.3e5988","wires":[["a229ed4e.0dcb6","5c26451c.10c92c","2e7608a5.5732a8","d8d5bc0a.b708c"]]},{"id":"a229ed4e.0dcb6","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Error while resolving IsActive DG for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":2062.1179809570312,"y":578.4097900390625,"z":"3fd3b806.3e5988","wires":[]},{"id":"5c26451c.10c92c","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":2084.6869506835938,"y":620.7096557617188,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"2e7608a5.5732a8","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":2203.5545043945312,"y":671.89697265625,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"d8d5bc0a.b708c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>","comments":"","x":2079.6736450195312,"y":719.8798217773438,"z":"3fd3b806.3e5988","wires":[]},{"id":"f27f6bc.1549998","type":"comment","name":"Check Active Passive Status","info":"","comments":"","x":1373.5347900390625,"y":615.4929504394531,"z":"3fd3b806.3e5988","wires":[]},{"id":"fde23278.98f7d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1946.2570190429688,"y":828.6876220703125,"z":"3fd3b806.3e5988","wires":[["211d3f71.d278e"]]},{"id":"211d3f71.d278e","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":2078.5066528320312,"y":828.076416015625,"z":"3fd3b806.3e5988","wires":[["57792db1.3c8d24","1f3a0577.6a147b","45ded8ec.fc9338"]]},{"id":"f1fd8fe2.c9c05","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1949.7850952148438,"y":771.1319580078125,"z":"3fd3b806.3e5988","wires":[["9bcb3092.a9072"]]},{"id":"9bcb3092.a9072","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2087.4519653320312,"y":770.7730712890625,"z":"3fd3b806.3e5988","wires":[["ab89d5f6.5f6638","57792db1.3c8d24","45ded8ec.fc9338","1f3a0577.6a147b"]]},{"id":"ab89d5f6.5f6638","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'IsActive DG not found for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":2306.0073852539062,"y":750.354248046875,"z":"3fd3b806.3e5988","wires":[]},{"id":"57792db1.3c8d24","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":2315.8960571289062,"y":793.0208740234375,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"45ded8ec.fc9338","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>","comments":"","x":2308.6738891601562,"y":886.6875610351562,"z":"3fd3b806.3e5988","wires":[]},{"id":"fc061fd9.a985d","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1949.3959350585938,"y":903.4931030273438,"z":"3fd3b806.3e5988","wires":[["a5bcdddf.bc981"]]},{"id":"a5bcdddf.bc981","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":2096.1179809570312,"y":903.85400390625,"z":"3fd3b806.3e5988","wires":[["d6962e57.fda47"]]},{"id":"d6962e57.fda47","type":"record","name":"Log success","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=\"Active/Passive check succeeded\"/>\n","comments":"","outputs":1,"x":2283.0901489257812,"y":937.742919921875,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"e7b3ea7a.c2c148","type":"execute","name":"executePreRestart","xml":"<execute plugin='com.att.appc.dg.vSCP.v3_5_5.smp.SMPDGPlugin' method='restartSequenceGenerator' >\n","comments":"","outputs":1,"x":700.8542175292969,"y":846.7710266113281,"z":"3fd3b806.3e5988","wires":[["ff4b13d7.8ff6a","6e82fb15.444774","96ac29bf.e4a348"]]},{"id":"e598a9ef.046f68","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >","comments":"","outputs":1,"x":873.5207977294922,"y":499.30663871765137,"z":"3fd3b806.3e5988","wires":[["794de1af.7fd7e"]]},{"id":"5ef368c3.4bd7b8","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$healthcheck.vm[$i].status`\">\n","comments":"","outputs":1,"x":1294.5206909179688,"y":498.8065776824951,"z":"3fd3b806.3e5988","wires":[["f2e22899.360288","433d325f.0e0b7c","21588e29.a3cc32"]]},{"id":"f2e22899.360288","type":"other","name":"outcome_up","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":1541.5206909179688,"y":541.3066387176514,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"21588e29.a3cc32","type":"other","name":"outcome_down","xml":"<outcome value='DOWN'>\n","comments":"","outputs":1,"x":1557.5206909179688,"y":451.30663871765137,"z":"3fd3b806.3e5988","wires":[["5950449e.d1cb4c"]]},{"id":"433d325f.0e0b7c","type":"other","name":"outcome_unknown","xml":"<outcome value='UNKNOWN'>\n","comments":"","outputs":1,"x":1559.3041381835938,"y":498.4493999481201,"z":"3fd3b806.3e5988","wires":[["5950449e.d1cb4c"]]},{"id":"5124c756.7348b8","type":"set","name":"set","xml":"<set>\n<parameter name=\"doCheckActive\" value=\"true\" />\n","comments":"","x":871.8689727783203,"y":435.59222412109375,"z":"3fd3b806.3e5988","wires":[]},{"id":"5950449e.d1cb4c","type":"set","name":"set_to_perform_checkActive","xml":"<set>\n<parameter name=\"doCheckActive\" value=\"false\" />\n","comments":"","x":1830.0833129882812,"y":470.3065776824951,"z":"3fd3b806.3e5988","wires":[]},{"id":"60571aaf.8d8604","type":"switchNode","name":"switch_Perform_check_active","xml":"<switch test='`$doCheckActive`'>\n","comments":"","outputs":1,"x":928.0833129882812,"y":652.7709045410156,"z":"3fd3b806.3e5988","wires":[["4b2bdd82.af31c4","36d8fdb0.8d2aa2"]]},{"id":"4b2bdd82.af31c4","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1157.3333740234375,"y":653.5208435058594,"z":"3fd3b806.3e5988","wires":[["4724f50a.19007c"]]},{"id":"6e82fb15.444774","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":971.6667175292969,"y":904.7709655761719,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"ff4b13d7.8ff6a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":948.1669464111328,"y":789.5208129882812,"z":"3fd3b806.3e5988","wires":[["6b9137e6.eeb0c8"]]},{"id":"3be108bc.20f958","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","comments":"","x":1368.2382507324219,"y":861.1994934082031,"z":"3fd3b806.3e5988","wires":[]},{"id":"30d0cd36.793752","type":"set","name":"set event message","xml":"<set>\n<parameter name='event-message' value='Pre-Restart Execution failed' />\n","comments":"","x":1387.9694519042969,"y":777.9878234863281,"z":"3fd3b806.3e5988","wires":[]},{"id":"691ca8da.821e88","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":1366.9694519042969,"y":815.9878234863281,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"1c612bb4.7e9b94","type":"for","name":"for_first_list","xml":"<for index='vmIndex' start='0' end='`$vmCount`' >\n","comments":"","outputs":1,"x":486.75013732910156,"y":1122.166748046875,"z":"3fd3b806.3e5988","wires":[["38e206a3.cc06fa"]]},{"id":"25ad81f2.75882e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1361.2500610351562,"y":1148.4169311523438,"z":"3fd3b806.3e5988","wires":[["3e050b23.00ef54"]]},{"id":"4d653382.a429ec","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1366.2501983642578,"y":1239.4169917106624,"z":"3fd3b806.3e5988","wires":[["fd9f91c4.d80c9"]]},{"id":"b35d1ce3.c179b","type":"switchNode","name":"switch_any_firstList_vm_restarted","xml":"<switch test='`$restartedFirstVMListCount>=1`'>\n","comments":"","outputs":1,"x":658.7777938842773,"y":1780.138671875,"z":"3fd3b806.3e5988","wires":[["c7ae14aa.457d88","2f4154b1.cffeac"]]},{"id":"c7ae14aa.457d88","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":903.5277938842773,"y":1864.1387939453125,"z":"3fd3b806.3e5988","wires":[["90e673f0.925cf"]]},{"id":"2f4154b1.cffeac","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":905.7777633666992,"y":1704.1387939453125,"z":"3fd3b806.3e5988","wires":[["4047d58d.27a18c"]]},{"id":"4047d58d.27a18c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1105.5278854370117,"y":1702.8887939453125,"z":"3fd3b806.3e5988","wires":[]},{"id":"b7d474af.5c9d58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1849.000087738037,"y":1919.555528640747,"z":"3fd3b806.3e5988","wires":[["1601f900.8eba77"]]},{"id":"48e8232b.a696ec","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1867.000087738037,"y":2039.4445667266846,"z":"3fd3b806.3e5988","wires":[["a762c339.2cf29"]]},{"id":"db44a408.35fa18","type":"set","name":"Mark VM failed","xml":"<set>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n","comments":"","x":1790.500015258789,"y":1061.1669917106624,"z":"3fd3b806.3e5988","wires":[]},{"id":"33b4c1af.2c1a5e","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":1783.679702758789,"y":1104.6076655387874,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"e4f324e3.458468","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":1818.7965240478516,"y":1151.5446772575374,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"3e050b23.00ef54","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1541.7501373291016,"y":1147.91686964035,"z":"3fd3b806.3e5988","wires":[["db44a408.35fa18","33b4c1af.2c1a5e","e4f324e3.458468"]]},{"id":"f44e0dc2.7f05c","type":"set","name":"Set event message and update counters","xml":"<set>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n","comments":"","x":2412.4722290039062,"y":1807.9716796875,"z":"3fd3b806.3e5988","wires":[]},{"id":"2761c6df.41b09a","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":2331.1519775390625,"y":1905.912133216858,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"bc22b70f.0c2028","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":2721.7694702148438,"y":1948.0997314453125,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"1601f900.8eba77","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2080.389019012451,"y":1922.388557434082,"z":"3fd3b806.3e5988","wires":[["f44e0dc2.7f05c","2761c6df.41b09a","bc22b70f.0c2028"]]},{"id":"98dcf986.aced38","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=\"`'Restart succeed for the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":1777.4445190429688,"y":1334.6119995117188,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"f4113929.049f68","type":"set","name":"Initialize_restartedFirstList_Count","xml":"<set>\n<parameter name='restartedFirstVMListCount' value='0' />\n\n","comments":"","x":692.1666870117188,"y":1264.0274658203125,"z":"3fd3b806.3e5988","wires":[]},{"id":"fcff96c4.ade008","type":"set","name":"Initialize_restart_parameters","xml":"<set>\n<parameter name='restartFailedCount' value='0' />\n<parameter name='restartSuccessCount' value='0' />","comments":"","x":709.7500915527344,"y":971.4163818359375,"z":"3fd3b806.3e5988","wires":[]},{"id":"bbe6528e.9f013","type":"switchNode","name":"If_any_restart_failed","xml":"<switch test='`$restartFailedCount>=1`'>\n","comments":"","outputs":1,"x":626.250078201294,"y":2505.583155632019,"z":"3fd3b806.3e5988","wires":[["2ac4791e.46f246","159116ac.51a699"]]},{"id":"2ac4791e.46f246","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":892.5556812286377,"y":2452.305316925049,"z":"3fd3b806.3e5988","wires":[["7a649831.9f1858"]]},{"id":"159116ac.51a699","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":899.750078201294,"y":2556.583148956299,"z":"3fd3b806.3e5988","wires":[["37709497.487aec"]]},{"id":"37709497.487aec","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":1123.000078201294,"y":2557.083148956299,"z":"3fd3b806.3e5988","wires":[]},{"id":"7a649831.9f1858","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1102.3056201934814,"y":2451.832904815674,"z":"3fd3b806.3e5988","wires":[]},{"id":"9c2d1d30.44395","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1107.7500610351562,"y":1380.6666259765625,"z":"3fd3b806.3e5988","wires":[["e32d3076.62496","9c6ca981.cf3198","9a0c3b86.dcc888"]]},{"id":"e32d3076.62496","type":"for","name":"for_each_vm","xml":"<for index='i' start='0' end='`$restartSuccessCount`' >","comments":"","outputs":1,"x":1339.2500610351562,"y":1382.4166259765625,"z":"3fd3b806.3e5988","wires":[["c4ab230a.95c29"]]},{"id":"c4ab230a.95c29","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$restartedServerList[$i].url`\" />\n","comments":"","x":1524.2500610351562,"y":1377.9166259765625,"z":"3fd3b806.3e5988","wires":[]},{"id":"9a0c3b86.dcc888","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$restartSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n","comments":"","x":1358.5000610351562,"y":1439.4166259765625,"z":"3fd3b806.3e5988","wires":[]},{"id":"9c6ca981.cf3198","type":"call","name":"call_vnfc_healthcheck_dg","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":1400.8048706054688,"y":1493.89990234375,"z":"3fd3b806.3e5988","wires":[["e30a91c0.1f657","d32c2422.06b3d8","d703536.35151b"]]},{"id":"e30a91c0.1f657","type":"outcome","name":"healthcheck_failed","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1711.2500610351562,"y":1495.4166259765625,"z":"3fd3b806.3e5988","wires":[["e2ffb1de.b124e"]]},{"id":"d32c2422.06b3d8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1706.7665405273438,"y":1554.7547607421875,"z":"3fd3b806.3e5988","wires":[["3298d778.916828"]]},{"id":"d703536.35151b","type":"outcome","name":"healthcheck_success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1687.5000610351562,"y":1623.1666259765625,"z":"3fd3b806.3e5988","wires":[["2bd9fac.f2e7606"]]},{"id":"2bd9fac.f2e7606","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >","comments":"","outputs":1,"x":1905.4168090820312,"y":1686.4166259765625,"z":"3fd3b806.3e5988","wires":[["c4c4885d.681c88"]]},{"id":"c4c4885d.681c88","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$healthcheck.vm[$i].status`\">\n","comments":"","outputs":1,"x":2161.5001831054688,"y":1693.9166259765625,"z":"3fd3b806.3e5988","wires":[["2e9fc35d.edaf5c","66adef5.39ab51","49abe035.4ef46"]]},{"id":"ef47ba9d.0acfa8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":992.9722766876221,"y":2186.916627883911,"z":"3fd3b806.3e5988","wires":[["f26ebaaf.f84c68","c45137da.947918","cb92c687.45d9b8"]]},{"id":"f26ebaaf.f84c68","type":"for","name":"for_each_vm","xml":"<for index='i' start='0' end='`$restartSuccessCount`' >","comments":"","outputs":1,"x":1166.222276687622,"y":2133.166626930237,"z":"3fd3b806.3e5988","wires":[["47769042.b3fd5"]]},{"id":"cb92c687.45d9b8","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$restartSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n","comments":"","x":1192.4722805023193,"y":2191.6665058135986,"z":"3fd3b806.3e5988","wires":[]},{"id":"c45137da.947918","type":"call","name":"call_vnfc_healthcheck_dg","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":1173.276964187622,"y":2258.1499042510986,"z":"3fd3b806.3e5988","wires":[["fbea3fd2.46312","c08ecaf2.836998","5bf097d5.7d4a38"]]},{"id":"fbea3fd2.46312","type":"outcome","name":"healthcheck_failed","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1432.4722805023193,"y":2197.666627883911,"z":"3fd3b806.3e5988","wires":[["7c565f0f.63661"]]},{"id":"c08ecaf2.836998","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1443.4889698028564,"y":2250.0048265457153,"z":"3fd3b806.3e5988","wires":[["21eda6fd.da801a"]]},{"id":"5bf097d5.7d4a38","type":"outcome","name":"healthcheck_success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1449.2223682403564,"y":2321.416569709778,"z":"3fd3b806.3e5988","wires":[["29bda719.f445f8"]]},{"id":"ed661fb6.7a7a3","type":"set","name":"set_mark_vm_restarted","xml":"<set>\n<parameter name=\"restartedServerList[$restartSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n","comments":"","x":1788.5276336669922,"y":1240.5278930664062,"z":"3fd3b806.3e5988","wires":[]},{"id":"3ee9ae0.e12b052","type":"set","name":"increment_restarted_vm_count","xml":"<set>\n<parameter name='restartSuccessCount' value='`$restartSuccessCount+1`' />\n","comments":"","x":1813.7740478515625,"y":1286.6627807617188,"z":"3fd3b806.3e5988","wires":[]},{"id":"fd9f91c4.d80c9","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1535.4167938232422,"y":1239.6115112304688,"z":"3fd3b806.3e5988","wires":[["98dcf986.aced38","ed661fb6.7a7a3","3ee9ae0.e12b052"]]},{"id":"3298d778.916828","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1890.1111450195312,"y":1553.4442138671875,"z":"3fd3b806.3e5988","wires":[["e42b2698.ff0c28","d6472f50.eeb0f","66766044.0bc98","f286d57a.a53198"]]},{"id":"f286d57a.a53198","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":2182.7781372070312,"y":1504.4442138671875,"z":"3fd3b806.3e5988","wires":[]},{"id":"66766044.0bc98","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":2180.2444458007812,"y":1546.2568359375,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"e42b2698.ff0c28","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":2203.1113891601562,"y":1588.4442138671875,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"d6472f50.eeb0f","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2176.6221313476562,"y":1630.3822021484375,"z":"3fd3b806.3e5988","wires":[]},{"id":"e2ffb1de.b124e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1922.1111450195312,"y":1495.4442138671875,"z":"3fd3b806.3e5988","wires":[["66766044.0bc98","e42b2698.ff0c28","d6472f50.eeb0f","7fe2609.cd44ea"]]},{"id":"7fe2609.cd44ea","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"Error occured during health check of the Restarted servers\"/>","comments":"","x":2182.3613891601562,"y":1459.4442138671875,"z":"3fd3b806.3e5988","wires":[]},{"id":"49abe035.4ef46","type":"other","name":"outcome_up","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":2390.7504272460938,"y":1749.7222900390625,"z":"3fd3b806.3e5988","wires":[["8ae3ec83.85715"]]},{"id":"8ae3ec83.85715","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2611.0006713867188,"y":1747.2222900390625,"z":"3fd3b806.3e5988","wires":[["1fc212be.5390ed","4a8cea9d.531f74","ae266efa.9b164"]]},{"id":"1fc212be.5390ed","type":"execute","name":"Report_Success","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />\n","comments":"","outputs":1,"x":2848.7504272460938,"y":1837.7939453125,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"4a8cea9d.531f74","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":2849.8053588867188,"y":1793.2889404296875,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"ae266efa.9b164","type":"set","name":"Set success message and update counters","xml":"<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restartedServerList[$i].url`\"/>\n<parameter name='restartedFirstVMListCount' value='`$restartedFirstVMListCount+1`' />\n<parameter name=\"RestartSuccessVMCount\" value=\"`$RestartSuccessVMCount + 1`\" />\n\n","comments":"","x":2923.8053588867188,"y":1748.2890625,"z":"3fd3b806.3e5988","wires":[]},{"id":"2e9fc35d.edaf5c","type":"other","name":"outcome_down","xml":"<outcome value='DOWN'>\n","comments":"","outputs":1,"x":2400.7501831054688,"y":1640.72216796875,"z":"3fd3b806.3e5988","wires":[["722f7db.ad64184"]]},{"id":"66adef5.39ab51","type":"other","name":"outcome_unknown","xml":"<outcome value='UNKNOWN'>\n","comments":"","outputs":1,"x":2414.5336303710938,"y":1696.8648681640625,"z":"3fd3b806.3e5988","wires":[["722f7db.ad64184"]]},{"id":"722f7db.ad64184","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2626.7147827148438,"y":1643.5078125,"z":"3fd3b806.3e5988","wires":[["2420dfd1.3d3f6","6aea1090.d7e6b","f6a19c69.5f799"]]},{"id":"2420dfd1.3d3f6","type":"set","name":"Set event message and update Counters","xml":"<set>\n<parameter name='event-message' value=\"`'Health check failed for the Restarted server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n","comments":"","x":2914.7147827148438,"y":1596.508056640625,"z":"3fd3b806.3e5988","wires":[]},{"id":"6aea1090.d7e6b","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":2842.6610717773438,"y":1643.1077880859375,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"f6a19c69.5f799","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":2858.5282592773438,"y":1685.2952880859375,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"202bd856.91c528","type":"comment","name":"Restart First List","info":"","comments":"","x":497.66676330566406,"y":1078.333251953125,"z":"3fd3b806.3e5988","wires":[]},{"id":"ded1e319.f55dd","type":"comment","name":"Healthcheck First List","info":"","comments":"","x":701.77783203125,"y":1379.9166259765625,"z":"3fd3b806.3e5988","wires":[]},{"id":"3676ee92.49abb2","type":"comment","name":"Restart Second List","info":"","comments":"","x":681.1111679077148,"y":1722.9163818359375,"z":"3fd3b806.3e5988","wires":[]},{"id":"72122241.50003c","type":"comment","name":"Healthcheck SecondList","info":"","comments":"","x":703.19455909729,"y":2140.027466773987,"z":"3fd3b806.3e5988","wires":[]},{"id":"e035a23b.7b864","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=\"`'Restart succeeded for the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":2313.083854675293,"y":2155.361406326294,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"58515fa3.8d588","type":"set","name":"set_mark_vm_restarted","xml":"<set>\n<parameter name=\"restartedServerList[$restartSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n","comments":"","x":2366.667251586914,"y":2062.777953624725,"z":"3fd3b806.3e5988","wires":[]},{"id":"a242df26.53c36","type":"set","name":"increment_restarted_vm_count","xml":"<set>\n<parameter name='restartSuccessCount' value='`$restartSuccessCount+1`' />\n","comments":"","x":2342.663101196289,"y":2105.4125971794124,"z":"3fd3b806.3e5988","wires":[]},{"id":"a762c339.2cf29","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2082.8056640625,"y":2106.1110653877254,"z":"3fd3b806.3e5988","wires":[["e035a23b.7b864","58515fa3.8d588","a242df26.53c36"]]},{"id":"47769042.b3fd5","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$restartedServerList[$i].url`\" />\n","comments":"","x":1429.8610744476318,"y":2136.6943378448486,"z":"3fd3b806.3e5988","wires":[]},{"id":"21eda6fd.da801a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1633.6666202545166,"y":2251.3887977600098,"z":"3fd3b806.3e5988","wires":[["11eddd5.8a0d223","1627b80.c24f648","448eea91.f58eb4","51d1e08a.45697"]]},{"id":"51d1e08a.45697","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":1892.8333759307861,"y":2237.888620376587,"z":"3fd3b806.3e5988","wires":[]},{"id":"448eea91.f58eb4","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":1908.2995624542236,"y":2300.451364517212,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"11eddd5.8a0d223","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":2569.1669311523438,"y":2206.8887939453125,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"1627b80.c24f648","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1907.9274921417236,"y":2366.0767879486084,"z":"3fd3b806.3e5988","wires":[]},{"id":"7c565f0f.63661","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1637.6666202545166,"y":2198.3887977600098,"z":"3fd3b806.3e5988","wires":[["448eea91.f58eb4","11eddd5.8a0d223","1627b80.c24f648","37b0d881.eecf48"]]},{"id":"37b0d881.eecf48","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"Error occured during health check of the restarted servers\"/>","comments":"","x":1926.1666278839111,"y":2167.888864517212,"z":"3fd3b806.3e5988","wires":[]},{"id":"29bda719.f445f8","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >","comments":"","outputs":1,"x":1421.611177444458,"y":2438.1107234954834,"z":"3fd3b806.3e5988","wires":[["1cf0221.15704de"]]},{"id":"1cf0221.15704de","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$healthcheck.vm[$i].status`\">\n","comments":"","outputs":1,"x":1641.2221240997314,"y":2440.9440364837646,"z":"3fd3b806.3e5988","wires":[["78917505.3d9e0c","309b8ddd.a96422","aaa07653.033a58"]]},{"id":"aaa07653.033a58","type":"other","name":"outcome_up","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":1986.9721698760986,"y":2570.749397277832,"z":"3fd3b806.3e5988","wires":[["f1e0d6b3.20cc08"]]},{"id":"f1e0d6b3.20cc08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2232.972291946411,"y":2571.749274253845,"z":"3fd3b806.3e5988","wires":[["34f66625.125b7a","3eee9a01.5d0826","3502f29e.fa060e"]]},{"id":"34f66625.125b7a","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":2558.9724254608154,"y":2643.82080745697,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"3eee9a01.5d0826","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":2553.027109146118,"y":2599.31592464447,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"3502f29e.fa060e","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"RestartSuccessVMCount\" value=\"`$RestartSuccessVMCount + 1`\" />\n","comments":"","x":2552.0271129608154,"y":2551.316167831421,"z":"3fd3b806.3e5988","wires":[]},{"id":"78917505.3d9e0c","type":"other","name":"outcome_down","xml":"<outcome value='DOWN'>\n","comments":"","outputs":1,"x":1990.9720478057861,"y":2439.749397277832,"z":"3fd3b806.3e5988","wires":[["a5c41de1.d7dfd"]]},{"id":"309b8ddd.a96422","type":"other","name":"outcome_unknown","xml":"<outcome value='UNKNOWN'>\n","comments":"","outputs":1,"x":1989.7556171417236,"y":2491.892219543457,"z":"3fd3b806.3e5988","wires":[["a5c41de1.d7dfd"]]},{"id":"a5c41de1.d7dfd","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2233.686647415161,"y":2457.034918785095,"z":"3fd3b806.3e5988","wires":[["82a52a17.726898","473fa11c.d8f88","d56783d5.be2b6"]]},{"id":"82a52a17.726898","type":"set","name":"Set event message and update counters","xml":"<set>\n<parameter name='event-message' value=\"`'Health check failed for the Restarted server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n","comments":"","x":2527.6867065429688,"y":2394.535400390625,"z":"3fd3b806.3e5988","wires":[]},{"id":"473fa11c.d8f88","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":2496.633062362671,"y":2445.1352586746216,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"d56783d5.be2b6","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":2520.499765396118,"y":2496.3225145339966,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"3a78a34c.56b16c","type":"set","name":"Re Initialize_restart_success_count","xml":"<set>\n<parameter name='restartSuccessCount' value='0' />","comments":"","x":684.7499847412109,"y":1611.0831298828125,"z":"3fd3b806.3e5988","wires":[]},{"id":"1ba5abd.58e3954","type":"switchNode","name":"switch_any_vm_to_healthcheck","xml":"<switch test='`$restartSuccessCount>=1`'>\n","comments":"","outputs":1,"x":718.5000400543213,"y":2188.166627883911,"z":"3fd3b806.3e5988","wires":[["aedcde25.7a86b","76918471.5d839c"]]},{"id":"aedcde25.7a86b","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":883.5000457763672,"y":2136.6666259765625,"z":"3fd3b806.3e5988","wires":[["ef47ba9d.0acfa8"]]},{"id":"76918471.5d839c","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":889.5000171661377,"y":2284.166569709778,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"c5cfc802.b4cf68","type":"switchNode","name":"switch_any_vm_to_healthcheck","xml":"<switch test='`$restartSuccessCount>=1`'>\n","comments":"","outputs":1,"x":672.5000610351562,"y":1447.1666259765625,"z":"3fd3b806.3e5988","wires":[["a643ee70.b4dd9","adcaa36a.61cef"]]},{"id":"a643ee70.b4dd9","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":921.5,"y":1381.4166259765625,"z":"3fd3b806.3e5988","wires":[["9c2d1d30.44395"]]},{"id":"adcaa36a.61cef","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":910.7499847412109,"y":1508.1666259765625,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"66b6402.a4e8bc","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":927.9722900390625,"y":1083.0560913085938,"z":"3fd3b806.3e5988","wires":[["2c8da896.df9298","7c143892.7a48a8","6fce4d93.f36c94"]]},{"id":"2c8da896.df9298","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 restart the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":1102.4011840820312,"y":1025.2701416015625,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"6fce4d93.f36c94","type":"set","name":"set restart parameters","xml":"<set>\n<parameter name=\"restart-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name='restartRetryCount' value='3'/>\n<parameter name='application-node-name' value=\"`$vm[$vmIndex].node-name`\"/>\n<parameter name='application-status ' value=\"`$vm[$vmIndex].status`\"/>\n","comments":"","x":1130.8120346069336,"y":1082.4486465454102,"z":"3fd3b806.3e5988","wires":[]},{"id":"7c143892.7a48a8","type":"call","name":"Restart_VM","xml":"<call module='APPC' rpc='Restart_VM' mode='sync' >\n","comments":"","outputs":1,"x":1090.5618286132812,"y":1146.4487915039062,"z":"3fd3b806.3e5988","wires":[["25ad81f2.75882e","4d653382.a429ec","ced444de.57c2f8"]]},{"id":"47f00996.18f8a8","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1480.5556259155273,"y":1864.7220458984375,"z":"3fd3b806.3e5988","wires":[["ed660e4a.df05a","4a73526b.75205c","4a729f7d.1e76c"]]},{"id":"ed660e4a.df05a","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 restart the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":1673.2345809936523,"y":1797.6864013671875,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"4a73526b.75205c","type":"call","name":"Restart_VM","xml":"<call module='APPC' rpc='Restart_VM' mode='sync' >\n","comments":"","outputs":1,"x":1655.6453857421875,"y":1970.364990234375,"z":"3fd3b806.3e5988","wires":[["b7d474af.5c9d58","48e8232b.a696ec","61c3630a.cc9c9c"]]},{"id":"ced444de.57c2f8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1368.4495239257812,"y":1071.4140014648438,"z":"3fd3b806.3e5988","wires":[["7ad527cc.c40e28"]]},{"id":"7ad527cc.c40e28","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1541.4495239257812,"y":1072.4140014648438,"z":"3fd3b806.3e5988","wires":[["33b4c1af.2c1a5e","e4f324e3.458468","5abc7a5f.2be054","6fb4cf51.1634b"]]},{"id":"5abc7a5f.2be054","type":"set","name":"Set event message and Mark VM failed","xml":"<set>\n<parameter name='event-message' value=\"`'DG to execute Restart action not found for VM: ' + $vm[$vmIndex].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n","comments":"","x":1843.520767211914,"y":1007.8781733512874,"z":"3fd3b806.3e5988","wires":[]},{"id":"61c3630a.cc9c9c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1854.1993980407715,"y":1973.4134702682495,"z":"3fd3b806.3e5988","wires":[["8fddaeff.19854"]]},{"id":"8fddaeff.19854","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2096.6993522644043,"y":1976.9134912490845,"z":"3fd3b806.3e5988","wires":[["2761c6df.41b09a","bc22b70f.0c2028","df04b667.517118","65123b76.9ed874"]]},{"id":"df04b667.517118","type":"set","name":"Set event message and Mark VM failed","xml":"<set>\n<parameter name='event-message' value=\"`'DG to execute Restart action not found for VM: ' + $vm[$vmIndex].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n","comments":"","x":2416.5051879882812,"y":1852.16357421875,"z":"3fd3b806.3e5988","wires":[]},{"id":"36d8fdb0.8d2aa2","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1148.3214263916016,"y":720.1786422729492,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"6b9137e6.eeb0c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1146.6071472167969,"y":815.4643859863281,"z":"3fd3b806.3e5988","wires":[["30d0cd36.793752","3be108bc.20f958","691ca8da.821e88"]]},{"id":"96ac29bf.e4a348","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":948.0358581542969,"y":846.4644470214844,"z":"3fd3b806.3e5988","wires":[["6b9137e6.eeb0c8"]]},{"id":"6c87077e.9e46d8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":669.7500457763672,"y":497.0357036590576,"z":"3fd3b806.3e5988","wires":[["5124c756.7348b8","e598a9ef.046f68","60571aaf.8d8604"]]},{"id":"52451ef0.748c5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3488.7737426757812,"y":1440.0001220703125,"z":"3fd3b806.3e5988","wires":[["9a608560.1a75b8"]]},{"id":"9a608560.1a75b8","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":4340.773887634277,"y":1641.0000228881836,"z":"3fd3b806.3e5988","wires":[["929c559b.07cf48"]]},{"id":"929c559b.07cf48","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4667.059288024902,"y":1618.4287338256836,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"1f3a0577.6a147b","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":2343.4407348632812,"y":835.0000610351562,"z":"3fd3b806.3e5988","wires":[["52451ef0.748c5"]]},{"id":"794de1af.7fd7e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1058.2222137451172,"y":499.66662406921387,"z":"3fd3b806.3e5988","wires":[["5ef368c3.4bd7b8","63f52d2.4830bd4"]]},{"id":"63f52d2.4830bd4","type":"set","name":"set VM status","xml":"<set>\n<parameter name=\"vm[$i].status\" value=\"`$healthcheck.vm[$i].status`\" />\n<parameter name=\"vm[$i].node-name\" value=\"`$healthcheck.vm[$i].nodeName`\" />\n","comments":"","x":1267.22216796875,"y":433.6666259765625,"z":"3fd3b806.3e5988","wires":[]},{"id":"38e206a3.cc06fa","type":"switchNode","name":"Order ?","xml":"<switch test='`$vm[$vmIndex].order`'>\n","comments":"","outputs":1,"x":637.2222442626953,"y":1122.2225341796875,"z":"3fd3b806.3e5988","wires":[["a8c2ec5e.735c3","68251e28.9d153"]]},{"id":"a8c2ec5e.735c3","type":"other","name":"first","xml":"<outcome value='first'>\n","comments":"","outputs":1,"x":792.2222442626953,"y":1082.4725952148438,"z":"3fd3b806.3e5988","wires":[["66b6402.a4e8bc"]]},{"id":"68251e28.9d153","type":"outcomeTrue","name":"second","xml":"<outcome value='second'>\n","comments":"","outputs":1,"x":783.4722290039062,"y":1169.2225952148438,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"90e673f0.925cf","type":"for","name":"for_first_list","xml":"<for index='vmIndex' start='0' end='`$vmCount`' >\n","comments":"","outputs":1,"x":1056.2222518920898,"y":1863.77783203125,"z":"3fd3b806.3e5988","wires":[["41e7de35.4909a"]]},{"id":"41e7de35.4909a","type":"switchNode","name":"Order ?","xml":"<switch test='`$vm[$vmIndex].order`'>\n","comments":"","outputs":1,"x":1202.6944198608398,"y":1865.8336181640625,"z":"3fd3b806.3e5988","wires":[["9f13b01a.2bea1","24e3bd72.508902"]]},{"id":"9f13b01a.2bea1","type":"other","name":"first","xml":"<outcome value='first'>\n","comments":"","outputs":1,"x":1364.6942977905273,"y":1779.083740234375,"z":"3fd3b806.3e5988","wires":[[]]},{"id":"24e3bd72.508902","type":"outcomeTrue","name":"second","xml":"<outcome value='second'>\n","comments":"","outputs":1,"x":1342.9442977905273,"y":1864.8336181640625,"z":"3fd3b806.3e5988","wires":[["47f00996.18f8a8"]]},{"id":"4a729f7d.1e76c","type":"set","name":"set restart parameters","xml":"<set>\n<parameter name=\"restart-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name='restartRetryCount' value='3'/>\n<parameter name='application-node-name' value=\"`$vm[$vmIndex].node-name`\"/>\n<parameter name='application-status ' value=\"`$vm[$vmIndex].status`\"/>\n","comments":"","x":1692.222412109375,"y":1864.5555419921875,"z":"3fd3b806.3e5988","wires":[]},{"id":"6fb4cf51.1634b","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","comments":"","x":1798.599868774414,"y":1193.8249506950374,"z":"3fd3b806.3e5988","wires":[]},{"id":"65123b76.9ed874","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2282.600112915039,"y":2015.8249506950374,"z":"3fd3b806.3e5988","wires":[]}]
+[
+ {
+ "id": "565d7830.671f38",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 120,
+ "y": 46,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "ac4eea18.913ab8"
+ ]
+ ]
+ },
+ {
+ "id": "59101988.5e8918",
+ "type": "method",
+ "name": "Restart-Active-Passive_VNFC",
+ "xml": "<method rpc='Restart-Active-Passive_VNFC' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 140,
+ "y": 169,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "794ec84e.03f458"
+ ]
+ ]
+ },
+ {
+ "id": "ac4eea18.913ab8",
+ "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": 301,
+ "y": 45,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "59101988.5e8918"
+ ]
+ ]
+ },
+ {
+ "id": "794ec84e.03f458",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 213.10713958740234,
+ "y": 1121.833251953125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "4be16fa8.af873",
+ "e7b3ea7a.c2c148",
+ "fcff96c4.ade008",
+ "1c612bb4.7e9b94",
+ "f4113929.049f68",
+ "c5cfc802.b4cf68",
+ "3a78a34c.56b16c",
+ "b35d1ce3.c179b",
+ "1ba5abd.58e3954",
+ "bbe6528e.9f013",
+ "6c87077e.9e46d8"
+ ]
+ ]
+ },
+ {
+ "id": "1c67b9e.8d46346",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 782.4375,
+ "y": 246.1875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "49de287f.6f6438",
+ "83c8d474.49add8",
+ "dfe164aa.2d4e48"
+ ]
+ ]
+ },
+ {
+ "id": "49de287f.6f6438",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index='i' start='0' end='`$vmCount`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 956.9376068115234,
+ "y": 163.6875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "439a312b.1157c"
+ ]
+ ]
+ },
+ {
+ "id": "dfe164aa.2d4e48",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$vmCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"false\"/>\n",
+ "comments": "",
+ "x": 1000.6875152587891,
+ "y": 245.9373836517334,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "83c8d474.49add8",
+ "type": "call",
+ "name": "call_vnfc_healthcheck_dg",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 962.7422485351562,
+ "y": 317.4207763671875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "14a8bba.80caa44",
+ "fd8d5af4.7df798",
+ "fff32611.8ae708"
+ ]
+ ]
+ },
+ {
+ "id": "14a8bba.80caa44",
+ "type": "outcome",
+ "name": "healthcheck_failed",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1225.4375610351562,
+ "y": 264.9375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "ae67c815.dcdce8"
+ ]
+ ]
+ },
+ {
+ "id": "fd8d5af4.7df798",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1200.9542846679688,
+ "y": 317.2757568359375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "fa98825d.3010c"
+ ]
+ ]
+ },
+ {
+ "id": "fff32611.8ae708",
+ "type": "outcome",
+ "name": "healthcheck_success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1229.7233276367188,
+ "y": 368.7589111328125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "98d9e8d0.be81a8",
+ "type": "comment",
+ "name": "Healthcheck VMs",
+ "info": "",
+ "comments": "",
+ "x": 492.6597900390625,
+ "y": 199.29833984375,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "439a312b.1157c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$vm[$i].url`\" />\n",
+ "comments": "",
+ "x": 1104.0765571594238,
+ "y": 162.71521377563477,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "fa98825d.3010c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1581.8818969726562,
+ "y": 313.1596670150757,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "4059468e.bea478",
+ "3662a5a.682225a",
+ "94c4b9c3.257ef8",
+ "2c062cf5.3f4d74"
+ ]
+ ]
+ },
+ {
+ "id": "2c062cf5.3f4d74",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 1978.7986450195312,
+ "y": 247.65954399108887,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "94c4b9c3.257ef8",
+ "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": 1953.5149536132812,
+ "y": 320.72228813171387,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4059468e.bea478",
+ "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": 2043.3825073242188,
+ "y": 366.6596984863281,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "3662a5a.682225a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1959.3928833007812,
+ "y": 409.5977153778076,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "ae67c815.dcdce8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1585.8818969726562,
+ "y": 260.1596670150757,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "94c4b9c3.257ef8",
+ "4059468e.bea478",
+ "3662a5a.682225a"
+ ]
+ ]
+ },
+ {
+ "id": "4be16fa8.af873",
+ "type": "switchNode",
+ "name": "switch_any_vm_to_healthcheck",
+ "xml": "<switch test='`$vmCount>=1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 507.96527099609375,
+ "y": 247.4375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "9613c9c6.03d988",
+ "584f2018.2bde8"
+ ]
+ ]
+ },
+ {
+ "id": "9613c9c6.03d988",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 662.9652862548828,
+ "y": 181.43753147125244,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "1c67b9e.8d46346"
+ ]
+ ]
+ },
+ {
+ "id": "584f2018.2bde8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 678.9652709960938,
+ "y": 343.4375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4724f50a.19007c",
+ "type": "execute",
+ "name": "Resolve_Check-Active_VNFC_vSCP",
+ "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"IsActive\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"IsActiveDG\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1379.895980834961,
+ "y": 652.5207901000977,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "1130e674.0489ea",
+ "2eb496e0.0cef8a",
+ "79cfc4c5.caf0ac"
+ ]
+ ]
+ },
+ {
+ "id": "9cd35f9f.becbb",
+ "type": "call",
+ "name": "call_checkActive_DG",
+ "xml": "<call rpc='`$IsActiveDG.dg_name`' version='`$IsActiveDG.dg_version`' module='`$IsActiveDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1750.6736450195312,
+ "y": 827.6320190429688,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "f1fd8fe2.c9c05",
+ "fde23278.98f7d",
+ "fc061fd9.a985d"
+ ]
+ ]
+ },
+ {
+ "id": "52572003.4e273",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1709.7014770507812,
+ "y": 759.6875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "9cd35f9f.becbb"
+ ]
+ ]
+ },
+ {
+ "id": "1130e674.0489ea",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1600.8959350585938,
+ "y": 704.5208129882812,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52572003.4e273"
+ ]
+ ]
+ },
+ {
+ "id": "2eb496e0.0cef8a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1614.8958129882812,
+ "y": 607.5208129882812,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "5c094025.a30ec"
+ ]
+ ]
+ },
+ {
+ "id": "79cfc4c5.caf0ac",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1625.8958740234375,
+ "y": 655.5208435058594,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "be24d9c9.561338"
+ ]
+ ]
+ },
+ {
+ "id": "5c094025.a30ec",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1796.1182250976562,
+ "y": 604.939697265625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "f306145d.fdc398",
+ "5c26451c.10c92c",
+ "2e7608a5.5732a8",
+ "d8d5bc0a.b708c"
+ ]
+ ]
+ },
+ {
+ "id": "f306145d.fdc398",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'IsActive DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 2047.8960571289062,
+ "y": 540.5208129882812,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "be24d9c9.561338",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1767.1182250976562,
+ "y": 656.4097900390625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "a229ed4e.0dcb6",
+ "5c26451c.10c92c",
+ "2e7608a5.5732a8",
+ "d8d5bc0a.b708c"
+ ]
+ ]
+ },
+ {
+ "id": "a229ed4e.0dcb6",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Error while resolving IsActive DG for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 2062.1179809570312,
+ "y": 578.4097900390625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "5c26451c.10c92c",
+ "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": 2084.6869506835938,
+ "y": 620.7096557617188,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2e7608a5.5732a8",
+ "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": 2203.5545043945312,
+ "y": 671.89697265625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "d8d5bc0a.b708c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>",
+ "comments": "",
+ "x": 2079.6736450195312,
+ "y": 719.8798217773438,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "f27f6bc.1549998",
+ "type": "comment",
+ "name": "Check Active Passive Status",
+ "info": "",
+ "comments": "",
+ "x": 1373.5347900390625,
+ "y": 615.4929504394531,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "fde23278.98f7d",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1946.2570190429688,
+ "y": 828.6876220703125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "211d3f71.d278e"
+ ]
+ ]
+ },
+ {
+ "id": "211d3f71.d278e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2078.5066528320312,
+ "y": 828.076416015625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "57792db1.3c8d24",
+ "1f3a0577.6a147b",
+ "45ded8ec.fc9338"
+ ]
+ ]
+ },
+ {
+ "id": "f1fd8fe2.c9c05",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1949.7850952148438,
+ "y": 771.1319580078125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "9bcb3092.a9072"
+ ]
+ ]
+ },
+ {
+ "id": "9bcb3092.a9072",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2087.4519653320312,
+ "y": 770.7730712890625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "ab89d5f6.5f6638",
+ "57792db1.3c8d24",
+ "45ded8ec.fc9338",
+ "1f3a0577.6a147b"
+ ]
+ ]
+ },
+ {
+ "id": "ab89d5f6.5f6638",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'IsActive DG not found for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 2306.0073852539062,
+ "y": 750.354248046875,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "57792db1.3c8d24",
+ "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": 2315.8960571289062,
+ "y": 793.0208740234375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "45ded8ec.fc9338",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>",
+ "comments": "",
+ "x": 2308.6738891601562,
+ "y": 886.6875610351562,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "fc061fd9.a985d",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1949.3959350585938,
+ "y": 903.4931030273438,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "a5bcdddf.bc981"
+ ]
+ ]
+ },
+ {
+ "id": "a5bcdddf.bc981",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2096.1179809570312,
+ "y": 903.85400390625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "d6962e57.fda47"
+ ]
+ ]
+ },
+ {
+ "id": "d6962e57.fda47",
+ "type": "record",
+ "name": "Log success",
+ "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=\"Active/Passive check succeeded\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2283.0901489257812,
+ "y": 937.742919921875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e7b3ea7a.c2c148",
+ "type": "execute",
+ "name": "executePreRestart",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.smp.SMPDGPlugin' method='restartSequenceGenerator' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 700.8542175292969,
+ "y": 846.7710266113281,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "ff4b13d7.8ff6a",
+ "6e82fb15.444774",
+ "96ac29bf.e4a348"
+ ]
+ ]
+ },
+ {
+ "id": "e598a9ef.046f68",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.5207977294922,
+ "y": 499.30663871765137,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "794de1af.7fd7e"
+ ]
+ ]
+ },
+ {
+ "id": "5ef368c3.4bd7b8",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$healthcheck.vm[$i].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1294.5206909179688,
+ "y": 498.8065776824951,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "f2e22899.360288",
+ "433d325f.0e0b7c",
+ "21588e29.a3cc32"
+ ]
+ ]
+ },
+ {
+ "id": "f2e22899.360288",
+ "type": "other",
+ "name": "outcome_up",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1541.5206909179688,
+ "y": 541.3066387176514,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "21588e29.a3cc32",
+ "type": "other",
+ "name": "outcome_down",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1557.5206909179688,
+ "y": 451.30663871765137,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "5950449e.d1cb4c"
+ ]
+ ]
+ },
+ {
+ "id": "433d325f.0e0b7c",
+ "type": "other",
+ "name": "outcome_unknown",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1559.3041381835938,
+ "y": 498.4493999481201,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "5950449e.d1cb4c"
+ ]
+ ]
+ },
+ {
+ "id": "5124c756.7348b8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"doCheckActive\" value=\"true\" />\n",
+ "comments": "",
+ "x": 871.8689727783203,
+ "y": 435.59222412109375,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "5950449e.d1cb4c",
+ "type": "set",
+ "name": "set_to_perform_checkActive",
+ "xml": "<set>\n<parameter name=\"doCheckActive\" value=\"false\" />\n",
+ "comments": "",
+ "x": 1830.0833129882812,
+ "y": 470.3065776824951,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "60571aaf.8d8604",
+ "type": "switchNode",
+ "name": "switch_Perform_check_active",
+ "xml": "<switch test='`$doCheckActive`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 928.0833129882812,
+ "y": 652.7709045410156,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "4b2bdd82.af31c4",
+ "36d8fdb0.8d2aa2"
+ ]
+ ]
+ },
+ {
+ "id": "4b2bdd82.af31c4",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1157.3333740234375,
+ "y": 653.5208435058594,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "4724f50a.19007c"
+ ]
+ ]
+ },
+ {
+ "id": "6e82fb15.444774",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 971.6667175292969,
+ "y": 904.7709655761719,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff4b13d7.8ff6a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 948.1669464111328,
+ "y": 789.5208129882812,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "6b9137e6.eeb0c8"
+ ]
+ ]
+ },
+ {
+ "id": "3be108bc.20f958",
+ "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",
+ "comments": "",
+ "x": 1368.2382507324219,
+ "y": 861.1994934082031,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "30d0cd36.793752",
+ "type": "set",
+ "name": "set event message",
+ "xml": "<set>\n<parameter name='event-message' value='Pre-Restart Execution failed' />\n",
+ "comments": "",
+ "x": 1387.9694519042969,
+ "y": 777.9878234863281,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "691ca8da.821e88",
+ "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": 1366.9694519042969,
+ "y": 815.9878234863281,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c612bb4.7e9b94",
+ "type": "for",
+ "name": "for_first_list",
+ "xml": "<for index='vmIndex' start='0' end='`$vmCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 486.75013732910156,
+ "y": 1122.166748046875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "38e206a3.cc06fa"
+ ]
+ ]
+ },
+ {
+ "id": "25ad81f2.75882e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1361.2500610351562,
+ "y": 1148.4169311523438,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "3e050b23.00ef54"
+ ]
+ ]
+ },
+ {
+ "id": "4d653382.a429ec",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1366.2501983642578,
+ "y": 1239.4169917106624,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "fd9f91c4.d80c9"
+ ]
+ ]
+ },
+ {
+ "id": "b35d1ce3.c179b",
+ "type": "switchNode",
+ "name": "switch_any_firstList_vm_restarted",
+ "xml": "<switch test='`$restartedFirstVMListCount>=1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 658.7777938842773,
+ "y": 1780.138671875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "c7ae14aa.457d88",
+ "2f4154b1.cffeac"
+ ]
+ ]
+ },
+ {
+ "id": "c7ae14aa.457d88",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 903.5277938842773,
+ "y": 1864.1387939453125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "90e673f0.925cf"
+ ]
+ ]
+ },
+ {
+ "id": "2f4154b1.cffeac",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 905.7777633666992,
+ "y": 1704.1387939453125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "4047d58d.27a18c"
+ ]
+ ]
+ },
+ {
+ "id": "4047d58d.27a18c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1105.5278854370117,
+ "y": 1702.8887939453125,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "b7d474af.5c9d58",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1849.000087738037,
+ "y": 1919.555528640747,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "1601f900.8eba77"
+ ]
+ ]
+ },
+ {
+ "id": "48e8232b.a696ec",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1867.000087738037,
+ "y": 2039.4445667266846,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "a762c339.2cf29"
+ ]
+ ]
+ },
+ {
+ "id": "db44a408.35fa18",
+ "type": "set",
+ "name": "Mark VM failed",
+ "xml": "<set>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 1790.500015258789,
+ "y": 1061.1669917106624,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "33b4c1af.2c1a5e",
+ "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": 1783.679702758789,
+ "y": 1104.6076655387874,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e4f324e3.458468",
+ "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": 1818.7965240478516,
+ "y": 1151.5446772575374,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "3e050b23.00ef54",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1541.7501373291016,
+ "y": 1147.91686964035,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "db44a408.35fa18",
+ "33b4c1af.2c1a5e",
+ "e4f324e3.458468"
+ ]
+ ]
+ },
+ {
+ "id": "f44e0dc2.7f05c",
+ "type": "set",
+ "name": "Set event message and update counters",
+ "xml": "<set>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 2412.4722290039062,
+ "y": 1807.9716796875,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "2761c6df.41b09a",
+ "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": 2331.1519775390625,
+ "y": 1905.912133216858,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bc22b70f.0c2028",
+ "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": 2721.7694702148438,
+ "y": 1948.0997314453125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "1601f900.8eba77",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2080.389019012451,
+ "y": 1922.388557434082,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "f44e0dc2.7f05c",
+ "2761c6df.41b09a",
+ "bc22b70f.0c2028"
+ ]
+ ]
+ },
+ {
+ "id": "98dcf986.aced38",
+ "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=\"`'Restart succeed for the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1777.4445190429688,
+ "y": 1334.6119995117188,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f4113929.049f68",
+ "type": "set",
+ "name": "Initialize_restartedFirstList_Count",
+ "xml": "<set>\n<parameter name='restartedFirstVMListCount' value='0' />\n\n",
+ "comments": "",
+ "x": 692.1666870117188,
+ "y": 1264.0274658203125,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "fcff96c4.ade008",
+ "type": "set",
+ "name": "Initialize_restart_parameters",
+ "xml": "<set>\n<parameter name='restartFailedCount' value='0' />\n<parameter name='restartSuccessCount' value='0' />",
+ "comments": "",
+ "x": 709.7500915527344,
+ "y": 971.4163818359375,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "bbe6528e.9f013",
+ "type": "switchNode",
+ "name": "If_any_restart_failed",
+ "xml": "<switch test='`$restartFailedCount>=1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 626.250078201294,
+ "y": 2505.583155632019,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "2ac4791e.46f246",
+ "159116ac.51a699"
+ ]
+ ]
+ },
+ {
+ "id": "2ac4791e.46f246",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 892.5556812286377,
+ "y": 2452.305316925049,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "7a649831.9f1858"
+ ]
+ ]
+ },
+ {
+ "id": "159116ac.51a699",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 899.750078201294,
+ "y": 2556.583148956299,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "37709497.487aec"
+ ]
+ ]
+ },
+ {
+ "id": "37709497.487aec",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n\n",
+ "comments": "",
+ "x": 1123.000078201294,
+ "y": 2557.083148956299,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "7a649831.9f1858",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1102.3056201934814,
+ "y": 2451.832904815674,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "9c2d1d30.44395",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1107.7500610351562,
+ "y": 1380.6666259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "e32d3076.62496",
+ "9c6ca981.cf3198",
+ "9a0c3b86.dcc888"
+ ]
+ ]
+ },
+ {
+ "id": "e32d3076.62496",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index='i' start='0' end='`$restartSuccessCount`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1339.2500610351562,
+ "y": 1382.4166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "c4ab230a.95c29"
+ ]
+ ]
+ },
+ {
+ "id": "c4ab230a.95c29",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$restartedServerList[$i].url`\" />\n",
+ "comments": "",
+ "x": 1524.2500610351562,
+ "y": 1377.9166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "9a0c3b86.dcc888",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$restartSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n",
+ "comments": "",
+ "x": 1358.5000610351562,
+ "y": 1439.4166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "9c6ca981.cf3198",
+ "type": "call",
+ "name": "call_vnfc_healthcheck_dg",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1400.8048706054688,
+ "y": 1493.89990234375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "e30a91c0.1f657",
+ "d32c2422.06b3d8",
+ "d703536.35151b"
+ ]
+ ]
+ },
+ {
+ "id": "e30a91c0.1f657",
+ "type": "outcome",
+ "name": "healthcheck_failed",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1711.2500610351562,
+ "y": 1495.4166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "e2ffb1de.b124e"
+ ]
+ ]
+ },
+ {
+ "id": "d32c2422.06b3d8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1706.7665405273438,
+ "y": 1554.7547607421875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "3298d778.916828"
+ ]
+ ]
+ },
+ {
+ "id": "d703536.35151b",
+ "type": "outcome",
+ "name": "healthcheck_success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1687.5000610351562,
+ "y": 1623.1666259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "2bd9fac.f2e7606"
+ ]
+ ]
+ },
+ {
+ "id": "2bd9fac.f2e7606",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1905.4168090820312,
+ "y": 1686.4166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "c4c4885d.681c88"
+ ]
+ ]
+ },
+ {
+ "id": "c4c4885d.681c88",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$healthcheck.vm[$i].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2161.5001831054688,
+ "y": 1693.9166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "2e9fc35d.edaf5c",
+ "66adef5.39ab51",
+ "49abe035.4ef46"
+ ]
+ ]
+ },
+ {
+ "id": "ef47ba9d.0acfa8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 992.9722766876221,
+ "y": 2186.916627883911,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "f26ebaaf.f84c68",
+ "c45137da.947918",
+ "cb92c687.45d9b8"
+ ]
+ ]
+ },
+ {
+ "id": "f26ebaaf.f84c68",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index='i' start='0' end='`$restartSuccessCount`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1166.222276687622,
+ "y": 2133.166626930237,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "47769042.b3fd5"
+ ]
+ ]
+ },
+ {
+ "id": "cb92c687.45d9b8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$restartSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n",
+ "comments": "",
+ "x": 1192.4722805023193,
+ "y": 2191.6665058135986,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "c45137da.947918",
+ "type": "call",
+ "name": "call_vnfc_healthcheck_dg",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1173.276964187622,
+ "y": 2258.1499042510986,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "fbea3fd2.46312",
+ "c08ecaf2.836998",
+ "5bf097d5.7d4a38"
+ ]
+ ]
+ },
+ {
+ "id": "fbea3fd2.46312",
+ "type": "outcome",
+ "name": "healthcheck_failed",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1432.4722805023193,
+ "y": 2197.666627883911,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "7c565f0f.63661"
+ ]
+ ]
+ },
+ {
+ "id": "c08ecaf2.836998",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1443.4889698028564,
+ "y": 2250.0048265457153,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "21eda6fd.da801a"
+ ]
+ ]
+ },
+ {
+ "id": "5bf097d5.7d4a38",
+ "type": "outcome",
+ "name": "healthcheck_success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1449.2223682403564,
+ "y": 2321.416569709778,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "29bda719.f445f8"
+ ]
+ ]
+ },
+ {
+ "id": "ed661fb6.7a7a3",
+ "type": "set",
+ "name": "set_mark_vm_restarted",
+ "xml": "<set>\n<parameter name=\"restartedServerList[$restartSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n",
+ "comments": "",
+ "x": 1788.5276336669922,
+ "y": 1240.5278930664062,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "3ee9ae0.e12b052",
+ "type": "set",
+ "name": "increment_restarted_vm_count",
+ "xml": "<set>\n<parameter name='restartSuccessCount' value='`$restartSuccessCount+1`' />\n",
+ "comments": "",
+ "x": 1813.7740478515625,
+ "y": 1286.6627807617188,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "fd9f91c4.d80c9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1535.4167938232422,
+ "y": 1239.6115112304688,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "98dcf986.aced38",
+ "ed661fb6.7a7a3",
+ "3ee9ae0.e12b052"
+ ]
+ ]
+ },
+ {
+ "id": "3298d778.916828",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1890.1111450195312,
+ "y": 1553.4442138671875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "e42b2698.ff0c28",
+ "d6472f50.eeb0f",
+ "66766044.0bc98",
+ "f286d57a.a53198"
+ ]
+ ]
+ },
+ {
+ "id": "f286d57a.a53198",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 2182.7781372070312,
+ "y": 1504.4442138671875,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "66766044.0bc98",
+ "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": 2180.2444458007812,
+ "y": 1546.2568359375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e42b2698.ff0c28",
+ "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": 2203.1113891601562,
+ "y": 1588.4442138671875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "d6472f50.eeb0f",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2176.6221313476562,
+ "y": 1630.3822021484375,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "e2ffb1de.b124e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1922.1111450195312,
+ "y": 1495.4442138671875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "66766044.0bc98",
+ "e42b2698.ff0c28",
+ "d6472f50.eeb0f",
+ "7fe2609.cd44ea"
+ ]
+ ]
+ },
+ {
+ "id": "7fe2609.cd44ea",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"Error occured during health check of the Restarted servers\"/>",
+ "comments": "",
+ "x": 2182.3613891601562,
+ "y": 1459.4442138671875,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "49abe035.4ef46",
+ "type": "other",
+ "name": "outcome_up",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2390.7504272460938,
+ "y": 1749.7222900390625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "8ae3ec83.85715"
+ ]
+ ]
+ },
+ {
+ "id": "8ae3ec83.85715",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2611.0006713867188,
+ "y": 1747.2222900390625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "1fc212be.5390ed",
+ "4a8cea9d.531f74",
+ "ae266efa.9b164"
+ ]
+ ]
+ },
+ {
+ "id": "1fc212be.5390ed",
+ "type": "execute",
+ "name": "Report_Success",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2848.7504272460938,
+ "y": 1837.7939453125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4a8cea9d.531f74",
+ "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": 2849.8053588867188,
+ "y": 1793.2889404296875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ae266efa.9b164",
+ "type": "set",
+ "name": "Set success message and update counters",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restartedServerList[$i].url`\"/>\n<parameter name='restartedFirstVMListCount' value='`$restartedFirstVMListCount+1`' />\n<parameter name=\"RestartSuccessVMCount\" value=\"`$RestartSuccessVMCount + 1`\" />\n\n",
+ "comments": "",
+ "x": 2923.8053588867188,
+ "y": 1748.2890625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "2e9fc35d.edaf5c",
+ "type": "other",
+ "name": "outcome_down",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2400.7501831054688,
+ "y": 1640.72216796875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "722f7db.ad64184"
+ ]
+ ]
+ },
+ {
+ "id": "66adef5.39ab51",
+ "type": "other",
+ "name": "outcome_unknown",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2414.5336303710938,
+ "y": 1696.8648681640625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "722f7db.ad64184"
+ ]
+ ]
+ },
+ {
+ "id": "722f7db.ad64184",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2626.7147827148438,
+ "y": 1643.5078125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "2420dfd1.3d3f6",
+ "6aea1090.d7e6b",
+ "f6a19c69.5f799"
+ ]
+ ]
+ },
+ {
+ "id": "2420dfd1.3d3f6",
+ "type": "set",
+ "name": "Set event message and update Counters",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Health check failed for the Restarted server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 2914.7147827148438,
+ "y": 1596.508056640625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "6aea1090.d7e6b",
+ "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": 2842.6610717773438,
+ "y": 1643.1077880859375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6a19c69.5f799",
+ "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": 2858.5282592773438,
+ "y": 1685.2952880859375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "202bd856.91c528",
+ "type": "comment",
+ "name": "Restart First List",
+ "info": "",
+ "comments": "",
+ "x": 497.66676330566406,
+ "y": 1078.333251953125,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "ded1e319.f55dd",
+ "type": "comment",
+ "name": "Healthcheck First List",
+ "info": "",
+ "comments": "",
+ "x": 701.77783203125,
+ "y": 1379.9166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "3676ee92.49abb2",
+ "type": "comment",
+ "name": "Restart Second List",
+ "info": "",
+ "comments": "",
+ "x": 681.1111679077148,
+ "y": 1722.9163818359375,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "72122241.50003c",
+ "type": "comment",
+ "name": "Healthcheck SecondList",
+ "info": "",
+ "comments": "",
+ "x": 703.19455909729,
+ "y": 2140.027466773987,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "e035a23b.7b864",
+ "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=\"`'Restart succeeded for the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2313.083854675293,
+ "y": 2155.361406326294,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58515fa3.8d588",
+ "type": "set",
+ "name": "set_mark_vm_restarted",
+ "xml": "<set>\n<parameter name=\"restartedServerList[$restartSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n",
+ "comments": "",
+ "x": 2366.667251586914,
+ "y": 2062.777953624725,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "a242df26.53c36",
+ "type": "set",
+ "name": "increment_restarted_vm_count",
+ "xml": "<set>\n<parameter name='restartSuccessCount' value='`$restartSuccessCount+1`' />\n",
+ "comments": "",
+ "x": 2342.663101196289,
+ "y": 2105.4125971794124,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "a762c339.2cf29",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2082.8056640625,
+ "y": 2106.1110653877254,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "e035a23b.7b864",
+ "58515fa3.8d588",
+ "a242df26.53c36"
+ ]
+ ]
+ },
+ {
+ "id": "47769042.b3fd5",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$restartedServerList[$i].url`\" />\n",
+ "comments": "",
+ "x": 1429.8610744476318,
+ "y": 2136.6943378448486,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "21eda6fd.da801a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1633.6666202545166,
+ "y": 2251.3887977600098,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "11eddd5.8a0d223",
+ "1627b80.c24f648",
+ "448eea91.f58eb4",
+ "51d1e08a.45697"
+ ]
+ ]
+ },
+ {
+ "id": "51d1e08a.45697",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 1892.8333759307861,
+ "y": 2237.888620376587,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "448eea91.f58eb4",
+ "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": 1908.2995624542236,
+ "y": 2300.451364517212,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "11eddd5.8a0d223",
+ "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": 2569.1669311523438,
+ "y": 2206.8887939453125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "1627b80.c24f648",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1907.9274921417236,
+ "y": 2366.0767879486084,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "7c565f0f.63661",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1637.6666202545166,
+ "y": 2198.3887977600098,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "448eea91.f58eb4",
+ "11eddd5.8a0d223",
+ "1627b80.c24f648",
+ "37b0d881.eecf48"
+ ]
+ ]
+ },
+ {
+ "id": "37b0d881.eecf48",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"Error occured during health check of the restarted servers\"/>",
+ "comments": "",
+ "x": 1926.1666278839111,
+ "y": 2167.888864517212,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "29bda719.f445f8",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$restartSuccessCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1421.611177444458,
+ "y": 2438.1107234954834,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "1cf0221.15704de"
+ ]
+ ]
+ },
+ {
+ "id": "1cf0221.15704de",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$healthcheck.vm[$i].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1641.2221240997314,
+ "y": 2440.9440364837646,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "78917505.3d9e0c",
+ "309b8ddd.a96422",
+ "aaa07653.033a58"
+ ]
+ ]
+ },
+ {
+ "id": "aaa07653.033a58",
+ "type": "other",
+ "name": "outcome_up",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1986.9721698760986,
+ "y": 2570.749397277832,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "f1e0d6b3.20cc08"
+ ]
+ ]
+ },
+ {
+ "id": "f1e0d6b3.20cc08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2232.972291946411,
+ "y": 2571.749274253845,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "34f66625.125b7a",
+ "3eee9a01.5d0826",
+ "3502f29e.fa060e"
+ ]
+ ]
+ },
+ {
+ "id": "34f66625.125b7a",
+ "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": 2558.9724254608154,
+ "y": 2643.82080745697,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3eee9a01.5d0826",
+ "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": 2553.027109146118,
+ "y": 2599.31592464447,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3502f29e.fa060e",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"RestartSuccessVMCount\" value=\"`$RestartSuccessVMCount + 1`\" />\n",
+ "comments": "",
+ "x": 2552.0271129608154,
+ "y": 2551.316167831421,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "78917505.3d9e0c",
+ "type": "other",
+ "name": "outcome_down",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1990.9720478057861,
+ "y": 2439.749397277832,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "a5c41de1.d7dfd"
+ ]
+ ]
+ },
+ {
+ "id": "309b8ddd.a96422",
+ "type": "other",
+ "name": "outcome_unknown",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1989.7556171417236,
+ "y": 2491.892219543457,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "a5c41de1.d7dfd"
+ ]
+ ]
+ },
+ {
+ "id": "a5c41de1.d7dfd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2233.686647415161,
+ "y": 2457.034918785095,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "82a52a17.726898",
+ "473fa11c.d8f88",
+ "d56783d5.be2b6"
+ ]
+ ]
+ },
+ {
+ "id": "82a52a17.726898",
+ "type": "set",
+ "name": "Set event message and update counters",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Health check failed for the Restarted server : ' + $restartedServerList[$i].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 2527.6867065429688,
+ "y": 2394.535400390625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "473fa11c.d8f88",
+ "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": 2496.633062362671,
+ "y": 2445.1352586746216,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d56783d5.be2b6",
+ "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": 2520.499765396118,
+ "y": 2496.3225145339966,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "3a78a34c.56b16c",
+ "type": "set",
+ "name": "Re Initialize_restart_success_count",
+ "xml": "<set>\n<parameter name='restartSuccessCount' value='0' />",
+ "comments": "",
+ "x": 684.7499847412109,
+ "y": 1611.0831298828125,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "1ba5abd.58e3954",
+ "type": "switchNode",
+ "name": "switch_any_vm_to_healthcheck",
+ "xml": "<switch test='`$restartSuccessCount>=1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 718.5000400543213,
+ "y": 2188.166627883911,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "aedcde25.7a86b",
+ "76918471.5d839c"
+ ]
+ ]
+ },
+ {
+ "id": "aedcde25.7a86b",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 883.5000457763672,
+ "y": 2136.6666259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "ef47ba9d.0acfa8"
+ ]
+ ]
+ },
+ {
+ "id": "76918471.5d839c",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 889.5000171661377,
+ "y": 2284.166569709778,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c5cfc802.b4cf68",
+ "type": "switchNode",
+ "name": "switch_any_vm_to_healthcheck",
+ "xml": "<switch test='`$restartSuccessCount>=1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 672.5000610351562,
+ "y": 1447.1666259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "a643ee70.b4dd9",
+ "adcaa36a.61cef"
+ ]
+ ]
+ },
+ {
+ "id": "a643ee70.b4dd9",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 921.5,
+ "y": 1381.4166259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "9c2d1d30.44395"
+ ]
+ ]
+ },
+ {
+ "id": "adcaa36a.61cef",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 910.7499847412109,
+ "y": 1508.1666259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "66b6402.a4e8bc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 927.9722900390625,
+ "y": 1083.0560913085938,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "2c8da896.df9298",
+ "7c143892.7a48a8",
+ "6fce4d93.f36c94"
+ ]
+ ]
+ },
+ {
+ "id": "2c8da896.df9298",
+ "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 restart the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1102.4011840820312,
+ "y": 1025.2701416015625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6fce4d93.f36c94",
+ "type": "set",
+ "name": "set restart parameters",
+ "xml": "<set>\n<parameter name=\"restart-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name='restartRetryCount' value='3'/>\n<parameter name='application-node-name' value=\"`$vm[$vmIndex].node-name`\"/>\n<parameter name='application-status ' value=\"`$vm[$vmIndex].status`\"/>\n",
+ "comments": "",
+ "x": 1130.8120346069336,
+ "y": 1082.4486465454102,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "7c143892.7a48a8",
+ "type": "call",
+ "name": "Restart_VM",
+ "xml": "<call module='APPC' rpc='Restart_VM' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1090.5618286132812,
+ "y": 1146.4487915039062,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "25ad81f2.75882e",
+ "4d653382.a429ec",
+ "ced444de.57c2f8"
+ ]
+ ]
+ },
+ {
+ "id": "47f00996.18f8a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1480.5556259155273,
+ "y": 1864.7220458984375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "ed660e4a.df05a",
+ "4a73526b.75205c",
+ "4a729f7d.1e76c"
+ ]
+ ]
+ },
+ {
+ "id": "ed660e4a.df05a",
+ "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 restart the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1673.2345809936523,
+ "y": 1797.6864013671875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4a73526b.75205c",
+ "type": "call",
+ "name": "Restart_VM",
+ "xml": "<call module='APPC' rpc='Restart_VM' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1655.6453857421875,
+ "y": 1970.364990234375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "b7d474af.5c9d58",
+ "48e8232b.a696ec",
+ "61c3630a.cc9c9c"
+ ]
+ ]
+ },
+ {
+ "id": "ced444de.57c2f8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1368.4495239257812,
+ "y": 1071.4140014648438,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "7ad527cc.c40e28"
+ ]
+ ]
+ },
+ {
+ "id": "7ad527cc.c40e28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1541.4495239257812,
+ "y": 1072.4140014648438,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "33b4c1af.2c1a5e",
+ "e4f324e3.458468",
+ "5abc7a5f.2be054",
+ "6fb4cf51.1634b"
+ ]
+ ]
+ },
+ {
+ "id": "5abc7a5f.2be054",
+ "type": "set",
+ "name": "Set event message and Mark VM failed",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'DG to execute Restart action not found for VM: ' + $vm[$vmIndex].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 1843.520767211914,
+ "y": 1007.8781733512874,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "61c3630a.cc9c9c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1854.1993980407715,
+ "y": 1973.4134702682495,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "8fddaeff.19854"
+ ]
+ ]
+ },
+ {
+ "id": "8fddaeff.19854",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2096.6993522644043,
+ "y": 1976.9134912490845,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "2761c6df.41b09a",
+ "bc22b70f.0c2028",
+ "df04b667.517118",
+ "65123b76.9ed874"
+ ]
+ ]
+ },
+ {
+ "id": "df04b667.517118",
+ "type": "set",
+ "name": "Set event message and Mark VM failed",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'DG to execute Restart action not found for VM: ' + $vm[$vmIndex].url`\"/>\n<parameter name=\"restartFailedCount\" value=\"`$restartFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 2416.5051879882812,
+ "y": 1852.16357421875,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "36d8fdb0.8d2aa2",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1148.3214263916016,
+ "y": 720.1786422729492,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6b9137e6.eeb0c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1146.6071472167969,
+ "y": 815.4643859863281,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "30d0cd36.793752",
+ "3be108bc.20f958",
+ "691ca8da.821e88"
+ ]
+ ]
+ },
+ {
+ "id": "96ac29bf.e4a348",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 948.0358581542969,
+ "y": 846.4644470214844,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "6b9137e6.eeb0c8"
+ ]
+ ]
+ },
+ {
+ "id": "6c87077e.9e46d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 669.7500457763672,
+ "y": 497.0357036590576,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "5124c756.7348b8",
+ "e598a9ef.046f68",
+ "60571aaf.8d8604"
+ ]
+ ]
+ },
+ {
+ "id": "52451ef0.748c5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3488.7737426757812,
+ "y": 1440.0001220703125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "9a608560.1a75b8"
+ ]
+ ]
+ },
+ {
+ "id": "9a608560.1a75b8",
+ "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": 4340.773887634277,
+ "y": 1641.0000228881836,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "929c559b.07cf48"
+ ]
+ ]
+ },
+ {
+ "id": "929c559b.07cf48",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4667.059288024902,
+ "y": 1618.4287338256836,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1f3a0577.6a147b",
+ "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": 2343.4407348632812,
+ "y": 835.0000610351562,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "52451ef0.748c5"
+ ]
+ ]
+ },
+ {
+ "id": "794de1af.7fd7e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.2222137451172,
+ "y": 499.66662406921387,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "5ef368c3.4bd7b8",
+ "63f52d2.4830bd4"
+ ]
+ ]
+ },
+ {
+ "id": "63f52d2.4830bd4",
+ "type": "set",
+ "name": "set VM status",
+ "xml": "<set>\n<parameter name=\"vm[$i].status\" value=\"`$healthcheck.vm[$i].status`\" />\n<parameter name=\"vm[$i].node-name\" value=\"`$healthcheck.vm[$i].nodeName`\" />\n",
+ "comments": "",
+ "x": 1267.22216796875,
+ "y": 433.6666259765625,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "38e206a3.cc06fa",
+ "type": "switchNode",
+ "name": "Order ?",
+ "xml": "<switch test='`$vm[$vmIndex].order`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 637.2222442626953,
+ "y": 1122.2225341796875,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "a8c2ec5e.735c3",
+ "68251e28.9d153"
+ ]
+ ]
+ },
+ {
+ "id": "a8c2ec5e.735c3",
+ "type": "other",
+ "name": "first",
+ "xml": "<outcome value='first'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.2222442626953,
+ "y": 1082.4725952148438,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "66b6402.a4e8bc"
+ ]
+ ]
+ },
+ {
+ "id": "68251e28.9d153",
+ "type": "outcomeTrue",
+ "name": "second",
+ "xml": "<outcome value='second'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 783.4722290039062,
+ "y": 1169.2225952148438,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90e673f0.925cf",
+ "type": "for",
+ "name": "for_first_list",
+ "xml": "<for index='vmIndex' start='0' end='`$vmCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1056.2222518920898,
+ "y": 1863.77783203125,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "41e7de35.4909a"
+ ]
+ ]
+ },
+ {
+ "id": "41e7de35.4909a",
+ "type": "switchNode",
+ "name": "Order ?",
+ "xml": "<switch test='`$vm[$vmIndex].order`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1202.6944198608398,
+ "y": 1865.8336181640625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "9f13b01a.2bea1",
+ "24e3bd72.508902"
+ ]
+ ]
+ },
+ {
+ "id": "9f13b01a.2bea1",
+ "type": "other",
+ "name": "first",
+ "xml": "<outcome value='first'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1364.6942977905273,
+ "y": 1779.083740234375,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "24e3bd72.508902",
+ "type": "outcomeTrue",
+ "name": "second",
+ "xml": "<outcome value='second'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1342.9442977905273,
+ "y": 1864.8336181640625,
+ "z": "3fd3b806.3e5988",
+ "wires": [
+ [
+ "47f00996.18f8a8"
+ ]
+ ]
+ },
+ {
+ "id": "4a729f7d.1e76c",
+ "type": "set",
+ "name": "set restart parameters",
+ "xml": "<set>\n<parameter name=\"restart-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name='restartRetryCount' value='3'/>\n<parameter name='application-node-name' value=\"`$vm[$vmIndex].node-name`\"/>\n<parameter name='application-status ' value=\"`$vm[$vmIndex].status`\"/>\n",
+ "comments": "",
+ "x": 1692.222412109375,
+ "y": 1864.5555419921875,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "6fb4cf51.1634b",
+ "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",
+ "comments": "",
+ "x": 1798.599868774414,
+ "y": 1193.8249506950374,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ },
+ {
+ "id": "65123b76.9ed874",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2282.600112915039,
+ "y": 2015.8249506950374,
+ "z": "3fd3b806.3e5988",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_RestartVM_VM.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_RestartVM_VM.json
index e0262b087..6735003ef 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_RestartVM_VM.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_RestartVM_VM.json
@@ -1 +1,469 @@
-[{"id":"7f4de7a8.ac56b8","type":"dgstart","name":"DGSTART","outputs":1,"x":119.80625915527344,"y":126.4333267211914,"z":"b771fc5b.409cb","wires":[["256d787.026be88"]]},{"id":"256d787.026be88","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":312.80633544921875,"y":126,"z":"b771fc5b.409cb","wires":[["98e831ca.cf20f"]]},{"id":"98e831ca.cf20f","type":"method","name":"RestartVM_VM","xml":"<method rpc='RestartVM_VM' mode='sync'>\n","comments":"","outputs":1,"x":138.5563201904297,"y":222.2499771118164,"z":"b771fc5b.409cb","wires":[["72dbf7c2.2df8e8"]]},{"id":"a218356d.8a7768","type":"execute","name":"execute_restart","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$restart-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"skip-hypervisor-check\" value=\"`$skip-hypervisor-check`\" />","comments":"","outputs":1,"x":984.8326797485352,"y":496.218994140625,"z":"b771fc5b.409cb","wires":[["a79fc9de.660258","4f648386.c6afdc"]]},{"id":"a79fc9de.660258","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1240.4515228271484,"y":569.3620681762695,"z":"b771fc5b.409cb","wires":[["abb47796.fc7f08"]]},{"id":"4f648386.c6afdc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1107.8062591552734,"y":406.43335723876953,"z":"b771fc5b.409cb","wires":[["6795df77.7887d"]]},{"id":"6795df77.7887d","type":"switchNode","name":"switch","xml":"<switch test='`$RESTART_STATUS`'>\n","comments":"","outputs":1,"x":1232.6633758544922,"y":346.86197662353516,"z":"b771fc5b.409cb","wires":[["565819ab.6ea5f8","86f97daf.53db4"]]},{"id":"86f97daf.53db4","type":"other","name":"error","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":1273.9488372802734,"y":454.5762710571289,"z":"b771fc5b.409cb","wires":[["abb47796.fc7f08"]]},{"id":"565819ab.6ea5f8","type":"other","name":"success","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1372.3779754638672,"y":262.2905960083008,"z":"b771fc5b.409cb","wires":[["a981085a.cff378"]]},{"id":"a981085a.cff378","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1537.9490661621094,"y":199.57630157470703,"z":"b771fc5b.409cb","wires":[["b4c2d507.0578e8","78fc68f3.711408","1ab78a0a.88aaa6"]]},{"id":"47fadddd.26d6f4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1997.2352142333984,"y":571.2905960083008,"z":"b771fc5b.409cb","wires":[["529541dd.a26eb","418f8e8f.8feee","409705a1.942bdc"]]},{"id":"529541dd.a26eb","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Failure while restarting the server : ' + $restart-vm-url`\"/>\n","comments":"","x":2218.8069915771484,"y":498.0048294067383,"z":"b771fc5b.409cb","wires":[]},{"id":"418f8e8f.8feee","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":2202.2359466552734,"y":571.1953201293945,"z":"b771fc5b.409cb","wires":[[]]},{"id":"78fc68f3.711408","type":"set","name":"Set Success Message","xml":"<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restart-vm-url`\"/>\n\n\n","comments":"","x":1765.9490661621094,"y":147.5763931274414,"z":"b771fc5b.409cb","wires":[]},{"id":"b4c2d507.0578e8","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":1759.9490661621094,"y":198.57633209228516,"z":"b771fc5b.409cb","wires":[[]]},{"id":"3eae949.bf5786c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":699.8062591552734,"y":368.4333267211914,"z":"b771fc5b.409cb","wires":[["e1cc571.7242da8"]]},{"id":"80437160.c9765","type":"switchNode","name":"switch : Last Attempt","xml":"<switch test='`$restartRetryCount == $i`'>\n","comments":"","outputs":1,"x":1638.3616790771484,"y":506.43338775634766,"z":"b771fc5b.409cb","wires":[["c9437e52.f755d","84e517eb.b75708"]]},{"id":"84e517eb.b75708","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1839.111557006836,"y":572.1836013793945,"z":"b771fc5b.409cb","wires":[["47fadddd.26d6f4"]]},{"id":"c9437e52.f755d","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1844.6116180419922,"y":451.1834487915039,"z":"b771fc5b.409cb","wires":[["225e5cc2.bacbe4"]]},{"id":"e1cc571.7242da8","type":"for","name":"Loop","xml":"<for index=\"i\" start=\"1\" end=\"`$restartRetryCount + 1`\" >","comments":"","outputs":1,"x":868.9175872802734,"y":410.43341064453125,"z":"b771fc5b.409cb","wires":[["a218356d.8a7768"]]},{"id":"225e5cc2.bacbe4","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=\"`'Restart attempt ' + $i + ' of ' + $restartRetryCount + ' failed for server : ' + $restart-vm-url + '. Retrying.'`\"/>\n","comments":"","outputs":1,"x":2018.6951141357422,"y":451.43338775634766,"z":"b771fc5b.409cb","wires":[[]]},{"id":"409705a1.942bdc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2230.2513275146484,"y":625.4333877563477,"z":"b771fc5b.409cb","wires":[]},{"id":"1ab78a0a.88aaa6","type":"returnSuccess","name":"return success","xml":"<return status='success'>","comments":"","x":1761.4729919433594,"y":250.43338775634766,"z":"b771fc5b.409cb","wires":[]},{"id":"abb47796.fc7f08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1427.0279388427734,"y":504.43335723876953,"z":"b771fc5b.409cb","wires":[["80437160.c9765"]]},{"id":"72dbf7c2.2df8e8","type":"execute","name":"execute_restart","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$restart-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />","comments":"","outputs":1,"x":308.36180114746094,"y":284.4333267211914,"z":"b771fc5b.409cb","wires":[["9097a072.2eda7","393cd209.7f961e"]]},{"id":"9097a072.2eda7","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":505.2508201599121,"y":196.4333267211914,"z":"b771fc5b.409cb","wires":[["8d1da1c0.8a6e3"]]},{"id":"393cd209.7f961e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":509.25075912475586,"y":369.4333267211914,"z":"b771fc5b.409cb","wires":[["3eae949.bf5786c"]]},{"id":"8d1da1c0.8a6e3","type":"switchNode","name":"switch","xml":"<switch test='`$RESTART_STATUS`'>\n","comments":"","outputs":1,"x":651.4728660583496,"y":197.4333267211914,"z":"b771fc5b.409cb","wires":[["56de1010.e3cfc","8f627675.a8bb68"]]},{"id":"56de1010.e3cfc","type":"other","name":"success","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1024.1874237060547,"y":131.86194610595703,"z":"b771fc5b.409cb","wires":[["a981085a.cff378"]]},{"id":"8f627675.a8bb68","type":"other","name":"error","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":662.7583923339844,"y":289.14762115478516,"z":"b771fc5b.409cb","wires":[["3eae949.bf5786c"]]}]
+[
+ {
+ "id": "7f4de7a8.ac56b8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 119.80625915527344,
+ "y": 126.4333267211914,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "256d787.026be88"
+ ]
+ ]
+ },
+ {
+ "id": "256d787.026be88",
+ "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": 312.80633544921875,
+ "y": 126,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "98e831ca.cf20f"
+ ]
+ ]
+ },
+ {
+ "id": "98e831ca.cf20f",
+ "type": "method",
+ "name": "RestartVM_VM",
+ "xml": "<method rpc='RestartVM_VM' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 138.5563201904297,
+ "y": 222.2499771118164,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "72dbf7c2.2df8e8"
+ ]
+ ]
+ },
+ {
+ "id": "a218356d.8a7768",
+ "type": "execute",
+ "name": "execute_restart",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$restart-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"skip-hypervisor-check\" value=\"`$skip-hypervisor-check`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 984.8326797485352,
+ "y": 496.218994140625,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "a79fc9de.660258",
+ "4f648386.c6afdc"
+ ]
+ ]
+ },
+ {
+ "id": "a79fc9de.660258",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1240.4515228271484,
+ "y": 569.3620681762695,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "abb47796.fc7f08"
+ ]
+ ]
+ },
+ {
+ "id": "4f648386.c6afdc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1107.8062591552734,
+ "y": 406.43335723876953,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "6795df77.7887d"
+ ]
+ ]
+ },
+ {
+ "id": "6795df77.7887d",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$RESTART_STATUS`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1232.6633758544922,
+ "y": 346.86197662353516,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "565819ab.6ea5f8",
+ "86f97daf.53db4"
+ ]
+ ]
+ },
+ {
+ "id": "86f97daf.53db4",
+ "type": "other",
+ "name": "error",
+ "xml": "<outcome value='ERROR'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1273.9488372802734,
+ "y": 454.5762710571289,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "abb47796.fc7f08"
+ ]
+ ]
+ },
+ {
+ "id": "565819ab.6ea5f8",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1372.3779754638672,
+ "y": 262.2905960083008,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "a981085a.cff378"
+ ]
+ ]
+ },
+ {
+ "id": "a981085a.cff378",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1537.9490661621094,
+ "y": 199.57630157470703,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "b4c2d507.0578e8",
+ "78fc68f3.711408",
+ "1ab78a0a.88aaa6"
+ ]
+ ]
+ },
+ {
+ "id": "47fadddd.26d6f4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1997.2352142333984,
+ "y": 571.2905960083008,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "529541dd.a26eb",
+ "418f8e8f.8feee",
+ "409705a1.942bdc"
+ ]
+ ]
+ },
+ {
+ "id": "529541dd.a26eb",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Failure while restarting the server : ' + $restart-vm-url`\"/>\n",
+ "comments": "",
+ "x": 2218.8069915771484,
+ "y": 498.0048294067383,
+ "z": "b771fc5b.409cb",
+ "wires": []
+ },
+ {
+ "id": "418f8e8f.8feee",
+ "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": 2202.2359466552734,
+ "y": 571.1953201293945,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "78fc68f3.711408",
+ "type": "set",
+ "name": "Set Success Message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restart-vm-url`\"/>\n\n\n",
+ "comments": "",
+ "x": 1765.9490661621094,
+ "y": 147.5763931274414,
+ "z": "b771fc5b.409cb",
+ "wires": []
+ },
+ {
+ "id": "b4c2d507.0578e8",
+ "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": 1759.9490661621094,
+ "y": 198.57633209228516,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3eae949.bf5786c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 699.8062591552734,
+ "y": 368.4333267211914,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "e1cc571.7242da8"
+ ]
+ ]
+ },
+ {
+ "id": "80437160.c9765",
+ "type": "switchNode",
+ "name": "switch : Last Attempt",
+ "xml": "<switch test='`$restartRetryCount == $i`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1638.3616790771484,
+ "y": 506.43338775634766,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "c9437e52.f755d",
+ "84e517eb.b75708"
+ ]
+ ]
+ },
+ {
+ "id": "84e517eb.b75708",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1839.111557006836,
+ "y": 572.1836013793945,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "47fadddd.26d6f4"
+ ]
+ ]
+ },
+ {
+ "id": "c9437e52.f755d",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1844.6116180419922,
+ "y": 451.1834487915039,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "225e5cc2.bacbe4"
+ ]
+ ]
+ },
+ {
+ "id": "e1cc571.7242da8",
+ "type": "for",
+ "name": "Loop",
+ "xml": "<for index=\"i\" start=\"1\" end=\"`$restartRetryCount + 1`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 868.9175872802734,
+ "y": 410.43341064453125,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "a218356d.8a7768"
+ ]
+ ]
+ },
+ {
+ "id": "225e5cc2.bacbe4",
+ "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=\"`'Restart attempt ' + $i + ' of ' + $restartRetryCount + ' failed for server : ' + $restart-vm-url + '. Retrying.'`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2018.6951141357422,
+ "y": 451.43338775634766,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "409705a1.942bdc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2230.2513275146484,
+ "y": 625.4333877563477,
+ "z": "b771fc5b.409cb",
+ "wires": []
+ },
+ {
+ "id": "1ab78a0a.88aaa6",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>",
+ "comments": "",
+ "x": 1761.4729919433594,
+ "y": 250.43338775634766,
+ "z": "b771fc5b.409cb",
+ "wires": []
+ },
+ {
+ "id": "abb47796.fc7f08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1427.0279388427734,
+ "y": 504.43335723876953,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "80437160.c9765"
+ ]
+ ]
+ },
+ {
+ "id": "72dbf7c2.2df8e8",
+ "type": "execute",
+ "name": "execute_restart",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$restart-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 308.36180114746094,
+ "y": 284.4333267211914,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "9097a072.2eda7",
+ "393cd209.7f961e"
+ ]
+ ]
+ },
+ {
+ "id": "9097a072.2eda7",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 505.2508201599121,
+ "y": 196.4333267211914,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "8d1da1c0.8a6e3"
+ ]
+ ]
+ },
+ {
+ "id": "393cd209.7f961e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 509.25075912475586,
+ "y": 369.4333267211914,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "3eae949.bf5786c"
+ ]
+ ]
+ },
+ {
+ "id": "8d1da1c0.8a6e3",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$RESTART_STATUS`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 651.4728660583496,
+ "y": 197.4333267211914,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "56de1010.e3cfc",
+ "8f627675.a8bb68"
+ ]
+ ]
+ },
+ {
+ "id": "56de1010.e3cfc",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1024.1874237060547,
+ "y": 131.86194610595703,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "a981085a.cff378"
+ ]
+ ]
+ },
+ {
+ "id": "8f627675.a8bb68",
+ "type": "other",
+ "name": "error",
+ "xml": "<outcome value='ERROR'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 662.7583923339844,
+ "y": 289.14762115478516,
+ "z": "b771fc5b.409cb",
+ "wires": [
+ [
+ "3eae949.bf5786c"
+ ]
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VM.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VM.json
index 75e5cd60c..ff2e9a208 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VM.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VM.json
@@ -1 +1,1140 @@
-[{"id":"a9512af0.2ec648","type":"dgstart","name":"DGSTART","outputs":1,"x":95,"y":42,"z":"b984f735.170a28","wires":[["9d497354.98d4d"]]},{"id":"9d497354.98d4d","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":134.0000762939453,"y":104.5666732788086,"z":"b984f735.170a28","wires":[["7525850b.012bec"]]},{"id":"7525850b.012bec","type":"method","name":"Restart_VM","xml":"<method rpc='Restart_VM' mode='sync'>\n","comments":"","outputs":1,"x":175.7500762939453,"y":160.81666564941406,"z":"b984f735.170a28","wires":[["3c44027b.eab53e"]]},{"id":"a0d8147d.9fd638","type":"execute","name":"Resolve Application Sop DG","xml":"<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Stop_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"ApplicationStop\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n","comments":"","outputs":1,"x":574.0000152587891,"y":85.00001525878906,"z":"b984f735.170a28","wires":[["39b85a6a.3da766"]]},{"id":"39b85a6a.3da766","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":805.2223205566406,"y":84.91676330566406,"z":"b984f735.170a28","wires":[["fa92d96.4e4e928"]]},{"id":"7a2fb34.9a5cf4c","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=\"`$error-message`\"/>\n","comments":"","outputs":1,"x":1215,"y":173.00003051757812,"z":"b984f735.170a28","wires":[[]]},{"id":"fa92d96.4e4e928","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":986.0000610351562,"y":85.00001525878906,"z":"b984f735.170a28","wires":[["90706af8.c781f8","7a2fb34.9a5cf4c","f98f3898.faecf8"]]},{"id":"861e0104.35b31","type":"call","name":"Stop Application","xml":"<call module='`$ApplicationStop.dg_module`' rpc='`$ApplicationStop.dg_name`' version='`$ApplicationStop.dg_version`' mode='sync' >\n","comments":"","outputs":1,"x":541.3175659179688,"y":354.99981689453125,"z":"b984f735.170a28","wires":[["847e984.ecc4868","8b93e1af.acf0a","d2e13936.d3ac68"]]},{"id":"d2e13936.d3ac68","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":772.6510620117188,"y":303.9996337890625,"z":"b984f735.170a28","wires":[["36c612c4.c0fcce"]]},{"id":"847e984.ecc4868","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":766.5182495117188,"y":480.92840576171875,"z":"b984f735.170a28","wires":[["64f7aa4b.531954"]]},{"id":"8b93e1af.acf0a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":767.873291015625,"y":394.999755859375,"z":"b984f735.170a28","wires":[["4933b52f.71e72c"]]},{"id":"64f7aa4b.531954","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":979.7615966796875,"y":480.99969768524375,"z":"b984f735.170a28","wires":[["a7a86bfe.db5a78","f89ae72.d92c718"]]},{"id":"f89ae72.d92c718","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Failure while stopping the server: ' + $restart-vm-url + ' at Application level.'`\"/>","comments":"","x":1239.5393981933594,"y":481.9996843337992,"z":"b984f735.170a28","wires":[]},{"id":"a7a86bfe.db5a78","type":"record","name":"Log message","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":1225.6723327636719,"y":528.8123064041117,"z":"b984f735.170a28","wires":[[]]},{"id":"36c612c4.c0fcce","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":979.7615966796875,"y":303.9996337890625,"z":"b984f735.170a28","wires":[["af672dc5.7c144","6fbe061b.5a2d78","2e149572.9b4aea"]]},{"id":"af672dc5.7c144","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Application stop DG : ' + $ApplicationStop.dg_name + ' not found.'`\"/>","comments":"","x":1229.5394287109375,"y":264.99969482421875,"z":"b984f735.170a28","wires":[]},{"id":"6fbe061b.5a2d78","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1214.7615966796875,"y":345.9996337890625,"z":"b984f735.170a28","wires":[]},{"id":"4933b52f.71e72c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":986.872802734375,"y":394.999755859375,"z":"b984f735.170a28","wires":[["87599293.c745a","dc2add7.18f442"]]},{"id":"dc2add7.18f442","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Stop succeeded for the server : ' + $restart-vm-url` at application level.\"/>\n","comments":"","x":1245.9276123046875,"y":395.0665283203125,"z":"b984f735.170a28","wires":[]},{"id":"87599293.c745a","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":1222.9276123046875,"y":438.0664978027344,"z":"b984f735.170a28","wires":[[]]},{"id":"21ee16d0.7c845a","type":"execute","name":"Resolve Application Start DG","xml":"<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Start_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"ApplicationStart\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n","comments":"","outputs":1,"x":575,"y":175,"z":"b984f735.170a28","wires":[["11ee72e6.cf116d"]]},{"id":"11ee72e6.cf116d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":804.2222900390625,"y":174.916748046875,"z":"b984f735.170a28","wires":[["95a44f48.850ee"]]},{"id":"95a44f48.850ee","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":986,"y":175,"z":"b984f735.170a28","wires":[["47e99597.7f430c","7a2fb34.9a5cf4c","f98f3898.faecf8"]]},{"id":"90706af8.c781f8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Failed to resolve Application stop DG for : ' + $vnfcType`\"/>","comments":"","x":1229,"y":85,"z":"b984f735.170a28","wires":[]},{"id":"47e99597.7f430c","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Failed to resolve Application start DG for : ' + $vnfcType`\"/>","comments":"","x":1231,"y":132,"z":"b984f735.170a28","wires":[]},{"id":"f98f3898.faecf8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1212,"y":216,"z":"b984f735.170a28","wires":[]},{"id":"e8324ff0.b7785","type":"call","name":"Restart VM","xml":"<call module='APPC' rpc='RestartVM_VM' mode='sync' >\n","comments":"","outputs":1,"x":509,"y":669,"z":"b984f735.170a28","wires":[["7c0c0d04.13c0c4","3aa07333.27bc0c","d7b6d480.c99688"]]},{"id":"7c0c0d04.13c0c4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":711.7998046875,"y":764,"z":"b984f735.170a28","wires":[["6e7a0094.c01bd"]]},{"id":"d7b6d480.c99688","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":721.5775756835938,"y":579,"z":"b984f735.170a28","wires":[["e5234f3a.f31fc"]]},{"id":"3aa07333.27bc0c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":710.44482421875,"y":668.928466796875,"z":"b984f735.170a28","wires":[["72e8010b.e80bb"]]},{"id":"2e149572.9b4aea","type":"record","name":"Log message","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":1212,"y":304,"z":"b984f735.170a28","wires":[[]]},{"id":"3c44027b.eab53e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":265,"y":557,"z":"b984f735.170a28","wires":[["21ee16d0.7c845a","e8324ff0.b7785","417783a9.d9a3dc","8293147d.835ab8","e852d328.2c314","a0d8147d.9fd638","861e0104.35b31"]]},{"id":"e5234f3a.f31fc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":903,"y":579,"z":"b984f735.170a28","wires":[["e786eccc.52ef5","9773ec20.4e23e","9cc414cf.e7c9e8"]]},{"id":"9773ec20.4e23e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1144,"y":710,"z":"b984f735.170a28","wires":[]},{"id":"9cc414cf.e7c9e8","type":"record","name":"Log message","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":1141.2384033203125,"y":668.0003662109375,"z":"b984f735.170a28","wires":[[]]},{"id":"e786eccc.52ef5","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"VM Restart DG not found.\"/>","comments":"","x":1154.77783203125,"y":579.0000610351562,"z":"b984f735.170a28","wires":[]},{"id":"6e7a0094.c01bd","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":885.9999389648438,"y":765,"z":"b984f735.170a28","wires":[["a3c4853f.40b318","33fe1ee6.042e72"]]},{"id":"33fe1ee6.042e72","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restart-vm-url`\"/>\n","comments":"","x":1172.0547485351562,"y":757.0667724609375,"z":"b984f735.170a28","wires":[]},{"id":"a3c4853f.40b318","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":1147.0547485351562,"y":800.0667419433594,"z":"b984f735.170a28","wires":[[]]},{"id":"72e8010b.e80bb","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":882,"y":669,"z":"b984f735.170a28","wires":[["9cc414cf.e7c9e8","9773ec20.4e23e"]]},{"id":"5659bad0.a5df44","type":"call","name":"Start Application","xml":"<call module='`$ApplicationStart.dg_module`' rpc='`$ApplicationStart.dg_name`' version='`$ApplicationStart.dg_version`' mode='sync' >\n","comments":"","outputs":1,"x":1804.0001220703125,"y":969.0000610351562,"z":"b984f735.170a28","wires":[["921b7a03.dc3578","26931ef5.273852","f0eafdd5.891c1"]]},{"id":"f0eafdd5.891c1","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2074.3336181640625,"y":883.9998779296875,"z":"b984f735.170a28","wires":[["647d9a28.b03584"]]},{"id":"921b7a03.dc3578","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2061.2008056640625,"y":970.9286499023438,"z":"b984f735.170a28","wires":[["498aae01.db4c8"]]},{"id":"26931ef5.273852","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2066.5558471679688,"y":1083.9999389648438,"z":"b984f735.170a28","wires":[["3b52a93.0a7f756"]]},{"id":"498aae01.db4c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2236.4441528320312,"y":970.9999418258687,"z":"b984f735.170a28","wires":[["56221b95.e94674","7fc18918.d80b88","ed1928d0.c013d8"]]},{"id":"56221b95.e94674","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Failure while starting the server: ' + $restart-vm-url + ' at Application level.'`\"/>","comments":"","x":2494.221954345703,"y":903.9999284744242,"z":"b984f735.170a28","wires":[]},{"id":"647d9a28.b03584","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2243.4441528320312,"y":883.9998779296875,"z":"b984f735.170a28","wires":[["bc465d1a.8f2f8","ed1928d0.c013d8","7fc18918.d80b88"]]},{"id":"bc465d1a.8f2f8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Application start DG : ' + $ApplicationStart.dg_name + ' not found.'`\"/>","comments":"","x":2491.2219848632812,"y":854.9999389648438,"z":"b984f735.170a28","wires":[]},{"id":"ed1928d0.c013d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2484.444091796875,"y":996.9998779296875,"z":"b984f735.170a28","wires":[]},{"id":"3b52a93.0a7f756","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2236.5553588867188,"y":1083.9999389648438,"z":"b984f735.170a28","wires":[["f056aa26.f7dff8","542ce20.b31862","442acb3.1d6a034"]]},{"id":"542ce20.b31862","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Start succeeded for the server : ' + $restart-vm-url` at application level.\"/>\n","comments":"","x":2513.6101684570312,"y":1041.0667114257812,"z":"b984f735.170a28","wires":[]},{"id":"f056aa26.f7dff8","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":2492.610107421875,"y":1085.066650390625,"z":"b984f735.170a28","wires":[[]]},{"id":"7fc18918.d80b88","type":"record","name":"Log message","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":2481.6824951171875,"y":955.000244140625,"z":"b984f735.170a28","wires":[[]]},{"id":"e546334b.650fb","type":"set","name":"set start parameters","xml":"<set>\n<parameter name=\"start-vm-url\" value=\"`$restart-vm-url`\" />","comments":"","x":1817.0001220703125,"y":919.0000610351562,"z":"b984f735.170a28","wires":[]},{"id":"417783a9.d9a3dc","type":"set","name":"set stop parameters","xml":"<set>\n<parameter name=\"stop-vm-url\" value=\"`$restart-vm-url`\" />","comments":"","x":553,"y":302,"z":"b984f735.170a28","wires":[]},{"id":"442acb3.1d6a034","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":2497.0001220703125,"y":1128.0000610351562,"z":"b984f735.170a28","wires":[]},{"id":"8293147d.835ab8","type":"set","name":"set healthcheck parameters","xml":"<set>\n<parameter name=\"healthcheck.vm[0].url\" value=\"`$restart-vm-url`\" />\n<parameter name=\"healthcheck.vmCount\" value=\"1\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n","comments":"","x":554,"y":859,"z":"b984f735.170a28","wires":[]},{"id":"e852d328.2c314","type":"call","name":"Healthcheck Application","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":538.3046875,"y":912.2333374023438,"z":"b984f735.170a28","wires":[["c45e9b3d.f04c68","eb378fb1.6a751","b683026f.8d186"]]},{"id":"c45e9b3d.f04c68","type":"outcome","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":824.47216796875,"y":874.5001220703125,"z":"b984f735.170a28","wires":[["1de23c81.8d2603"]]},{"id":"1de23c81.8d2603","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$healthcheck.vm[0].status`\">\n","comments":"","outputs":1,"x":1118,"y":874.0000610351562,"z":"b984f735.170a28","wires":[["f22c3d56.f72a4","c82cd43c.aa1778","db3ee578.1b38c8"]]},{"id":"f22c3d56.f72a4","type":"other","name":"UP","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":1359,"y":826.0000610351562,"z":"b984f735.170a28","wires":[["23734e9f.70a3f2"]]},{"id":"23734e9f.70a3f2","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1563.99951171875,"y":824.0000610351562,"z":"b984f735.170a28","wires":[["788520dc.d8dd7","2f68662.8cfa69a","a1dd23cd.927a7"]]},{"id":"2f68662.8cfa69a","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Healthcheck succeeded for the restarted server : ' + $restart-vm-url`\"/>\n","comments":"","x":1824.0543212890625,"y":781.0668334960938,"z":"b984f735.170a28","wires":[]},{"id":"788520dc.d8dd7","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":1800.0543212890625,"y":824.0668029785156,"z":"b984f735.170a28","wires":[[]]},{"id":"a1dd23cd.927a7","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":1804.4442749023438,"y":868.0001831054688,"z":"b984f735.170a28","wires":[]},{"id":"c82cd43c.aa1778","type":"other","name":"DOWN","xml":"<outcome value='DOWN'>\n","comments":"","outputs":1,"x":1359,"y":875.0000610351562,"z":"b984f735.170a28","wires":[["e6e0685d.7d2e08"]]},{"id":"db3ee578.1b38c8","type":"other","name":"UNKNOWN","xml":"<outcome value='UNKNOWN'>\n","comments":"","outputs":1,"x":1375.783447265625,"y":924.1428833007812,"z":"b984f735.170a28","wires":[["e6e0685d.7d2e08"]]},{"id":"e6e0685d.7d2e08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1609,"y":942,"z":"b984f735.170a28","wires":[["e546334b.650fb","5659bad0.a5df44"]]},{"id":"eb378fb1.6a751","type":"outcome","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":812,"y":979,"z":"b984f735.170a28","wires":[["9cd90f6e.fcf8a"]]},{"id":"b683026f.8d186","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":815.5164794921875,"y":1067.338134765625,"z":"b984f735.170a28","wires":[["44e9943.917966c"]]},{"id":"9cd90f6e.fcf8a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1006,"y":979.0000610351562,"z":"b984f735.170a28","wires":[["67b277fb.8ee0c8","8e0f7825.4d1df8","cdc1c975.d33b68"]]},{"id":"44e9943.917966c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":996,"y":1067.0000610351562,"z":"b984f735.170a28","wires":[["cdc1c975.d33b68","8e0f7825.4d1df8","b1c7157.0ed5be8"]]},{"id":"67b277fb.8ee0c8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Error occurred during post-health check of the restarted server: ' + $restart-vm-url`\"/>","comments":"","x":1267,"y":980.0000610351562,"z":"b984f735.170a28","wires":[]},{"id":"b1c7157.0ed5be8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":1265.666748046875,"y":1026.0000610351562,"z":"b984f735.170a28","wires":[]},{"id":"8e0f7825.4d1df8","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":1238.1329345703125,"y":1071.8126831054688,"z":"b984f735.170a28","wires":[[]]},{"id":"cdc1c975.d33b68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1247.7607421875,"y":1116.1880493164062,"z":"b984f735.170a28","wires":[]}]
+[
+ {
+ "id": "a9512af0.2ec648",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 95,
+ "y": 42,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "9d497354.98d4d"
+ ]
+ ]
+ },
+ {
+ "id": "9d497354.98d4d",
+ "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": 134.0000762939453,
+ "y": 104.5666732788086,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "7525850b.012bec"
+ ]
+ ]
+ },
+ {
+ "id": "7525850b.012bec",
+ "type": "method",
+ "name": "Restart_VM",
+ "xml": "<method rpc='Restart_VM' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 175.7500762939453,
+ "y": 160.81666564941406,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "3c44027b.eab53e"
+ ]
+ ]
+ },
+ {
+ "id": "a0d8147d.9fd638",
+ "type": "execute",
+ "name": "Resolve Application Sop DG",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Stop_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"ApplicationStop\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 574.0000152587891,
+ "y": 85.00001525878906,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "39b85a6a.3da766"
+ ]
+ ]
+ },
+ {
+ "id": "39b85a6a.3da766",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 805.2223205566406,
+ "y": 84.91676330566406,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "fa92d96.4e4e928"
+ ]
+ ]
+ },
+ {
+ "id": "7a2fb34.9a5cf4c",
+ "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=\"`$error-message`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1215,
+ "y": 173.00003051757812,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fa92d96.4e4e928",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.0000610351562,
+ "y": 85.00001525878906,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "90706af8.c781f8",
+ "7a2fb34.9a5cf4c",
+ "f98f3898.faecf8"
+ ]
+ ]
+ },
+ {
+ "id": "861e0104.35b31",
+ "type": "call",
+ "name": "Stop Application",
+ "xml": "<call module='`$ApplicationStop.dg_module`' rpc='`$ApplicationStop.dg_name`' version='`$ApplicationStop.dg_version`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 541.3175659179688,
+ "y": 354.99981689453125,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "847e984.ecc4868",
+ "8b93e1af.acf0a",
+ "d2e13936.d3ac68"
+ ]
+ ]
+ },
+ {
+ "id": "d2e13936.d3ac68",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 772.6510620117188,
+ "y": 303.9996337890625,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "36c612c4.c0fcce"
+ ]
+ ]
+ },
+ {
+ "id": "847e984.ecc4868",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 766.5182495117188,
+ "y": 480.92840576171875,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "64f7aa4b.531954"
+ ]
+ ]
+ },
+ {
+ "id": "8b93e1af.acf0a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 767.873291015625,
+ "y": 394.999755859375,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "4933b52f.71e72c"
+ ]
+ ]
+ },
+ {
+ "id": "64f7aa4b.531954",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 979.7615966796875,
+ "y": 480.99969768524375,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "a7a86bfe.db5a78",
+ "f89ae72.d92c718"
+ ]
+ ]
+ },
+ {
+ "id": "f89ae72.d92c718",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Failure while stopping the server: ' + $restart-vm-url + ' at Application level.'`\"/>",
+ "comments": "",
+ "x": 1239.5393981933594,
+ "y": 481.9996843337992,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "a7a86bfe.db5a78",
+ "type": "record",
+ "name": "Log message",
+ "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": 1225.6723327636719,
+ "y": 528.8123064041117,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "36c612c4.c0fcce",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 979.7615966796875,
+ "y": 303.9996337890625,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "af672dc5.7c144",
+ "6fbe061b.5a2d78",
+ "2e149572.9b4aea"
+ ]
+ ]
+ },
+ {
+ "id": "af672dc5.7c144",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Application stop DG : ' + $ApplicationStop.dg_name + ' not found.'`\"/>",
+ "comments": "",
+ "x": 1229.5394287109375,
+ "y": 264.99969482421875,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "6fbe061b.5a2d78",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1214.7615966796875,
+ "y": 345.9996337890625,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "4933b52f.71e72c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.872802734375,
+ "y": 394.999755859375,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "87599293.c745a",
+ "dc2add7.18f442"
+ ]
+ ]
+ },
+ {
+ "id": "dc2add7.18f442",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Stop succeeded for the server : ' + $restart-vm-url` at application level.\"/>\n",
+ "comments": "",
+ "x": 1245.9276123046875,
+ "y": 395.0665283203125,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "87599293.c745a",
+ "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": 1222.9276123046875,
+ "y": 438.0664978027344,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "21ee16d0.7c845a",
+ "type": "execute",
+ "name": "Resolve Application Start DG",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Start_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"ApplicationStart\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 575,
+ "y": 175,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "11ee72e6.cf116d"
+ ]
+ ]
+ },
+ {
+ "id": "11ee72e6.cf116d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 804.2222900390625,
+ "y": 174.916748046875,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "95a44f48.850ee"
+ ]
+ ]
+ },
+ {
+ "id": "95a44f48.850ee",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 986,
+ "y": 175,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "47e99597.7f430c",
+ "7a2fb34.9a5cf4c",
+ "f98f3898.faecf8"
+ ]
+ ]
+ },
+ {
+ "id": "90706af8.c781f8",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Failed to resolve Application stop DG for : ' + $vnfcType`\"/>",
+ "comments": "",
+ "x": 1229,
+ "y": 85,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "47e99597.7f430c",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Failed to resolve Application start DG for : ' + $vnfcType`\"/>",
+ "comments": "",
+ "x": 1231,
+ "y": 132,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "f98f3898.faecf8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1212,
+ "y": 216,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "e8324ff0.b7785",
+ "type": "call",
+ "name": "Restart VM",
+ "xml": "<call module='APPC' rpc='RestartVM_VM' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 509,
+ "y": 669,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "7c0c0d04.13c0c4",
+ "3aa07333.27bc0c",
+ "d7b6d480.c99688"
+ ]
+ ]
+ },
+ {
+ "id": "7c0c0d04.13c0c4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 711.7998046875,
+ "y": 764,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "6e7a0094.c01bd"
+ ]
+ ]
+ },
+ {
+ "id": "d7b6d480.c99688",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 721.5775756835938,
+ "y": 579,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "e5234f3a.f31fc"
+ ]
+ ]
+ },
+ {
+ "id": "3aa07333.27bc0c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710.44482421875,
+ "y": 668.928466796875,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "72e8010b.e80bb"
+ ]
+ ]
+ },
+ {
+ "id": "2e149572.9b4aea",
+ "type": "record",
+ "name": "Log message",
+ "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": 1212,
+ "y": 304,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3c44027b.eab53e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 265,
+ "y": 557,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "21ee16d0.7c845a",
+ "e8324ff0.b7785",
+ "417783a9.d9a3dc",
+ "8293147d.835ab8",
+ "e852d328.2c314",
+ "a0d8147d.9fd638",
+ "861e0104.35b31"
+ ]
+ ]
+ },
+ {
+ "id": "e5234f3a.f31fc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 903,
+ "y": 579,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "e786eccc.52ef5",
+ "9773ec20.4e23e",
+ "9cc414cf.e7c9e8"
+ ]
+ ]
+ },
+ {
+ "id": "9773ec20.4e23e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1144,
+ "y": 710,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "9cc414cf.e7c9e8",
+ "type": "record",
+ "name": "Log message",
+ "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": 1141.2384033203125,
+ "y": 668.0003662109375,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e786eccc.52ef5",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"VM Restart DG not found.\"/>",
+ "comments": "",
+ "x": 1154.77783203125,
+ "y": 579.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "6e7a0094.c01bd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 885.9999389648438,
+ "y": 765,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "a3c4853f.40b318",
+ "33fe1ee6.042e72"
+ ]
+ ]
+ },
+ {
+ "id": "33fe1ee6.042e72",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Restart succeeded for the server : ' + $restart-vm-url`\"/>\n",
+ "comments": "",
+ "x": 1172.0547485351562,
+ "y": 757.0667724609375,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "a3c4853f.40b318",
+ "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": 1147.0547485351562,
+ "y": 800.0667419433594,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "72e8010b.e80bb",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 882,
+ "y": 669,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "9cc414cf.e7c9e8",
+ "9773ec20.4e23e"
+ ]
+ ]
+ },
+ {
+ "id": "5659bad0.a5df44",
+ "type": "call",
+ "name": "Start Application",
+ "xml": "<call module='`$ApplicationStart.dg_module`' rpc='`$ApplicationStart.dg_name`' version='`$ApplicationStart.dg_version`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1804.0001220703125,
+ "y": 969.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "921b7a03.dc3578",
+ "26931ef5.273852",
+ "f0eafdd5.891c1"
+ ]
+ ]
+ },
+ {
+ "id": "f0eafdd5.891c1",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2074.3336181640625,
+ "y": 883.9998779296875,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "647d9a28.b03584"
+ ]
+ ]
+ },
+ {
+ "id": "921b7a03.dc3578",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2061.2008056640625,
+ "y": 970.9286499023438,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "498aae01.db4c8"
+ ]
+ ]
+ },
+ {
+ "id": "26931ef5.273852",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2066.5558471679688,
+ "y": 1083.9999389648438,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "3b52a93.0a7f756"
+ ]
+ ]
+ },
+ {
+ "id": "498aae01.db4c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2236.4441528320312,
+ "y": 970.9999418258687,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "56221b95.e94674",
+ "7fc18918.d80b88",
+ "ed1928d0.c013d8"
+ ]
+ ]
+ },
+ {
+ "id": "56221b95.e94674",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Failure while starting the server: ' + $restart-vm-url + ' at Application level.'`\"/>",
+ "comments": "",
+ "x": 2494.221954345703,
+ "y": 903.9999284744242,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "647d9a28.b03584",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2243.4441528320312,
+ "y": 883.9998779296875,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "bc465d1a.8f2f8",
+ "ed1928d0.c013d8",
+ "7fc18918.d80b88"
+ ]
+ ]
+ },
+ {
+ "id": "bc465d1a.8f2f8",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Application start DG : ' + $ApplicationStart.dg_name + ' not found.'`\"/>",
+ "comments": "",
+ "x": 2491.2219848632812,
+ "y": 854.9999389648438,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "ed1928d0.c013d8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2484.444091796875,
+ "y": 996.9998779296875,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "3b52a93.0a7f756",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2236.5553588867188,
+ "y": 1083.9999389648438,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "f056aa26.f7dff8",
+ "542ce20.b31862",
+ "442acb3.1d6a034"
+ ]
+ ]
+ },
+ {
+ "id": "542ce20.b31862",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Start succeeded for the server : ' + $restart-vm-url` at application level.\"/>\n",
+ "comments": "",
+ "x": 2513.6101684570312,
+ "y": 1041.0667114257812,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "f056aa26.f7dff8",
+ "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": 2492.610107421875,
+ "y": 1085.066650390625,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7fc18918.d80b88",
+ "type": "record",
+ "name": "Log message",
+ "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": 2481.6824951171875,
+ "y": 955.000244140625,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e546334b.650fb",
+ "type": "set",
+ "name": "set start parameters",
+ "xml": "<set>\n<parameter name=\"start-vm-url\" value=\"`$restart-vm-url`\" />",
+ "comments": "",
+ "x": 1817.0001220703125,
+ "y": 919.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "417783a9.d9a3dc",
+ "type": "set",
+ "name": "set stop parameters",
+ "xml": "<set>\n<parameter name=\"stop-vm-url\" value=\"`$restart-vm-url`\" />",
+ "comments": "",
+ "x": 553,
+ "y": 302,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "442acb3.1d6a034",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 2497.0001220703125,
+ "y": 1128.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "8293147d.835ab8",
+ "type": "set",
+ "name": "set healthcheck parameters",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[0].url\" value=\"`$restart-vm-url`\" />\n<parameter name=\"healthcheck.vmCount\" value=\"1\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n",
+ "comments": "",
+ "x": 554,
+ "y": 859,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "e852d328.2c314",
+ "type": "call",
+ "name": "Healthcheck Application",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 538.3046875,
+ "y": 912.2333374023438,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "c45e9b3d.f04c68",
+ "eb378fb1.6a751",
+ "b683026f.8d186"
+ ]
+ ]
+ },
+ {
+ "id": "c45e9b3d.f04c68",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 824.47216796875,
+ "y": 874.5001220703125,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "1de23c81.8d2603"
+ ]
+ ]
+ },
+ {
+ "id": "1de23c81.8d2603",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$healthcheck.vm[0].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1118,
+ "y": 874.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "f22c3d56.f72a4",
+ "c82cd43c.aa1778",
+ "db3ee578.1b38c8"
+ ]
+ ]
+ },
+ {
+ "id": "f22c3d56.f72a4",
+ "type": "other",
+ "name": "UP",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1359,
+ "y": 826.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "23734e9f.70a3f2"
+ ]
+ ]
+ },
+ {
+ "id": "23734e9f.70a3f2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1563.99951171875,
+ "y": 824.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "788520dc.d8dd7",
+ "2f68662.8cfa69a",
+ "a1dd23cd.927a7"
+ ]
+ ]
+ },
+ {
+ "id": "2f68662.8cfa69a",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Healthcheck succeeded for the restarted server : ' + $restart-vm-url`\"/>\n",
+ "comments": "",
+ "x": 1824.0543212890625,
+ "y": 781.0668334960938,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "788520dc.d8dd7",
+ "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": 1800.0543212890625,
+ "y": 824.0668029785156,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a1dd23cd.927a7",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1804.4442749023438,
+ "y": 868.0001831054688,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "c82cd43c.aa1778",
+ "type": "other",
+ "name": "DOWN",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1359,
+ "y": 875.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "e6e0685d.7d2e08"
+ ]
+ ]
+ },
+ {
+ "id": "db3ee578.1b38c8",
+ "type": "other",
+ "name": "UNKNOWN",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1375.783447265625,
+ "y": 924.1428833007812,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "e6e0685d.7d2e08"
+ ]
+ ]
+ },
+ {
+ "id": "e6e0685d.7d2e08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1609,
+ "y": 942,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "e546334b.650fb",
+ "5659bad0.a5df44"
+ ]
+ ]
+ },
+ {
+ "id": "eb378fb1.6a751",
+ "type": "outcome",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 812,
+ "y": 979,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "9cd90f6e.fcf8a"
+ ]
+ ]
+ },
+ {
+ "id": "b683026f.8d186",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 815.5164794921875,
+ "y": 1067.338134765625,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "44e9943.917966c"
+ ]
+ ]
+ },
+ {
+ "id": "9cd90f6e.fcf8a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1006,
+ "y": 979.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "67b277fb.8ee0c8",
+ "8e0f7825.4d1df8",
+ "cdc1c975.d33b68"
+ ]
+ ]
+ },
+ {
+ "id": "44e9943.917966c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 996,
+ "y": 1067.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": [
+ [
+ "cdc1c975.d33b68",
+ "8e0f7825.4d1df8",
+ "b1c7157.0ed5be8"
+ ]
+ ]
+ },
+ {
+ "id": "67b277fb.8ee0c8",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Error occurred during post-health check of the restarted server: ' + $restart-vm-url`\"/>",
+ "comments": "",
+ "x": 1267,
+ "y": 980.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "b1c7157.0ed5be8",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 1265.666748046875,
+ "y": 1026.0000610351562,
+ "z": "b984f735.170a28",
+ "wires": []
+ },
+ {
+ "id": "8e0f7825.4d1df8",
+ "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": 1238.1329345703125,
+ "y": 1071.8126831054688,
+ "z": "b984f735.170a28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cdc1c975.d33b68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1247.7607421875,
+ "y": 1116.1880493164062,
+ "z": "b984f735.170a28",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json
index 0766c47d4..072443ece 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json
@@ -1 +1,1579 @@
-[{"id":"9ac68df1.3eeeb","type":"dgstart","name":"DGSTART","outputs":1,"x":238.4375,"y":257.86907958984375,"z":"75c5f17a.eda5d","wires":[["273c5344.72899c"]]},{"id":"273c5344.72899c","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":422.4375,"y":257.86907958984375,"z":"75c5f17a.eda5d","wires":[["8dd8ca14.1d2288"]]},{"id":"8dd8ca14.1d2288","type":"method","name":"Restart_VNF","xml":"<method rpc='Restart_VNF' mode='sync'>\n","comments":"","outputs":1,"x":270.43756103515625,"y":339.86907958984375,"z":"75c5f17a.eda5d","wires":[["5d3382c5.b1f6ec"]]},{"id":"70aaf732.9e9648","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":834.4377136230469,"y":285.86907958984375,"z":"75c5f17a.eda5d","wires":[["9c8d5b92.af3218"]]},{"id":"d75599d9.2ac1c8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":836.4377136230469,"y":244.86907958984375,"z":"75c5f17a.eda5d","wires":[["9c8d5b92.af3218"]]},{"id":"e872f2e6.4460c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":835.4377136230469,"y":339.8690948486328,"z":"75c5f17a.eda5d","wires":[["9c8d5b92.af3218"]]},{"id":"5d3382c5.b1f6ec","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":515.4375915527344,"y":340.8691101074219,"z":"75c5f17a.eda5d","wires":[["70aaf732.9e9648","d75599d9.2ac1c8","e872f2e6.4460c","ada92d8a.b912f"]]},{"id":"ada92d8a.b912f","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":687.4375305175781,"y":410.8690948486328,"z":"75c5f17a.eda5d","wires":[["bbde3d59.c9e7d"]]},{"id":"bbde3d59.c9e7d","type":"execute","name":"Get Vnf Hierarchy","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":605.1041259765625,"y":482.8691101074219,"z":"75c5f17a.eda5d","wires":[["fd4a217b.a9b57","7cc75d13.2aef74"]]},{"id":"7cc75d13.2aef74","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":930.1041564941406,"y":454.8691101074219,"z":"75c5f17a.eda5d","wires":[["b74a1f32.1d872"]]},{"id":"fd4a217b.a9b57","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":687.1041564941406,"y":554.8690490722656,"z":"75c5f17a.eda5d","wires":[["284ac8b0.ea6d28"]]},{"id":"284ac8b0.ea6d28","type":"switchNode","name":"switch_getVnfHierarchy_result","xml":"<switch test='`$getVnfHierarchy_result`'>\n","comments":"","outputs":1,"x":682.1041870117188,"y":617.9801940917969,"z":"75c5f17a.eda5d","wires":[["4ea4ea52.d70e44","53eb72ea.6a097c"]]},{"id":"4ea4ea52.d70e44","type":"outcome","name":"outcome_SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":720.1041870117188,"y":695.9802551269531,"z":"75c5f17a.eda5d","wires":[["9b95c3bd.6f8db"]]},{"id":"53eb72ea.6a097c","type":"outcome","name":"outcome_FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":999.1042175292969,"y":586.9801940917969,"z":"75c5f17a.eda5d","wires":[["24fa6be.3ab3c94"]]},{"id":"9b95c3bd.6f8db","type":"switchNode","name":"switch_VNF_VMCount","xml":"<switch test='`$VNF.VMCount`'>","comments":"","outputs":1,"x":721.1041870117188,"y":770.0912780761719,"z":"75c5f17a.eda5d","wires":[["279a19c4.a60a36","eb77493d.5744e8"]]},{"id":"279a19c4.a60a36","type":"outcome","name":"outcome_0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":953.1041564941406,"y":735.0912780761719,"z":"75c5f17a.eda5d","wires":[["6b2a2a0c.d9ce64"]]},{"id":"eb77493d.5744e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":817.1041641235352,"y":831.0913391113281,"z":"75c5f17a.eda5d","wires":[["a4ecb63a.5c5838"]]},{"id":"a4ecb63a.5c5838","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='FORWARD' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n","comments":"","outputs":1,"x":765.1040420532227,"y":896.2024841308594,"z":"75c5f17a.eda5d","wires":[["892a65d2.ce83c8","d9875dc.74feda"]]},{"id":"892a65d2.ce83c8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":833.1041030883789,"y":954.2024230957031,"z":"75c5f17a.eda5d","wires":[["ae689d83.c6b01"]]},{"id":"d9875dc.74feda","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1008.1041030883789,"y":861.2023620605469,"z":"75c5f17a.eda5d","wires":[["ed720e24.72ff6"]]},{"id":"9c8d5b92.af3218","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1041.1044616699219,"y":282.8690872192383,"z":"75c5f17a.eda5d","wires":[["6da25f82.3ace7","8ebaa00a.5f127"]]},{"id":"8ebaa00a.5f127","type":"execute","name":"OutputMessageBuilde","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":1300.009033203125,"y":236.25,"z":"75c5f17a.eda5d","wires":[["3e85e6ac.70e63a"]]},{"id":"3e85e6ac.70e63a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1541.2948379516602,"y":236.67862701416016,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"6da25f82.3ace7","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","x":1271.4374084472656,"y":328.3927917480469,"z":"75c5f17a.eda5d","wires":[]},{"id":"b74a1f32.1d872","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1098.8819274902344,"y":454.75799560546875,"z":"75c5f17a.eda5d","wires":[["70eeb508.3e2e3c","a413144c.5a7408"]]},{"id":"a413144c.5a7408","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":1320.8818054199219,"y":420.75799560546875,"z":"75c5f17a.eda5d","wires":[["1b02a128.9f020f"]]},{"id":"70eeb508.3e2e3c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1289.8818054199219,"y":485.75799560546875,"z":"75c5f17a.eda5d","wires":[]},{"id":"1b02a128.9f020f","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1530.8818740844727,"y":420.7579803466797,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"24fa6be.3ab3c94","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1207.7709045410156,"y":577.9801788330078,"z":"75c5f17a.eda5d","wires":[["ed3ddf12.9c052","b53931d8.8a057"]]},{"id":"7f3210ce.eac0e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1597.7707824707031,"y":545.9801864624023,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"ed3ddf12.9c052","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1430.7707824707031,"y":625.9801483154297,"z":"75c5f17a.eda5d","wires":[]},{"id":"6b2a2a0c.d9ce64","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1136.4375305175781,"y":736.0913391113281,"z":"75c5f17a.eda5d","wires":[["1824c2d.c22413d","dc0dbb4a.577668"]]},{"id":"dc0dbb4a.577668","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=\"Server or VNFC not exists in A&amp;AI for the VNF\"/>\n\n","comments":"","outputs":1,"x":1414.4374160766602,"y":701.0913696289062,"z":"75c5f17a.eda5d","wires":[["7238540.2af54ac"]]},{"id":"7238540.2af54ac","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1620.4374084472656,"y":704.0913009643555,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"1824c2d.c22413d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1392.4374160766602,"y":759.0914001464844,"z":"75c5f17a.eda5d","wires":[]},{"id":"ed720e24.72ff6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1176.4374771118164,"y":860.3135070800781,"z":"75c5f17a.eda5d","wires":[["dcc566b6.2ed2d8","1a34c826.e93e58"]]},{"id":"1a34c826.e93e58","type":"execute","name":"OutputMessageBuilder","xml":"<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","outputs":1,"x":1439.4373779296875,"y":825.3134841918945,"z":"75c5f17a.eda5d","wires":[["1bb9b256.3c599e"]]},{"id":"1bb9b256.3c599e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1665.4374084472656,"y":820.3134689331055,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"dcc566b6.2ed2d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1411.4374084472656,"y":877.3135299682617,"z":"75c5f17a.eda5d","wires":[]},{"id":"62c490ca.74454","type":"for","name":"For each VNFC","xml":"<for index='vnfcCounter' start='0' end='`$vnfcFlowCount`' >\n","comments":"","outputs":1,"x":968.6598510742188,"y":1312.535400390625,"z":"75c5f17a.eda5d","wires":[["38f732d.673eece"]]},{"id":"a9fb203e.05197","type":"call","name":"call VNFC DG","xml":"<call module='`$Restart.dg_module`' rpc='`$Restart.dg_name`' mode='sync' version='`$Restart.dg_version`'>\n","comments":"","outputs":1,"x":1372.659683227539,"y":1363.646728515625,"z":"75c5f17a.eda5d","wires":[["9534aa2d.196af8","2398588.9d68ea8","5c723b91.ee2874"]]},{"id":"46f195f5.40ae1c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":752.6597900390625,"y":1312.5357666015625,"z":"75c5f17a.eda5d","wires":[["62c490ca.74454","202a8d89.1b7fe2","f88e788.8616a88","17128b11.be84d5"]]},{"id":"783f06ad.7c3438","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1650.6599731445312,"y":1059.5357360839844,"z":"75c5f17a.eda5d","wires":[["2100653b.73255a"]]},{"id":"f7c5a47.39a1f58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1648.65966796875,"y":1144.5357360839844,"z":"75c5f17a.eda5d","wires":[["58ab2482.9113bc"]]},{"id":"58ab2482.9113bc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1838.65966796875,"y":1143.5357360839844,"z":"75c5f17a.eda5d","wires":[["9644598c.158738","b9e17e61.e8e82"]]},{"id":"b9e17e61.e8e82","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`\"/>\n","comments":"","outputs":1,"x":2066.65966796875,"y":1103.5357360839844,"z":"75c5f17a.eda5d","wires":[["440404e.5c865fc"]]},{"id":"440404e.5c865fc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2269.659912109375,"y":1103.5357360839844,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"9644598c.158738","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2035.65966796875,"y":1180.5357360839844,"z":"75c5f17a.eda5d","wires":[]},{"id":"5c723b91.ee2874","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1589.4374389648438,"y":1423.7578125,"z":"75c5f17a.eda5d","wires":[["c060c328.286b4"]]},{"id":"2398588.9d68ea8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1588.4374389648438,"y":1302.7578735351562,"z":"75c5f17a.eda5d","wires":[["4c8339c2.bc3ba8"]]},{"id":"9534aa2d.196af8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1590.4375610351562,"y":1360.7578125,"z":"75c5f17a.eda5d","wires":[["dec3e93f.1e0318"]]},{"id":"38f732d.673eece","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1157.3263549804688,"y":1208.7578430175781,"z":"75c5f17a.eda5d","wires":[["a9fb203e.05197","814ca941.4fa208","ddb8f914.46dbc8","a0732a1.d4944d8"]]},{"id":"ae689d83.c6b01","type":"switchNode","name":"switch_dependencyModelFound","xml":"<switch test='`$dependencyModelFound`'>\n","comments":"","outputs":1,"x":775.1040344238281,"y":1024.6469421386719,"z":"75c5f17a.eda5d","wires":[["b9c5cf99.51","19ad2d9a.c524d2"]]},{"id":"b9c5cf99.51","type":"outcome","name":"outcome_false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1068.770851135254,"y":965.7579650878906,"z":"75c5f17a.eda5d","wires":[["4fb101a5.38c5a"]]},{"id":"19ad2d9a.c524d2","type":"outcome","name":"outcome_true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":716.1041870117188,"y":1142.64697265625,"z":"75c5f17a.eda5d","wires":[["46f195f5.40ae1c"]]},{"id":"814ca941.4fa208","type":"execute","name":"execute_Resolve_VNFC_DG","xml":"<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$vnfcCounter].vnfcType`' />\n<parameter name=\"action\" value=\"Restart\" />\n<parameter name=\"prefix\" value=\"Restart\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />","comments":"","outputs":1,"x":1418.4374389648438,"y":1105.6189880371094,"z":"75c5f17a.eda5d","wires":[["783f06ad.7c3438","f7c5a47.39a1f58"]]},{"id":"ddb8f914.46dbc8","type":"set","name":"set DG Parameters","xml":"<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$vnfcCounter].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$vnfcCounter].vnfcType`' />\n<parameter name='resilienceType' value='`$vnfcFlow[$vnfcCounter].resilienceType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$vnfcCounter].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='RestartSuccessVMCount' value='0' />\n<parameter name='AAIUpdateSuccessFlag' value='false' />","comments":"","x":1402.4647827148438,"y":1172.7023315429688,"z":"75c5f17a.eda5d","wires":[]},{"id":"a0732a1.d4944d8","type":"for","name":"For Each VM","xml":"<for index='j' start='0' end='`$vnfcFlow[$vnfcCounter].vmCount`' >\n","comments":"","outputs":1,"x":1387.2424926757812,"y":1240.6742553710938,"z":"75c5f17a.eda5d","wires":[["b2c4cf28.5e7a5"]]},{"id":"b2c4cf28.5e7a5","type":"set","name":"Set VM URL","xml":"<set>\n<parameter name=\"$vm[$j].url\" value='`$vnfcFlow[$vnfcCounter].vm[$j].url`' />","comments":"","x":1629.2425231933594,"y":1238.6742782592773,"z":"75c5f17a.eda5d","wires":[]},{"id":"4c8339c2.bc3ba8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1768.3264770507812,"y":1302.8689575195312,"z":"75c5f17a.eda5d","wires":[["8a8ff00d.9d0b3","eb3b629b.35cb"]]},{"id":"8a8ff00d.9d0b3","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1973.3266296386719,"y":1331.8689804077148,"z":"75c5f17a.eda5d","wires":[]},{"id":"a68d3770.e2f208","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2229.3267211914062,"y":1257.8689575195312,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"eb3b629b.35cb","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 : ' + $vnfcName`\"/>","comments":"","outputs":1,"x":2011.3264770507812,"y":1257.8689575195312,"z":"75c5f17a.eda5d","wires":[["a68d3770.e2f208"]]},{"id":"dec3e93f.1e0318","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1756.3265991210938,"y":1359.8689575195312,"z":"75c5f17a.eda5d","wires":[["4848825e.eb8f0c"]]},{"id":"4848825e.eb8f0c","type":"switchNode","name":"switch_vm_restart_success","xml":"<switch test='`$RestartSuccessVMCount >= 1 and $AAIUpdateSuccessFlag == true`'>\n","comments":"","outputs":1,"x":1997.6597595214844,"y":1403.9799194335938,"z":"75c5f17a.eda5d","wires":[["67708009.ef876","a837107b.524fa"]]},{"id":"a837107b.524fa","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2189.4378662109375,"y":1348.9801025390625,"z":"75c5f17a.eda5d","wires":[["8d01a890.2fbeb8"]]},{"id":"67708009.ef876","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2194.9378051757812,"y":1458.9800415039062,"z":"75c5f17a.eda5d","wires":[["30ca3ed4.6640a2"]]},{"id":"8d01a890.2fbeb8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2359.4378051757812,"y":1348.9800415039062,"z":"75c5f17a.eda5d","wires":[["569739a0.423578","eaec519f.214dc","89bc175a.1df198","8cdac361.a8e5c"]]},{"id":"902f4f1d.36ed3","type":"set","name":"update failed VNFC count","xml":"<set>\n<parameter name=\"FailedVNFCCount\" value=\"`$FailedVNFCCount + 1`\" />\n","comments":"","x":2600.1043701171875,"y":1486.9801025390625,"z":"75c5f17a.eda5d","wires":[]},{"id":"569739a0.423578","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2577.992950439453,"y":1372.9800720214844,"z":"75c5f17a.eda5d","wires":[]},{"id":"30ca3ed4.6640a2","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2355.5486450195312,"y":1459.0912475585938,"z":"75c5f17a.eda5d","wires":[["902f4f1d.36ed3","d4c030eb.6cec9"]]},{"id":"f88e788.8616a88","type":"switchNode","name":"switch_vnfc_restart_success","xml":"<switch test='`$FailedVNFCCount == 0`'>\n","comments":"","outputs":1,"x":993.8818969726562,"y":1542.8690185546875,"z":"75c5f17a.eda5d","wires":[["df26bc01.d7fa1","2bcfdfc8.8bf36"]]},{"id":"df26bc01.d7fa1","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1229.8818969726562,"y":1497.8689575195312,"z":"75c5f17a.eda5d","wires":[["1a89739d.14981c"]]},{"id":"2bcfdfc8.8bf36","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1225.3820190429688,"y":1584.8689575195312,"z":"75c5f17a.eda5d","wires":[["471bece0.a1cdc4"]]},{"id":"1a89739d.14981c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1409.6318969726562,"y":1497.3412475585938,"z":"75c5f17a.eda5d","wires":[["f29375ef.e47478"]]},{"id":"f29375ef.e47478","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1619.1508178710938,"y":1498.3858032226562,"z":"75c5f17a.eda5d","wires":[]},{"id":"471bece0.a1cdc4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1415.6320190429688,"y":1584.3412475585938,"z":"75c5f17a.eda5d","wires":[["ae8ad841.b59cb8"]]},{"id":"ae8ad841.b59cb8","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":1616.3817749023438,"y":1583.7857055664062,"z":"75c5f17a.eda5d","wires":[]},{"id":"202a8d89.1b7fe2","type":"set","name":"set Failed VNFC Count","xml":"<set>\n<parameter name='FailedVNFCCount' value='0' />","comments":"","x":963.8819580078125,"y":1104.8689575195312,"z":"75c5f17a.eda5d","wires":[]},{"id":"c060c328.286b4","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=\"`'Restart successfull for VNFC : ' + $vnfcName `\"/>\n","comments":"","outputs":1,"x":1766.2151489257812,"y":1422.869140625,"z":"75c5f17a.eda5d","wires":[[]]},{"id":"eaec519f.214dc","type":"record","name":"Log message","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":2575.215591430664,"y":1211.869140625,"z":"75c5f17a.eda5d","wires":[[]]},{"id":"d4c030eb.6cec9","type":"record","name":"Log message","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=\"`'Failed to restart all VMs for VNFC : ' + $vnfcName + '. But successfully restarted '+ $RestartSuccessVMCount +' VM/s so continue to next VNFC'`\"/>\n","comments":"","outputs":1,"x":2563.2149963378906,"y":1434.8690795898438,"z":"75c5f17a.eda5d","wires":[[]]},{"id":"2100653b.73255a","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=\"`'VNFC DG for ' + $vnfcName + ' resolves to rpc: ' + $Restart.dg_name + ', module: ' + $Restart.dg_module + ', version: ' + $Restart.dg_version `\"/>\n","comments":"","outputs":1,"x":1844.3265991210938,"y":1056.8691711425781,"z":"75c5f17a.eda5d","wires":[[]]},{"id":"31d62dbc.3761f2","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":3125.1048736572266,"y":1339.758056640625,"z":"75c5f17a.eda5d","wires":[["1dd07e2b.67d132"]]},{"id":"1dd07e2b.67d132","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3345.1048736572266,"y":1322.758056640625,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"89bc175a.1df198","type":"switchNode","name":"switch_vm_restart_success","xml":"<switch test='`$RestartSuccessVMCount >= 1`'>\n","comments":"","outputs":1,"x":2569.881607055664,"y":1144.64697265625,"z":"75c5f17a.eda5d","wires":[["572b73b.db5c88c","14fb62d3.c79b1d"]]},{"id":"572b73b.db5c88c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2801.160171508789,"y":1092.64697265625,"z":"75c5f17a.eda5d","wires":[["7c40c2f3.e0b87c"]]},{"id":"14fb62d3.c79b1d","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2778.6610260009766,"y":1189.6470947265625,"z":"75c5f17a.eda5d","wires":[["f8b19ae6.fe6ca8"]]},{"id":"7c40c2f3.e0b87c","type":"set","name":"Set event message","xml":"<set>\n<parameter name=\"event-message\" value=\"`'AAI update for VNFC ' + $vnfcName + ' failed. '`\" />","comments":"","x":3021.993179321289,"y":1079.6470947265625,"z":"75c5f17a.eda5d","wires":[]},{"id":"f8b19ae6.fe6ca8","type":"set","name":"Set event message","xml":"<set>\n<parameter name=\"event-message\" value=\"`'None of the VMs of VNFC ' + $vnfcName + ' are Restarted. Not proceeding to next VNFC'`\" />","comments":"","x":3001.9925689697266,"y":1168.091796875,"z":"75c5f17a.eda5d","wires":[]},{"id":"6568c60d.62fbd8","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":3152.837677001953,"y":427.8690643310547,"z":"75c5f17a.eda5d","wires":[["13d3844f.cd4abc"]]},{"id":"13d3844f.cd4abc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3444.123321533203,"y":445.2976837158203,"z":"75c5f17a.eda5d","wires":[[]]},{"id":"b53931d8.8a057","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":1425.9708557128906,"y":544.8690643310547,"z":"75c5f17a.eda5d","wires":[["7f3210ce.eac0e"]]},{"id":"4fb101a5.38c5a","type":"call","name":"call Generic Restart without Model DG","xml":"<call module='APPC' rpc='Generic_Restart' version='2.0.1' mode='sync' >\n","comments":"","outputs":1,"x":1390.4375,"y":958.8690795898438,"z":"75c5f17a.eda5d","wires":[["a0f3b6b2.4c3988","cdb0db18.a743c8","618f6f6e.254cf"]]},{"id":"a0f3b6b2.4c3988","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1657.21533203125,"y":919.980224609375,"z":"75c5f17a.eda5d","wires":[["3a86e05a.69adc"]]},{"id":"cdb0db18.a743c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1660.21533203125,"y":960.980224609375,"z":"75c5f17a.eda5d","wires":[[]]},{"id":"618f6f6e.254cf","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1669.2153778076172,"y":1000.9801940917969,"z":"75c5f17a.eda5d","wires":[["bcfdc7ad.06d448"]]},{"id":"bcfdc7ad.06d448","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":1903.21533203125,"y":999.980224609375,"z":"75c5f17a.eda5d","wires":[]},{"id":"3a86e05a.69adc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1848.65966796875,"y":897.980224609375,"z":"75c5f17a.eda5d","wires":[["857666e2.60b258","5400697c.4b3de8"]]},{"id":"5400697c.4b3de8","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=\"Restart DG not found\"/>","comments":"","outputs":1,"x":2055.659912109375,"y":847.980224609375,"z":"75c5f17a.eda5d","wires":[["3e41a3d3.9fb8fc"]]},{"id":"857666e2.60b258","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2020.659912109375,"y":947.9802856445312,"z":"75c5f17a.eda5d","wires":[]},{"id":"3e41a3d3.9fb8fc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2330.4375,"y":793.8690795898438,"z":"75c5f17a.eda5d","wires":[["6568c60d.62fbd8"]]},{"id":"8cdac361.a8e5c","type":"switchNode","name":"switch last vnfc","xml":"<switch test='`$secondLastVnfcCounter == $vnfcCounter`'>\n","comments":"","outputs":1,"x":2607.037612915039,"y":1312.074951171875,"z":"75c5f17a.eda5d","wires":[["8f658fcd.5fbcc","7ffa8431.bbdbbc"]]},{"id":"17128b11.be84d5","type":"set","name":"set secondLastVnfcCounter","xml":"<set>\n<parameter name='secondLastVnfcCounter' value='`$vnfcFlowCount - 1`' />\n","comments":"","x":1003.4375,"y":1158.074951171875,"z":"75c5f17a.eda5d","wires":[]},{"id":"8f658fcd.5fbcc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2772.8373943138176,"y":1258.0749688148517,"z":"75c5f17a.eda5d","wires":[[]]},{"id":"7ffa8431.bbdbbc","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2803.8373943138176,"y":1346.0749688148517,"z":"75c5f17a.eda5d","wires":[["31d62dbc.3761f2"]]}]
+[
+ {
+ "id": "5cd22551.57cacc",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 195.515625,
+ "y": 153.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "694b3742.beffb8"
+ ]
+ ]
+ },
+ {
+ "id": "694b3742.beffb8",
+ "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": 379.515625,
+ "y": 153.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "6e585db4.528794"
+ ]
+ ]
+ },
+ {
+ "id": "6e585db4.528794",
+ "type": "method",
+ "name": "Restart_VNF",
+ "xml": "<method rpc='Restart_VNF' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 227.51568603515625,
+ "y": 235.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "7d324b59.dc9264"
+ ]
+ ]
+ },
+ {
+ "id": "f5b9cc5c.7b37d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 791.5158386230469,
+ "y": 181.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "dfb6d2e6.ac546"
+ ]
+ ]
+ },
+ {
+ "id": "39bd5cb9.9d32f4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 793.5158386230469,
+ "y": 140.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "dfb6d2e6.ac546"
+ ]
+ ]
+ },
+ {
+ "id": "7e72aa8e.fc9ec4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.5158386230469,
+ "y": 235.51564025878906,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "dfb6d2e6.ac546"
+ ]
+ ]
+ },
+ {
+ "id": "7d324b59.dc9264",
+ "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": 472.5157165527344,
+ "y": 236.51565551757812,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "f5b9cc5c.7b37d",
+ "39bd5cb9.9d32f4",
+ "7e72aa8e.fc9ec4",
+ "2658c168.734e4e"
+ ]
+ ]
+ },
+ {
+ "id": "2658c168.734e4e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 644.5156555175781,
+ "y": 306.51564025878906,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "86e22b46.f8cc98"
+ ]
+ ]
+ },
+ {
+ "id": "86e22b46.f8cc98",
+ "type": "execute",
+ "name": "Get Vnf Hierarchy",
+ "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": 562.1822509765625,
+ "y": 378.5156555175781,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "9649f1b1.7573c",
+ "141f4896.4775b7"
+ ]
+ ]
+ },
+ {
+ "id": "141f4896.4775b7",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 887.1822814941406,
+ "y": 350.5156555175781,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "1778e3e5.c19b7c"
+ ]
+ ]
+ },
+ {
+ "id": "9649f1b1.7573c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 644.1822814941406,
+ "y": 450.5155944824219,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "46817383.86e68c"
+ ]
+ ]
+ },
+ {
+ "id": "46817383.86e68c",
+ "type": "switchNode",
+ "name": "switch_getVnfHierarchy_result",
+ "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 639.1823120117188,
+ "y": 513.6267395019531,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "c210ca15.cad668",
+ "d27f254c.183118"
+ ]
+ ]
+ },
+ {
+ "id": "c210ca15.cad668",
+ "type": "outcome",
+ "name": "outcome_SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 677.1823120117188,
+ "y": 591.6268005371094,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "415e9e63.f67ba"
+ ]
+ ]
+ },
+ {
+ "id": "d27f254c.183118",
+ "type": "outcome",
+ "name": "outcome_FAILURE",
+ "xml": "<outcome value='FAILURE'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 956.1823425292969,
+ "y": 482.6267395019531,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "3919493.f9eb5b6"
+ ]
+ ]
+ },
+ {
+ "id": "415e9e63.f67ba",
+ "type": "switchNode",
+ "name": "switch_VNF_VMCount",
+ "xml": "<switch test='`$VNF.VMCount`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 678.1823120117188,
+ "y": 665.7378234863281,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "bbd45c6b.4a98",
+ "89caca1a.348e58"
+ ]
+ ]
+ },
+ {
+ "id": "bbd45c6b.4a98",
+ "type": "outcome",
+ "name": "outcome_0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 910.1822814941406,
+ "y": 630.7378234863281,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "441a1a0e.59f044"
+ ]
+ ]
+ },
+ {
+ "id": "89caca1a.348e58",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 774.1822891235352,
+ "y": 726.7378845214844,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "723e76d2.0ca588"
+ ]
+ ]
+ },
+ {
+ "id": "723e76d2.0ca588",
+ "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='FORWARD' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 722.1821670532227,
+ "y": 791.8490295410156,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "28a41083.f72ff",
+ "7fe48078.aa598"
+ ]
+ ]
+ },
+ {
+ "id": "28a41083.f72ff",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 790.1822280883789,
+ "y": 849.8489685058594,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "79f917f4.91f518"
+ ]
+ ]
+ },
+ {
+ "id": "7fe48078.aa598",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 965.1822280883789,
+ "y": 756.8489074707031,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "bc2a9756.c73e88"
+ ]
+ ]
+ },
+ {
+ "id": "dfb6d2e6.ac546",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 998.1825866699219,
+ "y": 178.51563262939453,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "aeb22994.83bee8",
+ "db734702.4ab748"
+ ]
+ ]
+ },
+ {
+ "id": "db734702.4ab748",
+ "type": "execute",
+ "name": "OutputMessageBuilde",
+ "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": 1257.087158203125,
+ "y": 131.89654541015625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "a0566c3c.ebe42"
+ ]
+ ]
+ },
+ {
+ "id": "a0566c3c.ebe42",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1498.3729629516602,
+ "y": 132.3251724243164,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "aeb22994.83bee8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
+ "comments": "",
+ "x": 1228.5155334472656,
+ "y": 224.03933715820312,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "1778e3e5.c19b7c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1055.9600524902344,
+ "y": 350.404541015625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "b32d0494.1020a8",
+ "7b75ae14.14dac"
+ ]
+ ]
+ },
+ {
+ "id": "7b75ae14.14dac",
+ "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": 1277.9599304199219,
+ "y": 316.404541015625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "ff70f86b.f2bfe8"
+ ]
+ ]
+ },
+ {
+ "id": "b32d0494.1020a8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1246.9599304199219,
+ "y": 381.404541015625,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "ff70f86b.f2bfe8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1487.9599990844727,
+ "y": 316.40452575683594,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "3919493.f9eb5b6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1164.8490295410156,
+ "y": 473.62672424316406,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "1833b289.78f6bd",
+ "a096f278.3671d"
+ ]
+ ]
+ },
+ {
+ "id": "d6b25e5e.76ec6",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1554.8489074707031,
+ "y": 441.6267318725586,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "1833b289.78f6bd",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1387.8489074707031,
+ "y": 521.6266937255859,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "441a1a0e.59f044",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1093.5156555175781,
+ "y": 631.7378845214844,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "995874d5.a65a08",
+ "d432bbd1.48af88"
+ ]
+ ]
+ },
+ {
+ "id": "d432bbd1.48af88",
+ "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=\"Server or VNFC not exists in A&amp;AI for the VNF\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1371.5155410766602,
+ "y": 596.7379150390625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "46dc6772.2d9aa8"
+ ]
+ ]
+ },
+ {
+ "id": "46dc6772.2d9aa8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1577.5155334472656,
+ "y": 599.7378463745117,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "995874d5.a65a08",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1349.5155410766602,
+ "y": 654.7379455566406,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "bc2a9756.c73e88",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1133.5156021118164,
+ "y": 755.9600524902344,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "884a6078.95d8b",
+ "9b966cf8.e774"
+ ]
+ ]
+ },
+ {
+ "id": "9b966cf8.e774",
+ "type": "execute",
+ "name": "OutputMessageBuilder",
+ "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1396.5155029296875,
+ "y": 720.9600296020508,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "c68ff45b.c83548"
+ ]
+ ]
+ },
+ {
+ "id": "c68ff45b.c83548",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1622.5155334472656,
+ "y": 715.9600143432617,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "884a6078.95d8b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1368.5155334472656,
+ "y": 772.960075378418,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "9407c45d.82e998",
+ "type": "for",
+ "name": "For each VNFC",
+ "xml": "<for index='vnfcCounter' start='0' end='`$vnfcFlowCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 925.7379760742188,
+ "y": 1208.1819458007812,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "2c558370.c38c8c"
+ ]
+ ]
+ },
+ {
+ "id": "814416ca.4e1f28",
+ "type": "call",
+ "name": "call VNFC DG",
+ "xml": "<call module='`$Restart.dg_module`' rpc='`$Restart.dg_name`' mode='sync' version='`$Restart.dg_version`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1329.737808227539,
+ "y": 1259.2932739257812,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "b5b3306b.ab553",
+ "33a66920.222496",
+ "b035ba19.042048"
+ ]
+ ]
+ },
+ {
+ "id": "9bd276a8.7a6f18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 709.7379150390625,
+ "y": 1208.1823120117188,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "9407c45d.82e998",
+ "9f5ce369.9e77b",
+ "b7c10a9b.7b38c8",
+ "adbbe761.787af8"
+ ]
+ ]
+ },
+ {
+ "id": "e400f083.f4ff",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1607.7380981445312,
+ "y": 955.1822814941406,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "e30b3281.bc4ea"
+ ]
+ ]
+ },
+ {
+ "id": "555a125e.52eb6c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1605.73779296875,
+ "y": 1040.1822814941406,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "a9d88cb6.09197"
+ ]
+ ]
+ },
+ {
+ "id": "a9d88cb6.09197",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1795.73779296875,
+ "y": 1039.1822814941406,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "cedeca8f.216358",
+ "71e1fdc9.fa6674"
+ ]
+ ]
+ },
+ {
+ "id": "71e1fdc9.fa6674",
+ "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`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2023.73779296875,
+ "y": 999.1822814941406,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "2dcc20d8.ee5f5"
+ ]
+ ]
+ },
+ {
+ "id": "2dcc20d8.ee5f5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2226.738037109375,
+ "y": 999.1822814941406,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "cedeca8f.216358",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1992.73779296875,
+ "y": 1076.1822814941406,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "b035ba19.042048",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1546.5155639648438,
+ "y": 1319.4043579101562,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "af0b5322.00bf1"
+ ]
+ ]
+ },
+ {
+ "id": "33a66920.222496",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1545.5155639648438,
+ "y": 1198.4044189453125,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "3f7a0849.8821d8"
+ ]
+ ]
+ },
+ {
+ "id": "b5b3306b.ab553",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1547.5156860351562,
+ "y": 1256.4043579101562,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "43388898.2f0988"
+ ]
+ ]
+ },
+ {
+ "id": "2c558370.c38c8c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1114.4044799804688,
+ "y": 1104.4043884277344,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "814416ca.4e1f28",
+ "a5f6ebea.b88e18",
+ "3da6581b.cf3ca8",
+ "d122828b.27108"
+ ]
+ ]
+ },
+ {
+ "id": "79f917f4.91f518",
+ "type": "switchNode",
+ "name": "switch_dependencyModelFound",
+ "xml": "<switch test='`$dependencyModelFound`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 732.1821594238281,
+ "y": 920.2934875488281,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "c72ccee2.e7ee5",
+ "74f0d24a.482f3c"
+ ]
+ ]
+ },
+ {
+ "id": "c72ccee2.e7ee5",
+ "type": "outcome",
+ "name": "outcome_false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1025.848976135254,
+ "y": 861.4045104980469,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "5c3a76ae.aad1e8"
+ ]
+ ]
+ },
+ {
+ "id": "74f0d24a.482f3c",
+ "type": "outcome",
+ "name": "outcome_true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 673.1823120117188,
+ "y": 1038.2935180664062,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "9bd276a8.7a6f18"
+ ]
+ ]
+ },
+ {
+ "id": "a5f6ebea.b88e18",
+ "type": "execute",
+ "name": "execute_Resolve_VNFC_DG",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$vnfcCounter].vnfcType`' />\n<parameter name=\"action\" value=\"Restart\" />\n<parameter name=\"prefix\" value=\"Restart\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1375.5155639648438,
+ "y": 1001.2655334472656,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "e400f083.f4ff",
+ "555a125e.52eb6c"
+ ]
+ ]
+ },
+ {
+ "id": "3da6581b.cf3ca8",
+ "type": "set",
+ "name": "set DG Parameters",
+ "xml": "<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$vnfcCounter].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$vnfcCounter].vnfcType`' />\n<parameter name='resilienceType' value='`$vnfcFlow[$vnfcCounter].resilienceType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$vnfcCounter].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='RestartSuccessVMCount' value='0' />\n<parameter name='AAIUpdateSuccessFlag' value='false' />",
+ "comments": "",
+ "x": 1359.5429077148438,
+ "y": 1068.348876953125,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "d122828b.27108",
+ "type": "for",
+ "name": "For Each VM",
+ "xml": "<for index='j' start='0' end='`$vnfcFlow[$vnfcCounter].vmCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1344.3206176757812,
+ "y": 1136.32080078125,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "f4e2d93a.762d18"
+ ]
+ ]
+ },
+ {
+ "id": "f4e2d93a.762d18",
+ "type": "set",
+ "name": "Set VM URL",
+ "xml": "<set>\n<parameter name=\"$vm[$j].url\" value='`$vnfcFlow[$vnfcCounter].vm[$j].url`' />",
+ "comments": "",
+ "x": 1586.3206481933594,
+ "y": 1134.3208236694336,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "3f7a0849.8821d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1725.4046020507812,
+ "y": 1198.5155029296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "bec2952b.4de158",
+ "fec683ad.fd219"
+ ]
+ ]
+ },
+ {
+ "id": "bec2952b.4de158",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1930.4047546386719,
+ "y": 1227.515525817871,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "6b2e4039.94f06",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2186.4048461914062,
+ "y": 1153.5155029296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "fec683ad.fd219",
+ "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 : ' + $vnfcName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1968.4046020507812,
+ "y": 1153.5155029296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "6b2e4039.94f06"
+ ]
+ ]
+ },
+ {
+ "id": "43388898.2f0988",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1716.4049606323242,
+ "y": 1255.515612602234,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "f6985b61.aa4a68"
+ ]
+ ]
+ },
+ {
+ "id": "f6985b61.aa4a68",
+ "type": "switchNode",
+ "name": "switch_vm_restart_success",
+ "xml": "<switch test='`$RestartSuccessVMCount >= 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1954.7378845214844,
+ "y": 1299.62646484375,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "8bb0c3a7.79615",
+ "9850de16.558a5"
+ ]
+ ]
+ },
+ {
+ "id": "9850de16.558a5",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2146.5159912109375,
+ "y": 1244.6266479492188,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "802382b8.153be"
+ ]
+ ]
+ },
+ {
+ "id": "8bb0c3a7.79615",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2152.0159301757812,
+ "y": 1354.6265869140625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "f21a5e7.3a9bea"
+ ]
+ ]
+ },
+ {
+ "id": "802382b8.153be",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2316.5159301757812,
+ "y": 1244.6265869140625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "ea6fef73.2d869",
+ "2197a5d.c77525a",
+ "2bf84df.091aeb2",
+ "d60509a0.b25798"
+ ]
+ ]
+ },
+ {
+ "id": "d2ae97b1.02ea88",
+ "type": "set",
+ "name": "update failed VNFC count",
+ "xml": "<set>\n<parameter name=\"FailedVNFCCount\" value=\"`$FailedVNFCCount + 1`\" />\n",
+ "comments": "",
+ "x": 2557.1824951171875,
+ "y": 1382.6266479492188,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "ea6fef73.2d869",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2535.071075439453,
+ "y": 1268.6266174316406,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "f21a5e7.3a9bea",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2312.6267700195312,
+ "y": 1354.73779296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "d2ae97b1.02ea88",
+ "a826bf53.44dc1"
+ ]
+ ]
+ },
+ {
+ "id": "b7c10a9b.7b38c8",
+ "type": "switchNode",
+ "name": "switch_vnfc_restart_success",
+ "xml": "<switch test='`$FailedVNFCCount == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 950.9600219726562,
+ "y": 1438.5155639648438,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "e9f07280.4ff4e",
+ "87087f32.c4b9b"
+ ]
+ ]
+ },
+ {
+ "id": "e9f07280.4ff4e",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1186.9600219726562,
+ "y": 1393.5155029296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "2769cd2.0bbfe32"
+ ]
+ ]
+ },
+ {
+ "id": "87087f32.c4b9b",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1182.4601440429688,
+ "y": 1480.5155029296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "d3f80f75.466a4"
+ ]
+ ]
+ },
+ {
+ "id": "2769cd2.0bbfe32",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1366.7100219726562,
+ "y": 1392.98779296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "2ef5a260.e00e5e"
+ ]
+ ]
+ },
+ {
+ "id": "2ef5a260.e00e5e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1576.2289428710938,
+ "y": 1394.0323486328125,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "d3f80f75.466a4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1372.7101440429688,
+ "y": 1479.98779296875,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "60ae368c.8b5b08"
+ ]
+ ]
+ },
+ {
+ "id": "60ae368c.8b5b08",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1573.4598999023438,
+ "y": 1479.4322509765625,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "9f5ce369.9e77b",
+ "type": "set",
+ "name": "set Failed VNFC Count",
+ "xml": "<set>\n<parameter name='FailedVNFCCount' value='0' />",
+ "comments": "",
+ "x": 920.9600830078125,
+ "y": 1000.5155029296875,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "af0b5322.00bf1",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Restart successfull for VNFC : ' + $vnfcName `\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1723.2932739257812,
+ "y": 1318.5156860351562,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2197a5d.c77525a",
+ "type": "record",
+ "name": "Log message",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2563.2938079833984,
+ "y": 1152.5156688690186,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a826bf53.44dc1",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Failed to restart all VMs for VNFC : ' + $vnfcName + '. But successfully restarted '+ $RestartSuccessVMCount +' VM/s so continue to next VNFC'`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2520.2931213378906,
+ "y": 1330.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e30b3281.bc4ea",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'VNFC DG for ' + $vnfcName + ' resolves to rpc: ' + $Restart.dg_name + ', module: ' + $Restart.dg_module + ', version: ' + $Restart.dg_version `\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1801.4047241210938,
+ "y": 952.5157165527344,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e698ba47.f58618",
+ "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": 3082.1829986572266,
+ "y": 1235.4046020507812,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "6fbbdadc.c8fd34"
+ ]
+ ]
+ },
+ {
+ "id": "6fbbdadc.c8fd34",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3302.1829986572266,
+ "y": 1218.4046020507812,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "d60509a0.b25798",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'None of the VMs of VNFC ' + $vnfcName + ' are Restarted. Not proceeding to next VNFC'`\" />",
+ "comments": "",
+ "x": 2566.070915222168,
+ "y": 1102.7383546829224,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "4f019ebf.98d03",
+ "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": 3109.915802001953,
+ "y": 323.51560974121094,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "ace56d94.862cb"
+ ]
+ ]
+ },
+ {
+ "id": "ace56d94.862cb",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3401.201446533203,
+ "y": 340.94422912597656,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a096f278.3671d",
+ "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": 1383.0489807128906,
+ "y": 440.51560974121094,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "d6b25e5e.76ec6"
+ ]
+ ]
+ },
+ {
+ "id": "5c3a76ae.aad1e8",
+ "type": "call",
+ "name": "call Generic Restart without Model DG",
+ "xml": "<call module='APPC' rpc='Generic_Restart' version='2.0.1' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1347.515625,
+ "y": 854.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "9c982f3e.ebdb",
+ "1a7c24aa.ec5adb",
+ "66f73c4c.e1eb34"
+ ]
+ ]
+ },
+ {
+ "id": "9c982f3e.ebdb",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1614.29345703125,
+ "y": 815.6267700195312,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "7f8711eb.2ba9e"
+ ]
+ ]
+ },
+ {
+ "id": "1a7c24aa.ec5adb",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1617.29345703125,
+ "y": 856.6267700195312,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "66f73c4c.e1eb34",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1626.2935028076172,
+ "y": 896.6267395019531,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "dee0b8d9.022838"
+ ]
+ ]
+ },
+ {
+ "id": "dee0b8d9.022838",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n\n",
+ "comments": "",
+ "x": 1860.29345703125,
+ "y": 895.6267700195312,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "7f8711eb.2ba9e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1805.73779296875,
+ "y": 793.6267700195312,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "e9d0d2f4.c4ca2",
+ "ebf03159.2743b"
+ ]
+ ]
+ },
+ {
+ "id": "ebf03159.2743b",
+ "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=\"Restart DG not found\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2012.738037109375,
+ "y": 743.6267700195312,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "a243baa2.ad1498"
+ ]
+ ]
+ },
+ {
+ "id": "e9d0d2f4.c4ca2",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1977.738037109375,
+ "y": 843.6268310546875,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "a243baa2.ad1498",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2287.515625,
+ "y": 689.515625,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "4f019ebf.98d03"
+ ]
+ ]
+ },
+ {
+ "id": "2bf84df.091aeb2",
+ "type": "switchNode",
+ "name": "switch last vnfc",
+ "xml": "<switch test='`$secondLastVnfcCounter == $vnfcCounter`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2564.115737915039,
+ "y": 1207.7214965820312,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "43222b12.5476f4",
+ "db637674.7d05a8"
+ ]
+ ]
+ },
+ {
+ "id": "adbbe761.787af8",
+ "type": "set",
+ "name": "set secondLastVnfcCounter",
+ "xml": "<set>\n<parameter name='secondLastVnfcCounter' value='`$vnfcFlowCount - 1`' />\n",
+ "comments": "",
+ "x": 960.515625,
+ "y": 1053.7214965820312,
+ "z": "55d92b10.8dd284",
+ "wires": []
+ },
+ {
+ "id": "43222b12.5476f4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2729.9155193138176,
+ "y": 1153.721514225008,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db637674.7d05a8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2760.9155193138176,
+ "y": 1241.721514225008,
+ "z": "55d92b10.8dd284",
+ "wires": [
+ [
+ "e698ba47.f58618"
+ ]
+ ]
+ }
+] \ No newline at end of file
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNFC.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNFC.json
index 8637e7353..ac659f8b2 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNFC.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNFC.json
@@ -1 +1,533 @@
-[{"id":"3999b2fb.e7e18e","type":"dgstart","name":"DGSTART","outputs":1,"x":93.80625915527344,"y":73,"z":"4854885a.f23e18","wires":[["b5e49950.85b5a8"]]},{"id":"b5e49950.85b5a8","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":242.80638122558594,"y":71,"z":"4854885a.f23e18","wires":[["bdcf7e7f.4e437"]]},{"id":"bdcf7e7f.4e437","type":"method","name":"Restart_VNFC","xml":"<method rpc='Restart_VNFC' mode='sync'>\n","comments":"","outputs":1,"x":179.8064422607422,"y":195,"z":"4854885a.f23e18","wires":[["a5783312.b327c"]]},{"id":"1bd84ac3.7fcfd5","type":"execute","name":"Resolve_VNFC_Healthcheck_DG","xml":"<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"HealthCheck\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"HealthCheckDG\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />","comments":"","outputs":1,"x":556.8065338134766,"y":131,"z":"4854885a.f23e18","wires":[["53648e0a.881e6","a7ddd2a4.8b0b1","cbf0e15a.5803f"]]},{"id":"53648e0a.881e6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":820.8063812255859,"y":73,"z":"4854885a.f23e18","wires":[["725f6041.883d9"]]},{"id":"a7ddd2a4.8b0b1","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":815.8064422607422,"y":153,"z":"4854885a.f23e18","wires":[["97c69f2.728956"]]},{"id":"a5783312.b327c","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"false","comments":"","outputs":1,"x":317.80638122558594,"y":335,"z":"4854885a.f23e18","wires":[["1bd84ac3.7fcfd5","d71f5937.f14218","936e1ac5.afa968"]]},{"id":"d71f5937.f14218","type":"execute","name":"Update AAI ","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Restarting\" />","comments":"","outputs":1,"x":1197.8065185546875,"y":332.00000762939453,"z":"4854885a.f23e18","wires":[["bea680bc.2d4ac","c88e6fc7.c8b1a","b684c3af.4fe9d"]]},{"id":"936e1ac5.afa968","type":"switchNode","name":"Resilence Type ?","xml":"<switch test='`$resilienceType`'>\n","comments":"","outputs":1,"x":488.80633544921875,"y":589.0002136230469,"z":"4854885a.f23e18","wires":[["c45e35f9.dc3078","f08e1f81.6c0c6","2a0b09fd.8888e6"]]},{"id":"c45e35f9.dc3078","type":"outcome","name":"Active_Active","xml":"<outcome value='Active-Active'>\n","comments":"","outputs":1,"x":685.8064117431641,"y":517.0001220703125,"z":"4854885a.f23e18","wires":[["da64233c.b93ea"]]},{"id":"f08e1f81.6c0c6","type":"outcome","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":669.8064727783203,"y":590.0001525878906,"z":"4854885a.f23e18","wires":[["da64233c.b93ea"]]},{"id":"2a0b09fd.8888e6","type":"outcome","name":"Active_Passive","xml":"<outcome value='Active-Passive'>\n","comments":"","outputs":1,"x":699.8064270019531,"y":673.0003356933594,"z":"4854885a.f23e18","wires":[["c062a5d9.ab8188"]]},{"id":"da64233c.b93ea","type":"call","name":"Restart-Active-Active_VNFC","xml":"<call module='APPC' rpc='Restart-Active-Active_VNFC' mode='sync' >\n","comments":"","outputs":1,"x":902.8066558837891,"y":517.0000915527344,"z":"4854885a.f23e18","wires":[["76b0f0de.90c76","31b4e906.be1f16","f041df7c.46d81"]]},{"id":"c062a5d9.ab8188","type":"call","name":"Restart-Active-Passive_VNFC","xml":"<call module='APPC' rpc='Restart-Active-Passive_VNFC' mode='sync' >\n","comments":"","outputs":1,"x":905.8065338134766,"y":673.0001983642578,"z":"4854885a.f23e18","wires":[["76b0f0de.90c76","31b4e906.be1f16","f041df7c.46d81"]]},{"id":"76b0f0de.90c76","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1157.8064880371094,"y":517.0000915527344,"z":"4854885a.f23e18","wires":[["ebbd3602.006ea8"]]},{"id":"31b4e906.be1f16","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1164.8068542480469,"y":592.0001373291016,"z":"4854885a.f23e18","wires":[["b02a2f12.c650d"]]},{"id":"d9102a6.6c83ed8","type":"execute","name":"Update AAI Error","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Error\" />","comments":"","outputs":1,"x":1487.8067474365234,"y":424.000244140625,"z":"4854885a.f23e18","wires":[["bea680bc.2d4ac","c88e6fc7.c8b1a","b684c3af.4fe9d"]]},{"id":"5f6c2b04.563a64","type":"execute","name":"Update AAI Success","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Running\" />\n","comments":"","outputs":1,"x":1499.8065032958984,"y":678.0003662109375,"z":"4854885a.f23e18","wires":[["bea680bc.2d4ac","c88e6fc7.c8b1a","b684c3af.4fe9d"]]},{"id":"f2b5d348.d725c","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":1480.8064880371094,"y":831.0003814697266,"z":"4854885a.f23e18","wires":[]},{"id":"725f6041.883d9","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":963.0286712646484,"y":73.41883087158203,"z":"4854885a.f23e18","wires":[["938f579b.411248","7176b2b1.aefe5c","f1e55ee7.25d16","ecd3f4e6.878f68","92cc8ec.5ca637"]]},{"id":"938f579b.411248","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Healthcheck DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":1214.8065643310547,"y":54,"z":"4854885a.f23e18","wires":[]},{"id":"97c69f2.728956","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":963.0286712646484,"y":132.88888549804688,"z":"4854885a.f23e18","wires":[["ebdfd4f1.4d8308","7176b2b1.aefe5c","f1e55ee7.25d16","ecd3f4e6.878f68","92cc8ec.5ca637"]]},{"id":"ebdfd4f1.4d8308","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Error while resolving Healthcheck DG for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":1225.0286102294922,"y":95.88888549804688,"z":"4854885a.f23e18","wires":[]},{"id":"7176b2b1.aefe5c","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":1206.5973358154297,"y":133.18878173828125,"z":"4854885a.f23e18","wires":[[]]},{"id":"f1e55ee7.25d16","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":1247.4647064208984,"y":172.37603759765625,"z":"4854885a.f23e18","wires":[[]]},{"id":"ecd3f4e6.878f68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>","comments":"","x":1216.5843353271484,"y":250.35894775390625,"z":"4854885a.f23e18","wires":[]},{"id":"8c69089c.629f08","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\n","comments":"","x":1499.806625366211,"y":633.00048828125,"z":"4854885a.f23e18","wires":[]},{"id":"b02a2f12.c650d","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1311.2509460449219,"y":591.0002593994141,"z":"4854885a.f23e18","wires":[["d9102a6.6c83ed8","8c69089c.629f08","518c8bec.70b344"]]},{"id":"51555c54.d61924","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1294.2510223388672,"y":673.0003356933594,"z":"4854885a.f23e18","wires":[["5f6c2b04.563a64","f2b5d348.d725c","39261310.3b1cac","e457098a.bbf808"]]},{"id":"39261310.3b1cac","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=\"`'VNFC restarted successfully : ' + $vnfcName`\"/>\n","comments":"","outputs":1,"x":1488.695297241211,"y":782.888916015625,"z":"4854885a.f23e18","wires":[[]]},{"id":"ebbd3602.006ea8","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1288.5841827392578,"y":516.8889465332031,"z":"4854885a.f23e18","wires":[["8c69089c.629f08","c16bef1.90f251","d9102a6.6c83ed8","518c8bec.70b344","ed0a15aa.d0fb28"]]},{"id":"c16bef1.90f251","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 Restart DG not found for resilience type : ' + $resilienceType`\" />","comments":"","outputs":1,"x":1530.5840911865234,"y":527.888916015625,"z":"4854885a.f23e18","wires":[[]]},{"id":"bea680bc.2d4ac","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1837.9176025390625,"y":220.11121368408203,"z":"4854885a.f23e18","wires":[["355e292.0ccebd6"]]},{"id":"c88e6fc7.c8b1a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1832.9173583984375,"y":274.11112213134766,"z":"4854885a.f23e18","wires":[["bc52d02f.83b3b"]]},{"id":"b684c3af.4fe9d","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1792.9172668457031,"y":371.11112213134766,"z":"4854885a.f23e18","wires":[["564492cb.9e00cc"]]},{"id":"564492cb.9e00cc","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1919.0279541015625,"y":371.0000991821289,"z":"4854885a.f23e18","wires":[["8bd18854.c20b98","f0c03ee4.fd60e"]]},{"id":"8bd18854.c20b98","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":2081.0286865234375,"y":324.0000991821289,"z":"4854885a.f23e18","wires":[["74288e2b.a3955"]]},{"id":"f0c03ee4.fd60e","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":2078.029052734375,"y":403.0000991821289,"z":"4854885a.f23e18","wires":[["7d7bf29.5cc980c"]]},{"id":"74288e2b.a3955","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2230.028564453125,"y":324.0000991821289,"z":"4854885a.f23e18","wires":[["3589aab3.2a6646","e9478caf.5709c","51856197.1ce12"]]},{"id":"7d7bf29.5cc980c","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2218.028564453125,"y":370.0000991821289,"z":"4854885a.f23e18","wires":[["3589aab3.2a6646","8a498524.f57948","51856197.1ce12"]]},{"id":"3589aab3.2a6646","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2438.0296478271484,"y":538.0001220703125,"z":"4854885a.f23e18","wires":[]},{"id":"f041df7c.46d81","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1155.8069610595703,"y":673.0000915527344,"z":"4854885a.f23e18","wires":[["51555c54.d61924"]]},{"id":"bc52d02f.83b3b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2241.806396484375,"y":272.47013092041016,"z":"4854885a.f23e18","wires":[["3589aab3.2a6646","f0d258f1.eac3c8"]]},{"id":"355e292.0ccebd6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2241.806396484375,"y":221.00012969970703,"z":"4854885a.f23e18","wires":[["3589aab3.2a6646","d0f8911a.f3c29","51856197.1ce12"]]},{"id":"d0f8911a.f3c29","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":2491.6238861083984,"y":118.484375,"z":"4854885a.f23e18","wires":[[]]},{"id":"f0d258f1.eac3c8","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":2476.6241302490234,"y":224.484375,"z":"4854885a.f23e18","wires":[[]]},{"id":"e9478caf.5709c","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":2453.6240844726562,"y":279.48438262939453,"z":"4854885a.f23e18","wires":[[]]},{"id":"8a498524.f57948","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":2453.6241302490234,"y":326.484375,"z":"4854885a.f23e18","wires":[[]]},{"id":"e457098a.bbf808","type":"set","name":"Set AAI update Flag","xml":"<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n","comments":"","x":1499.8062591552734,"y":725,"z":"4854885a.f23e18","wires":[]},{"id":"518c8bec.70b344","type":"set","name":"Set AAI update Flag","xml":"<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n","comments":"","x":1516.3062591552734,"y":477,"z":"4854885a.f23e18","wires":[]},{"id":"51856197.1ce12","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":2460.8062591552734,"y":399.515625,"z":"4854885a.f23e18","wires":[[]]},{"id":"ed0a15aa.d0fb28","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":1536.3062591552734,"y":582.515625,"z":"4854885a.f23e18","wires":[[]]},{"id":"92cc8ec.5ca637","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":1238.3062591552734,"y":210.515625,"z":"4854885a.f23e18","wires":[[]]},{"id":"86490b1e.e7c3e8","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=\"`'Hleathchek DG resolved to : ' + $HealthCheckDG.dg_name`\"/>\n","comments":"","outputs":1,"x":910.8062591552734,"y":220.515625,"z":"4854885a.f23e18","wires":[[]]},{"id":"cbf0e15a.5803f","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":742.8062591552734,"y":228.51560711860702,"z":"4854885a.f23e18","wires":[["86490b1e.e7c3e8"]]}]
+[
+ {
+ "id": "de1aee3b.04ffa",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 127.515625,
+ "y": 96.99999743700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "d9a22308.c7367"
+ ]
+ ]
+ },
+ {
+ "id": "d9a22308.c7367",
+ "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": 276.5157470703125,
+ "y": 94.99999743700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "dd0b31c0.6100f"
+ ]
+ ]
+ },
+ {
+ "id": "dd0b31c0.6100f",
+ "type": "method",
+ "name": "Restart_VNFC",
+ "xml": "<method rpc='Restart_VNFC' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 213.51580810546875,
+ "y": 218.99999743700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "8460a8c2.6f1338"
+ ]
+ ]
+ },
+ {
+ "id": "85255ef8.6cc46",
+ "type": "execute",
+ "name": "Resolve_VNFC_Healthcheck_DG",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"HealthCheck\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"HealthCheckDG\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 590.5158996582031,
+ "y": 154.99999743700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "c0370da4.37861",
+ "e37680a8.9f773",
+ "699f7854.ff88c8"
+ ]
+ ]
+ },
+ {
+ "id": "c0370da4.37861",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 854.5157470703125,
+ "y": 96.99999743700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "4fa4a9f7.300e48"
+ ]
+ ]
+ },
+ {
+ "id": "e37680a8.9f773",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 849.5158081054688,
+ "y": 176.99999743700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "20eb9fd4.8b4b1"
+ ]
+ ]
+ },
+ {
+ "id": "8460a8c2.6f1338",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 351.5157470703125,
+ "y": 358.9999974370003,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "85255ef8.6cc46",
+ "fae31e06.2838d"
+ ]
+ ]
+ },
+ {
+ "id": "fae31e06.2838d",
+ "type": "switchNode",
+ "name": "Resilence Type ?",
+ "xml": "<switch test='`$resilienceType`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 522.5157012939453,
+ "y": 613.0002110600471,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "4f1e885f.39f1d8",
+ "af01744f.38cc48",
+ "a0719d85.c73ca"
+ ]
+ ]
+ },
+ {
+ "id": "4f1e885f.39f1d8",
+ "type": "outcome",
+ "name": "Active_Active",
+ "xml": "<outcome value='Active-Active'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 719.5157775878906,
+ "y": 541.0001195073128,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "9724292f.48b7a8"
+ ]
+ ]
+ },
+ {
+ "id": "af01744f.38cc48",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 703.5158386230469,
+ "y": 614.0001500248909,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "9724292f.48b7a8"
+ ]
+ ]
+ },
+ {
+ "id": "a0719d85.c73ca",
+ "type": "outcome",
+ "name": "Active_Passive",
+ "xml": "<outcome value='Active-Passive'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 711.5158615112305,
+ "y": 701.0003242492676,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "7e27530b.2f00ac"
+ ]
+ ]
+ },
+ {
+ "id": "9724292f.48b7a8",
+ "type": "call",
+ "name": "Restart-Active-Active_VNFC",
+ "xml": "<call module='APPC' rpc='Restart-Active-Active_VNFC' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 936.5160217285156,
+ "y": 541.0000889897346,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "21596597.c96aaa",
+ "edb09ee8.6b7c4",
+ "a3848460.dc7548"
+ ]
+ ]
+ },
+ {
+ "id": "7e27530b.2f00ac",
+ "type": "call",
+ "name": "Restart-Active-Passive_VNFC",
+ "xml": "<call module='APPC' rpc='Restart-Active-Passive_VNFC' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 943.5158996582031,
+ "y": 698.0002326965332,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "21596597.c96aaa",
+ "edb09ee8.6b7c4",
+ "a3848460.dc7548"
+ ]
+ ]
+ },
+ {
+ "id": "21596597.c96aaa",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1191.515853881836,
+ "y": 541.0000889897346,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "76d58b6d.082104"
+ ]
+ ]
+ },
+ {
+ "id": "edb09ee8.6b7c4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1198.5162200927734,
+ "y": 616.0001347661018,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "cf480b74.b14a08"
+ ]
+ ]
+ },
+ {
+ "id": "fc40b2ae.fe3ca",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n\n",
+ "comments": "",
+ "x": 1578.515911102295,
+ "y": 780.0003890991211,
+ "z": "5f3b2f89.a07d1",
+ "wires": []
+ },
+ {
+ "id": "4fa4a9f7.300e48",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 996.738037109375,
+ "y": 97.4188283085823,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "a08aadab.2d8dc",
+ "7700c838.ca86e8",
+ "35106ee6.29ccc2",
+ "8c7e023.88381",
+ "7dbef058.376e3"
+ ]
+ ]
+ },
+ {
+ "id": "a08aadab.2d8dc",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Healthcheck DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 1248.5159301757812,
+ "y": 77.99999743700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": []
+ },
+ {
+ "id": "20eb9fd4.8b4b1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 996.738037109375,
+ "y": 156.88888293504715,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "b3a4f088.6f205",
+ "7700c838.ca86e8",
+ "35106ee6.29ccc2",
+ "8c7e023.88381",
+ "7dbef058.376e3"
+ ]
+ ]
+ },
+ {
+ "id": "b3a4f088.6f205",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Error while resolving Healthcheck DG for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 1258.7379760742188,
+ "y": 119.88888293504715,
+ "z": "5f3b2f89.a07d1",
+ "wires": []
+ },
+ {
+ "id": "7700c838.ca86e8",
+ "type": "record",
+ "name": "Log event",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1240.3067016601562,
+ "y": 157.18877917528152,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "35106ee6.29ccc2",
+ "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": 1281.174072265625,
+ "y": 196.37603503465652,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8c7e023.88381",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>",
+ "comments": "",
+ "x": 1250.293701171875,
+ "y": 274.3589451909065,
+ "z": "5f3b2f89.a07d1",
+ "wires": []
+ },
+ {
+ "id": "234b60a5.4b7e1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\n",
+ "comments": "",
+ "x": 1549.5161895751953,
+ "y": 651.000566482544,
+ "z": "5f3b2f89.a07d1",
+ "wires": []
+ },
+ {
+ "id": "cf480b74.b14a08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1335.9603652954102,
+ "y": 646.0002918243408,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "234b60a5.4b7e1"
+ ]
+ ]
+ },
+ {
+ "id": "d3ba8fd.0d50f7",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1342.9604873657227,
+ "y": 748.0003242492676,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "fc40b2ae.fe3ca",
+ "4878a43a.2f93dc"
+ ]
+ ]
+ },
+ {
+ "id": "4878a43a.2f93dc",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'VNFC restarted successfully : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1570.4047393798828,
+ "y": 719.8889694213867,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "76d58b6d.082104",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1322.2935485839844,
+ "y": 540.8889439702034,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "234b60a5.4b7e1",
+ "c30c04c5.1d2eb8",
+ "ec3dcea.349513"
+ ]
+ ]
+ },
+ {
+ "id": "c30c04c5.1d2eb8",
+ "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 Restart DG not found for resilience type : ' + $resilienceType`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1556.2935638427734,
+ "y": 499.8889617919922,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a3848460.dc7548",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1189.5163269042969,
+ "y": 697.0000889897346,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "d3ba8fd.0d50f7"
+ ]
+ ]
+ },
+ {
+ "id": "ec3dcea.349513",
+ "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": 1559.0157318115234,
+ "y": 582.5156402587891,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7dbef058.376e3",
+ "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": 1272.015625,
+ "y": 234.51562243700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "af7fd57b.dc9518",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Hleathchek DG resolved to : ' + $HealthCheckDG.dg_name`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 944.515625,
+ "y": 244.51562243700027,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "699f7854.ff88c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 776.515625,
+ "y": 252.5156045556073,
+ "z": "5f3b2f89.a07d1",
+ "wires": [
+ [
+ "af7fd57b.dc9518"
+ ]
+ ]
+ }
+] \ No newline at end of file
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StartApplication_VM_vSCP.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StartApplication_VM_vSCP.json
index d0bcc7d21..102ae397b 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StartApplication_VM_vSCP.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StartApplication_VM_vSCP.json
@@ -1 +1,434 @@
-[{"id":"bab79b58.ed1388","type":"dgstart","name":"DGSTART","outputs":1,"x":108.88888549804688,"y":71.88888549804688,"z":"98dae834.cf1368","wires":[["8e43a11f.9f02f"]]},{"id":"8e43a11f.9f02f","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":301.8889617919922,"y":71.45555877685547,"z":"98dae834.cf1368","wires":[["e154cdd4.86eff"]]},{"id":"e154cdd4.86eff","type":"method","name":"vSCP Start Application","xml":"<method rpc='StartApplication_VM_vSCP' mode='sync'>\n","comments":"","outputs":1,"x":242.63894653320312,"y":183.70553588867188,"z":"98dae834.cf1368","wires":[["d2374304.9bac6"]]},{"id":"5fb00be2.55cd14","type":"execute","name":"Start Application ","xml":"<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='startNode'>\n<parameter name=\"node-name\" value=\"`$node-name`\" />\n<parameter name=\"vm-url\" value=\"`$start-vm-url`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />","comments":"","outputs":1,"x":575.470588684082,"y":548.2461242675781,"z":"98dae834.cf1368","wires":[["ac3d6e4.2692c9","d3d3e78a.0af1a8"]]},{"id":"ac3d6e4.2692c9","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":779.089485168457,"y":628.3890686035156,"z":"98dae834.cf1368","wires":[["232b6f89.0c20d"]]},{"id":"d3d3e78a.0af1a8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":784.444221496582,"y":455.4604187011719,"z":"98dae834.cf1368","wires":[["ae3b9746.49e278"]]},{"id":"232b6f89.0c20d","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":966.873176574707,"y":628.3175354003906,"z":"98dae834.cf1368","wires":[["723d563d.137518","5235d365.f9647c","d4e4f8ab.aa9cb8"]]},{"id":"723d563d.137518","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":1175.8739395141602,"y":630.2221984863281,"z":"98dae834.cf1368","wires":[[]]},{"id":"d2374304.9bac6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":321.4443359375,"y":285.4603271484375,"z":"98dae834.cf1368","wires":[["5fb00be2.55cd14","4151a0ce.20144","6c8ebab7.6be074"]]},{"id":"5235d365.f9647c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1185.8893203735352,"y":676.4602355957031,"z":"98dae834.cf1368","wires":[]},{"id":"d4e4f8ab.aa9cb8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='error-message' value=\"`'Failure while starting the server: ' + $start-vm-url + ' at Application level.'`\"/>\n\n","comments":"","x":1201.6667861938477,"y":581.1110534667969,"z":"98dae834.cf1368","wires":[]},{"id":"ae3b9746.49e278","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":969.111213684082,"y":454.8889465332031,"z":"98dae834.cf1368","wires":[["3461b18d.58599e","da6895a5.557dd8","8734b67.1dc5248"]]},{"id":"3461b18d.58599e","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":1191.166145324707,"y":453.9555969238281,"z":"98dae834.cf1368","wires":[[]]},{"id":"da6895a5.557dd8","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Start succeeded for the server : ' + $start-vm-url`\"/>\n\n\n","comments":"","x":1208.166145324707,"y":406.9556579589844,"z":"98dae834.cf1368","wires":[]},{"id":"8734b67.1dc5248","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":1187.9995193481445,"y":502.888916015625,"z":"98dae834.cf1368","wires":[]},{"id":"67ff62e7.beb08c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>","comments":"","x":1151.5073318481445,"y":335.5582580566406,"z":"98dae834.cf1368","wires":[]},{"id":"4151a0ce.20144","type":"switchNode","name":"connection-details empty ?","xml":"<switch test='`length($connection-details) == 0`'>\n\n\n","comments":"","outputs":1,"x":622.888916015625,"y":124.20541381835938,"z":"98dae834.cf1368","wires":[["b3b5bdd2.0b38"]]},{"id":"b3b5bdd2.0b38","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":820.888916015625,"y":124.20541381835938,"z":"98dae834.cf1368","wires":[["cc11913a.48f44"]]},{"id":"cc11913a.48f44","type":"execute","name":"Retrieve connection details","xml":"<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n","comments":"","outputs":1,"x":1057.8887939453125,"y":123.45547485351562,"z":"98dae834.cf1368","wires":[["391d6e3c.8a72d2"]]},{"id":"391d6e3c.8a72d2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1289.888916015625,"y":123.45541381835938,"z":"98dae834.cf1368","wires":[["8f9ebcf.1ede04"]]},{"id":"8f9ebcf.1ede04","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1468.1195068359375,"y":123.30166625976562,"z":"98dae834.cf1368","wires":[["1d1d1d57.9e78e3","d0e4817e.f3eeb","23f88ee8.fe2732"]]},{"id":"1d1d1d57.9e78e3","type":"set","name":"Set error message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed to retrieve connection details for vnfc : ' + $vnfcType`\"/> ","comments":"","x":1705.8888244628906,"y":62.455535888671875,"z":"98dae834.cf1368","wires":[]},{"id":"d0e4817e.f3eeb","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":1675.888916015625,"y":122.45541381835938,"z":"98dae834.cf1368","wires":[[]]},{"id":"23f88ee8.fe2732","type":"returnFailure","name":"return failure","xml":"<return status='failure'>","comments":"","x":1690.7378845214844,"y":181.97103881835938,"z":"98dae834.cf1368","wires":[]},{"id":"6c8ebab7.6be074","type":"execute","name":"Get Node Name","xml":"<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='getNodeName'>\n<parameter name=\"vm-url\" value=\"`$start-vm-url`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n","comments":"","outputs":1,"x":595.888916015625,"y":285.45556640625,"z":"98dae834.cf1368","wires":[["1a21ec6a.914c44"]]},{"id":"1a21ec6a.914c44","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":771.888916015625,"y":285.45556640625,"z":"98dae834.cf1368","wires":[["3c007341.3351ec"]]},{"id":"3c007341.3351ec","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":926.888916015625,"y":284.8888931274414,"z":"98dae834.cf1368","wires":[["e857a16c.03b3b","3b7e8926.862e86","67ff62e7.beb08c"]]},{"id":"e857a16c.03b3b","type":"set","name":"Set error message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed to retrieve node name for server : ' + $start-vm-url`\"/> ","comments":"","x":1163.6582336425781,"y":228.04276275634766,"z":"98dae834.cf1368","wires":[]},{"id":"3b7e8926.862e86","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":1134.6583251953125,"y":284.04264068603516,"z":"98dae834.cf1368","wires":[[]]}]
+[
+ {
+ "id": "bab79b58.ed1388",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 108.88888549804688,
+ "y": 71.88888549804688,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "8e43a11f.9f02f"
+ ]
+ ]
+ },
+ {
+ "id": "8e43a11f.9f02f",
+ "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": 301.8889617919922,
+ "y": 71.45555877685547,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "e154cdd4.86eff"
+ ]
+ ]
+ },
+ {
+ "id": "e154cdd4.86eff",
+ "type": "method",
+ "name": "vSCP Start Application",
+ "xml": "<method rpc='StartApplication_VM_vSCP' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 242.63894653320312,
+ "y": 183.70553588867188,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "d2374304.9bac6"
+ ]
+ ]
+ },
+ {
+ "id": "5fb00be2.55cd14",
+ "type": "execute",
+ "name": "Start Application ",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='startNode'>\n<parameter name=\"node-name\" value=\"`$node-name`\" />\n<parameter name=\"vm-url\" value=\"`$start-vm-url`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 575.470588684082,
+ "y": 548.2461242675781,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "ac3d6e4.2692c9",
+ "d3d3e78a.0af1a8"
+ ]
+ ]
+ },
+ {
+ "id": "ac3d6e4.2692c9",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 779.089485168457,
+ "y": 628.3890686035156,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "232b6f89.0c20d"
+ ]
+ ]
+ },
+ {
+ "id": "d3d3e78a.0af1a8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 784.444221496582,
+ "y": 455.4604187011719,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "ae3b9746.49e278"
+ ]
+ ]
+ },
+ {
+ "id": "232b6f89.0c20d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 966.873176574707,
+ "y": 628.3175354003906,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "723d563d.137518",
+ "5235d365.f9647c",
+ "d4e4f8ab.aa9cb8"
+ ]
+ ]
+ },
+ {
+ "id": "723d563d.137518",
+ "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": 1175.8739395141602,
+ "y": 630.2221984863281,
+ "z": "98dae834.cf1368",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d2374304.9bac6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 321.4443359375,
+ "y": 285.4603271484375,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "5fb00be2.55cd14",
+ "4151a0ce.20144",
+ "6c8ebab7.6be074"
+ ]
+ ]
+ },
+ {
+ "id": "5235d365.f9647c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1185.8893203735352,
+ "y": 676.4602355957031,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "d4e4f8ab.aa9cb8",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Failure while starting the server: ' + $start-vm-url + ' at Application level.'`\"/>\n\n",
+ "comments": "",
+ "x": 1201.6667861938477,
+ "y": 581.1110534667969,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "ae3b9746.49e278",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 969.111213684082,
+ "y": 454.8889465332031,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "3461b18d.58599e",
+ "da6895a5.557dd8",
+ "8734b67.1dc5248"
+ ]
+ ]
+ },
+ {
+ "id": "3461b18d.58599e",
+ "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": 1191.166145324707,
+ "y": 453.9555969238281,
+ "z": "98dae834.cf1368",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "da6895a5.557dd8",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Start succeeded for the server : ' + $start-vm-url`\"/>\n\n\n",
+ "comments": "",
+ "x": 1208.166145324707,
+ "y": 406.9556579589844,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "8734b67.1dc5248",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1187.9995193481445,
+ "y": 502.888916015625,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "67ff62e7.beb08c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>",
+ "comments": "",
+ "x": 1151.5073318481445,
+ "y": 335.5582580566406,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "4151a0ce.20144",
+ "type": "switchNode",
+ "name": "connection-details empty ?",
+ "xml": "<switch test='`length($connection-details) == 0`'>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 622.888916015625,
+ "y": 124.20541381835938,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "b3b5bdd2.0b38"
+ ]
+ ]
+ },
+ {
+ "id": "b3b5bdd2.0b38",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 820.888916015625,
+ "y": 124.20541381835938,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "cc11913a.48f44"
+ ]
+ ]
+ },
+ {
+ "id": "cc11913a.48f44",
+ "type": "execute",
+ "name": "Retrieve connection details",
+ "xml": "<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1057.8887939453125,
+ "y": 123.45547485351562,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "391d6e3c.8a72d2"
+ ]
+ ]
+ },
+ {
+ "id": "391d6e3c.8a72d2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1289.888916015625,
+ "y": 123.45541381835938,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "8f9ebcf.1ede04"
+ ]
+ ]
+ },
+ {
+ "id": "8f9ebcf.1ede04",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1468.1195068359375,
+ "y": 123.30166625976562,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "1d1d1d57.9e78e3",
+ "d0e4817e.f3eeb",
+ "23f88ee8.fe2732"
+ ]
+ ]
+ },
+ {
+ "id": "1d1d1d57.9e78e3",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Failed to retrieve connection details for vnfc : ' + $vnfcType`\"/> ",
+ "comments": "",
+ "x": 1705.8888244628906,
+ "y": 62.455535888671875,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "d0e4817e.f3eeb",
+ "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": 1675.888916015625,
+ "y": 122.45541381835938,
+ "z": "98dae834.cf1368",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "23f88ee8.fe2732",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>",
+ "comments": "",
+ "x": 1690.7378845214844,
+ "y": 181.97103881835938,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "6c8ebab7.6be074",
+ "type": "execute",
+ "name": "Get Node Name",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='getNodeName'>\n<parameter name=\"vm-url\" value=\"`$start-vm-url`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 595.888916015625,
+ "y": 285.45556640625,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "1a21ec6a.914c44"
+ ]
+ ]
+ },
+ {
+ "id": "1a21ec6a.914c44",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.888916015625,
+ "y": 285.45556640625,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "3c007341.3351ec"
+ ]
+ ]
+ },
+ {
+ "id": "3c007341.3351ec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 926.888916015625,
+ "y": 284.8888931274414,
+ "z": "98dae834.cf1368",
+ "wires": [
+ [
+ "e857a16c.03b3b",
+ "3b7e8926.862e86",
+ "67ff62e7.beb08c"
+ ]
+ ]
+ },
+ {
+ "id": "e857a16c.03b3b",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Failed to retrieve node name for server : ' + $start-vm-url`\"/> ",
+ "comments": "",
+ "x": 1163.6582336425781,
+ "y": 228.04276275634766,
+ "z": "98dae834.cf1368",
+ "wires": []
+ },
+ {
+ "id": "3b7e8926.862e86",
+ "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": 1134.6583251953125,
+ "y": 284.04264068603516,
+ "z": "98dae834.cf1368",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VM.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VM.json
index 0ddff5b4a..c13e7deb8 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VM.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VM.json
@@ -1,333 +1,333 @@
-[
- {
- "id": "d52f4308.555fb",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 96.99993896484375,
- "y": 54,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "763cad7e.1450b4"
- ]
- ]
- },
- {
- "id": "763cad7e.1450b4",
- "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": 141.99993896484375,
- "y": 137,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "812b1c37.4885c"
- ]
- ]
- },
- {
- "id": "812b1c37.4885c",
- "type": "method",
- "name": "Start VM",
- "xml": "<method rpc='Start_VM' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 301.99993896484375,
- "y": 137,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "c47aa6c9.8c9378"
- ]
- ]
- },
- {
- "id": "280842c.c99e1be",
- "type": "call",
- "name": "Start Application ",
- "xml": "<call module='`$ApplicationStart.dg_module`' rpc='`$ApplicationStart.dg_name`' version='`$ApplicationStart.dg_version`' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 766.9999771118164,
- "y": 336.0000305175781,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "144156f7.572b29",
- "7eab80e5.2adb3",
- "70e14c1f.8e34e4"
- ]
- ]
- },
- {
- "id": "144156f7.572b29",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 998.9999771118164,
- "y": 266.9998779296875,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "96fd3f86.877cb"
- ]
- ]
- },
- {
- "id": "7eab80e5.2adb3",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 996.9999771118164,
- "y": 407.9999694824219,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "deb77571.89feb8"
- ]
- ]
- },
- {
- "id": "db549b18.455358",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 1378.0005493164062,
- "y": 262.9998779296875,
- "z": "1cdd4efa.2a36b1",
- "wires": []
- },
- {
- "id": "c47aa6c9.8c9378",
- "type": "execute",
- "name": "Resolve Application Start DG",
- "xml": "<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Start_Application\" />\n<parameter name=\"api-ver\" value=\"2.0.0\" />\n<parameter name=\"prefix\" value=\"ApplicationStart\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 349,
- "y": 238,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "ba0ce95d.a32d48",
- "cc32ed95.f1246"
- ]
- ]
- },
- {
- "id": "ba0ce95d.a32d48",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 604,
- "y": 143,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "c89af7a5.6217e8"
- ]
- ]
- },
- {
- "id": "cc32ed95.f1246",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 598.9999771118164,
- "y": 336.0000305175781,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "280842c.c99e1be"
- ]
- ]
- },
- {
- "id": "c89af7a5.6217e8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 770.0000610351562,
- "y": 142,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "e4e7b04c.adb7d",
- "d2671f6c.53d78",
- "735a4bd9.4bb604"
- ]
- ]
- },
- {
- "id": "e4e7b04c.adb7d",
- "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=\"`$error-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 992,
- "y": 143,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- []
- ]
- },
- {
- "id": "735a4bd9.4bb604",
- "type": "set",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Failed to resolve Application start DG for : ' + $vnfcType`\"/>\n",
- "comments": "",
- "x": 1037,
- "y": 98.88888549804688,
- "z": "1cdd4efa.2a36b1",
- "wires": []
- },
- {
- "id": "d2671f6c.53d78",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 989.9998779296875,
- "y": 186.00006103515625,
- "z": "1cdd4efa.2a36b1",
- "wires": []
- },
- {
- "id": "70e14c1f.8e34e4",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 996.5555191040039,
- "y": 335.8888854980469,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "bbaacbc9.6e42a8"
- ]
- ]
- },
- {
- "id": "bbaacbc9.6e42a8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1172.222267150879,
- "y": 336.8888854980469,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "2620f33d.ba7aac",
- "d98a42e2.78acd",
- "87259f65.26a31"
- ]
- ]
- },
- {
- "id": "2620f33d.ba7aac",
- "type": "set",
- "name": "Set failure code and message",
- "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Application Start DG not found for : ' + $vnfcType`\" />\n",
- "comments": "",
- "x": 1426.5555419921875,
- "y": 316.77777099609375,
- "z": "1cdd4efa.2a36b1",
- "wires": []
- },
- {
- "id": "d98a42e2.78acd",
- "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=\"`$error-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1381.5554809570312,
- "y": 362.8888854980469,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- []
- ]
- },
- {
- "id": "87259f65.26a31",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1379.555519104004,
- "y": 408.8888854980469,
- "z": "1cdd4efa.2a36b1",
- "wires": []
- },
- {
- "id": "deb77571.89feb8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1155.555549621582,
- "y": 407.8888854980469,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "d98a42e2.78acd",
- "87259f65.26a31"
- ]
- ]
- },
- {
- "id": "96fd3f86.877cb",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1172.9999389648438,
- "y": 264,
- "z": "1cdd4efa.2a36b1",
- "wires": [
- [
- "db549b18.455358",
- "ba9d1c0b.3d282"
- ]
- ]
- },
- {
- "id": "ba9d1c0b.3d282",
- "type": "set",
- "name": "Set success code and message",
- "xml": "<set>\n<parameter name='error-code' value=\"400\"/>\n<parameter name='error-message' value=\"Success\" />\n",
- "comments": "",
- "x": 1430.9999389648438,
- "y": 218,
- "z": "1cdd4efa.2a36b1",
- "wires": []
- }
-]
+[
+ {
+ "id": "d52f4308.555fb",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 96.99993896484375,
+ "y": 54,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "763cad7e.1450b4"
+ ]
+ ]
+ },
+ {
+ "id": "763cad7e.1450b4",
+ "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": 141.99993896484375,
+ "y": 137,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "812b1c37.4885c"
+ ]
+ ]
+ },
+ {
+ "id": "812b1c37.4885c",
+ "type": "method",
+ "name": "Start VM",
+ "xml": "<method rpc='Start_VM' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 301.99993896484375,
+ "y": 137,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "c47aa6c9.8c9378"
+ ]
+ ]
+ },
+ {
+ "id": "280842c.c99e1be",
+ "type": "call",
+ "name": "Start Application ",
+ "xml": "<call module='`$ApplicationStart.dg_module`' rpc='`$ApplicationStart.dg_name`' version='`$ApplicationStart.dg_version`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 766.9999771118164,
+ "y": 336.0000305175781,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "144156f7.572b29",
+ "7eab80e5.2adb3",
+ "70e14c1f.8e34e4"
+ ]
+ ]
+ },
+ {
+ "id": "144156f7.572b29",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 998.9999771118164,
+ "y": 266.9998779296875,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "96fd3f86.877cb"
+ ]
+ ]
+ },
+ {
+ "id": "7eab80e5.2adb3",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 996.9999771118164,
+ "y": 407.9999694824219,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "deb77571.89feb8"
+ ]
+ ]
+ },
+ {
+ "id": "db549b18.455358",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1378.0005493164062,
+ "y": 262.9998779296875,
+ "z": "1cdd4efa.2a36b1",
+ "wires": []
+ },
+ {
+ "id": "c47aa6c9.8c9378",
+ "type": "execute",
+ "name": "Resolve Application Start DG",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Start_Application\" />\n<parameter name=\"api-ver\" value=\"2.0.0\" />\n<parameter name=\"prefix\" value=\"ApplicationStart\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 349,
+ "y": 238,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "ba0ce95d.a32d48",
+ "cc32ed95.f1246"
+ ]
+ ]
+ },
+ {
+ "id": "ba0ce95d.a32d48",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 604,
+ "y": 143,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "c89af7a5.6217e8"
+ ]
+ ]
+ },
+ {
+ "id": "cc32ed95.f1246",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 598.9999771118164,
+ "y": 336.0000305175781,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "280842c.c99e1be"
+ ]
+ ]
+ },
+ {
+ "id": "c89af7a5.6217e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 770.0000610351562,
+ "y": 142,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "e4e7b04c.adb7d",
+ "d2671f6c.53d78",
+ "735a4bd9.4bb604"
+ ]
+ ]
+ },
+ {
+ "id": "e4e7b04c.adb7d",
+ "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=\"`$error-message`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 992,
+ "y": 143,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "735a4bd9.4bb604",
+ "type": "set",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Failed to resolve Application start DG for : ' + $vnfcType`\"/>\n",
+ "comments": "",
+ "x": 1037,
+ "y": 98.88888549804688,
+ "z": "1cdd4efa.2a36b1",
+ "wires": []
+ },
+ {
+ "id": "d2671f6c.53d78",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 989.9998779296875,
+ "y": 186.00006103515625,
+ "z": "1cdd4efa.2a36b1",
+ "wires": []
+ },
+ {
+ "id": "70e14c1f.8e34e4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 996.5555191040039,
+ "y": 335.8888854980469,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "bbaacbc9.6e42a8"
+ ]
+ ]
+ },
+ {
+ "id": "bbaacbc9.6e42a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1172.222267150879,
+ "y": 336.8888854980469,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "2620f33d.ba7aac",
+ "d98a42e2.78acd",
+ "87259f65.26a31"
+ ]
+ ]
+ },
+ {
+ "id": "2620f33d.ba7aac",
+ "type": "set",
+ "name": "Set failure code and message",
+ "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Application Start DG not found for : ' + $vnfcType`\" />\n",
+ "comments": "",
+ "x": 1426.5555419921875,
+ "y": 316.77777099609375,
+ "z": "1cdd4efa.2a36b1",
+ "wires": []
+ },
+ {
+ "id": "d98a42e2.78acd",
+ "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=\"`$error-message`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1381.5554809570312,
+ "y": 362.8888854980469,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "87259f65.26a31",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1379.555519104004,
+ "y": 408.8888854980469,
+ "z": "1cdd4efa.2a36b1",
+ "wires": []
+ },
+ {
+ "id": "deb77571.89feb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1155.555549621582,
+ "y": 407.8888854980469,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "d98a42e2.78acd",
+ "87259f65.26a31"
+ ]
+ ]
+ },
+ {
+ "id": "96fd3f86.877cb",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1172.9999389648438,
+ "y": 264,
+ "z": "1cdd4efa.2a36b1",
+ "wires": [
+ [
+ "db549b18.455358",
+ "ba9d1c0b.3d282"
+ ]
+ ]
+ },
+ {
+ "id": "ba9d1c0b.3d282",
+ "type": "set",
+ "name": "Set success code and message",
+ "xml": "<set>\n<parameter name='error-code' value=\"400\"/>\n<parameter name='error-message' value=\"Success\" />\n",
+ "comments": "",
+ "x": 1430.9999389648438,
+ "y": 218,
+ "z": "1cdd4efa.2a36b1",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNF.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNF.json
index cb4001c5e..c14100b8f 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNF.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNF.json
@@ -1 +1,1438 @@
-[{"id":"299910f3.66048","type":"dgstart","name":"DGSTART","outputs":1,"x":108.88888549804688,"y":43.888885498046875,"z":"5c4aa102.e34ff","wires":[["4c139e83.c4319"]]},{"id":"4c139e83.c4319","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":283.8888854980469,"y":42.888885498046875,"z":"5c4aa102.e34ff","wires":[["bfb729c1.a8e6c8"]]},{"id":"bfb729c1.a8e6c8","type":"method","name":"Start_VNF","xml":"<method rpc='Start_VNF' mode='sync'>\n","comments":"","outputs":1,"x":134.88894653320312,"y":134.88888549804688,"z":"5c4aa102.e34ff","wires":[["6ec09531.21892c"]]},{"id":"3c8b6771.447f48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":413.88922119140625,"y":160.88888549804688,"z":"5c4aa102.e34ff","wires":[["c9c46d3e.b8431"]]},{"id":"50133d6a.76f334","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":412.88922119140625,"y":110.88888549804688,"z":"5c4aa102.e34ff","wires":[["c9c46d3e.b8431"]]},{"id":"29442299.20a70e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":406.88922119140625,"y":215.88890075683594,"z":"5c4aa102.e34ff","wires":[["c9c46d3e.b8431"]]},{"id":"6ec09531.21892c","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":186.88897705078125,"y":214.888916015625,"z":"5c4aa102.e34ff","wires":[["3c8b6771.447f48","50133d6a.76f334","29442299.20a70e","c1780f4e.03327"]]},{"id":"c1780f4e.03327","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":412.888916015625,"y":278.888916015625,"z":"5c4aa102.e34ff","wires":[["2f541c3b.cee8b4"]]},{"id":"2f541c3b.cee8b4","type":"execute","name":"Get Vnf Hierarchy","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":584.5555725097656,"y":278.888916015625,"z":"5c4aa102.e34ff","wires":[["ef6bc2fa.faa29","9bba9c55.7f49d"]]},{"id":"9bba9c55.7f49d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":772.5556335449219,"y":237.888916015625,"z":"5c4aa102.e34ff","wires":[["2e270a1.07ca7f6"]]},{"id":"ef6bc2fa.faa29","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":760.5555877685547,"y":315.88885498046875,"z":"5c4aa102.e34ff","wires":[["1e6364a8.66f95b"]]},{"id":"1e6364a8.66f95b","type":"switchNode","name":"getVnfHierarchy_result ?","xml":"<switch test='`$getVnfHierarchy_result`'>\n","comments":"","outputs":1,"x":921.5555114746094,"y":384,"z":"5c4aa102.e34ff","wires":[["c8100453.9d35b8","99c4ec1e.ee054"]]},{"id":"c8100453.9d35b8","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1128.5558471679688,"y":445.0000591278076,"z":"5c4aa102.e34ff","wires":[["3ff31edf.ede1c2"]]},{"id":"99c4ec1e.ee054","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1127.5557556152344,"y":324,"z":"5c4aa102.e34ff","wires":[["2e270a1.07ca7f6"]]},{"id":"3ff31edf.ede1c2","type":"switchNode","name":"VNF_VMCount ?","xml":"<switch test='`$VNF.VMCount`'>","comments":"","outputs":1,"x":1162.5558471679688,"y":513.1109294891357,"z":"5c4aa102.e34ff","wires":[["1416e132.1c0aaf","eb4fad9c.bce16"]]},{"id":"1416e132.1c0aaf","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1348.5554809570312,"y":446.11108207702637,"z":"5c4aa102.e34ff","wires":[["b17b296.f6d01d8"]]},{"id":"eb4fad9c.bce16","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1268.5554809570312,"y":579.1110515594482,"z":"5c4aa102.e34ff","wires":[["11321978.17eea7"]]},{"id":"11321978.17eea7","type":"execute","name":"Get Execution Flow","xml":"<execute plugin='org.onap.appc.dg.common.VnfExecutionFlow' method='getVnfExecutionFlowData' >\n<parameter name=\"DependencyType\" value='RESOURCE' />\n<parameter name=\"FlowStrategy\" value='FORWARD' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n","comments":"","outputs":1,"x":1326.5554809570312,"y":654.2222576141357,"z":"5c4aa102.e34ff","wires":[["c56fb547.a74a68","2e8596f1.80158a"]]},{"id":"c56fb547.a74a68","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1518.5552978515625,"y":654.2221069335938,"z":"5c4aa102.e34ff","wires":[["499f0443.9d41ec"]]},{"id":"2e8596f1.80158a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1517.5553588867188,"y":575.2221355438232,"z":"5c4aa102.e34ff","wires":[["f2bd14d8.012ae8"]]},{"id":"c9c46d3e.b8431","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":587.5558776855469,"y":161.88888549804688,"z":"5c4aa102.e34ff","wires":[["9db67ad0.c72e08","8a01f366.7f8b3"]]},{"id":"9db67ad0.c72e08","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","x":784.8888244628906,"y":162.41261291503906,"z":"5c4aa102.e34ff","wires":[]},{"id":"2e270a1.07ca7f6","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1282.3333587646484,"y":240.77780151367188,"z":"5c4aa102.e34ff","wires":[["c7ba02c4.f3caf","62ddf370.b593cc"]]},{"id":"c7ba02c4.f3caf","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1471.3335266113281,"y":301.7778015136719,"z":"5c4aa102.e34ff","wires":[]},{"id":"b17b296.f6d01d8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1478.8889770507812,"y":445.1111431121826,"z":"5c4aa102.e34ff","wires":[["8936d091.5239b","abde09fa.791d28"]]},{"id":"8936d091.5239b","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1667.8889770507812,"y":474.11120414733887,"z":"5c4aa102.e34ff","wires":[]},{"id":"f2bd14d8.012ae8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1651.8889770507812,"y":576.3331909179688,"z":"5c4aa102.e34ff","wires":[["c62e4740.de62c8","d289f63d.66e818"]]},{"id":"c62e4740.de62c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1840.8894653320312,"y":611.3333129882812,"z":"5c4aa102.e34ff","wires":[]},{"id":"17cf107e.7f886","type":"for","name":"For each VNFC","xml":"<for index='vnfcIndex' start='0' end='`$vnfcFlowCount`' >\n","comments":"","outputs":1,"x":2216.1107177734375,"y":790.5554504394531,"z":"5c4aa102.e34ff","wires":[["f8177f2d.a6291"]]},{"id":"17f10685.cdf999","type":"call","name":"call VNFC DG","xml":"<call module='`$Start.dg_module`' rpc='`$Start.dg_name`' mode='sync' version='`$Start.dg_version`'>\n","comments":"","outputs":1,"x":2628.110595703125,"y":874.6667175292969,"z":"5c4aa102.e34ff","wires":[["8a3cbe9b.5b621","27952ef7.62ca42","c4f76289.bdede"]]},{"id":"be1f667a.981e38","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2011.111083984375,"y":788.5556945800781,"z":"5c4aa102.e34ff","wires":[["17cf107e.7f886","c5f7ab23.b45e78","81405549.a04ab8"]]},{"id":"212c800c.bdb73","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2864.11083984375,"y":641.5558471679688,"z":"5c4aa102.e34ff","wires":[["2a011c5b.f9d6d4"]]},{"id":"d9418288.26914","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2860.110595703125,"y":723.5558471679688,"z":"5c4aa102.e34ff","wires":[["d652f7c2.e41888"]]},{"id":"d652f7c2.e41888","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3002.1103515625,"y":720.5558776855469,"z":"5c4aa102.e34ff","wires":[["1ebfb7bf.a79bb8","a93d5b4f.a969b8"]]},{"id":"1ebfb7bf.a79bb8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3228.1103515625,"y":723.5558471679688,"z":"5c4aa102.e34ff","wires":[]},{"id":"c4f76289.bdede","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2823.88818359375,"y":922.7779235839844,"z":"5c4aa102.e34ff","wires":[["58061af.316bde4"]]},{"id":"27952ef7.62ca42","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2821.888427734375,"y":830.7778930664062,"z":"5c4aa102.e34ff","wires":[["52a01fc.6384ce"]]},{"id":"8a3cbe9b.5b621","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2833.888671875,"y":874.7779235839844,"z":"5c4aa102.e34ff","wires":[["3015773a.9e8ed8"]]},{"id":"f8177f2d.a6291","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2386.7772216796875,"y":789.7779235839844,"z":"5c4aa102.e34ff","wires":[["17f10685.cdf999","49f4569c.8a2998","d0f4b673.bb9bc8","49762763.3da6f8"]]},{"id":"499f0443.9d41ec","type":"switchNode","name":"dependencyModelFound","xml":"<switch test='`$dependencyModelFound`'>\n","comments":"","outputs":1,"x":1664.5554809570312,"y":733.6666851043701,"z":"5c4aa102.e34ff","wires":[["caef42e3.e2cd1","ba818266.2f63b"]]},{"id":"caef42e3.e2cd1","type":"outcome","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1862.222412109375,"y":678.7777709960938,"z":"5c4aa102.e34ff","wires":[["32dbf6d7.c27d6a"]]},{"id":"32dbf6d7.c27d6a","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1987.6671142578125,"y":678.8888549804688,"z":"5c4aa102.e34ff","wires":[["1d118892.752427","6182f37b.1d21cc"]]},{"id":"1d118892.752427","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2167.6668701171875,"y":678.8888549804688,"z":"5c4aa102.e34ff","wires":[]},{"id":"ba818266.2f63b","type":"outcome","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1869.555419921875,"y":788.6669006347656,"z":"5c4aa102.e34ff","wires":[["be1f667a.981e38"]]},{"id":"49f4569c.8a2998","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[$vnfcIndex].vnfcType`' />\n<parameter name=\"action\" value=\"Start\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"Start\" />\n","comments":"","outputs":1,"x":2620.888427734375,"y":682.6389770507812,"z":"5c4aa102.e34ff","wires":[["212c800c.bdb73","d9418288.26914"]]},{"id":"d0f4b673.bb9bc8","type":"set","name":"set DG Parameters","xml":"<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$vnfcIndex].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$vnfcIndex].vnfcType`' />\n<parameter name='resilienceType' value='`$vnfcFlow[$vnfcIndex].resilienceType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$vnfcIndex].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='StartSuccessVMCount' value='0' />","comments":"","x":2621.9158935546875,"y":733.7223205566406,"z":"5c4aa102.e34ff","wires":[]},{"id":"49762763.3da6f8","type":"for","name":"For Each VM","xml":"<for index='j' start='0' end='`$vnfcFlow[$vnfcIndex].vmCount`' >\n","comments":"","outputs":1,"x":2615.693603515625,"y":788.6942443847656,"z":"5c4aa102.e34ff","wires":[["49159f53.bab48"]]},{"id":"49159f53.bab48","type":"set","name":"Set VM URL","xml":"<set>\n<parameter name=\"$vm[$j].url\" value='`$vnfcFlow[$vnfcIndex].vm[$j].url`' />","comments":"","x":2813.693603515625,"y":782.6942138671875,"z":"5c4aa102.e34ff","wires":[]},{"id":"52a01fc.6384ce","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2984.77734375,"y":829.888916015625,"z":"5c4aa102.e34ff","wires":[["febe94b.f9ea268","f2b1c346.5441c"]]},{"id":"febe94b.f9ea268","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":3210.777587890625,"y":827.8889465332031,"z":"5c4aa102.e34ff","wires":[]},{"id":"3015773a.9e8ed8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2999.77734375,"y":875.8889465332031,"z":"5c4aa102.e34ff","wires":[["5e5e2482.c568bc"]]},{"id":"5e5e2482.c568bc","type":"switchNode","name":"switch_vm_start_success","xml":"<switch test='`$StartSuccessVMCount >= 1 and $AAIUpdateSuccessFlag == true`'>\n","comments":"","outputs":1,"x":3186.1103515625,"y":876.0003356933594,"z":"5c4aa102.e34ff","wires":[["a6d2b1f5.d987f","4b8ed0.8acc413"]]},{"id":"4b8ed0.8acc413","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":3407.888671875,"y":803.0003967285156,"z":"5c4aa102.e34ff","wires":[["c6426185.7dfe3"]]},{"id":"a6d2b1f5.d987f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3399.388671875,"y":987.0002746582031,"z":"5c4aa102.e34ff","wires":[["c1a5bebe.ca387"]]},{"id":"5c097e27.bb7de","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3900.888427734375,"y":767.0003967285156,"z":"5c4aa102.e34ff","wires":[["1a3707f5.b0cfd8","aff88561.dea378","185bd07b.b7ca8","a981436.e6979c"]]},{"id":"f9cfce90.be4a4","type":"set","name":"update failed VNFC count","xml":"<set>\n<parameter name=\"FailedVNFCCount\" value=\"`$FailedVNFCCount + 1`\" />\n","comments":"","x":3746.555419921875,"y":1030.0002136230469,"z":"5c4aa102.e34ff","wires":[]},{"id":"1a3707f5.b0cfd8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":4106.44384765625,"y":877.0005187988281,"z":"5c4aa102.e34ff","wires":[]},{"id":"c1a5bebe.ca387","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3521.99951171875,"y":987.1113586425781,"z":"5c4aa102.e34ff","wires":[["f9cfce90.be4a4","c3210bb.7e0d2f8"]]},{"id":"81405549.a04ab8","type":"switchNode","name":"switch_vnfc_start_success","xml":"<switch test='`$FailedVNFCCount == 0`'>\n","comments":"","outputs":1,"x":2263.3330078125,"y":962.8889770507812,"z":"5c4aa102.e34ff","wires":[["1b88a948.830f47","3fa70651.493b2a"]]},{"id":"1b88a948.830f47","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2477.3330078125,"y":924.888916015625,"z":"5c4aa102.e34ff","wires":[["c17e8a64.feee78"]]},{"id":"3fa70651.493b2a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2477.833251953125,"y":1001.8889770507812,"z":"5c4aa102.e34ff","wires":[["d811481f.f55068"]]},{"id":"c17e8a64.feee78","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2635.60205078125,"y":924.40576171875,"z":"5c4aa102.e34ff","wires":[]},{"id":"d811481f.f55068","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":2638.8330078125,"y":1000.8057861328125,"z":"5c4aa102.e34ff","wires":[]},{"id":"c5f7ab23.b45e78","type":"set","name":"set Counters","xml":"<set>\n<parameter name='FailedVNFCCount' value='0' />\n<parameter name='secondLastVnfcCounter' value=\"`$vnfcFlowCount - 1`\" />","comments":"","x":2233.3330078125,"y":730.8889465332031,"z":"5c4aa102.e34ff","wires":[]},{"id":"58061af.316bde4","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=\"`'Start successfull for VNFC : ' + $vnfcName `\"/>\n","comments":"","outputs":1,"x":3003.666015625,"y":923.8891906738281,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"aff88561.dea378","type":"record","name":"Log message","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":4120.666015625,"y":766.8893737792969,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"c3210bb.7e0d2f8","type":"record","name":"Log message","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=\"`'Failed to Start all VMs for VNFC : ' + $vnfcName + '. But successfully Started '+ $StartSuccessVMCount +' VM/s so continue to next VNFC'`\"/>\n","comments":"","outputs":1,"x":3711.666015625,"y":987.8893737792969,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"2a011c5b.f9d6d4","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=\"`'VNFC DG for ' + $vnfcName + ' resolves to rpc: ' + $Start.dg_name + ', module: ' + $Start.dg_module + ', version: ' + $Start.dg_version `\"/>\n","comments":"","outputs":1,"x":3021.777587890625,"y":641.88916015625,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"81dc48bb.8279b8","type":"set","name":"Set error message","xml":"<set>\n<parameter name=\"event-message\" value=\"`'None of the VMs of VNFC ' + $vnfcName + ' are Started. Not proceeding to the next VNFC.'`\" />","comments":"","x":4511.5546875,"y":756.7783508300781,"z":"5c4aa102.e34ff","wires":[]},{"id":"185bd07b.b7ca8","type":"switchNode","name":"switch_vm_start_success","xml":"<switch test='`$StartSuccessVMCount >= 1`'>\n","comments":"","outputs":1,"x":4133.444580078125,"y":714.3335266113281,"z":"5c4aa102.e34ff","wires":[["31b691a6.d4b12e","192eb901.761be7"]]},{"id":"192eb901.761be7","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":4348.22265625,"y":757.3336486816406,"z":"5c4aa102.e34ff","wires":[["81dc48bb.8279b8"]]},{"id":"31b691a6.d4b12e","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4345.72265625,"y":715.3335266113281,"z":"5c4aa102.e34ff","wires":[["a35ba1c.042ef6"]]},{"id":"a35ba1c.042ef6","type":"set","name":"Set error message","xml":"<set>\n<parameter name=\"event-message\" value=\"`'AAI update for VNFC ' + $vnfcName + ' failed. Not proceeding to the next VNFC.'`\" />","comments":"","x":4508.555419921875,"y":715.3336486816406,"z":"5c4aa102.e34ff","wires":[]},{"id":"8a01f366.7f8b3","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":817.8889465332031,"y":113.77777099609375,"z":"5c4aa102.e34ff","wires":[["fc577427.eef7c8"]]},{"id":"3b70b982.0b63e6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1665.888916015625,"y":192.77777099609375,"z":"5c4aa102.e34ff","wires":[["e8b9ba94.acda98"]]},{"id":"e8b9ba94.acda98","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":1844.46044921875,"y":192.49203491210938,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"62ddf370.b593cc","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\" />","comments":"","outputs":1,"x":1486.8889465332031,"y":191.77777099609375,"z":"5c4aa102.e34ff","wires":[["3b70b982.0b63e6"]]},{"id":"4d23f1d5.255c2","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":1227.5555114746094,"y":112.77777099609375,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"fc577427.eef7c8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1025.9839782714844,"y":113.06350708007812,"z":"5c4aa102.e34ff","wires":[["4d23f1d5.255c2"]]},{"id":"abde09fa.791d28","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=\"Server/VNFC does not exists in A&amp;AI for the VNF\" />","comments":"","outputs":1,"x":1677.5558471679688,"y":412.88888359069824,"z":"5c4aa102.e34ff","wires":[["bc782016.90984"]]},{"id":"bc782016.90984","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2222.5557861328125,"y":410.8888854980469,"z":"5c4aa102.e34ff","wires":[["b07f6dbb.8bd43"]]},{"id":"b07f6dbb.8bd43","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":2396.1273193359375,"y":410.6031494140625,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"d289f63d.66e818","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":1868.5557250976562,"y":535.9999389648438,"z":"5c4aa102.e34ff","wires":[["bc782016.90984"]]},{"id":"6182f37b.1d21cc","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":2155.2218017578125,"y":589.9999389648438,"z":"5c4aa102.e34ff","wires":[["bc782016.90984"]]},{"id":"a93d5b4f.a969b8","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[$vnfcIndex].vnfcType`\"/>","comments":"","outputs":1,"x":3255.33349609375,"y":677.1111145019531,"z":"5c4aa102.e34ff","wires":[["27acd7c9.c9d3f8"]]},{"id":"27acd7c9.c9d3f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3470.66748046875,"y":682.0000915527344,"z":"5c4aa102.e34ff","wires":[["bb169884.8524d8"]]},{"id":"bb169884.8524d8","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":3662.239013671875,"y":682.7143249511719,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"f2b1c346.5441c","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 : ' + $vnfcName`\"/>","comments":"","outputs":1,"x":3220.444580078125,"y":783.1111145019531,"z":"5c4aa102.e34ff","wires":[["27acd7c9.c9d3f8"]]},{"id":"a981436.e6979c","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":4130.666748046875,"y":810.1112365722656,"z":"5c4aa102.e34ff","wires":[["2ccc3a15.045cd6"]]},{"id":"2ccc3a15.045cd6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4345.8896484375,"y":811.0002136230469,"z":"5c4aa102.e34ff","wires":[["d620e55c.b5a9c8"]]},{"id":"d620e55c.b5a9c8","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":4542.462158203125,"y":810.7144470214844,"z":"5c4aa102.e34ff","wires":[[]]},{"id":"c6426185.7dfe3","type":"switchNode","name":"switch last vnfc","xml":"<switch test='`$secondLastVnfcCounter == $vnfcIndex`'>\n","comments":"","outputs":1,"x":3556.5556640625,"y":801.3334045410156,"z":"5c4aa102.e34ff","wires":[["c418f351.9d5a9","d075b39f.c65b1"]]},{"id":"c418f351.9d5a9","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3760.77783203125,"y":875.3334045410156,"z":"5c4aa102.e34ff","wires":[["1a3707f5.b0cfd8"]]},{"id":"d075b39f.c65b1","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":3756.278076171875,"y":768.3335266113281,"z":"5c4aa102.e34ff","wires":[["5c097e27.bb7de"]]}]
+[
+ {
+ "id": "3e299d45.1f57d2",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 2678.531005859375,
+ "y": 90.99999809265137,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "dd7ca23a.09cf7"
+ ]
+ ]
+ },
+ {
+ "id": "dd7ca23a.09cf7",
+ "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": 2853.531005859375,
+ "y": 89.99999809265137,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "beed4227.42559"
+ ]
+ ]
+ },
+ {
+ "id": "beed4227.42559",
+ "type": "method",
+ "name": "Start_VNF",
+ "xml": "<method rpc='Start_VNF' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2704.5310668945312,
+ "y": 181.99999809265137,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "5b5c19b7.484488"
+ ]
+ ]
+ },
+ {
+ "id": "d4448be1.4399d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2983.5313415527344,
+ "y": 207.99999809265137,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "dde21805.ccfeb8"
+ ]
+ ]
+ },
+ {
+ "id": "ebaa3fa5.40717",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2982.5313415527344,
+ "y": 157.99999809265137,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "dde21805.ccfeb8"
+ ]
+ ]
+ },
+ {
+ "id": "64b4c690.751ad8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2976.5313415527344,
+ "y": 263.00001335144043,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "dde21805.ccfeb8"
+ ]
+ ]
+ },
+ {
+ "id": "5b5c19b7.484488",
+ "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": 2756.5310974121094,
+ "y": 262.0000286102295,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "d4448be1.4399d8",
+ "ebaa3fa5.40717",
+ "64b4c690.751ad8",
+ "3f8cce8f.dc29d2"
+ ]
+ ]
+ },
+ {
+ "id": "3f8cce8f.dc29d2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2982.531036376953,
+ "y": 326.0000286102295,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "b0d4f973.b17a28"
+ ]
+ ]
+ },
+ {
+ "id": "b0d4f973.b17a28",
+ "type": "execute",
+ "name": "Get Vnf Hierarchy",
+ "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": 3154.1976928710938,
+ "y": 326.0000286102295,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "a05900ba.f1a1d",
+ "f14a46f7.75ce98"
+ ]
+ ]
+ },
+ {
+ "id": "f14a46f7.75ce98",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3342.19775390625,
+ "y": 285.0000286102295,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "54406f46.d90ef"
+ ]
+ ]
+ },
+ {
+ "id": "a05900ba.f1a1d",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3330.197708129883,
+ "y": 362.99996757507324,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "3c51d0f6.78f49"
+ ]
+ ]
+ },
+ {
+ "id": "3c51d0f6.78f49",
+ "type": "switchNode",
+ "name": "getVnfHierarchy_result ?",
+ "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3491.1976318359375,
+ "y": 431.1111125946045,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "86e5be6c.d3096",
+ "616bcbfa.705c14"
+ ]
+ ]
+ },
+ {
+ "id": "86e5be6c.d3096",
+ "type": "outcome",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3698.197967529297,
+ "y": 492.1111717224121,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "35293ff0.9f3dc"
+ ]
+ ]
+ },
+ {
+ "id": "616bcbfa.705c14",
+ "type": "outcome",
+ "name": "FAILURE",
+ "xml": "<outcome value='FAILURE'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3697.1978759765625,
+ "y": 371.1111125946045,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "54406f46.d90ef"
+ ]
+ ]
+ },
+ {
+ "id": "35293ff0.9f3dc",
+ "type": "switchNode",
+ "name": "VNF_VMCount ?",
+ "xml": "<switch test='`$VNF.VMCount`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3732.197967529297,
+ "y": 560.2220420837402,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "a9581ba5.906c98",
+ "ea474d25.a0d35"
+ ]
+ ]
+ },
+ {
+ "id": "a9581ba5.906c98",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3918.1976013183594,
+ "y": 493.22219467163086,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "1c9814af.05cc6b"
+ ]
+ ]
+ },
+ {
+ "id": "ea474d25.a0d35",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3838.1976013183594,
+ "y": 626.2221641540527,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "6095b436.6f51ac"
+ ]
+ ]
+ },
+ {
+ "id": "6095b436.6f51ac",
+ "type": "execute",
+ "name": "Get Execution Flow",
+ "xml": "<execute plugin='org.onap.appc.dg.common.VnfExecutionFlow' method='getVnfExecutionFlowData' >\n<parameter name=\"DependencyType\" value='RESOURCE' />\n<parameter name=\"FlowStrategy\" value='FORWARD' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3896.1976013183594,
+ "y": 701.3333702087402,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "4478b359.8ab1ac",
+ "b930f71d.28f9d8"
+ ]
+ ]
+ },
+ {
+ "id": "4478b359.8ab1ac",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4088.1974182128906,
+ "y": 701.3332195281982,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "9b0b931c.4b56b"
+ ]
+ ]
+ },
+ {
+ "id": "b930f71d.28f9d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4087.197479248047,
+ "y": 622.3332481384277,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "e99ba16.3aa4b6"
+ ]
+ ]
+ },
+ {
+ "id": "dde21805.ccfeb8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3157.197998046875,
+ "y": 208.99999809265137,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "56103414.ea81dc",
+ "81349c87.40d59"
+ ]
+ ]
+ },
+ {
+ "id": "56103414.ea81dc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
+ "comments": "",
+ "x": 3354.5309448242188,
+ "y": 209.52372550964355,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "54406f46.d90ef",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3851.9754791259766,
+ "y": 287.88891410827637,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "422eb678.749418",
+ "538b940f.f8fc6c"
+ ]
+ ]
+ },
+ {
+ "id": "422eb678.749418",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 4040.9756469726562,
+ "y": 348.88891410827637,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "1c9814af.05cc6b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4048.5310974121094,
+ "y": 492.2222557067871,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "fda0e71.dd3a918",
+ "d954dfab.78731"
+ ]
+ ]
+ },
+ {
+ "id": "fda0e71.dd3a918",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 4237.531097412109,
+ "y": 521.2223167419434,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "e99ba16.3aa4b6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4221.531097412109,
+ "y": 623.4443035125732,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "fd7097ce.d76ab8",
+ "73f16ab7.db8624"
+ ]
+ ]
+ },
+ {
+ "id": "fd7097ce.d76ab8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 4410.531585693359,
+ "y": 658.4444255828857,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "c2d4602a.d565d",
+ "type": "for",
+ "name": "For each VNFC",
+ "xml": "<for index='vnfcIndex' start='0' end='`$vnfcFlowCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4785.752838134766,
+ "y": 837.6665630340576,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "4cc30bda.f2f104"
+ ]
+ ]
+ },
+ {
+ "id": "9ebaa04f.db335",
+ "type": "call",
+ "name": "call VNFC DG",
+ "xml": "<call module='`$Start.dg_module`' rpc='`$Start.dg_name`' mode='sync' version='`$Start.dg_version`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5197.752716064453,
+ "y": 921.7778301239014,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "37d93026.62c24",
+ "f3c13374.d40ef",
+ "ab3cc759.537028"
+ ]
+ ]
+ },
+ {
+ "id": "2a0a40.c05165c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4580.753204345703,
+ "y": 835.6668071746826,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "c2d4602a.d565d",
+ "5d6d5966.17a0e8",
+ "f4dc61a1.52428"
+ ]
+ ]
+ },
+ {
+ "id": "dbba310b.4518f",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5433.752960205078,
+ "y": 688.6669597625732,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "42e53508.47f69c"
+ ]
+ ]
+ },
+ {
+ "id": "db1633f4.98fef",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5429.752716064453,
+ "y": 770.6669597625732,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "8536dc4.e38502"
+ ]
+ ]
+ },
+ {
+ "id": "8536dc4.e38502",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5571.752471923828,
+ "y": 767.6669902801514,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "1cb0f1df.b0b8ce",
+ "b7ee77e3.2f3968"
+ ]
+ ]
+ },
+ {
+ "id": "1cb0f1df.b0b8ce",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 5797.752471923828,
+ "y": 770.6669597625732,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "ab3cc759.537028",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5393.530303955078,
+ "y": 969.8890361785889,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "c410995c.150d68"
+ ]
+ ]
+ },
+ {
+ "id": "f3c13374.d40ef",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5391.530548095703,
+ "y": 877.8890056610107,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "9ffd84fe.2eb158"
+ ]
+ ]
+ },
+ {
+ "id": "37d93026.62c24",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5403.530792236328,
+ "y": 921.8890361785889,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "295ec335.1824fc"
+ ]
+ ]
+ },
+ {
+ "id": "4cc30bda.f2f104",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4956.419342041016,
+ "y": 836.8890361785889,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "9ebaa04f.db335",
+ "70c2ed2e.e588c4",
+ "94c87921.18da08",
+ "ef2fc787.0d8e28"
+ ]
+ ]
+ },
+ {
+ "id": "9b0b931c.4b56b",
+ "type": "switchNode",
+ "name": "dependencyModelFound",
+ "xml": "<switch test='`$dependencyModelFound`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4234.197601318359,
+ "y": 780.7777976989746,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "f29a5d41.b80e4",
+ "6c8c6baa.278994"
+ ]
+ ]
+ },
+ {
+ "id": "f29a5d41.b80e4",
+ "type": "outcome",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4431.864532470703,
+ "y": 725.8888835906982,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "54a4b211.fb175c"
+ ]
+ ]
+ },
+ {
+ "id": "54a4b211.fb175c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4557.309234619141,
+ "y": 725.9999675750732,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "94ad7de3.6adc9",
+ "1dfd82d3.a3770d"
+ ]
+ ]
+ },
+ {
+ "id": "94ad7de3.6adc9",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 4737.308990478516,
+ "y": 725.9999675750732,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "6c8c6baa.278994",
+ "type": "outcome",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4439.197540283203,
+ "y": 835.7780132293701,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "2a0a40.c05165c"
+ ]
+ ]
+ },
+ {
+ "id": "70c2ed2e.e588c4",
+ "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[$vnfcIndex].vnfcType`' />\n<parameter name=\"action\" value=\"Start\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"Start\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5190.530548095703,
+ "y": 729.7500896453857,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "dbba310b.4518f",
+ "db1633f4.98fef"
+ ]
+ ]
+ },
+ {
+ "id": "94c87921.18da08",
+ "type": "set",
+ "name": "set DG Parameters",
+ "xml": "<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$vnfcIndex].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$vnfcIndex].vnfcType`' />\n<parameter name='resilienceType' value='`$vnfcFlow[$vnfcIndex].resilienceType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$vnfcIndex].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='StartSuccessVMCount' value='0' />",
+ "comments": "",
+ "x": 5191.558013916016,
+ "y": 780.8334331512451,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "ef2fc787.0d8e28",
+ "type": "for",
+ "name": "For Each VM",
+ "xml": "<for index='j' start='0' end='`$vnfcFlow[$vnfcIndex].vmCount`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5185.335723876953,
+ "y": 835.8053569793701,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "df6aa8d.4ec8b58"
+ ]
+ ]
+ },
+ {
+ "id": "df6aa8d.4ec8b58",
+ "type": "set",
+ "name": "Set VM URL",
+ "xml": "<set>\n<parameter name=\"$vm[$j].url\" value='`$vnfcFlow[$vnfcIndex].vm[$j].url`' />",
+ "comments": "",
+ "x": 5383.335723876953,
+ "y": 829.805326461792,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "9ffd84fe.2eb158",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5554.419464111328,
+ "y": 877.0000286102295,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "215b78da.553de8",
+ "2741ea6e.8b8866"
+ ]
+ ]
+ },
+ {
+ "id": "215b78da.553de8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 5780.419708251953,
+ "y": 875.0000591278076,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "295ec335.1824fc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5569.419464111328,
+ "y": 923.0000591278076,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "f7886fe0.a880f"
+ ]
+ ]
+ },
+ {
+ "id": "f7886fe0.a880f",
+ "type": "switchNode",
+ "name": "switch_vm_start_success",
+ "xml": "<switch test='`$StartSuccessVMCount >= 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5755.752471923828,
+ "y": 923.1114482879639,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "75433534.2c7cdc",
+ "d2d83fcd.6baee"
+ ]
+ ]
+ },
+ {
+ "id": "d2d83fcd.6baee",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5977.530792236328,
+ "y": 850.1115093231201,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "3e4fecf4.472484"
+ ]
+ ]
+ },
+ {
+ "id": "75433534.2c7cdc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5969.030792236328,
+ "y": 1034.1113872528076,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "2b08941e.bcfbec"
+ ]
+ ]
+ },
+ {
+ "id": "cf157f9d.71c4e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6470.530548095703,
+ "y": 814.1115093231201,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "2d5da74.73cd458",
+ "3c72faae.eae416",
+ "1ef5b7b7.2df0c8",
+ "b6857ea.dba748"
+ ]
+ ]
+ },
+ {
+ "id": "c8809cc9.da127",
+ "type": "set",
+ "name": "update failed VNFC count",
+ "xml": "<set>\n<parameter name=\"FailedVNFCCount\" value=\"`$FailedVNFCCount + 1`\" />\n",
+ "comments": "",
+ "x": 6316.197540283203,
+ "y": 1077.1113262176514,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "2d5da74.73cd458",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 6676.085968017578,
+ "y": 924.1116313934326,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "2b08941e.bcfbec",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6091.641632080078,
+ "y": 1034.2224712371826,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "c8809cc9.da127",
+ "51fefe6.06691"
+ ]
+ ]
+ },
+ {
+ "id": "f4dc61a1.52428",
+ "type": "switchNode",
+ "name": "switch_vnfc_start_success",
+ "xml": "<switch test='`$FailedVNFCCount == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4832.975128173828,
+ "y": 1010.0000896453857,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "5c7a04e0.25dc9c",
+ "95ae89a4.26f288"
+ ]
+ ]
+ },
+ {
+ "id": "5c7a04e0.25dc9c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5046.975128173828,
+ "y": 972.0000286102295,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "d552033f.c0062"
+ ]
+ ]
+ },
+ {
+ "id": "95ae89a4.26f288",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5047.475372314453,
+ "y": 1049.0000896453857,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "a7267ad1.16a568"
+ ]
+ ]
+ },
+ {
+ "id": "d552033f.c0062",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 5205.244171142578,
+ "y": 971.5168743133545,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "a7267ad1.16a568",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 5208.475128173828,
+ "y": 1047.916898727417,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "5d6d5966.17a0e8",
+ "type": "set",
+ "name": "set Counters",
+ "xml": "<set>\n<parameter name='FailedVNFCCount' value='0' />\n<parameter name='secondLastVnfcCounter' value=\"`$vnfcFlowCount - 1`\" />",
+ "comments": "",
+ "x": 4802.975128173828,
+ "y": 778.0000591278076,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "c410995c.150d68",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Start successfull for VNFC : ' + $vnfcName `\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5573.308135986328,
+ "y": 971.0003032684326,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3c72faae.eae416",
+ "type": "record",
+ "name": "Log message",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 6690.308135986328,
+ "y": 814.0004863739014,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "51fefe6.06691",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Failed to Start all VMs for VNFC : ' + $vnfcName + '. But successfully Started '+ $StartSuccessVMCount +' VM/s so continue to next VNFC'`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6281.308135986328,
+ "y": 1035.0004863739014,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "42e53508.47f69c",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'VNFC DG for ' + $vnfcName + ' resolves to rpc: ' + $Start.dg_name + ', module: ' + $Start.dg_module + ', version: ' + $Start.dg_version `\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5591.419708251953,
+ "y": 689.0002727508545,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b8f8b70c.80e258",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'None of the VMs of VNFC ' + $vnfcName + ' are Started. Not proceeding to the next VNFC.'`\" />",
+ "comments": "",
+ "x": 7081.196807861328,
+ "y": 803.8894634246826,
+ "z": "6d56d910.06ce78",
+ "wires": []
+ },
+ {
+ "id": "1ef5b7b7.2df0c8",
+ "type": "switchNode",
+ "name": "switch_vm_start_success",
+ "xml": "<switch test='`$StartSuccessVMCount >= 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6703.086700439453,
+ "y": 761.4446392059326,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "ed69a6ee.ad1948",
+ "980c0c0d.0725c"
+ ]
+ ]
+ },
+ {
+ "id": "980c0c0d.0725c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6917.864776611328,
+ "y": 804.4447612762451,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "b8f8b70c.80e258"
+ ]
+ ]
+ },
+ {
+ "id": "ed69a6ee.ad1948",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6914.365100860596,
+ "y": 741.44469165802,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "81349c87.40d59",
+ "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": 3387.5310668945312,
+ "y": 160.88888359069824,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "3a05e7cf.c1cc38"
+ ]
+ ]
+ },
+ {
+ "id": "c6a4a8f8.242008",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4235.531036376953,
+ "y": 239.88888359069824,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "374dfdfc.f96ab2"
+ ]
+ ]
+ },
+ {
+ "id": "374dfdfc.f96ab2",
+ "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": 4414.102569580078,
+ "y": 239.60314750671387,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "538b940f.f8fc6c",
+ "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\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4056.5310668945312,
+ "y": 238.88888359069824,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "c6a4a8f8.242008"
+ ]
+ ]
+ },
+ {
+ "id": "6ff8fee0.b9c8e",
+ "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": 3797.1976318359375,
+ "y": 159.88888359069824,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3a05e7cf.c1cc38",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3595.6260986328125,
+ "y": 160.17461967468262,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "6ff8fee0.b9c8e"
+ ]
+ ]
+ },
+ {
+ "id": "d954dfab.78731",
+ "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=\"Server/VNFC does not exists in A&amp;AI for the VNF\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4247.197967529297,
+ "y": 459.99999618530273,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "232eef01.5b35b"
+ ]
+ ]
+ },
+ {
+ "id": "232eef01.5b35b",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4792.197906494141,
+ "y": 457.99999809265137,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "b398d3a7.c4e5"
+ ]
+ ]
+ },
+ {
+ "id": "b398d3a7.c4e5",
+ "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": 4965.769439697266,
+ "y": 457.714262008667,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "73f16ab7.db8624",
+ "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": 4438.197845458984,
+ "y": 583.1110515594482,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "232eef01.5b35b"
+ ]
+ ]
+ },
+ {
+ "id": "1dfd82d3.a3770d",
+ "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": 4724.863922119141,
+ "y": 637.1110515594482,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "232eef01.5b35b"
+ ]
+ ]
+ },
+ {
+ "id": "b7ee77e3.2f3968",
+ "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[$vnfcIndex].vnfcType`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5824.975616455078,
+ "y": 724.2222270965576,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "c416ad92.b9ba6"
+ ]
+ ]
+ },
+ {
+ "id": "c416ad92.b9ba6",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6040.309600830078,
+ "y": 729.1112041473389,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "237115a7.69b66a"
+ ]
+ ]
+ },
+ {
+ "id": "237115a7.69b66a",
+ "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": 6231.881134033203,
+ "y": 729.8254375457764,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2741ea6e.8b8866",
+ "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 : ' + $vnfcName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5790.086700439453,
+ "y": 830.2222270965576,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "c416ad92.b9ba6"
+ ]
+ ]
+ },
+ {
+ "id": "b6857ea.dba748",
+ "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": 6700.308868408203,
+ "y": 857.2223491668701,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "ac8f6087.dae93"
+ ]
+ ]
+ },
+ {
+ "id": "ac8f6087.dae93",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6915.531768798828,
+ "y": 858.1113262176514,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "6acd99a4.c54368"
+ ]
+ ]
+ },
+ {
+ "id": "6acd99a4.c54368",
+ "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": 7112.104278564453,
+ "y": 857.8255596160889,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3e4fecf4.472484",
+ "type": "switchNode",
+ "name": "switch last vnfc",
+ "xml": "<switch test='`$secondLastVnfcCounter == $vnfcIndex`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6126.197784423828,
+ "y": 848.4445171356201,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "a3b9286.e5520d8",
+ "a545502d.0b744"
+ ]
+ ]
+ },
+ {
+ "id": "a3b9286.e5520d8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6330.419952392578,
+ "y": 922.4445171356201,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "2d5da74.73cd458"
+ ]
+ ]
+ },
+ {
+ "id": "a545502d.0b744",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6325.920196533203,
+ "y": 815.4446392059326,
+ "z": "6d56d910.06ce78",
+ "wires": [
+ [
+ "cf157f9d.71c4e"
+ ]
+ ]
+ }
+] \ No newline at end of file
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNFC.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNFC.json
index 82f5e5ce2..98c04ce65 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNFC.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Start_VNFC.json
@@ -1 +1,1316 @@
-[{"id":"1a470291.a963fd","type":"dgstart","name":"DGSTART","outputs":1,"x":85.80625915527344,"y":73,"z":"2fe30bf3.5a02e4","wires":[["368abe9d.90c702"]]},{"id":"368abe9d.90c702","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":119.80638122558594,"y":141,"z":"2fe30bf3.5a02e4","wires":[["9f74d2fb.bc71e"]]},{"id":"9f74d2fb.bc71e","type":"method","name":"Start_VNFC","xml":"<method rpc='Start_VNFC' mode='sync'>\n","comments":"","outputs":1,"x":152.80641174316406,"y":213,"z":"2fe30bf3.5a02e4","wires":[["bdba45dd.15e5c8"]]},{"id":"497933c8.b206ec","type":"execute","name":"Resolve Healthcheck DG","xml":"<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"HealthCheck\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"HealthCheckDG\" />\n","comments":"","outputs":1,"x":613.8064422607422,"y":143,"z":"2fe30bf3.5a02e4","wires":[["d7ce9461.e88a68","62ec37a8.172928","75dad6ba.48a458"]]},{"id":"d7ce9461.e88a68","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":836.8064422607422,"y":92,"z":"2fe30bf3.5a02e4","wires":[["37af42.94d100be"]]},{"id":"62ec37a8.172928","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":837.8065643310547,"y":143,"z":"2fe30bf3.5a02e4","wires":[["83580dcd.5f36f"]]},{"id":"bdba45dd.15e5c8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"false","comments":"","outputs":1,"x":132.8063507080078,"y":310,"z":"2fe30bf3.5a02e4","wires":[["497933c8.b206ec","7f5f1cb7.8aca24","f1ed0579.63f1b8","16e2a975.926777","eb4bfac1.da01f8"]]},{"id":"7f5f1cb7.8aca24","type":"execute","name":"Update_AAI_Status","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Starting\" />","comments":"","outputs":1,"x":1134.8065643310547,"y":302,"z":"2fe30bf3.5a02e4","wires":[["36bd1de8.b0c632","4cc486e0.d290d8","91b35c7b.49f2c"]]},{"id":"4cc486e0.d290d8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1443.8068389892578,"y":284,"z":"2fe30bf3.5a02e4","wires":[["8e557a40.222a38"]]},{"id":"91b35c7b.49f2c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1453.8063507080078,"y":326,"z":"2fe30bf3.5a02e4","wires":[["8e557a40.222a38"]]},{"id":"36bd1de8.b0c632","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1408.8061065673828,"y":244,"z":"2fe30bf3.5a02e4","wires":[["5f8bf1c.c8cef1"]]},{"id":"37af42.94d100be","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":971.0287322998047,"y":91.41883087158203,"z":"2fe30bf3.5a02e4","wires":[["950b3e69.00d3b","5c7ad2d.1115a2c","89c755e0.cb6588","a5078ee3.ebb7f"]]},{"id":"950b3e69.00d3b","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Healthcheck DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":1198.8064727783203,"y":75,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"83580dcd.5f36f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":963.0287322998047,"y":142.88888549804688,"z":"2fe30bf3.5a02e4","wires":[["f4335fed.0da16","5c7ad2d.1115a2c","89c755e0.cb6588","a5078ee3.ebb7f"]]},{"id":"f4335fed.0da16","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'Error while resolving Healthcheck DG for VNFC : ' + $vnfcName`\"/>\n","comments":"","x":1204.0285186767578,"y":122.88888549804688,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"8e557a40.222a38","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1854.6954498291016,"y":285.8888854980469,"z":"2fe30bf3.5a02e4","wires":[["4cfe160d.5a95e8","69cc0201.551e3c"]]},{"id":"5c7ad2d.1115a2c","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":1188.5973510742188,"y":169.18878173828125,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"89c755e0.cb6588","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>","comments":"","x":1210.5842742919922,"y":251.35894775390625,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"5f8bf1c.c8cef1","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1535.9170684814453,"y":243.88888549804688,"z":"2fe30bf3.5a02e4","wires":[["baf70582.73b758","f2273c8a.ea5c4"]]},{"id":"baf70582.73b758","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1696.9175567626953,"y":195.88888549804688,"z":"2fe30bf3.5a02e4","wires":[["8e557a40.222a38"]]},{"id":"f2273c8a.ea5c4","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1681.9176788330078,"y":242.88888549804688,"z":"2fe30bf3.5a02e4","wires":[["8e557a40.222a38"]]},{"id":"4cfe160d.5a95e8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2007.0284576416016,"y":344.8888854980469,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"75dad6ba.48a458","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":839.6952514648438,"y":203.88888549804688,"z":"2fe30bf3.5a02e4","wires":[["a8b1a96d.d59ab8"]]},{"id":"a8b1a96d.d59ab8","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=\"`'Hleathchek DG resolved to : ' + $HealthCheckDG.dg_name`\"/>\n","comments":"","outputs":1,"x":988.3619995117188,"y":203.88888549804688,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"3b4f9814.e2ad98","type":"set","name":"init","xml":"<set>\n<parameter name='startFailedCount' value='0' />\n<parameter name='startSuccessCount' value='0' />\n","comments":"","x":514.4516448974609,"y":332.1745910644531,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"9d9e0e20.60bbe","type":"for","name":"for_each_vm","xml":"<for index=\"vmIndex\" start=\"0\" end=\"`$vmCount`\" >","comments":"","outputs":1,"x":532.5944366455078,"y":396.8889465332031,"z":"2fe30bf3.5a02e4","wires":[["cd5abeb4.2254"]]},{"id":"cd5abeb4.2254","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":696.3618621826172,"y":396.8888854980469,"z":"2fe30bf3.5a02e4","wires":[["4f1c6b48.d34304","809e42b.52a73c","6ce36de3.135c74"]]},{"id":"4f1c6b48.d34304","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 start the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":870.7906341552734,"y":345.6031799316406,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"6ce36de3.135c74","type":"set","name":"set start parameters","xml":"<set>\n<parameter name=\"start-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name='startRetryCount' value='3'/>\n","comments":"","x":890.4515838623047,"y":398.03179931640625,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"809e42b.52a73c","type":"call","name":"Start","xml":"<call module='APPC' rpc='Start_VM' mode='sync' >\n","comments":"","outputs":1,"x":866.4516448974609,"y":484.03173828125,"z":"2fe30bf3.5a02e4","wires":[["e9e973e5.43003","cf35edf3.ce1f3","286386e1.b6b11a"]]},{"id":"286386e1.b6b11a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1022.7849578857422,"y":438.03173828125,"z":"2fe30bf3.5a02e4","wires":[["f1f6e27e.6487b"]]},{"id":"e9e973e5.43003","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1028.6521453857422,"y":483.9603271484375,"z":"2fe30bf3.5a02e4","wires":[["890ad316.9f99d"]]},{"id":"cf35edf3.ce1f3","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1023.0069732666016,"y":566.0317668914795,"z":"2fe30bf3.5a02e4","wires":[["2779a3f.bc4c45c"]]},{"id":"2779a3f.bc4c45c","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1164.1498565673828,"y":565.174711227417,"z":"2fe30bf3.5a02e4","wires":[["24b2e5c0.1a66ea","a27787d1.bd06a8","e53b7469.4e2428"]]},{"id":"f1f6e27e.6487b","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1157.7849578857422,"y":438.03173828125,"z":"2fe30bf3.5a02e4","wires":[["59d92c23.70d234","f0a3b326.8b285","a6dd21c9.3e41c","db25d1d6.9bc34"]]},{"id":"890ad316.9f99d","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1158.4358367919922,"y":483.888916015625,"z":"2fe30bf3.5a02e4","wires":[["f0a3b326.8b285","a6dd21c9.3e41c","db25d1d6.9bc34","8bd43260.5eb42"]]},{"id":"a27787d1.bd06a8","type":"set","name":"Mark vm Started","xml":"<set>\n<parameter name=\"startedServerList[$startSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n","comments":"","x":1371.1497344970703,"y":566.1747722625732,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"e53b7469.4e2428","type":"set","name":"Increment Started vm count","xml":"<set>\n<parameter name='startSuccessCount' value='`$startSuccessCount+1`' />\n","comments":"","x":1404.8959503173828,"y":605.809476852417,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"24b2e5c0.1a66ea","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=\"`'Start succeeded for the server : ' + $vm[$vmIndex].url`\"/>\n","comments":"","outputs":1,"x":1356.1498565673828,"y":646.1746826171875,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"a6dd21c9.3e41c","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":1376.4366912841797,"y":480.7936382293701,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"f0a3b326.8b285","type":"set","name":"set_mark_vm_failed","xml":"<set>\n<parameter name=\"startFailedCount\" value=\"`$startFailedCount + 1`\" />\n","comments":"","x":1389.4364471435547,"y":442.79357719421387,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"59d92c23.70d234","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`'DG to execute Start action not found for VM: ' + $vm[$vmIndex].url`\"/>\n","comments":"","x":1388.3563690185547,"y":368.74596977233887,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"1fc9009e.86fd2f","type":"comment","name":"Health check started servers","info":"","comments":"","x":385.4182586669922,"y":571.1834697723389,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"7fcf9784.ff3178","type":"set","name":"init","xml":"<set>\n<parameter name='healthCheckFailedCount' value='0' />\n","comments":"","x":507.63025283813477,"y":609.1834106445312,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"ff0c18c8.f1cb88","type":"switchNode","name":"started server > 0","xml":"<switch test='`$startSuccessCount > 0`'>\n","comments":"","outputs":1,"x":515.4183807373047,"y":665.1834697723389,"z":"2fe30bf3.5a02e4","wires":[["b26968f.6e75098","b15f37a3.f2acf8"]]},{"id":"b15f37a3.f2acf8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":688.1683807373047,"y":729.9335918426514,"z":"2fe30bf3.5a02e4","wires":[["a78e254c.02c078"]]},{"id":"b26968f.6e75098","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":696.6683692932129,"y":621.9334716796875,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"a78e254c.02c078","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":812.6302833557129,"y":730.1834106445312,"z":"2fe30bf3.5a02e4","wires":[["2b9f0ce9.6571f4","c5b2f2ce.cc748","b6eeb883.4737a8","38df2d3a.1c6b72"]]},{"id":"38df2d3a.1c6b72","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 health check the started servers of the VNFC\"/>\n","comments":"","outputs":1,"x":989.5399627685547,"y":668.564453125,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"2b9f0ce9.6571f4","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$startSuccessCount`\" >","comments":"","outputs":1,"x":993.6304168701172,"y":713.1834716796875,"z":"2fe30bf3.5a02e4","wires":[["d65d79a1.52d338"]]},{"id":"b6eeb883.4737a8","type":"set","name":"set","xml":"<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$startSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n","comments":"","x":979.6301727294922,"y":756.1834716796875,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"d65d79a1.52d338","type":"set","name":"set : health check input list","xml":"<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$startedServerList[$i].url`\" />\n","comments":"","x":1204.0746765136719,"y":712.29443359375,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"c5b2f2ce.cc748","type":"call","name":"call_vnfc_healthcheck_dg","xml":"<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n","comments":"","outputs":1,"x":1033.9349822998047,"y":801.416748046875,"z":"2fe30bf3.5a02e4","wires":[["d1531542.c646f8","b755495d.033df8","aa99d38e.616c1"]]},{"id":"d1531542.c646f8","type":"outcome","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1273.6300811767578,"y":805.1837158203125,"z":"2fe30bf3.5a02e4","wires":[["999c3522.a16f48"]]},{"id":"b755495d.033df8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1279.1468353271484,"y":758.5216369628906,"z":"2fe30bf3.5a02e4","wires":[["aa248ff6.575f3"]]},{"id":"aa99d38e.616c1","type":"outcome","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1271.8803253173828,"y":851.68359375,"z":"2fe30bf3.5a02e4","wires":[["dfeacdef.57da3"]]},{"id":"dfeacdef.57da3","type":"for","name":"for_each_vm","xml":"<for index=\"i\" start=\"0\" end=\"`$startSuccessCount`\" >","comments":"","outputs":1,"x":1419.6302642822266,"y":851.1836547851562,"z":"2fe30bf3.5a02e4","wires":[["325c7a00.1c3df6"]]},{"id":"325c7a00.1c3df6","type":"switchNode","name":"switch : healthcheck status","xml":"<switch test=\"`$healthcheck.vm[$i].status`\">\n","comments":"","outputs":1,"x":1632.6300201416016,"y":851.1836547851562,"z":"2fe30bf3.5a02e4","wires":[["a0cc95d1.d14208","f9a1c849.631ee8","815cbe58.50221"]]},{"id":"815cbe58.50221","type":"other","name":"DOWN","xml":"<outcome value='DOWN'>\n","comments":"","outputs":1,"x":1901.6302032470703,"y":810.1835021972656,"z":"2fe30bf3.5a02e4","wires":[["79d320a7.79de4"]]},{"id":"f9a1c849.631ee8","type":"other","name":"UNKNOWN","xml":"<outcome value='UNKNOWN'>\n","comments":"","outputs":1,"x":1871.4139556884766,"y":850.3263549804688,"z":"2fe30bf3.5a02e4","wires":[["79d320a7.79de4"]]},{"id":"a0cc95d1.d14208","type":"other","name":"UP","xml":"<outcome value='UP'>\n","comments":"","outputs":1,"x":1882.6307525634766,"y":906.1837158203125,"z":"2fe30bf3.5a02e4","wires":[["3c905744.ff9818"]]},{"id":"aa248ff6.575f3","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1408.6300811767578,"y":757.1835327148438,"z":"2fe30bf3.5a02e4","wires":[["f684de68.9d9c2","1774dfbf.897b2","ede6e99a.c88818","f4fcd65c.1b68d8"]]},{"id":"999c3522.a16f48","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1412.6300811767578,"y":804.1835327148438,"z":"2fe30bf3.5a02e4","wires":[["d3a9eab2.9f7a78","f684de68.9d9c2","ede6e99a.c88818","f4fcd65c.1b68d8"]]},{"id":"d3a9eab2.9f7a78","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"Error occurred during health check of the started servers\"/>","comments":"","x":1645.6302337646484,"y":627.1835021972656,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"1774dfbf.897b2","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>","comments":"","x":1658.2970733642578,"y":672.1834106445312,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"f684de68.9d9c2","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":1635.7633819580078,"y":714.9960327148438,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"79d320a7.79de4","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2049.344497680664,"y":826.4690551757812,"z":"2fe30bf3.5a02e4","wires":[["d8a6df2a.7dd4","aee7be5b.f82c8","937cf884.7f6f78","bc4bcf48.26b37"]]},{"id":"d8a6df2a.7dd4","type":"set","name":"Set error message","xml":"<set>\n<parameter name='event-message' value=\"`'Health check failed for the started server : ' + $startedServerList[$i].url`\"/>\n","comments":"","x":2289.345474243164,"y":724.4691772460938,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"aee7be5b.f82c8","type":"set","name":"increment healthCheck failed VM count","xml":"<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n","comments":"","x":2348.345474243164,"y":770.4691772460938,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"937cf884.7f6f78","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":2276.291275024414,"y":810.0693359375,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"3c905744.ff9818","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2039.630630493164,"y":905.1836547851562,"z":"2fe30bf3.5a02e4","wires":[["e1da7adf.b45238","b4fa63d.6dabba","9fefa332.fd358"]]},{"id":"9fefa332.fd358","type":"set","name":"Set success message","xml":"<set>\n<parameter name='success-message' value=\"`'Start succeeded for the server : ' + $startedServerList[$i].url`\"/>\n<parameter name=\"StartSuccessVMCount\" value=\"`$StartSuccessVMCount + 1`\" />\n\n","comments":"","x":2289.684829711914,"y":903.2501831054688,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"b4fa63d.6dabba","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":2300.685317993164,"y":942.2501831054688,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"e1da7adf.b45238","type":"execute","name":"Report_Success","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />\n\n","comments":"","outputs":1,"x":2295.630630493164,"y":981.7549438476562,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"16e2a975.926777","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":341.4182586669922,"y":663.1834697723389,"z":"2fe30bf3.5a02e4","wires":[["ff0c18c8.f1cb88","7fcf9784.ff3178"]]},{"id":"f1ed0579.63f1b8","type":"block","name":"block","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":351.47291564941406,"y":359.8888854980469,"z":"2fe30bf3.5a02e4","wires":[["3b4f9814.e2ad98","9d9e0e20.60bbe"]]},{"id":"60427904.cffb48","type":"execute","name":"Update_AAI_Status_Success","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Running\" />\n","comments":"","outputs":1,"x":913.1391448974609,"y":1090.888916015625,"z":"2fe30bf3.5a02e4","wires":[["d229c29c.1c5a5","32097ba7.a930c4","fb49cf8a.60582"]]},{"id":"25e341a2.474c9e","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":888.1392669677734,"y":1192.8892211914062,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"a570b6c0.693758","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":693.5836639404297,"y":1090.8890380859375,"z":"2fe30bf3.5a02e4","wires":[["60427904.cffb48","25e341a2.474c9e","1f885944.deb907"]]},{"id":"1f885944.deb907","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=\"`'VNFC Started successfully : ' + $vnfcName`\"/>\n","comments":"","outputs":1,"x":898.0281219482422,"y":1139.77783203125,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"15725357.0eb17d","type":"execute","name":"Update_AAI_Status_Failure","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 = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Error\" />","comments":"","outputs":1,"x":903.1393280029297,"y":947.8890380859375,"z":"2fe30bf3.5a02e4","wires":[["d229c29c.1c5a5","32097ba7.a930c4","fb49cf8a.60582"]]},{"id":"eac568e8.d84638","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\n","comments":"","x":875.1393890380859,"y":1024.8896789550781,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"c95cab6.08b0358","type":"block","name":"block","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":686.9169769287109,"y":948.7779541015625,"z":"2fe30bf3.5a02e4","wires":[["eac568e8.d84638","15725357.0eb17d"]]},{"id":"d229c29c.1c5a5","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1185.1392974853516,"y":947.8889465332031,"z":"2fe30bf3.5a02e4","wires":[["68c72cc4.2a6b44"]]},{"id":"32097ba7.a930c4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1184.1390533447266,"y":1003.888916015625,"z":"2fe30bf3.5a02e4","wires":[["68c72cc4.2a6b44"]]},{"id":"fb49cf8a.60582","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1159.1389923095703,"y":1089.8889465332031,"z":"2fe30bf3.5a02e4","wires":[["1f4262ac.f8c95d"]]},{"id":"68c72cc4.2a6b44","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1660.0282745361328,"y":1013.7778015136719,"z":"2fe30bf3.5a02e4","wires":[["7cacd3c8.cb4e7c","63bf861a.2d76a8"]]},{"id":"1f4262ac.f8c95d","type":"switchNode","name":"switch","xml":"<switch test='`$postResource_result`'>\n","comments":"","outputs":1,"x":1286.2497100830078,"y":1089.7778625488281,"z":"2fe30bf3.5a02e4","wires":[["4d740d53.13d1b4","2af9f7fe.d47ef8","9445997.2e24868"]]},{"id":"4d740d53.13d1b4","type":"outcome","name":"NOT_FOUND","xml":"<outcome value='NOT_FOUND'>\n","comments":"","outputs":1,"x":1461.2508087158203,"y":1041.7778625488281,"z":"2fe30bf3.5a02e4","wires":[["68c72cc4.2a6b44"]]},{"id":"2af9f7fe.d47ef8","type":"outcome","name":"FAILURE","xml":"<outcome value='FAILURE'>\n","comments":"","outputs":1,"x":1479.2506866455078,"y":1090.7779235839844,"z":"2fe30bf3.5a02e4","wires":[["68c72cc4.2a6b44"]]},{"id":"7cacd3c8.cb4e7c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1815.3616485595703,"y":1056.7778015136719,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"eb4bfac1.da01f8","type":"switchNode","name":"switch_server_start_success","xml":"<switch test='`$startFailedCount == 0 and $healthCheckFailedCount == 0`'>\n","comments":"","outputs":1,"x":322.91737365722656,"y":975.7532958984375,"z":"2fe30bf3.5a02e4","wires":[["953185e1.700a28","72decc28.91a144"]]},{"id":"72decc28.91a144","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":544.6674652099609,"y":1091.50341796875,"z":"2fe30bf3.5a02e4","wires":[["a570b6c0.693758"]]},{"id":"953185e1.700a28","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":550.1674652099609,"y":948.5034790039062,"z":"2fe30bf3.5a02e4","wires":[["c95cab6.08b0358"]]},{"id":"9445997.2e24868","type":"outcome","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1463.9175567626953,"y":1137.6668395996094,"z":"2fe30bf3.5a02e4","wires":[["1ee65462.74023c"]]},{"id":"1ee65462.74023c","type":"set","name":"Set AAI update Flag","xml":"<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n","comments":"","x":1655.0285186767578,"y":1137.6668395996094,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"a5078ee3.ebb7f","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":1238.4729614257812,"y":210,"z":"2fe30bf3.5a02e4","wires":[["ac68f81b.5c48e8"]]},{"id":"ac68f81b.5c48e8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1758.4725494384766,"y":111,"z":"2fe30bf3.5a02e4","wires":[["5b461a8f.62eed4"]]},{"id":"5b461a8f.62eed4","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":2429.0443267822266,"y":118.71426391601562,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"69cc0201.551e3c","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 VNFC details in A&amp;AI\" />","comments":"","outputs":1,"x":2028.0282135009766,"y":210,"z":"2fe30bf3.5a02e4","wires":[["51c3354e.2fa70c"]]},{"id":"51c3354e.2fa70c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2233.028091430664,"y":170,"z":"2fe30bf3.5a02e4","wires":[["5b461a8f.62eed4"]]},{"id":"db25d1d6.9bc34","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":1392.0284881591797,"y":522.9999980926514,"z":"2fe30bf3.5a02e4","wires":[["74d607b1.bd0498"]]},{"id":"74d607b1.bd0498","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1906.028091430664,"y":614.9999084472656,"z":"2fe30bf3.5a02e4","wires":[["94e7dbf9.b04ce8"]]},{"id":"94e7dbf9.b04ce8","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":2089.0445098876953,"y":614.71435546875,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"ede6e99a.c88818","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":1691.9176788330078,"y":804.2222290039062,"z":"2fe30bf3.5a02e4","wires":[["74d607b1.bd0498"]]},{"id":"bc4bcf48.26b37","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":2281.028823852539,"y":862.5555725097656,"z":"2fe30bf3.5a02e4","wires":[["80fab7b3.2f0e48"]]},{"id":"80fab7b3.2f0e48","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2505.139419555664,"y":862.3332824707031,"z":"2fe30bf3.5a02e4","wires":[["d15983e5.4706b"]]},{"id":"d15983e5.4706b","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":2698.156021118164,"y":863.0476379394531,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"63bf861a.2d76a8","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 VNFC details in A&amp;AI\" />","comments":"","outputs":1,"x":1849.584243774414,"y":974.5555725097656,"z":"2fe30bf3.5a02e4","wires":[["479e4d8c.1ac324"]]},{"id":"479e4d8c.1ac324","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2031.5841217041016,"y":1005.5555725097656,"z":"2fe30bf3.5a02e4","wires":[["151b06a1.86efe9"]]},{"id":"151b06a1.86efe9","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":2216.8062896728516,"y":1042.6667785644531,"z":"2fe30bf3.5a02e4","wires":[[]]},{"id":"f4fcd65c.1b68d8","type":"set","name":"update healthCheck failed count","xml":"<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$startSuccessCount`\" />\n","comments":"","x":1681.1396026611328,"y":756.5556030273438,"z":"2fe30bf3.5a02e4","wires":[]},{"id":"8bd43260.5eb42","type":"set","name":"Set event message","xml":"<set>\n<parameter name='event-message' value=\"`$error-message`\"/>\n","comments":"","x":1388.8065643310547,"y":404.99999809265137,"z":"2fe30bf3.5a02e4","wires":[]}]
+[
+ {
+ "id": "13a3b5f1.462e5a",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 199.515625,
+ "y": 72.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "dfe00dcc.3e337"
+ ]
+ ]
+ },
+ {
+ "id": "dfe00dcc.3e337",
+ "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": 233.5157470703125,
+ "y": 140.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "805deba5.ff3a78"
+ ]
+ ]
+ },
+ {
+ "id": "805deba5.ff3a78",
+ "type": "method",
+ "name": "Start_VNFC",
+ "xml": "<method rpc='Start_VNFC' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 266.5157775878906,
+ "y": 212.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "808fd283.5cc77"
+ ]
+ ]
+ },
+ {
+ "id": "e22ad981.0ce428",
+ "type": "execute",
+ "name": "Resolve Healthcheck DG",
+ "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"HealthCheck\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value=\"HealthCheckDG\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 727.5158081054688,
+ "y": 142.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "a132d2c.c11f73",
+ "49797fbd.ed31a",
+ "8e4fcb8d.b3e388"
+ ]
+ ]
+ },
+ {
+ "id": "a132d2c.c11f73",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 950.5158081054688,
+ "y": 91.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "6f88832f.ecc79c"
+ ]
+ ]
+ },
+ {
+ "id": "49797fbd.ed31a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951.5159301757812,
+ "y": 142.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "79ecc10a.0ef8a"
+ ]
+ ]
+ },
+ {
+ "id": "808fd283.5cc77",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 246.51571655273438,
+ "y": 309.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "e22ad981.0ce428",
+ "bd00c5f4.6c36c8",
+ "1c356b5c.5a5385",
+ "470f67c4.b10798"
+ ]
+ ]
+ },
+ {
+ "id": "6f88832f.ecc79c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1084.7380981445312,
+ "y": 90.93445587158203,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "6fff6705.3c6d58",
+ "fc721f34.6a8c9",
+ "5e58a966.6c08b8",
+ "5ac946d2.91fa68"
+ ]
+ ]
+ },
+ {
+ "id": "6fff6705.3c6d58",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Healthcheck DG resolution plugin not found for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 1312.5158386230469,
+ "y": 74.515625,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "79ecc10a.0ef8a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1076.7380981445312,
+ "y": 142.40451049804688,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "7a85971a.ad8b78",
+ "fc721f34.6a8c9",
+ "5e58a966.6c08b8",
+ "5ac946d2.91fa68"
+ ]
+ ]
+ },
+ {
+ "id": "7a85971a.ad8b78",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Error while resolving Healthcheck DG for VNFC : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "x": 1317.7378845214844,
+ "y": 122.40451049804688,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "fc721f34.6a8c9",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1302.3067169189453,
+ "y": 168.70440673828125,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5e58a966.6c08b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value=\"`$error-message`\"/>",
+ "comments": "",
+ "x": 1324.2936401367188,
+ "y": 250.87457275390625,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "8e4fcb8d.b3e388",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 953.4046173095703,
+ "y": 203.40451049804688,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "d3319fce.9aef"
+ ]
+ ]
+ },
+ {
+ "id": "d3319fce.9aef",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Hleathchek DG resolved to : ' + $HealthCheckDG.dg_name`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1102.0713653564453,
+ "y": 203.40451049804688,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9634dea0.04029",
+ "type": "set",
+ "name": "init",
+ "xml": "<set>\n<parameter name='startFailedCount' value='0' />\n<parameter name='startSuccessCount' value='0' />\n",
+ "comments": "",
+ "x": 628.1610107421875,
+ "y": 331.6902160644531,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "7b4f76be.54ae88",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"vmIndex\" start=\"0\" end=\"`$vmCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 646.3038024902344,
+ "y": 396.4045715332031,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "769e56e6.023138"
+ ]
+ ]
+ },
+ {
+ "id": "769e56e6.023138",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 810.0712280273438,
+ "y": 396.4045104980469,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "2a4f0de2.425722",
+ "f2499175.6a44a",
+ "57c5dc4b.7e4574"
+ ]
+ ]
+ },
+ {
+ "id": "2a4f0de2.425722",
+ "type": "record",
+ "name": "Log message",
+ "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 start the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 984.5,
+ "y": 345.1188049316406,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "57c5dc4b.7e4574",
+ "type": "set",
+ "name": "set start parameters",
+ "xml": "<set>\n<parameter name=\"start-vm-url\" value=\"`$vm[$vmIndex].url`\" />\n<parameter name='startRetryCount' value='3'/>\n",
+ "comments": "",
+ "x": 1004.1609497070312,
+ "y": 397.54742431640625,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "f2499175.6a44a",
+ "type": "call",
+ "name": "Start",
+ "xml": "<call module='APPC' rpc='Start_VM' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 980.1610107421875,
+ "y": 483.54736328125,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "17c8497c.be88f7",
+ "4c621ced.cd0364",
+ "48d70b56.1ef964"
+ ]
+ ]
+ },
+ {
+ "id": "48d70b56.1ef964",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1136.4943237304688,
+ "y": 437.54736328125,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "34f770e6.22aea"
+ ]
+ ]
+ },
+ {
+ "id": "17c8497c.be88f7",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1142.3615112304688,
+ "y": 483.4759521484375,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "701ff42.dde250c"
+ ]
+ ]
+ },
+ {
+ "id": "4c621ced.cd0364",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1136.7163391113281,
+ "y": 565.5473918914795,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "11aba1c1.be504e"
+ ]
+ ]
+ },
+ {
+ "id": "11aba1c1.be504e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1277.8592224121094,
+ "y": 564.690336227417,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "dfec8915.63ca78",
+ "92b0fe7f.dec0b",
+ "ed0b2b3c.cc1fd8"
+ ]
+ ]
+ },
+ {
+ "id": "34f770e6.22aea",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1271.4943237304688,
+ "y": 437.54736328125,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "54d1bcc.ab39a44",
+ "f85cbb95.14dbb8",
+ "10359946.479e77",
+ "3a627217.fcf60e"
+ ]
+ ]
+ },
+ {
+ "id": "701ff42.dde250c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1272.1452026367188,
+ "y": 483.404541015625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "f85cbb95.14dbb8",
+ "10359946.479e77",
+ "3a627217.fcf60e",
+ "47a47deb.b90734"
+ ]
+ ]
+ },
+ {
+ "id": "92b0fe7f.dec0b",
+ "type": "set",
+ "name": "Mark vm Started",
+ "xml": "<set>\n<parameter name=\"startedServerList[$startSuccessCount].url\" value=\"`$vm[$vmIndex].url`\" />\n",
+ "comments": "",
+ "x": 1484.8591003417969,
+ "y": 565.6903972625732,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "ed0b2b3c.cc1fd8",
+ "type": "set",
+ "name": "Increment Started vm count",
+ "xml": "<set>\n<parameter name='startSuccessCount' value='`$startSuccessCount+1`' />\n",
+ "comments": "",
+ "x": 1518.6053161621094,
+ "y": 605.325101852417,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "dfec8915.63ca78",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'Start succeeded for the server : ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1469.8592224121094,
+ "y": 645.6903076171875,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "10359946.479e77",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1490.1460571289062,
+ "y": 480.3092632293701,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f85cbb95.14dbb8",
+ "type": "set",
+ "name": "set_mark_vm_failed",
+ "xml": "<set>\n<parameter name=\"startFailedCount\" value=\"`$startFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 1503.1458129882812,
+ "y": 442.30920219421387,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "54d1bcc.ab39a44",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'DG to execute Start action not found for VM: ' + $vm[$vmIndex].url`\"/>\n",
+ "comments": "",
+ "x": 1502.0657348632812,
+ "y": 368.26159477233887,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "f842bde2.f9eec",
+ "type": "comment",
+ "name": "Health check started servers",
+ "info": "",
+ "comments": "",
+ "x": 499.12762451171875,
+ "y": 570.6990947723389,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "5ae92704.b75388",
+ "type": "set",
+ "name": "init",
+ "xml": "<set>\n<parameter name='healthCheckFailedCount' value='0' />\n",
+ "comments": "",
+ "x": 621.3396186828613,
+ "y": 608.6990356445312,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "3713eb52.cc8e34",
+ "type": "switchNode",
+ "name": "started server > 0",
+ "xml": "<switch test='`$startSuccessCount > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 629.1277465820312,
+ "y": 664.6990947723389,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "688b239d.e3334c",
+ "2b774f9b.c20cf"
+ ]
+ ]
+ },
+ {
+ "id": "2b774f9b.c20cf",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 801.8777465820312,
+ "y": 729.4492168426514,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "4a428607.b1cf18"
+ ]
+ ]
+ },
+ {
+ "id": "688b239d.e3334c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 810.3777351379395,
+ "y": 621.4490966796875,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4a428607.b1cf18",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 926.3396492004395,
+ "y": 729.6990356445312,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "bb4e19cd.0bad48",
+ "22da030a.b938ec",
+ "cb1ae4ca.03c3e8",
+ "1af2e6a8.3aa239"
+ ]
+ ]
+ },
+ {
+ "id": "1af2e6a8.3aa239",
+ "type": "record",
+ "name": "Log message",
+ "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 health check the started servers of the VNFC\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1103.2493286132812,
+ "y": 668.080078125,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bb4e19cd.0bad48",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$startSuccessCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1107.3397827148438,
+ "y": 712.6990966796875,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "90d21af2.5255b8"
+ ]
+ ]
+ },
+ {
+ "id": "cb1ae4ca.03c3e8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"healthcheck.vmCount\" value=\"`$startSuccessCount`\" />\n<parameter name=\"retry-healthcheck\" value=\"true\"/>\n",
+ "comments": "",
+ "x": 1093.3395385742188,
+ "y": 755.6990966796875,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "90d21af2.5255b8",
+ "type": "set",
+ "name": "set : health check input list",
+ "xml": "<set>\n<parameter name=\"healthcheck.vm[$i].url\" value=\"`$startedServerList[$i].url`\" />\n",
+ "comments": "",
+ "x": 1317.7840423583984,
+ "y": 711.81005859375,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "22da030a.b938ec",
+ "type": "call",
+ "name": "call_vnfc_healthcheck_dg",
+ "xml": "<call rpc='`$HealthCheckDG.dg_name`' version='`$HealthCheckDG.dg_version`' module='`$HealthCheckDG.dg_module`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1147.6443481445312,
+ "y": 800.932373046875,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "64defa65.0c3154",
+ "ed5de733.50fb18",
+ "c5d0c46a.a00048"
+ ]
+ ]
+ },
+ {
+ "id": "64defa65.0c3154",
+ "type": "outcome",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1387.3394470214844,
+ "y": 804.6993408203125,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "110cfdbd.46ebf2"
+ ]
+ ]
+ },
+ {
+ "id": "ed5de733.50fb18",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1392.856201171875,
+ "y": 758.0372619628906,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "8d22f8f9.6b0a78"
+ ]
+ ]
+ },
+ {
+ "id": "c5d0c46a.a00048",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1385.5896911621094,
+ "y": 851.19921875,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "ea2fdfd9.3c3ca"
+ ]
+ ]
+ },
+ {
+ "id": "ea2fdfd9.3c3ca",
+ "type": "for",
+ "name": "for_each_vm",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$startSuccessCount`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1533.3396301269531,
+ "y": 850.6992797851562,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "d8a0ed24.b84ae"
+ ]
+ ]
+ },
+ {
+ "id": "d8a0ed24.b84ae",
+ "type": "switchNode",
+ "name": "switch : healthcheck status",
+ "xml": "<switch test=\"`$healthcheck.vm[$i].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1746.3393859863281,
+ "y": 850.6992797851562,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "9dd9476e.d28ac8",
+ "8de861e2.bb71e",
+ "4af45b30.92a934"
+ ]
+ ]
+ },
+ {
+ "id": "4af45b30.92a934",
+ "type": "other",
+ "name": "DOWN",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2015.3395690917969,
+ "y": 809.6991271972656,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "be57dfc3.2eeed"
+ ]
+ ]
+ },
+ {
+ "id": "8de861e2.bb71e",
+ "type": "other",
+ "name": "UNKNOWN",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1985.1233215332031,
+ "y": 849.8419799804688,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "be57dfc3.2eeed"
+ ]
+ ]
+ },
+ {
+ "id": "9dd9476e.d28ac8",
+ "type": "other",
+ "name": "UP",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1996.3401184082031,
+ "y": 905.6993408203125,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "94cf50c0.d556c"
+ ]
+ ]
+ },
+ {
+ "id": "8d22f8f9.6b0a78",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1522.3394470214844,
+ "y": 756.6991577148438,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "18f0949f.a0e9bb",
+ "3b9ee3fb.7f3eec",
+ "9e9328bb.b1de68",
+ "31f5d989.7c8246"
+ ]
+ ]
+ },
+ {
+ "id": "110cfdbd.46ebf2",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1526.3394470214844,
+ "y": 803.6991577148438,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "4d37d66a.56dfe8",
+ "18f0949f.a0e9bb",
+ "9e9328bb.b1de68",
+ "31f5d989.7c8246"
+ ]
+ ]
+ },
+ {
+ "id": "4d37d66a.56dfe8",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"Error occurred during health check of the started servers\"/>",
+ "comments": "",
+ "x": 1759.339599609375,
+ "y": 626.6991271972656,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "3b9ee3fb.7f3eec",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"VNFC Health check DG not found\"/>",
+ "comments": "",
+ "x": 1772.0064392089844,
+ "y": 671.6990356445312,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "18f0949f.a0e9bb",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1749.4727478027344,
+ "y": 714.5116577148438,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "be57dfc3.2eeed",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2163.0538635253906,
+ "y": 825.9846801757812,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "4617f1b7.72893",
+ "b0edc860.f93f08",
+ "2d31b97f.e0b906",
+ "15123e11.0e6ac2"
+ ]
+ ]
+ },
+ {
+ "id": "4617f1b7.72893",
+ "type": "set",
+ "name": "Set error message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Health check failed for the started server : ' + $startedServerList[$i].url`\"/>\n",
+ "comments": "",
+ "x": 2403.0548400878906,
+ "y": 723.9848022460938,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "b0edc860.f93f08",
+ "type": "set",
+ "name": "increment healthCheck failed VM count",
+ "xml": "<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$healthCheckFailedCount + 1`\" />\n",
+ "comments": "",
+ "x": 2462.0548400878906,
+ "y": 769.9848022460938,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "2d31b97f.e0b906",
+ "type": "record",
+ "name": "Log error",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2390.0006408691406,
+ "y": 809.5849609375,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "94cf50c0.d556c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2153.3399963378906,
+ "y": 904.6992797851562,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "66221d82.8b8464",
+ "eeef2073.b51a8",
+ "41a731b3.142d4"
+ ]
+ ]
+ },
+ {
+ "id": "41a731b3.142d4",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Start succeeded for the server : ' + $startedServerList[$i].url`\"/>\n<parameter name=\"StartSuccessVMCount\" value=\"`$StartSuccessVMCount + 1`\" />\n\n",
+ "comments": "",
+ "x": 2403.3941955566406,
+ "y": 902.7658081054688,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "eeef2073.b51a8",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`$success-message`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2414.3946838378906,
+ "y": 941.7658081054688,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "66221d82.8b8464",
+ "type": "execute",
+ "name": "Report_Success",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2409.3399963378906,
+ "y": 981.2705688476562,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c356b5c.5a5385",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 455.12762451171875,
+ "y": 662.6990947723389,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "3713eb52.cc8e34",
+ "5ae92704.b75388"
+ ]
+ ]
+ },
+ {
+ "id": "bd00c5f4.6c36c8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 465.1822814941406,
+ "y": 359.4045104980469,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "9634dea0.04029",
+ "7b4f76be.54ae88"
+ ]
+ ]
+ },
+ {
+ "id": "20469ed0.9683d2",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n\n",
+ "comments": "",
+ "x": 986.8486938476562,
+ "y": 1156.404818534851,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "a2aed292.4ce42",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.2930297851562,
+ "y": 1090.4046630859375,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "20469ed0.9683d2",
+ "78268414.046ffc"
+ ]
+ ]
+ },
+ {
+ "id": "78268414.046ffc",
+ "type": "record",
+ "name": "Log message",
+ "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=\"`'VNFC Started successfully : ' + $vnfcName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 980.7375793457031,
+ "y": 1043.2935190200806,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f39ef42.45c23",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\n",
+ "comments": "",
+ "x": 1009.8488159179688,
+ "y": 946.4053630828857,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "835b405b.37f64",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.6263427734375,
+ "y": 948.2935791015625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "8f39ef42.45c23"
+ ]
+ ]
+ },
+ {
+ "id": "470f67c4.b10798",
+ "type": "switchNode",
+ "name": "switch_server_start_success",
+ "xml": "<switch test='`$startFailedCount == 0 and $healthCheckFailedCount == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 436.6267395019531,
+ "y": 975.2689208984375,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "7138a429.726abc",
+ "c6e62522.c339d8"
+ ]
+ ]
+ },
+ {
+ "id": "c6e62522.c339d8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 658.3768310546875,
+ "y": 1091.01904296875,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "a2aed292.4ce42"
+ ]
+ ]
+ },
+ {
+ "id": "7138a429.726abc",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 663.8768310546875,
+ "y": 948.0191040039062,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "835b405b.37f64"
+ ]
+ ]
+ },
+ {
+ "id": "5ac946d2.91fa68",
+ "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": 1352.1823272705078,
+ "y": 209.515625,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "47f08dbf.9a66b4"
+ ]
+ ]
+ },
+ {
+ "id": "47f08dbf.9a66b4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1570.1819458007812,
+ "y": 207.5156307220459,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "656f58ea.97efe8"
+ ]
+ ]
+ },
+ {
+ "id": "656f58ea.97efe8",
+ "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": 1797.7537536621094,
+ "y": 208.22989749908447,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3a627217.fcf60e",
+ "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": 1505.7378540039062,
+ "y": 522.5156230926514,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "7fc97e75.ed6d1"
+ ]
+ ]
+ },
+ {
+ "id": "7fc97e75.ed6d1",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2019.7374572753906,
+ "y": 614.5155334472656,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "80c47b86.45ab58"
+ ]
+ ]
+ },
+ {
+ "id": "80c47b86.45ab58",
+ "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": 2202.753875732422,
+ "y": 614.22998046875,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9e9328bb.b1de68",
+ "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": 1805.6270446777344,
+ "y": 803.7378540039062,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "7fc97e75.ed6d1"
+ ]
+ ]
+ },
+ {
+ "id": "15123e11.0e6ac2",
+ "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": 2394.7381896972656,
+ "y": 862.0711975097656,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "34b3037c.03944c"
+ ]
+ ]
+ },
+ {
+ "id": "34b3037c.03944c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2618.8487854003906,
+ "y": 861.8489074707031,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ [
+ "982fa4ec.c12498"
+ ]
+ ]
+ },
+ {
+ "id": "982fa4ec.c12498",
+ "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": 2811.8653869628906,
+ "y": 862.5632629394531,
+ "z": "9118d0a8.37c63",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "31f5d989.7c8246",
+ "type": "set",
+ "name": "update healthCheck failed count",
+ "xml": "<set>\n<parameter name=\"healthCheckFailedCount\" value=\"`$startSuccessCount`\" />\n",
+ "comments": "",
+ "x": 1794.8489685058594,
+ "y": 756.0712280273438,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ },
+ {
+ "id": "47a47deb.b90734",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`$error-message`\"/>\n",
+ "comments": "",
+ "x": 1502.5159301757812,
+ "y": 404.51562309265137,
+ "z": "9118d0a8.37c63",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StopApplication_VM_vSCP_2.0.0.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StopApplication_VM_vSCP_2.0.0.json
index e9a04a394..eb94a37c8 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StopApplication_VM_vSCP_2.0.0.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_StopApplication_VM_vSCP_2.0.0.json
@@ -1,581 +1,581 @@
-[
- {
- "id": "45094e01.04b5",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 118,
- "y": 60,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "2edc368c.b0f64a"
- ]
- ]
- },
- {
- "id": "2edc368c.b0f64a",
- "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": 271.0000762939453,
- "y": 59.566673278808594,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "65d6d2.3359293"
- ]
- ]
- },
- {
- "id": "65d6d2.3359293",
- "type": "method",
- "name": "StopApplication_VM_VSCP",
- "xml": "<method rpc='StopApplication_VM_vSCP' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 483.5000915527344,
- "y": 59.56667232513428,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "a649fe4e.d578c"
- ]
- ]
- },
- {
- "id": "a649fe4e.d578c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 172,
- "y": 140,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "3befe32a.cda1ac",
- "38e0f472.ba404c",
- "bb87dbed.34a348",
- "593a11f2.81bf1",
- "d6d1b7f.22dce48"
- ]
- ]
- },
- {
- "id": "3befe32a.cda1ac",
- "type": "switchNode",
- "name": "Connection details already exist ?",
- "xml": "<switch test='`length($connection-details) == 0`'>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 455,
- "y": 200,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "4e1f878a.293dd8"
- ]
- ]
- },
- {
- "id": "4e1f878a.293dd8",
- "type": "outcomeTrue",
- "name": "none found",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 704.5,
- "y": 200,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "c48be551.f0b508"
- ]
- ]
- },
- {
- "id": "631a6eca.08715",
- "type": "outcome",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 690,
- "y": 380,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "ba6732ad.5b2b7"
- ]
- ]
- },
- {
- "id": "90519af5.3cf8f8",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 699,
- "y": 320,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "7bf6eaa2.0c00b4"
- ]
- ]
- },
- {
- "id": "c48be551.f0b508",
- "type": "execute",
- "name": "Execute retrieve connection",
- "xml": "<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 936.5,
- "y": 200,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "c24e43e3.47358"
- ]
- ]
- },
- {
- "id": "c24e43e3.47358",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1130,
- "y": 200,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "7000ea12.cc2c54"
- ]
- ]
- },
- {
- "id": "cba91b7e.1a9828",
- "type": "execute",
- "name": "Execute stop node",
- "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='stopNode'>\n<parameter name=\"node-name\" value=\"`$healthcheck.vm[0].nodeName`\" />\n<parameter name=\"node-status\" value=\"`$healthcheck.vm[0].status`\" />\n<parameter name=\"vm-url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />",
- "comments": "",
- "outputs": 1,
- "x": 907.5,
- "y": 440,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "3e771072.dff42",
- "4c818d83.efdfa4"
- ]
- ]
- },
- {
- "id": "7000ea12.cc2c54",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1270,
- "y": 200,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "9ed7e5c6.794218",
- "625a967b.641258"
- ]
- ]
- },
- {
- "id": "9ed7e5c6.794218",
- "type": "set",
- "name": "Set event message",
- "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve connection details for vnfc : ' + $vnfcType`\"/> ",
- "comments": "",
- "x": 1609.5,
- "y": 200,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "2e18822.6fd057e",
- "type": "set",
- "name": "Set event message",
- "xml": "<set>\n<parameter name='event-message' value=\"`'Stop failed for the node : ' + $healthcheck.vm[0].nodeName`\"/>",
- "comments": "",
- "x": 1609.5,
- "y": 440,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "3e771072.dff42",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1130,
- "y": 440,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "87e9f084.dc614"
- ]
- ]
- },
- {
- "id": "38e0f472.ba404c",
- "type": "set",
- "name": "init",
- "xml": "<set>\n<parameter name='current-dg-name' value=\"StopApplication_VM_vSCP\"/>\n<parameter name=\"healthcheck.vmCount\" value=\"1\" />\n<parameter name=\"retry-healthcheck\" value=\"false\"/>\n<parameter name=\"exitLoop\" value=\"false\"/>\n<parameter name=\"stopSucceeded\" value=\"false\"/>\n<parameter name=\"healthcheck.vm[0].url\" value=\"`$stop-vm-url`\" />",
- "comments": "",
- "outputs": 1,
- "x": 370,
- "y": 140,
- "z": "4469619c.5c5ce",
- "wires": [
- []
- ]
- },
- {
- "id": "bb87dbed.34a348",
- "type": "execute",
- "name": "Healthcheck to get Node Name",
- "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='healthCheckVMs'>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"retry-healthcheck\" value=\"`$retry-healthcheck`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 447.5,
- "y": 320,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "90519af5.3cf8f8",
- "631a6eca.08715"
- ]
- ]
- },
- {
- "id": "593a11f2.81bf1",
- "type": "switchNode",
- "name": "Healthcheck status ?",
- "xml": "<switch test=\"`$healthcheck.vm[0].status`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 414.5,
- "y": 440,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "4c418f9c.9c0fb",
- "13d3d83.6ec2928",
- "1d8db4ea.ee850b"
- ]
- ]
- },
- {
- "id": "4c418f9c.9c0fb",
- "type": "other",
- "name": "DOWN",
- "xml": "<outcome value='DOWN'>\n",
- "comments": "",
- "outputs": 1,
- "x": 690.5,
- "y": 560,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "a188ecb2.2c019"
- ]
- ]
- },
- {
- "id": "87e9f084.dc614",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1272,
- "y": 440,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "2e18822.6fd057e",
- "625a967b.641258"
- ]
- ]
- },
- {
- "id": "2572bd6f.e17262",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 1295,
- "y": 500,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "13d3d83.6ec2928",
- "type": "other",
- "name": "UP",
- "xml": "<outcome value='UP'>\n",
- "comments": "",
- "outputs": 1,
- "x": 690,
- "y": 440,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "cba91b7e.1a9828"
- ]
- ]
- },
- {
- "id": "4c818d83.efdfa4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1134,
- "y": 500,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "2572bd6f.e17262"
- ]
- ]
- },
- {
- "id": "d6d1b7f.22dce48",
- "type": "execute",
- "name": "Select vnf-host-ip via connection test",
- "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='selectActiveConnectionDetails'>\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"vnf-host-ip2-address\" value=\"`$vnf-host-ip2-address`\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 464.5,
- "y": 260,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "d9e8802e.e0979"
- ]
- ]
- },
- {
- "id": "d9e8802e.e0979",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 690,
- "y": 260,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "960cbdd2.f45fa"
- ]
- ]
- },
- {
- "id": "960cbdd2.f45fa",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1270,
- "y": 260,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "93f6e97f.86f498",
- "625a967b.641258"
- ]
- ]
- },
- {
- "id": "93f6e97f.86f498",
- "type": "set",
- "name": "Set event message",
- "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to ssh to vnfc : ' + $vnfcType`\"/> ",
- "comments": "",
- "x": 1609.5,
- "y": 260,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "7bf6eaa2.0c00b4",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1270,
- "y": 320,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "fbbe6078.75537",
- "625a967b.641258"
- ]
- ]
- },
- {
- "id": "fbbe6078.75537",
- "type": "set",
- "name": "Set event message",
- "xml": "<set>\n<parameter name=\"event-message\" value=\"Health Check not found\"/> ",
- "comments": "",
- "x": 1609.5,
- "y": 320,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "ba6732ad.5b2b7",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1270,
- "y": 380,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "5d6a8bd9.c4f1a4",
- "625a967b.641258"
- ]
- ]
- },
- {
- "id": "5d6a8bd9.c4f1a4",
- "type": "set",
- "name": "Set event message",
- "xml": "<set>\n<parameter name=\"event-message\" value=\"Health Check failed\"/> ",
- "comments": "",
- "x": 1609.5,
- "y": 380,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "625a967b.641258",
- "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",
- "comments": "",
- "x": 1589,
- "y": 500,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "a188ecb2.2c019",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 870,
- "y": 560,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "623a9eea.473fc",
- "6b885833.1ca728"
- ]
- ]
- },
- {
- "id": "623a9eea.473fc",
- "type": "set",
- "name": "Set success message",
- "xml": "<set>\n<parameter name='success-message' value=\"`'Node already down: ' + $healthcheck.vm[0].nodeName`\"/>",
- "comments": "",
- "x": 1177.5,
- "y": 560,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "1d8db4ea.ee850b",
- "type": "other",
- "name": "UNKNOWN",
- "xml": "<outcome value='UNKNOWN'>\n",
- "comments": "",
- "outputs": 1,
- "x": 705,
- "y": 620,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "5945a3dd.87e51c"
- ]
- ]
- },
- {
- "id": "5945a3dd.87e51c",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 870,
- "y": 620,
- "z": "4469619c.5c5ce",
- "wires": [
- [
- "4a02e5a3.cf7dcc",
- "6b885833.1ca728"
- ]
- ]
- },
- {
- "id": "4a02e5a3.cf7dcc",
- "type": "set",
- "name": "Set success message",
- "xml": "<set>\n<parameter name='success-message' value=\"Application Shutdown unnessecary for node in state UNKNOWN.\"/>",
- "comments": "",
- "x": 1177.5,
- "y": 620,
- "z": "4469619c.5c5ce",
- "wires": []
- },
- {
- "id": "6b885833.1ca728",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 1157,
- "y": 680,
- "z": "4469619c.5c5ce",
- "wires": []
- }
-]
+[
+ {
+ "id": "45094e01.04b5",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 118,
+ "y": 60,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "2edc368c.b0f64a"
+ ]
+ ]
+ },
+ {
+ "id": "2edc368c.b0f64a",
+ "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": 271.0000762939453,
+ "y": 59.566673278808594,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "65d6d2.3359293"
+ ]
+ ]
+ },
+ {
+ "id": "65d6d2.3359293",
+ "type": "method",
+ "name": "StopApplication_VM_VSCP",
+ "xml": "<method rpc='StopApplication_VM_vSCP' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 483.5000915527344,
+ "y": 59.56667232513428,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "a649fe4e.d578c"
+ ]
+ ]
+ },
+ {
+ "id": "a649fe4e.d578c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 172,
+ "y": 140,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "3befe32a.cda1ac",
+ "38e0f472.ba404c",
+ "bb87dbed.34a348",
+ "593a11f2.81bf1",
+ "d6d1b7f.22dce48"
+ ]
+ ]
+ },
+ {
+ "id": "3befe32a.cda1ac",
+ "type": "switchNode",
+ "name": "Connection details already exist ?",
+ "xml": "<switch test='`length($connection-details) == 0`'>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 455,
+ "y": 200,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "4e1f878a.293dd8"
+ ]
+ ]
+ },
+ {
+ "id": "4e1f878a.293dd8",
+ "type": "outcomeTrue",
+ "name": "none found",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 704.5,
+ "y": 200,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "c48be551.f0b508"
+ ]
+ ]
+ },
+ {
+ "id": "631a6eca.08715",
+ "type": "outcome",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 690,
+ "y": 380,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "ba6732ad.5b2b7"
+ ]
+ ]
+ },
+ {
+ "id": "90519af5.3cf8f8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 699,
+ "y": 320,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "7bf6eaa2.0c00b4"
+ ]
+ ]
+ },
+ {
+ "id": "c48be551.f0b508",
+ "type": "execute",
+ "name": "Execute retrieve connection",
+ "xml": "<execute plugin='org.onap.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$vnf.type`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 936.5,
+ "y": 200,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "c24e43e3.47358"
+ ]
+ ]
+ },
+ {
+ "id": "c24e43e3.47358",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1130,
+ "y": 200,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "7000ea12.cc2c54"
+ ]
+ ]
+ },
+ {
+ "id": "cba91b7e.1a9828",
+ "type": "execute",
+ "name": "Execute stop node",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='stopNode'>\n<parameter name=\"node-name\" value=\"`$healthcheck.vm[0].nodeName`\" />\n<parameter name=\"node-status\" value=\"`$healthcheck.vm[0].status`\" />\n<parameter name=\"vm-url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 907.5,
+ "y": 440,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "3e771072.dff42",
+ "4c818d83.efdfa4"
+ ]
+ ]
+ },
+ {
+ "id": "7000ea12.cc2c54",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1270,
+ "y": 200,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "9ed7e5c6.794218",
+ "625a967b.641258"
+ ]
+ ]
+ },
+ {
+ "id": "9ed7e5c6.794218",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to retrieve connection details for vnfc : ' + $vnfcType`\"/> ",
+ "comments": "",
+ "x": 1609.5,
+ "y": 200,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "2e18822.6fd057e",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name='event-message' value=\"`'Stop failed for the node : ' + $healthcheck.vm[0].nodeName`\"/>",
+ "comments": "",
+ "x": 1609.5,
+ "y": 440,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "3e771072.dff42",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1130,
+ "y": 440,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "87e9f084.dc614"
+ ]
+ ]
+ },
+ {
+ "id": "38e0f472.ba404c",
+ "type": "set",
+ "name": "init",
+ "xml": "<set>\n<parameter name='current-dg-name' value=\"StopApplication_VM_vSCP\"/>\n<parameter name=\"healthcheck.vmCount\" value=\"1\" />\n<parameter name=\"retry-healthcheck\" value=\"false\"/>\n<parameter name=\"exitLoop\" value=\"false\"/>\n<parameter name=\"stopSucceeded\" value=\"false\"/>\n<parameter name=\"healthcheck.vm[0].url\" value=\"`$stop-vm-url`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 370,
+ "y": 140,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bb87dbed.34a348",
+ "type": "execute",
+ "name": "Healthcheck to get Node Name",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='healthCheckVMs'>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"retry-healthcheck\" value=\"`$retry-healthcheck`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 447.5,
+ "y": 320,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "90519af5.3cf8f8",
+ "631a6eca.08715"
+ ]
+ ]
+ },
+ {
+ "id": "593a11f2.81bf1",
+ "type": "switchNode",
+ "name": "Healthcheck status ?",
+ "xml": "<switch test=\"`$healthcheck.vm[0].status`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 414.5,
+ "y": 440,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "4c418f9c.9c0fb",
+ "13d3d83.6ec2928",
+ "1d8db4ea.ee850b"
+ ]
+ ]
+ },
+ {
+ "id": "4c418f9c.9c0fb",
+ "type": "other",
+ "name": "DOWN",
+ "xml": "<outcome value='DOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 690.5,
+ "y": 560,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "a188ecb2.2c019"
+ ]
+ ]
+ },
+ {
+ "id": "87e9f084.dc614",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1272,
+ "y": 440,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "2e18822.6fd057e",
+ "625a967b.641258"
+ ]
+ ]
+ },
+ {
+ "id": "2572bd6f.e17262",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1295,
+ "y": 500,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "13d3d83.6ec2928",
+ "type": "other",
+ "name": "UP",
+ "xml": "<outcome value='UP'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 690,
+ "y": 440,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "cba91b7e.1a9828"
+ ]
+ ]
+ },
+ {
+ "id": "4c818d83.efdfa4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1134,
+ "y": 500,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "2572bd6f.e17262"
+ ]
+ ]
+ },
+ {
+ "id": "d6d1b7f.22dce48",
+ "type": "execute",
+ "name": "Select vnf-host-ip via connection test",
+ "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='selectActiveConnectionDetails'>\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"vnf-host-ip2-address\" value=\"`$vnf-host-ip2-address`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 464.5,
+ "y": 260,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "d9e8802e.e0979"
+ ]
+ ]
+ },
+ {
+ "id": "d9e8802e.e0979",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 690,
+ "y": 260,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "960cbdd2.f45fa"
+ ]
+ ]
+ },
+ {
+ "id": "960cbdd2.f45fa",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1270,
+ "y": 260,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "93f6e97f.86f498",
+ "625a967b.641258"
+ ]
+ ]
+ },
+ {
+ "id": "93f6e97f.86f498",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"`'Failed to ssh to vnfc : ' + $vnfcType`\"/> ",
+ "comments": "",
+ "x": 1609.5,
+ "y": 260,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "7bf6eaa2.0c00b4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1270,
+ "y": 320,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "fbbe6078.75537",
+ "625a967b.641258"
+ ]
+ ]
+ },
+ {
+ "id": "fbbe6078.75537",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"Health Check not found\"/> ",
+ "comments": "",
+ "x": 1609.5,
+ "y": 320,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "ba6732ad.5b2b7",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1270,
+ "y": 380,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "5d6a8bd9.c4f1a4",
+ "625a967b.641258"
+ ]
+ ]
+ },
+ {
+ "id": "5d6a8bd9.c4f1a4",
+ "type": "set",
+ "name": "Set event message",
+ "xml": "<set>\n<parameter name=\"event-message\" value=\"Health Check failed\"/> ",
+ "comments": "",
+ "x": 1609.5,
+ "y": 380,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "625a967b.641258",
+ "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",
+ "comments": "",
+ "x": 1589,
+ "y": 500,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "a188ecb2.2c019",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 870,
+ "y": 560,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "623a9eea.473fc",
+ "6b885833.1ca728"
+ ]
+ ]
+ },
+ {
+ "id": "623a9eea.473fc",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"`'Node already down: ' + $healthcheck.vm[0].nodeName`\"/>",
+ "comments": "",
+ "x": 1177.5,
+ "y": 560,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "1d8db4ea.ee850b",
+ "type": "other",
+ "name": "UNKNOWN",
+ "xml": "<outcome value='UNKNOWN'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 705,
+ "y": 620,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "5945a3dd.87e51c"
+ ]
+ ]
+ },
+ {
+ "id": "5945a3dd.87e51c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 870,
+ "y": 620,
+ "z": "4469619c.5c5ce",
+ "wires": [
+ [
+ "4a02e5a3.cf7dcc",
+ "6b885833.1ca728"
+ ]
+ ]
+ },
+ {
+ "id": "4a02e5a3.cf7dcc",
+ "type": "set",
+ "name": "Set success message",
+ "xml": "<set>\n<parameter name='success-message' value=\"Application Shutdown unnessecary for node in state UNKNOWN.\"/>",
+ "comments": "",
+ "x": 1177.5,
+ "y": 620,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ },
+ {
+ "id": "6b885833.1ca728",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1157,
+ "y": 680,
+ "z": "4469619c.5c5ce",
+ "wires": []
+ }
+]