aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json
diff options
context:
space:
mode:
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json')
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json240
1 files changed, 240 insertions, 0 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json
new file mode 100644
index 000000000..d6064ff76
--- /dev/null
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json
@@ -0,0 +1,240 @@
+[
+ {
+ "id": "e9d1e072.fd636",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 126,
+ "y": 56.433326721191406,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "ec678412.e91ef8"
+ ]
+ ]
+ },
+ {
+ "id": "ec678412.e91ef8",
+ "type": "service-logic",
+ "name": "APPC 2.0.0",
+ "module": "APPC",
+ "version": "2.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='2.0.0'>",
+ "outputs": 1,
+ "x": 303.0000915527344,
+ "y": 56,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "54252adb.ab6fb4"
+ ]
+ ]
+ },
+ {
+ "id": "54252adb.ab6fb4",
+ "type": "method",
+ "name": "VM_Stop",
+ "xml": "<method rpc='VM_Stop' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 245.46435165405273,
+ "y": 147.8214054107666,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "5e15afe4.93d5a"
+ ]
+ ]
+ },
+ {
+ "id": "5e15afe4.93d5a",
+ "type": "execute",
+ "name": "Stop",
+ "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$AICIdentity`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 406,
+ "y": 148.93333435058594,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "df0061bb.45c2f",
+ "c924b983.5b11f8"
+ ]
+ ]
+ },
+ {
+ "id": "c924b983.5b11f8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 579.1170654296875,
+ "y": 149.8619384765625,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "837fbfb0.87776"
+ ]
+ ]
+ },
+ {
+ "id": "837fbfb0.87776",
+ "type": "switchNode",
+ "name": "switch STATUS",
+ "xml": "<switch test='`$STOP_STATUS`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 761.9102783203125,
+ "y": 149.41738891601562,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "635b02f3.e20a7c",
+ "7a07bcbd.8869d4"
+ ]
+ ]
+ },
+ {
+ "id": "df0061bb.45c2f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 586.9047241210938,
+ "y": 332.50494384765625,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "ab61e967.60ab08"
+ ]
+ ]
+ },
+ {
+ "id": "ccbdc0a1.c9b6b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1312,
+ "y": 399.183349609375,
+ "z": "eee34efd.4b429",
+ "wires": []
+ },
+ {
+ "id": "635b02f3.e20a7c",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 955.5,
+ "y": 123.9333267211914,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "91f7e1f.503b22",
+ "dfaa331c.bcb22"
+ ]
+ ]
+ },
+ {
+ "id": "7a07bcbd.8869d4",
+ "type": "other",
+ "name": "ERROR",
+ "xml": "<outcome value='ERROR'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951.5713500976562,
+ "y": 198.43336486816406,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "bdc692af.6a12d"
+ ]
+ ]
+ },
+ {
+ "id": "91f7e1f.503b22",
+ "type": "set",
+ "name": "set success code and message",
+ "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",
+ "comments": "",
+ "x": 1191,
+ "y": 124,
+ "z": "eee34efd.4b429",
+ "wires": []
+ },
+ {
+ "id": "dfaa331c.bcb22",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 1144,
+ "y": 173,
+ "z": "eee34efd.4b429",
+ "wires": []
+ },
+ {
+ "id": "bdc692af.6a12d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1107,
+ "y": 231,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "fba86d29.7638a",
+ "ccbdc0a1.c9b6b"
+ ]
+ ]
+ },
+ {
+ "id": "ab61e967.60ab08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 762,
+ "y": 332,
+ "z": "eee34efd.4b429",
+ "wires": [
+ [
+ "37674e3c.40ea42",
+ "ccbdc0a1.c9b6b"
+ ]
+ ]
+ },
+ {
+ "id": "fba86d29.7638a",
+ "type": "set",
+ "name": "set error code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n",
+ "comments": "",
+ "x": 1342,
+ "y": 232,
+ "z": "eee34efd.4b429",
+ "wires": []
+ },
+ {
+ "id": "37674e3c.40ea42",
+ "type": "set",
+ "name": "set error code and message",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n",
+ "comments": "",
+ "x": 1053,
+ "y": 300,
+ "z": "eee34efd.4b429",
+ "wires": []
+ }
+] \ No newline at end of file