-[
- {
- "id": "6bb80f2c.7080b",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 158,
- "y": 80,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "6b619ec8.d45c4"
- ]
- ]
- },
- {
- "id": "6b619ec8.d45c4",
- "type": "service-logic",
- "name": "APPC 2.0.2",
- "module": "APPC",
- "version": "2.0.2",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.2'>",
- "outputs": 1,
- "x": 326.0001220703125,
- "y": 81,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "c6bac291.2c2d3"
- ]
- ]
- },
- {
- "id": "c6bac291.2c2d3",
- "type": "method",
- "name": "Stop_VNFC",
- "xml": "<method rpc='Stop_VNFC' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 254.00015258789062,
- "y": 155,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "f6ef3aa.b96dbc8"
- ]
- ]
- },
- {
- "id": "f6ef3aa.b96dbc8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 204.0001220703125,
- "y": 237.99999809265137,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "7faaeb57.5e7824",
- "fc170e86.4107f",
- "5ea187ee.d6e158",
- "41b645cc.41c3fc"
- ]
- ]
- },
- {
- "id": "7faaeb57.5e7824",
- "type": "execute",
- "name": "Update_AAI_Stopping",
- "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Stopping\" />",
- "comments": "",
- "outputs": 1,
- "x": 920.00048828125,
- "y": 172,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "76cf3ef.ad105c",
- "3e9e1468.83185c",
- "3f3edb07.2f9944"
- ]
- ]
- },
- {
- "id": "3e9e1468.83185c",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1666.000732421875,
- "y": 275.99999809265137,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "c1bc1cba.f920b"
- ]
- ]
- },
- {
- "id": "3f3edb07.2f9944",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1682,
- "y": 339.99999809265137,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "f8673aca.705658"
- ]
- ]
- },
- {
- "id": "76cf3ef.ad105c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1663.0000305175781,
- "y": 409,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "c832b521.3d9768"
- ]
- ]
- },
- {
- "id": "c1bc1cba.f920b",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1838.8891906738281,
- "y": 273.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "8cac271.4e263d8",
- "d65062b7.3cbfd"
- ]
- ]
- },
- {
- "id": "f8673aca.705658",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1914.8892059326172,
- "y": 338.35894775390625,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "71a4120e.5d054c",
- "4a1462f9.672d7c"
- ]
- ]
- },
- {
- "id": "c832b521.3d9768",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$postResource_result`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1810.1106262207031,
- "y": 407.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "c52b0e2c.d1338",
- "e724ae4f.d3c13"
- ]
- ]
- },
- {
- "id": "c52b0e2c.d1338",
- "type": "outcome",
- "name": "NOT_FOUND",
- "xml": "<outcome value='NOT_FOUND'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1976.1111145019531,
- "y": 388.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "c7d68d2.879e37"
- ]
- ]
- },
- {
- "id": "e724ae4f.d3c13",
- "type": "outcome",
- "name": "FAILURE",
- "xml": "<outcome value='FAILURE'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1970.1112670898438,
- "y": 447.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "f34e4663.0043f8"
- ]
- ]
- },
- {
- "id": "c7d68d2.879e37",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2158.1114807128906,
- "y": 386.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "40cd2698.77b968",
- "fdb3d9d6.7fb368"
- ]
- ]
- },
- {
- "id": "f34e4663.0043f8",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2152.1114807128906,
- "y": 448.888916015625,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "88d48d7b.011a9",
- "b834e7a3.fb5ca8"
- ]
- ]
- },
- {
- "id": "b834e7a3.fb5ca8",
- "type": "execute",
- "name": "OutputMessageBuilder",
- "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&AI for '+ $vnfcName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2391.1122131347656,
- "y": 437.8889465332031,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "b735bff9.feb5e"
- ]
- ]
- },
- {
- "id": "88d48d7b.011a9",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 2374.1122131347656,
- "y": 497.888916015625,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "8cac271.4e263d8",
- "type": "execute",
- "name": "OutputMessageBuilder",
- "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&AI for '+ $vnfcName`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2063.2223358154297,
- "y": 190.88888549804688,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "d058580f.a167c8"
- ]
- ]
- },
- {
- "id": "d65062b7.3cbfd",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 2060.2223358154297,
- "y": 237.88885498046875,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "4a1462f9.672d7c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 2103.2223358154297,
- "y": 336.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "71a4120e.5d054c",
- "type": "execute",
- "name": "OutputMessageBuilder",
- "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&AI for '+ $vnfcName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2112.2223358154297,
- "y": 289.888916015625,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "b49279c1.cbf648"
- ]
- ]
- },
- {
- "id": "fdb3d9d6.7fb368",
- "type": "execute",
- "name": "OutputMessageBuilder",
- "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while updating VNF details in A&AI for : '+ $vnfcName`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2391.2220764160156,
- "y": 339.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "78ec3f34.90138"
- ]
- ]
- },
- {
- "id": "40cd2698.77b968",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 2373.2220764160156,
- "y": 385.88885498046875,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "fc170e86.4107f",
- "type": "for",
- "name": "for_each_vm",
- "xml": "<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >",
- "comments": "",
- "outputs": 1,
- "x": 408.00018310546875,
- "y": 261.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "ad2f571e.472378"
- ]
- ]
- },
- {
- "id": "c04c4a2.7a0a3b8",
- "type": "execute",
- "name": "Update_AA&I_Error",
- "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Error\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1292.0003967285156,
- "y": 520.5237102508545,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "3e9e1468.83185c",
- "3f3edb07.2f9944",
- "76cf3ef.ad105c"
- ]
- ]
- },
- {
- "id": "2b6c1bfa.73a104",
- "type": "execute",
- "name": "update_AA&I_Stopped",
- "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='postResource'>\n<parameter name=\"resourceType\" value=\"vnfc\" />\n<parameter name=\"prefix\" value=\"vnfc\" />\n<parameter name=\"resourceKey\" value='vnfc-name = $vnfcName' />\n<parameter name=\"attributeName\" value=\"orchestration-status\" />\n<parameter name=\"attributeValue\" value=\"Stopped\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1268.4282531738281,
- "y": 639.9525737762451,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "3e9e1468.83185c",
- "3f3edb07.2f9944",
- "76cf3ef.ad105c"
- ]
- ]
- },
- {
- "id": "ad2f571e.472378",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>\n",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 454.0000915527344,
- "y": 331.8888854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "e049cef5.ca3d3",
- "6103761f.d41698",
- "f1d156a7.37a158"
- ]
- ]
- },
- {
- "id": "630101.74f3df",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 963.7541046142578,
- "y": 420.9959783554077,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "2057f935.74b346",
- "523d6a77.8b8ea4",
- "b06e9efa.c9bbb"
- ]
- ]
- },
- {
- "id": "5ea187ee.d6e158",
- "type": "set",
- "name": "init_vm_failed_count",
- "xml": "<set>\n<parameter name='stopFailedVmCount' value='0' />\n",
- "comments": "",
- "x": 568.7778625488281,
- "y": 165.88888549804688,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "41b645cc.41c3fc",
- "type": "switchNode",
- "name": "switch VNFC Stop Success",
- "xml": "<switch test='`$stopFailedVmCount == 0`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 486,
- "y": 615.8890228271484,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "d6d0256a.e73ea8",
- "e60e85fa.0569a8"
- ]
- ]
- },
- {
- "id": "e60e85fa.0569a8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 756.7500305175781,
- "y": 655.6389141082764,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "8b02220e.5cbf4"
- ]
- ]
- },
- {
- "id": "d6d0256a.e73ea8",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 761.2500610351562,
- "y": 579.6388854980469,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "ed61f50.6ab0708"
- ]
- ]
- },
- {
- "id": "72ebe700.9eb218",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 1259.749755859375,
- "y": 717.5555400848389,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "370d52b3.3d830e",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n",
- "comments": "",
- "x": 1274.5188751220703,
- "y": 601.1556091308594,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "8b02220e.5cbf4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1010,
- "y": 656.1110820770264,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "72ebe700.9eb218",
- "2b6c1bfa.73a104",
- "b07b98f7.65d868"
- ]
- ]
- },
- {
- "id": "ed61f50.6ab0708",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1042.0000610351562,
- "y": 579.1110534667969,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "370d52b3.3d830e",
- "c04c4a2.7a0a3b8",
- "170bee40.e3fdf2"
- ]
- ]
- },
- {
- "id": "2057f935.74b346",
- "type": "set",
- "name": "Update Error message and Counts",
- "xml": "<set>\n<parameter name=\"stopFailedVmCount\" value=\"`$stopFailedVmCount + 1`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while stopping VM: ' + $vm[$i].url`\" />\n",
- "comments": "",
- "x": 1256.0000610351562,
- "y": 366,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "523d6a77.8b8ea4",
- "type": "record",
- "name": "Log event",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1207.2222290039062,
- "y": 413,
- "z": "b84e704e.6dc59",
- "wires": [
- []
- ]
- },
- {
- "id": "b06e9efa.c9bbb",
- "type": "execute",
- "name": "OutputMessageBuilder",
- "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1189.0896606445312,
- "y": 466.1873149871826,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "3ccb5c62.3b2bb4"
- ]
- ]
- },
- {
- "id": "e049cef5.ca3d3",
- "type": "record",
- "name": "Log message",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Attempting to stop the server : ' + $vm[$i].url`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 674.4287185668945,
- "y": 237.82540893554688,
- "z": "b84e704e.6dc59",
- "wires": [
- []
- ]
- },
- {
- "id": "6103761f.d41698",
- "type": "set",
- "name": "set stop parameters",
- "xml": "<set>\n<parameter name=\"stop-vm-url\" value=\"`$vm[$i].url`\" />\n<parameter name='stopRetryCount' value='3'/>\n",
- "comments": "",
- "x": 692.089729309082,
- "y": 299.2539978027344,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "f1d156a7.37a158",
- "type": "call",
- "name": "Stop_VM",
- "xml": "<call module='APPC' rpc='Stop_VM' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 639.089729309082,
- "y": 418.2539978027344,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "e3e85aa1.954ea8",
- "e5db30a9.cda31"
- ]
- ]
- },
- {
- "id": "e3e85aa1.954ea8",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 805.0001220703125,
- "y": 419.1111145019531,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "630101.74f3df"
- ]
- ]
- },
- {
- "id": "3ccb5c62.3b2bb4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1367.0000610351562,
- "y": 467,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "ecdcb16f.8d932"
- ]
- ]
- },
- {
- "id": "d058580f.a167c8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2559.9999237060547,
- "y": 181.9999542236328,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "ecdcb16f.8d932"
- ]
- ]
- },
- {
- "id": "b49279c1.cbf648",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2570.9999237060547,
- "y": 280.9999542236328,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "ecdcb16f.8d932"
- ]
- ]
- },
- {
- "id": "78ec3f34.90138",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2573.0001678466797,
- "y": 347.99998474121094,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "ecdcb16f.8d932"
- ]
- ]
- },
- {
- "id": "b735bff9.feb5e",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2576.0001678466797,
- "y": 434.99998474121094,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "ecdcb16f.8d932"
- ]
- ]
- },
- {
- "id": "ecdcb16f.8d932",
- "type": "execute",
- "name": "Report_Error_To_DCAE",
- "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2441.666793823242,
- "y": 916.0000457763672,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "e628d16a.c904d"
- ]
- ]
- },
- {
- "id": "e628d16a.c904d",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2512.9525604248047,
- "y": 987.4286804199219,
- "z": "b84e704e.6dc59",
- "wires": [
- []
- ]
- },
- {
- "id": "170bee40.e3fdf2",
- "type": "set",
- "name": "Set AAI update Flag",
- "xml": "<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n",
- "comments": "",
- "x": 1288.0000305175781,
- "y": 562,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "b07b98f7.65d868",
- "type": "set",
- "name": "Set AAI update Flag",
- "xml": "<set>\n<parameter name='AAIUpdateSuccessFlag' value='true' />\n",
- "comments": "",
- "x": 1265.0000305175781,
- "y": 678.9999980926514,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "e71ab49c.bd0528",
- "type": "comment",
- "name": "Reporting handled in Stop_VM",
- "info": "",
- "comments": "",
- "x": 575.5000152587891,
- "y": 461.42862701416016,
- "z": "b84e704e.6dc59",
- "wires": []
- },
- {
- "id": "e5db30a9.cda31",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 796.5000152587891,
- "y": 346.75000762939453,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "1826c546.16091b"
- ]
- ]
- },
- {
- "id": "1826c546.16091b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 958.2500152587891,
- "y": 343.7500047683716,
- "z": "b84e704e.6dc59",
- "wires": [
- [
- "2057f935.74b346"
- ]
- ]
- }
-]
+[\r
+ {\r
+ "id": "2c2b9aec.e12606",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 154.515625,\r
+ "y": 99.515625,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "d0031eb8.73f71"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d0031eb8.73f71",\r
+ "type": "service-logic",\r
+ "name": "APPC 2.0.2",\r
+ "module": "APPC",\r
+ "version": "2.0.2",\r
+ "comments": "",\r
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.2'>",\r
+ "outputs": 1,\r
+ "x": 322.5157470703125,\r
+ "y": 100.515625,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "c07b2dc4.c3d7f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c07b2dc4.c3d7f",\r
+ "type": "method",\r
+ "name": "Stop_VNFC",\r
+ "xml": "<method rpc='Stop_VNFC' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 250.51577758789062,\r
+ "y": 174.515625,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "51d2e830.a418d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "51d2e830.a418d8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 200.5157470703125,\r
+ "y": 257.51562309265137,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "d754706.d45689",\r
+ "e759d5.a6adc628",\r
+ "a6911ea1.2d434"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d754706.d45689",\r
+ "type": "for",\r
+ "name": "for_each_vm",\r
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$vmCount`\" >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 404.51580810546875,\r
+ "y": 281.4045104980469,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "7b5bb52c.64d1bc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7b5bb52c.64d1bc",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>\n",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 450.5157165527344,\r
+ "y": 351.4045104980469,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "dc2615e6.591b18",\r
+ "bb2fc7a6.92a118",\r
+ "39dbd8a.89d9528"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fce7d691.df1148",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 960.2697296142578,\r
+ "y": 440.5116033554077,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "785a10c1.ec7d4",\r
+ "2356f490.2391ec",\r
+ "ddeccbf.5b7ff38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e759d5.a6adc628",\r
+ "type": "set",\r
+ "name": "init_vm_failed_count",\r
+ "xml": "<set>\n<parameter name='stopFailedVmCount' value='0' />\n",\r
+ "comments": "",\r
+ "x": 565.2934875488281,\r
+ "y": 185.40451049804688,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a6911ea1.2d434",\r
+ "type": "switchNode",\r
+ "name": "switch VNFC Stop Success",\r
+ "xml": "<switch test='`$stopFailedVmCount == 0`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 482.515625,\r
+ "y": 635.4046478271484,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "f642949.ee8e168",\r
+ "20652ae8.7cdbf6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "20652ae8.7cdbf6",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 753.2656555175781,\r
+ "y": 675.1545391082764,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "2ddea0d.965f26"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f642949.ee8e168",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 757.7656860351562,\r
+ "y": 599.1545104980469,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "1db254ab.78318b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "663a85cf.95916c",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "xml": "<return status='success'>\n",\r
+ "comments": "",\r
+ "x": 1256.265380859375,\r
+ "y": 737.0711650848389,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8ed1de76.806e",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n",\r
+ "comments": "",\r
+ "x": 1271.0345001220703,\r
+ "y": 620.6712341308594,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2ddea0d.965f26",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1006.515625,\r
+ "y": 675.6267070770264,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "663a85cf.95916c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1db254ab.78318b",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1038.5156860351562,\r
+ "y": 598.6266784667969,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "8ed1de76.806e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "785a10c1.ec7d4",\r
+ "type": "set",\r
+ "name": "Update Error message and Counts",\r
+ "xml": "<set>\n<parameter name=\"stopFailedVmCount\" value=\"`$stopFailedVmCount + 1`\" />\n<parameter name=\"event-message\" value=\"`'Error occurred while stopping VM: ' + $vm[$i].url`\" />\n",\r
+ "comments": "",\r
+ "x": 1252.5156860351562,\r
+ "y": 385.515625,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2356f490.2391ec",\r
+ "type": "record",\r
+ "name": "Log event",\r
+ "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1203.7378540039062,\r
+ "y": 432.515625,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ddeccbf.5b7ff38",\r
+ "type": "execute",\r
+ "name": "OutputMessageBuilder",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1185.6052856445312,\r
+ "y": 485.7029399871826,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "49923180.8058"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dc2615e6.591b18",\r
+ "type": "record",\r
+ "name": "Log message",\r
+ "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Attempting to stop the server : ' + $vm[$i].url`\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 670.9443435668945,\r
+ "y": 257.3410339355469,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "bb2fc7a6.92a118",\r
+ "type": "set",\r
+ "name": "set stop parameters",\r
+ "xml": "<set>\n<parameter name=\"stop-vm-url\" value=\"`$vm[$i].url`\" />\n<parameter name='stopRetryCount' value='3'/>\n",\r
+ "comments": "",\r
+ "x": 688.605354309082,\r
+ "y": 318.7696228027344,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "39dbd8a.89d9528",\r
+ "type": "call",\r
+ "name": "Stop_VM",\r
+ "xml": "<call module='APPC' rpc='Stop_VM' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 635.605354309082,\r
+ "y": 437.7696228027344,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "107e060e.8e912a",\r
+ "69953dc9.6b52b4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "107e060e.8e912a",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 801.5157470703125,\r
+ "y": 438.6267395019531,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "fce7d691.df1148"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "49923180.8058",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1411.5156631469727,\r
+ "y": 483.51563835144043,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "75c05b4a.3558a4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "75c05b4a.3558a4",\r
+ "type": "execute",\r
+ "name": "Report_Error_To_DCAE",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1656.1824798583984,\r
+ "y": 479.5157594680786,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "84387e07.b179b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "84387e07.b179b",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1925.4685592651367,\r
+ "y": 477.9444704055786,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7205688f.5f6df8",\r
+ "type": "comment",\r
+ "name": "Reporting handled in Stop_VM",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 572.0156402587891,\r
+ "y": 480.94425201416016,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "69953dc9.6b52b4",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 793.0156402587891,\r
+ "y": 366.26563262939453,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "f524d5fa.071df8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f524d5fa.071df8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 954.7656402587891,\r
+ "y": 363.2656297683716,\r
+ "z": "be4856d9.a2a4d8",\r
+ "wires": [\r
+ [\r
+ "785a10c1.ec7d4"\r
+ ]\r
+ ]\r
+ }\r
+]
\ No newline at end of file