Fix invalid context error in Generic Restart dg 49/16649/1
authorRY303T <RY303T@att.com>
Fri, 29 Sep 2017 14:50:57 +0000 (10:50 -0400)
committerRY303T <RY303T@att.com>
Fri, 29 Sep 2017 14:53:31 +0000 (10:53 -0400)
Added missing outcomes to switch blocks

Issue-ID: APPC-249
Change-Id: Ica781de4f51890cac24b4fa3efd653671c4e1433
Signed-off-by: RY303T <RY303T@att.com>
platform-logic/appc/src/main/json/APPC_method_Generic_Restart_3.0.0.json
platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_3.0.0.xml

index b9932a7..f168b11 100644 (file)
@@ -1 +1 @@
-[{"id":"d1d52f5e.f5ec38","type":"method","name":"Generic_Restart","xml":"<method rpc='Generic_Restart' mode='sync'>\n","comments":"","outputs":1,"x":163.33335876464844,"y":83.33333587646484,"z":"d549bab4.32b5b8","wires":[["598bfeb.ee8a9"]]},{"id":"2dd5fa72.b50c0a","type":"service-logic","name":"APPC 3.0.0","module":"APPC","version":"3.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='3.0.0'>","outputs":1,"x":263.47615814208984,"y":38.61904239654541,"z":"d549bab4.32b5b8","wires":[["d1d52f5e.f5ec38"]]},{"id":"298f09aa.536796","type":"dgstart","name":"DGSTART","outputs":1,"x":112.61902618408203,"y":38.61905288696289,"z":"d549bab4.32b5b8","wires":[["2dd5fa72.b50c0a"]]},{"id":"635b3d20.44f968","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":554.333309173584,"y":523.9048252105713,"z":"d549bab4.32b5b8","wires":[["4877e58b.ec3e5"]]},{"id":"93a231b3.fddc","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":131.76213836669922,"y":827.7141990661621,"z":"d549bab4.32b5b8","wires":[["61c8c61f.988e6c","9be866d3.e8ba88"]]},{"id":"61c8c61f.988e6c","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":327.33349609375,"y":1029.7142333984375,"z":"d549bab4.32b5b8","wires":[]},{"id":"ecf8420b.d2137","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":553.047534942627,"y":469.61900329589843,"z":"d549bab4.32b5b8","wires":[["1be2cec9.7984fd"]]},{"id":"98bb5b14.8493b8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":886.3333015441894,"y":508.3333168029785,"z":"d549bab4.32b5b8","wires":[]},{"id":"3c4e1344.2bab4c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1819.6905517578125,"y":1266.90478515625,"z":"d549bab4.32b5b8","wires":[["b7e6ad42.af9cd"]]},{"id":"6e324207.059a4c","type":"comment","name":"Fetch all VMs and VNFCs from AA&I for given VNF_ID","info":"","comments":"","x":560.1904220581055,"y":419.904746055603,"z":"d549bab4.32b5b8","wires":[]},{"id":"41e67c42.414d7","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1817.9760131835937,"y":1102.1905517578125,"z":"d549bab4.32b5b8","wires":[["c3e0f701.23a408"]]},{"id":"b7e6ad42.af9cd","type":"switchNode","name":"switch","xml":"<switch test='`$RESTART_STATUS`'>\n","comments":"","outputs":1,"x":2001.6905517578125,"y":1267.90478515625,"z":"d549bab4.32b5b8","wires":[["46981672.1024f8","6aa758eb.2d7ff","b015f846.9f0158"]]},{"id":"b015f846.9f0158","type":"success","name":"outcome_SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":2189.119140625,"y":1486.3333740234375,"z":"d549bab4.32b5b8","wires":[["44cc20f.73d6b2"]]},{"id":"46981672.1024f8","type":"other","name":"outcome_CONTEXT_NOT_FOUND","xml":"<outcome value='CONTEXT_NOT_FOUND'>\n","comments":"","outputs":1,"x":2256.5482177734375,"y":1375.761962890625,"z":"d549bab4.32b5b8","wires":[["6a602ab3.cdfae4"]]},{"id":"6aa758eb.2d7ff","type":"other","name":"outcome_ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":2201.6904296875,"y":1269.3333740234375,"z":"d549bab4.32b5b8","wires":[["df4ef003.c2cd9"]]},{"id":"92c44e47.28ad6","type":"execute","name":"execute_Restart","xml":"<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].inventory-response-items.inventory-response-item[0].inventory-response-items.inventory-response-item[0].cloud-region.identity-url`\" />\n\n","comments":"","outputs":1,"x":1633.9763793945312,"y":1103.1905517578125,"z":"d549bab4.32b5b8","wires":[["3c4e1344.2bab4c","41e67c42.414d7"]]},{"id":"4877e58b.ec3e5","type":"switchNode","name":"switch: vnfInfo","xml":"<switch test='`$vnfInfo`'>\n","comments":"","outputs":1,"x":141.1428451538086,"y":610.3809852600098,"z":"d549bab4.32b5b8","wires":[["e1ff163b.5ff02","96f5bb03.c66ac8"]]},{"id":"bfab8c2f.8588c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in retrieving VNF Hierachy\" />","comments":"","x":702.9762878417969,"y":658.7619457244873,"z":"d549bab4.32b5b8","wires":[]},{"id":"1be2cec9.7984fd","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":705.9047355651855,"y":470.47619819641113,"z":"d549bab4.32b5b8","wires":[["77c00a25.824a2","98bb5b14.8493b8"]]},{"id":"77c00a25.824a2","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Exception in running AAI Named Query\" />\n\n","comments":"","outputs":1,"x":875.0476188659668,"y":471.7619094848633,"z":"d549bab4.32b5b8","wires":[["40cae6fb.f9ec1c"]]},{"id":"40cae6fb.f9ec1c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1017.6189765930176,"y":472.0475769042969,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"efd02e0e.cbb8d","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":533.0714340209961,"y":611.3810157775879,"z":"d549bab4.32b5b8","wires":[["bfab8c2f.8588c","d1af3a22.36d078"]]},{"id":"d1af3a22.36d078","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in retrieving VNF Hierachy\" />","comments":"","outputs":1,"x":688.8331413269043,"y":610.7619476318359,"z":"d549bab4.32b5b8","wires":[["98c697de.25dc38"]]},{"id":"98c697de.25dc38","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":840.1189727783203,"y":611.6190910339355,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"c3e0f701.23a408","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2028.5472869873047,"y":1101.904842376709,"z":"d549bab4.32b5b8","wires":[["f5519b8e.0473e8","ee44a266.5b656"]]},{"id":"f5519b8e.0473e8","type":"execute","name":"Report_Failure_in_Restart","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Failure in restart for:' + $VNF.VM[$i].URL`\" />","comments":"","outputs":1,"x":2271.119140625,"y":1102.619140625,"z":"d549bab4.32b5b8","wires":[["e2d82b0c.ef1e08"]]},{"id":"e2d82b0c.ef1e08","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2521.11865234375,"y":1102.619140625,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"6a602ab3.cdfae4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2501.1190185546875,"y":1375.90478515625,"z":"d549bab4.32b5b8","wires":[["da08309a.ea4da","96bc42f9.1ee06"]]},{"id":"da08309a.ea4da","type":"execute","name":"Report_Context_not_found","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Context not found:' + $VNF.VM[$i].URL`\" />","comments":"","outputs":1,"x":2776.2618408203125,"y":1376.90478515625,"z":"d549bab4.32b5b8","wires":[["7509e683.ec0f3c"]]},{"id":"7509e683.ec0f3c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3172.12060546875,"y":1377.4761962890625,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"df4ef003.c2cd9","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2495.11962890625,"y":1269.3333740234375,"z":"d549bab4.32b5b8","wires":[["6442c295.a7306c","96bc42f9.1ee06"]]},{"id":"6442c295.a7306c","type":"execute","name":"Report_Error_occoured_while_restarting_the_server","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Error occoured while restarting the server:' + $VNF.VM[$i].URL`\" />","comments":"","outputs":1,"x":2858.5477294921875,"y":1270.1904296875,"z":"d549bab4.32b5b8","wires":[["b76ffaa3.2d7ed8"]]},{"id":"b76ffaa3.2d7ed8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3171.11962890625,"y":1269.3333740234375,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"8fdcd6cc.534c2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":403.7618865966797,"y":283.6507959365845,"z":"d549bab4.32b5b8","wires":[["799e98b5.fa05e8"]]},{"id":"598bfeb.ee8a9","type":"execute","name":"execute: flatAndAddToContext","xml":"<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />","comments":"","outputs":1,"x":185.61901092529297,"y":135.904803276062,"z":"d549bab4.32b5b8","wires":[["8fdcd6cc.534c2","19ffb42b.f07ee8","2a62fd0e.5f3ba2"]]},{"id":"49614b11.f4b31","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","x":740.9047698974609,"y":171.71442031860351,"z":"d549bab4.32b5b8","wires":[]},{"id":"92fb64df.fcc518","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":544.8571395874023,"y":137.47640705108642,"z":"d549bab4.32b5b8","wires":[["49614b11.f4b31","88737a14.cf8d48"]]},{"id":"88737a14.cf8d48","type":"execute","name":"Report_Error_Flattening_Payload_Json","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","outputs":1,"x":826.0476455688476,"y":137.42875480651855,"z":"d549bab4.32b5b8","wires":[["c061fe0e.f59e6"]]},{"id":"c061fe0e.f59e6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1053.1905899047851,"y":137.85729789733887,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"19ffb42b.f07ee8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":405.33327865600586,"y":137.000093460083,"z":"d549bab4.32b5b8","wires":[["92fb64df.fcc518"]]},{"id":"e9743383.535c7","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","x":742.9048004150391,"y":254.8572483062744,"z":"d549bab4.32b5b8","wires":[]},{"id":"1a9448d.31a4777","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":556.0000991821289,"y":219.19064331054687,"z":"d549bab4.32b5b8","wires":[["e9743383.535c7","b4858f51.352808"]]},{"id":"b4858f51.352808","type":"execute","name":"Report_Error_Loading_Json_Flattening_Plugin","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","outputs":1,"x":847.7619094848633,"y":219.42876625061035,"z":"d549bab4.32b5b8","wires":[["ce019b05.ad1f08"]]},{"id":"ce019b05.ad1f08","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1101.619155883789,"y":219.428786277771,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"2a62fd0e.5f3ba2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":407.47620391845703,"y":219.14293670654297,"z":"d549bab4.32b5b8","wires":[["1a9448d.31a4777"]]},{"id":"44cc20f.73d6b2","type":"execute","name":"Report_Success_in_Restart","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Restart event executed successfully for ' + $VNF.VM[$i].URL`\" />\n","comments":"","outputs":1,"x":2485.023681640625,"y":1488.0001220703125,"z":"d549bab4.32b5b8","wires":[["d3fa3e29.7d084","e3581d6.55a3f2"]]},{"id":"d3fa3e29.7d084","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2743.0233154296875,"y":1540,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"e3581d6.55a3f2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2743.0233154296875,"y":1488,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"d81e5575.2f2398","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":121.61904525756836,"y":420.19044494628906,"z":"d549bab4.32b5b8","wires":[["6d15d5b3.0574b8","46582f8f.d70f38"]]},{"id":"6d15d5b3.0574b8","type":"get-resource","name":"AAI_Named_Query","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"named-query\" key=\"named-query-uuid = '037eb932-edac-48f5-9782-c19c0aa5a031' AND prefix='namedQueryData' \" local-only=\"false\" pfx=\"vnfInfo\" >\n","comments":"","outputs":1,"x":325.7617950439453,"y":470.1904821395874,"z":"d549bab4.32b5b8","wires":[["ecf8420b.d2137","635b3d20.44f968"]]},{"id":"46582f8f.d70f38","type":"set","name":"set","xml":"<set>\n<parameter name='namedQueryData.instance-filters.instance-filter[0].generic-vnf.vnf-id' value='`$input.action-identifiers.vnf-id`' />\n<parameter name='namedQueryData.instance-filters.instance-filter_length' value='`1`' />","comments":"","x":289.1904754638672,"y":419.904727935791,"z":"d549bab4.32b5b8","wires":[]},{"id":"799e98b5.fa05e8","type":"switchNode","name":"switch: input.action-identifiers.vnf-id","xml":"<switch test='$input.action-identifiers.vnf-id'>\n","comments":"","outputs":1,"x":206.61904907226562,"y":363.0476264953613,"z":"d549bab4.32b5b8","wires":[["4e30b42.2b1f18c","d81e5575.2f2398"]]},{"id":"4e30b42.2b1f18c","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":466.2618713378906,"y":362.547571182251,"z":"d549bab4.32b5b8","wires":[["ddf38ac7.882608"]]},{"id":"ddf38ac7.882608","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-message\" value=\"input.action-identifiers.vnf-id is null\" />\n","comments":"","x":635.3214645385742,"y":362.65874099731445,"z":"d549bab4.32b5b8","wires":[]},{"id":"9be866d3.e8ba88","type":"for","name":"for: vserver","xml":"<for index='vserverIndex' start='0' end='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-length' >\n","comments":"","outputs":1,"x":321.1904296875,"y":828.6665649414062,"z":"d549bab4.32b5b8","wires":[["5f09946f.5a5e48"]]},{"id":"e1ff163b.5ff02","type":"switchNode","name":"switch: vnf-id equal vnf-id","xml":"<switch test='`$vnfInfo.inventory-response-item[0].generic-vnf.vnf-id == $input.action-identifiers.vnf-id`'>\n","comments":"","outputs":1,"x":146.85711669921875,"y":680.6666870117187,"z":"d549bab4.32b5b8","wires":[["93a231b3.fddc","315277e1.a4ddec"]]},{"id":"d013757d.38c45","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","x":705.0476379394531,"y":750.4762992858887,"z":"d549bab4.32b5b8","wires":[]},{"id":"ac705b17.5790b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":535.1427841186523,"y":703.0953693389893,"z":"d549bab4.32b5b8","wires":[["d013757d.38c45","5125200e.11b3c8"]]},{"id":"5125200e.11b3c8","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure matching vnf-id to VNF Hierachy\" />","comments":"","outputs":1,"x":690.9044914245605,"y":702.4763011932373,"z":"d549bab4.32b5b8","wires":[["6e9bc98e.733594"]]},{"id":"6e9bc98e.733594","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":830.5236282348633,"y":701.6667943000793,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"ee44a266.5b656","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2286.91015625,"y":1185.3334045410156,"z":"d549bab4.32b5b8","wires":[]},{"id":"b72b9adb.4be92","type":"comment","name":"This should probably just log and continue other restarts","info":"","comments":"","x":2398.6904296875,"y":1141.3334045410156,"z":"d549bab4.32b5b8","wires":[]},{"id":"96bc42f9.1ee06","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2754.1502685546875,"y":1321.3333740234375,"z":"d549bab4.32b5b8","wires":[]},{"id":"5f09946f.5a5e48","type":"switchNode","name":"switch: vserver-selflink","xml":"<switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink'>\n","comments":"","outputs":1,"x":527.1904296875,"y":829.3333129882812,"z":"d549bab4.32b5b8","wires":[["9764f8f6.3a62c","7dabbd34.55547"]]},{"id":"d5a580fe.99ad5","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in retrieving vserver-selflink from VNF Hierachy\" />","comments":"","x":1062.0476112365722,"y":877.4762887954712,"z":"d549bab4.32b5b8","wires":[]},{"id":"94a57b9e.b3bf6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":892.1427574157715,"y":830.0953588485718,"z":"d549bab4.32b5b8","wires":[["d5a580fe.99ad5","af842a57.2d2cd8"]]},{"id":"af842a57.2d2cd8","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in retrieving vserver-selflink from VNF Hierachy\" />","comments":"","outputs":1,"x":1047.904541015625,"y":829.4762573242187,"z":"d549bab4.32b5b8","wires":[["d460e98f.426388"]]},{"id":"d460e98f.426388","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1199.1902961730957,"y":830.3334341049194,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"9764f8f6.3a62c","type":"switchNode","name":"switch: identity-url","xml":"<switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].inventory-response-items.inventory-response-item[0].inventory-response-items.inventory-response-item[0].cloud-region.identity-url'>\n","comments":"","outputs":1,"x":759.1904182434082,"y":929.333324432373,"z":"d549bab4.32b5b8","wires":[["2b88680c.5de5d4","379ba4e2.32580c"]]},{"id":"ad5c3a2b.bfa448","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in retrieving identity-url from VNF Hierachy\" />","comments":"","x":1322.0475540161132,"y":977.4762668609619,"z":"d549bab4.32b5b8","wires":[]},{"id":"d1f5cffd.8f938","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1152.1427001953125,"y":930.0953369140625,"z":"d549bab4.32b5b8","wires":[["ad5c3a2b.bfa448","a89c53c6.9f8a58"]]},{"id":"a89c53c6.9f8a58","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in retrieving identity-url from VNF Hierachy\" />","comments":"","outputs":1,"x":1307.9044075012207,"y":929.4762687683105,"z":"d549bab4.32b5b8","wires":[["c40b7402.3c2c"]]},{"id":"c40b7402.3c2c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1454.190185546875,"y":929.3334350585937,"z":"d549bab4.32b5b8","wires":[[]]},{"id":"2b88680c.5de5d4","type":"switchNode","name":"switch: vm-id present","xml":"<switch test='$vm-id'>\n","comments":"","outputs":1,"x":1017,"y":1042.5,"z":"d549bab4.32b5b8","wires":[["74cd73c8.cadb0c","b093dc74.3cbc8"]]},{"id":"74cd73c8.cadb0c","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1208,"y":1102.9000244140625,"z":"d549bab4.32b5b8","wires":[["92c44e47.28ad6"]]},{"id":"b093dc74.3cbc8","type":"switchNode","name":"switch: vserver-selflink equal vnf-id","xml":"<switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink == $vm-id'>\n","comments":"","outputs":1,"x":1260,"y":1042.9000244140625,"z":"d549bab4.32b5b8","wires":[["3ac59b18.0bb3d8"]]},{"id":"96f5bb03.c66ac8","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":354,"y":610.5999755859375,"z":"d549bab4.32b5b8","wires":[["efd02e0e.cbb8d"]]},{"id":"315277e1.a4ddec","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":354,"y":700,"z":"d549bab4.32b5b8","wires":[["ac705b17.5790b8"]]},{"id":"7dabbd34.55547","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":718.0000228881836,"y":830.0000066757202,"z":"d549bab4.32b5b8","wires":[["94a57b9e.b3bf6"]]},{"id":"379ba4e2.32580c","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":969.9999656677246,"y":929.9999847412109,"z":"d549bab4.32b5b8","wires":[["d1f5cffd.8f938"]]},{"id":"3ac59b18.0bb3d8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1465.1430053710937,"y":1043,"z":"d549bab4.32b5b8","wires":[["92c44e47.28ad6"]]}]
\ No newline at end of file
+[{"id":"c28e08a8.aafdd","type":"method","name":"Generic_Restart","xml":"<method rpc='Generic_Restart' mode='sync'>\n","comments":"","outputs":1,"x":155.00001525878906,"y":81.38096141815185,"z":"efb2d3cd.6f9f","wires":[["525173d9.9f9768"]]},{"id":"74c9c183.a2826c","type":"service-logic","name":"APPC 3.0.0","module":"APPC","version":"3.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='3.0.0'>","outputs":1,"x":255.14281463623047,"y":36.66666793823242,"z":"efb2d3cd.6f9f","wires":[["c28e08a8.aafdd"]]},{"id":"976c5310.b6d958","type":"dgstart","name":"DGSTART","outputs":1,"x":104.28568267822265,"y":36.6666784286499,"z":"efb2d3cd.6f9f","wires":[["74c9c183.a2826c"]]},{"id":"d88c6d4d.2e7bc8","type":"block","name":"block : atomic","xml":"<block atomic='true'>\n","atomic":"true","comments":"","outputs":1,"x":127.33335494995117,"y":482.42841148376465,"z":"efb2d3cd.6f9f","wires":[["6bae6aa4.352ff4","4e931e7c.c77e5","4402.f7adfffe08","3843e9f0.0e6caa"]]},{"id":"3002b3cd.763658","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":319.0001525878906,"y":1027.7618589401245,"z":"efb2d3cd.6f9f","wires":[]},{"id":"7ae358d1.458868","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":736.3809013366699,"y":529.3332748413086,"z":"efb2d3cd.6f9f","wires":[["a027a3e.486c42"]]},{"id":"eb93d0ed.b7b17","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1069.6666679382324,"y":568.0475883483887,"z":"efb2d3cd.6f9f","wires":[]},{"id":"62303b37.e8cc94","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1811.3572082519531,"y":1264.952410697937,"z":"efb2d3cd.6f9f","wires":[["90d18bd7.251fc8"]]},{"id":"a50a4cca.2efd38","type":"comment","name":"Fetch all VMs and VNFCs from AA&I for given VNF_ID","info":"","comments":"","x":468.52392578125,"y":444.6190462112427,"z":"efb2d3cd.6f9f","wires":[]},{"id":"74318252.cb0768","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1862.9760360717773,"y":1098.5715322494506,"z":"efb2d3cd.6f9f","wires":[["faa78af4.fe2978"]]},{"id":"90d18bd7.251fc8","type":"switchNode","name":"switch","xml":"<switch test='`$RESTART_STATUS`'>\n","comments":"","outputs":1,"x":1993.3572082519531,"y":1265.952410697937,"z":"efb2d3cd.6f9f","wires":[["b836ce98.c2d36","9f1098be.0487c8","cd227dfb.8e095"]]},{"id":"cd227dfb.8e095","type":"success","name":"outcome_SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":2180.7857971191406,"y":1484.3809995651245,"z":"efb2d3cd.6f9f","wires":[["6ebeb5d2.446424"]]},{"id":"b836ce98.c2d36","type":"other","name":"outcome_CONTEXT_NOT_FOUND","xml":"<outcome value='CONTEXT_NOT_FOUND'>\n","comments":"","outputs":1,"x":2248.214874267578,"y":1373.809588432312,"z":"efb2d3cd.6f9f","wires":[["9960b720.429068"]]},{"id":"9f1098be.0487c8","type":"other","name":"outcome_ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":2193.3570861816406,"y":1267.3809995651245,"z":"efb2d3cd.6f9f","wires":[["6473e66.372b258"]]},{"id":"bd1ba349.7018d8","type":"execute","name":"execute_Restart","xml":"<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].inventory-response-items.inventory-response-item[0].inventory-response-items.inventory-response-item[0].cloud-region.identity-url`\" />\n\n","comments":"","outputs":1,"x":1713.9763145446777,"y":1134.5714120864868,"z":"efb2d3cd.6f9f","wires":[["74318252.cb0768","62303b37.e8cc94"]]},{"id":"4402.f7adfffe08","type":"switchNode","name":"switch: vnfInfo","xml":"<switch test='`$vnfInfo`'>\n","comments":"","outputs":1,"x":497.80950927734375,"y":623.4285259246826,"z":"efb2d3cd.6f9f","wires":[["11a9f3a4.224b78"]]},{"id":"85cef4c2.c5e388","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in retrieving VNF Hierachy\" />","comments":"","x":1059.642951965332,"y":671.8094863891601,"z":"efb2d3cd.6f9f","wires":[]},{"id":"a027a3e.486c42","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":889.2381019592285,"y":530.1904697418213,"z":"efb2d3cd.6f9f","wires":[["427237ef.3aa128","eb93d0ed.b7b17"]]},{"id":"427237ef.3aa128","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Exception in running AAI Named Query\" />\n\n","comments":"","outputs":1,"x":1058.3809852600097,"y":531.4761810302734,"z":"efb2d3cd.6f9f","wires":[["4705f9e3.2d84f4"]]},{"id":"4705f9e3.2d84f4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1200.9523429870605,"y":531.761848449707,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"afa47f95.2bf15","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":889.7380981445312,"y":624.4285564422607,"z":"efb2d3cd.6f9f","wires":[["85cef4c2.c5e388","913da193.f270e8"]]},{"id":"913da193.f270e8","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in retrieving VNF Hierachy\" />","comments":"","outputs":1,"x":1045.4998054504394,"y":623.8094882965088,"z":"efb2d3cd.6f9f","wires":[["558576e5.cef198"]]},{"id":"558576e5.cef198","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1196.7856369018554,"y":624.6666316986084,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"faa78af4.fe2978","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2020.2139434814453,"y":1099.952467918396,"z":"efb2d3cd.6f9f","wires":[["d2be88a2.c0ce58","eaca44c0.8fa658"]]},{"id":"d2be88a2.c0ce58","type":"execute","name":"Report_Failure_in_Restart","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Failure in restart for:' + $VNF.VM[$i].URL`\" />","comments":"","outputs":1,"x":2262.7857971191406,"y":1100.666766166687,"z":"efb2d3cd.6f9f","wires":[["78d6cea7.ad7914"]]},{"id":"78d6cea7.ad7914","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2512.7853088378906,"y":1100.666766166687,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"9960b720.429068","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2492.785675048828,"y":1373.952410697937,"z":"efb2d3cd.6f9f","wires":[["a7dc114e.b060f","4e8e89a5.b92628"]]},{"id":"a7dc114e.b060f","type":"execute","name":"Report_Context_not_found","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Context not found:' + $VNF.VM[$i].URL`\" />","comments":"","outputs":1,"x":2767.928497314453,"y":1374.952410697937,"z":"efb2d3cd.6f9f","wires":[["3349e73e.3123"]]},{"id":"3349e73e.3123","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3163.7872619628906,"y":1375.5238218307495,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"6473e66.372b258","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2486.7862854003906,"y":1267.3809995651245,"z":"efb2d3cd.6f9f","wires":[["85aca546.950d98","4e8e89a5.b92628"]]},{"id":"85aca546.950d98","type":"execute","name":"Report_Error_occoured_while_restarting_the_server","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Stop : Error occoured while restarting the server:' + $VNF.VM[$i].URL`\" />","comments":"","outputs":1,"x":2850.214385986328,"y":1268.238055229187,"z":"efb2d3cd.6f9f","wires":[["46ff16c7.47a864"]]},{"id":"46ff16c7.47a864","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3162.7862854003906,"y":1267.3809995651245,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"3b81a4e0.801948","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":395.4285430908203,"y":281.6984214782715,"z":"efb2d3cd.6f9f","wires":[["24478c4a.97445c"]]},{"id":"525173d9.9f9768","type":"execute","name":"execute: flatAndAddToContext","xml":"<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />","comments":"","outputs":1,"x":177.2856674194336,"y":133.95242881774902,"z":"efb2d3cd.6f9f","wires":[["3b81a4e0.801948","ea869050.d0e8a8","bfee3bf8.6cdc08"]]},{"id":"9d5a80f1.21cfc8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","x":732.5714263916016,"y":169.76204586029053,"z":"efb2d3cd.6f9f","wires":[]},{"id":"86965cd.8414a2","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":536.523796081543,"y":135.52403259277344,"z":"efb2d3cd.6f9f","wires":[["9d5a80f1.21cfc8","8e8181b6.8a37c"]]},{"id":"8e8181b6.8a37c","type":"execute","name":"Report_Error_Flattening_Payload_Json","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />","comments":"","outputs":1,"x":817.7143020629883,"y":135.47638034820557,"z":"efb2d3cd.6f9f","wires":[["516bbf1d.b395bc"]]},{"id":"ea869050.d0e8a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":396.9999351501465,"y":135.04771900177002,"z":"efb2d3cd.6f9f","wires":[["86965cd.8414a2"]]},{"id":"13ca6872.fc2048","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","x":734.5714569091797,"y":252.90487384796142,"z":"efb2d3cd.6f9f","wires":[]},{"id":"402368d9.6b6274","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":547.6667556762695,"y":217.2382688522339,"z":"efb2d3cd.6f9f","wires":[["13ca6872.fc2048","dc34898e.b17a18"]]},{"id":"dc34898e.b17a18","type":"execute","name":"Report_Error_Loading_Json_Flattening_Plugin","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","outputs":1,"x":839.4285659790039,"y":217.47639179229736,"z":"efb2d3cd.6f9f","wires":[["cf770f7c.16a89"]]},{"id":"bfee3bf8.6cdc08","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":399.14286041259765,"y":217.19056224822998,"z":"efb2d3cd.6f9f","wires":[["402368d9.6b6274"]]},{"id":"6ebeb5d2.446424","type":"execute","name":"Report_Success_in_Restart","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"`'Restart event executed successfully for ' + $VNF.VM[$i].URL`\" />\n","comments":"","outputs":1,"x":2476.6903381347656,"y":1486.0477476119995,"z":"efb2d3cd.6f9f","wires":[["4531bcb.c6d5a84","57d1b7dc.0275e"]]},{"id":"4531bcb.c6d5a84","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2734.689971923828,"y":1538.047625541687,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"57d1b7dc.0275e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2734.689971923828,"y":1486.047625541687,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"4e931e7c.c77e5","type":"get-resource","name":"AAI_Named_Query","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"named-query\" key=\"named-query-uuid = '037eb932-edac-48f5-9782-c19c0aa5a031' AND prefix='namedQueryData' \" local-only=\"false\" pfx=\"vnfInfo\" >\n","comments":"","outputs":1,"x":509.0951614379883,"y":529.9047536849976,"z":"efb2d3cd.6f9f","wires":[["7ae358d1.458868"]]},{"id":"6bae6aa4.352ff4","type":"set","name":"set","xml":"<set>\n<parameter name='namedQueryData.instance-filters.instance-filter[0].generic-vnf.vnf-id' value='`$input.action-identifiers.vnf-id`' />\n<parameter name='namedQueryData.instance-filters.instance-filter_length' value='`1`' />","comments":"","x":472.52384185791015,"y":479.6189994812012,"z":"efb2d3cd.6f9f","wires":[]},{"id":"24478c4a.97445c","type":"switchNode","name":"switch: input.action-identifiers.vnf-id","xml":"<switch test='$input.action-identifiers.vnf-id'>\n","comments":"","outputs":1,"x":188.2857208251953,"y":329.4285087585449,"z":"efb2d3cd.6f9f","wires":[["ae98abf3.0e1938","4fe3937b.c750f4"]]},{"id":"ae98abf3.0e1938","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":444.5952911376953,"y":328.9285497665405,"z":"efb2d3cd.6f9f","wires":[["dff5e759.f86ce8"]]},{"id":"dff5e759.f86ce8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-message\" value=\"input.action-identifiers.vnf-id is null\" />\n","comments":"","x":851.9880218505859,"y":329.0397262573242,"z":"efb2d3cd.6f9f","wires":[]},{"id":"ef48adc4.8ea4b","type":"for","name":"for: vserver","xml":"<for index='vserverIndex' start='0' end='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-length' >\n","comments":"","outputs":1,"x":312.8570861816406,"y":826.7141904830933,"z":"efb2d3cd.6f9f","wires":[["d37528d4.4e265"]]},{"id":"3843e9f0.0e6caa","type":"switchNode","name":"switch: vnf-id equal vnf-id","xml":"<switch test='`$vnfInfo.inventory-response-item[0].generic-vnf.vnf-id == $input.action-identifiers.vnf-id`'>\n","comments":"","outputs":1,"x":528.523796081543,"y":708.7141733169556,"z":"efb2d3cd.6f9f","wires":[["6d5d0750.5ed474","5babc326.1971f"]]},{"id":"a0c06e68.57513","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in loading Json flattening plugin\" />","comments":"","x":1086.7143173217773,"y":778.5237855911255,"z":"efb2d3cd.6f9f","wires":[]},{"id":"48a8e663.a597bc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":916.8094635009766,"y":731.1428556442261,"z":"efb2d3cd.6f9f","wires":[["a0c06e68.57513","e3b568f.26436d8"]]},{"id":"e3b568f.26436d8","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure matching vnf-id to VNF Hierachy\" />","comments":"","outputs":1,"x":1072.5711708068847,"y":730.5237874984741,"z":"efb2d3cd.6f9f","wires":[["ac6c26ef.2272e8"]]},{"id":"ac6c26ef.2272e8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1212.1903076171875,"y":729.7142806053162,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"eaca44c0.8fa658","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2278.5768127441406,"y":1183.3810300827026,"z":"efb2d3cd.6f9f","wires":[]},{"id":"879634a3.4c4338","type":"comment","name":"This should probably just log and continue other restarts","info":"","comments":"","x":2390.3570861816406,"y":1139.3810300827026,"z":"efb2d3cd.6f9f","wires":[]},{"id":"4e8e89a5.b92628","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2745.816925048828,"y":1319.3809995651245,"z":"efb2d3cd.6f9f","wires":[]},{"id":"d37528d4.4e265","type":"switchNode","name":"switch: vserver-selflink","xml":"<switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink'>\n","comments":"","outputs":1,"x":518.8570861816406,"y":827.3809385299683,"z":"efb2d3cd.6f9f","wires":[["7a3fb8b4.c11bb8","17f06100.54e653"]]},{"id":"1aa96a4.f19d456","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in retrieving vserver-selflink from VNF Hierachy\" />","comments":"","x":1053.714267730713,"y":875.5239143371582,"z":"efb2d3cd.6f9f","wires":[]},{"id":"3bb26c38.66c72c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":883.8094139099121,"y":828.1429843902588,"z":"efb2d3cd.6f9f","wires":[["1aa96a4.f19d456","19276690.ae4b4d"]]},{"id":"19276690.ae4b4d","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in retrieving vserver-selflink from VNF Hierachy\" />","comments":"","outputs":1,"x":1039.5711975097656,"y":827.5238828659058,"z":"efb2d3cd.6f9f","wires":[["3ffa8895.8669e8"]]},{"id":"3ffa8895.8669e8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1190.8569526672363,"y":828.3810596466064,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"4079e197.d368b4","type":"switchNode","name":"switch: identity-url","xml":"<switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].inventory-response-items.inventory-response-item[0].inventory-response-items.inventory-response-item[0].cloud-region.identity-url'>\n","comments":"","outputs":1,"x":757.5238037109375,"y":945.7143125534058,"z":"efb2d3cd.6f9f","wires":[["1239e71c.4c31f5","c4484652.927c6"]]},{"id":"fb1df0ec.df495","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in retrieving identity-url from VNF Hierachy\" />","comments":"","x":1313.714210510254,"y":975.5238924026489,"z":"efb2d3cd.6f9f","wires":[]},{"id":"f343c245.3e626","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1143.8093566894531,"y":928.1429624557495,"z":"efb2d3cd.6f9f","wires":[["fb1df0ec.df495","dd9be377.dae04"]]},{"id":"dd9be377.dae04","type":"execute","name":"execute","xml":"<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure in retrieving identity-url from VNF Hierachy\" />","comments":"","outputs":1,"x":1299.5710639953613,"y":927.5238943099976,"z":"efb2d3cd.6f9f","wires":[["8a9fbe17.103c08"]]},{"id":"8a9fbe17.103c08","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1445.8568420410156,"y":927.3810606002808,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"34f6c984.c97166","type":"switchNode","name":"switch: vm-id present","xml":"<switch test='$vm-id'>\n","comments":"","outputs":1,"x":1008.6666564941406,"y":1040.547625541687,"z":"efb2d3cd.6f9f","wires":[["8000f5b5.764778","57289157.8a7af4"]]},{"id":"8000f5b5.764778","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1232.9999351501464,"y":1117.6142377853393,"z":"efb2d3cd.6f9f","wires":[["bd1ba349.7018d8"]]},{"id":"8543bb4e.9db718","type":"switchNode","name":"switch: vserver-selflink equal vnf-id","xml":"<switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink == $vm-id'>\n","comments":"","outputs":1,"x":1453.333267211914,"y":1032.6142950057983,"z":"efb2d3cd.6f9f","wires":[["e2419e1e.bb482"]]},{"id":"11a9f3a4.224b78","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":702.3333778381348,"y":623.6474990844726,"z":"efb2d3cd.6f9f","wires":[["afa47f95.2bf15"]]},{"id":"6d5d0750.5ed474","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":747.3333358764648,"y":709.7141351699829,"z":"efb2d3cd.6f9f","wires":[["48a8e663.a597bc"]]},{"id":"7a3fb8b4.c11bb8","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":709.6666793823242,"y":828.0476322174072,"z":"efb2d3cd.6f9f","wires":[["3bb26c38.66c72c"]]},{"id":"1239e71c.4c31f5","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":961.6666221618652,"y":928.047610282898,"z":"efb2d3cd.6f9f","wires":[["f343c245.3e626"]]},{"id":"e2419e1e.bb482","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1570.1431007385254,"y":1091.0477285385131,"z":"efb2d3cd.6f9f","wires":[["bd1ba349.7018d8"]]},{"id":"516bbf1d.b395bc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1089.1666412353515,"y":136.38096141815185,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"cf770f7c.16a89","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1137.5952072143554,"y":217.95244979858398,"z":"efb2d3cd.6f9f","wires":[[]]},{"id":"4fe3937b.c750f4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":447.50001525878906,"y":368.0476280848185,"z":"efb2d3cd.6f9f","wires":[["d88c6d4d.2e7bc8"]]},{"id":"17f06100.54e653","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":705.8333969116211,"y":871.3808832168579,"z":"efb2d3cd.6f9f","wires":[["4079e197.d368b4"]]},{"id":"57289157.8a7af4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1234.1667175292968,"y":1043.0477657318115,"z":"efb2d3cd.6f9f","wires":[["8543bb4e.9db718"]]},{"id":"c4484652.927c6","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":989.1666819254556,"y":984.714294751485,"z":"efb2d3cd.6f9f","wires":[["34f6c984.c97166"]]},{"id":"5babc326.1971f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":742.5000038146973,"y":759.714213848114,"z":"efb2d3cd.6f9f","wires":[["93e5feeb.17ed6"]]},{"id":"93e5feeb.17ed6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":105.8333740234375,"y":826.3808546066284,"z":"efb2d3cd.6f9f","wires":[["ef48adc4.8ea4b","3002b3cd.763658"]]}]
\ No newline at end of file
index 9efe3ae..8c7192d 100644 (file)
@@ -36,7 +36,8 @@
 <switch test='$input.action-identifiers.vnf-id'>
 <outcome value=''><return status="failure">
     <parameter name="error-message" value="input.action-identifiers.vnf-id is null" />
-</return></outcome><block>
+</return></outcome><outcome value='Other'>
+<block atomic='true'>
 <set>
 <parameter name='namedQueryData.instance-filters.instance-filter[0].generic-vnf.vnf-id' value='`$input.action-identifiers.vnf-id`' />
 <parameter name='namedQueryData.instance-filters.instance-filter_length' value='`1`' /></set><get-resource plugin="org.openecomp.sdnc.sli.aai.AAIService" resource="named-query" key="named-query-uuid = '037eb932-edac-48f5-9782-c19c0aa5a031' AND prefix='namedQueryData' " local-only="false" pfx="vnfInfo" >
 
 <outcome value='success'>
 </outcome></execute><return status='failure'>
-</return></block></outcome><outcome value='success'>
-<switch test='`$vnfInfo`'>
+</return></block></outcome></get-resource><switch test='`$vnfInfo`'>
 <outcome value=''><block atomic='true'><execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >
 <parameter name="eventId" value="`$input.action-identifiers.vnf-id`" />
 <parameter name="output.status.message" value="Failure in retrieving VNF Hierachy" /><outcome value='success'>
 </outcome></execute><return status='failure'>
-<parameter name="output.status.message" value="Failure in retrieving VNF Hierachy" /></return></block></outcome><switch test='`$vnfInfo.inventory-response-item[0].generic-vnf.vnf-id == $input.action-identifiers.vnf-id`'>
+<parameter name="output.status.message" value="Failure in retrieving VNF Hierachy" /></return></block></outcome></switch><switch test='`$vnfInfo.inventory-response-item[0].generic-vnf.vnf-id == $input.action-identifiers.vnf-id`'>
 <outcome value='false'>
 <block atomic='true'><execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >
 <parameter name="apiVer" value="1.01"/>
 <parameter name="eventId" value="`$input.action-identifiers.vnf-id`" />
 <parameter name="output.status.message" value="Failure matching vnf-id to VNF Hierachy" /><outcome value='success'>
 </outcome></execute><return status='failure'>
-<parameter name="output.status.message" value="Failure in loading Json flattening plugin" /></return></block></outcome><block atomic='true'>
-<for index='vserverIndex' start='0' end='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-length' >
+<parameter name="output.status.message" value="Failure in loading Json flattening plugin" /></return></block></outcome><outcome value='true'>
+<block atomic='true'><for index='vserverIndex' start='0' end='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-length' >
 <switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink'>
 <outcome value=''><block atomic='true'><execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >
 <parameter name="eventId" value="`$input.action-identifiers.vnf-id`" />
 <parameter name="output.status.message" value="Failure in retrieving vserver-selflink from VNF Hierachy" /><outcome value='success'>
 </outcome></execute><return status='failure'>
-<parameter name="output.status.message" value="Failure in retrieving vserver-selflink from VNF Hierachy" /></return></block></outcome><switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].inventory-response-items.inventory-response-item[0].inventory-response-items.inventory-response-item[0].cloud-region.identity-url'>
+<parameter name="output.status.message" value="Failure in retrieving vserver-selflink from VNF Hierachy" /></return></block></outcome><outcome value='Other'>
+<switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].inventory-response-items.inventory-response-item[0].inventory-response-items.inventory-response-item[0].cloud-region.identity-url'>
 <outcome value=''><block atomic='true'><execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >
 <parameter name="eventId" value="`$input.action-identifiers.vnf-id`" />
 <parameter name="output.status.message" value="Failure in retrieving identity-url from VNF Hierachy" /><outcome value='success'>
 </outcome></execute><return status='failure'>
-<parameter name="output.status.message" value="Failure in retrieving identity-url from VNF Hierachy" /></return></block></outcome><switch test='$vm-id'>
+<parameter name="output.status.message" value="Failure in retrieving identity-url from VNF Hierachy" /></return></block></outcome><outcome value='Other'>
+<switch test='$vm-id'>
+<outcome value='Other'>
 <switch test='vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink == $vm-id'>
 <outcome value='true'>
 <execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>
 <parameter name="output.status.message" value="`'Restart event executed successfully for ' + $VNF.VM[$i].URL`" />
 <outcome value='failure'>
 </outcome><outcome value='success'>
-</outcome></execute></outcome></switch></outcome></execute></outcome></switch><outcome value=''><execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>
+</outcome></execute></outcome></switch></outcome></execute></outcome></switch></outcome><outcome value=''><execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>
 <parameter name="org.openecomp.appc.provider.name" value="OpenStack"/>
 <parameter name="org.openecomp.appc.instance.url" value="`$vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].vserver.vserver-selflink`" />
 <parameter name="org.openecomp.appc.identity.url" value="`$vnfInfo.inventory-response-item[0].inventory-response-items.inventory-response-item[$vserverIndex].inventory-response-items.inventory-response-item[0].inventory-response-items.inventory-response-item[0].cloud-region.identity-url`" />
 <parameter name="output.status.message" value="`'Restart event executed successfully for ' + $VNF.VM[$i].URL`" />
 <outcome value='failure'>
 </outcome><outcome value='success'>
-</outcome></execute></outcome></switch></outcome></execute></outcome></switch></switch></switch></for><return status='success'>
-</return></block></switch></switch></outcome></get-resource></block></switch></outcome></execute></method></service-logic>
+</outcome></execute></outcome></switch></outcome></execute></outcome></switch></outcome></switch></outcome></switch></for><return status='success'>
+</return></block></outcome></switch></block></outcome></switch></outcome></execute></method></service-logic>
\ No newline at end of file