aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json
diff options
context:
space:
mode:
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json')
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_Restart_VNF.json1580
1 files changed, 1579 insertions, 1 deletions
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