Add APPC VM_Start(2.0.0) and VM_Stop(2.0.0) DGs
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_VM_Stop.json
1 [
2   {
3     "id": "e9d1e072.fd636",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 126,
8     "y": 56.433326721191406,
9     "z": "eee34efd.4b429",
10     "wires": [
11       [
12         "ec678412.e91ef8"
13       ]
14     ]
15   },
16   {
17     "id": "ec678412.e91ef8",
18     "type": "service-logic",
19     "name": "APPC 2.0.0",
20     "module": "APPC",
21     "version": "2.0.0",
22     "comments": "",
23     "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'>",
24     "outputs": 1,
25     "x": 303.0000915527344,
26     "y": 56,
27     "z": "eee34efd.4b429",
28     "wires": [
29       [
30         "54252adb.ab6fb4"
31       ]
32     ]
33   },
34   {
35     "id": "54252adb.ab6fb4",
36     "type": "method",
37     "name": "VM_Stop",
38     "xml": "<method rpc='VM_Stop' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 245.46435165405273,
42     "y": 147.8214054107666,
43     "z": "eee34efd.4b429",
44     "wires": [
45       [
46         "5e15afe4.93d5a"
47       ]
48     ]
49   },
50   {
51     "id": "5e15afe4.93d5a",
52     "type": "execute",
53     "name": "Stop",
54     "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",
55     "comments": "",
56     "outputs": 1,
57     "x": 406,
58     "y": 148.93333435058594,
59     "z": "eee34efd.4b429",
60     "wires": [
61       [
62         "df0061bb.45c2f",
63         "c924b983.5b11f8"
64       ]
65     ]
66   },
67   {
68     "id": "c924b983.5b11f8",
69     "type": "success",
70     "name": "success",
71     "xml": "<outcome value='success'>\n",
72     "comments": "",
73     "outputs": 1,
74     "x": 579.1170654296875,
75     "y": 149.8619384765625,
76     "z": "eee34efd.4b429",
77     "wires": [
78       [
79         "837fbfb0.87776"
80       ]
81     ]
82   },
83   {
84     "id": "837fbfb0.87776",
85     "type": "switchNode",
86     "name": "switch STATUS",
87     "xml": "<switch test='`$STOP_STATUS`'>\n",
88     "comments": "",
89     "outputs": 1,
90     "x": 761.9102783203125,
91     "y": 149.41738891601562,
92     "z": "eee34efd.4b429",
93     "wires": [
94       [
95         "635b02f3.e20a7c",
96         "7a07bcbd.8869d4"
97       ]
98     ]
99   },
100   {
101     "id": "df0061bb.45c2f",
102     "type": "failure",
103     "name": "failure",
104     "xml": "<outcome value='failure'>\n",
105     "comments": "",
106     "outputs": 1,
107     "x": 586.9047241210938,
108     "y": 332.50494384765625,
109     "z": "eee34efd.4b429",
110     "wires": [
111       [
112         "ab61e967.60ab08"
113       ]
114     ]
115   },
116   {
117     "id": "ccbdc0a1.c9b6b",
118     "type": "returnFailure",
119     "name": "return failure",
120     "xml": "<return status='failure'>\n",
121     "comments": "",
122     "x": 1312,
123     "y": 399.183349609375,
124     "z": "eee34efd.4b429",
125     "wires": []
126   },
127   {
128     "id": "635b02f3.e20a7c",
129     "type": "success",
130     "name": "SUCCESS",
131     "xml": "<outcome value='SUCCESS'>\n",
132     "comments": "",
133     "outputs": 1,
134     "x": 955.5,
135     "y": 123.9333267211914,
136     "z": "eee34efd.4b429",
137     "wires": [
138       [
139         "91f7e1f.503b22",
140         "dfaa331c.bcb22"
141       ]
142     ]
143   },
144   {
145     "id": "7a07bcbd.8869d4",
146     "type": "other",
147     "name": "ERROR",
148     "xml": "<outcome value='ERROR'>\n",
149     "comments": "",
150     "outputs": 1,
151     "x": 951.5713500976562,
152     "y": 198.43336486816406,
153     "z": "eee34efd.4b429",
154     "wires": [
155       [
156         "bdc692af.6a12d"
157       ]
158     ]
159   },
160   {
161     "id": "91f7e1f.503b22",
162     "type": "set",
163     "name": "set success code and message",
164     "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",
165     "comments": "",
166     "x": 1191,
167     "y": 124,
168     "z": "eee34efd.4b429",
169     "wires": []
170   },
171   {
172     "id": "dfaa331c.bcb22",
173     "type": "returnSuccess",
174     "name": "return success",
175     "xml": "<return status='success'>\n",
176     "comments": "",
177     "x": 1144,
178     "y": 173,
179     "z": "eee34efd.4b429",
180     "wires": []
181   },
182   {
183     "id": "bdc692af.6a12d",
184     "type": "block",
185     "name": "block : atomic",
186     "xml": "<block atomic='true'>",
187     "atomic": "true",
188     "comments": "",
189     "outputs": 1,
190     "x": 1107,
191     "y": 231,
192     "z": "eee34efd.4b429",
193     "wires": [
194       [
195         "fba86d29.7638a",
196         "ccbdc0a1.c9b6b"
197       ]
198     ]
199   },
200   {
201     "id": "ab61e967.60ab08",
202     "type": "block",
203     "name": "block : atomic",
204     "xml": "<block atomic='true'>",
205     "atomic": "true",
206     "comments": "",
207     "outputs": 1,
208     "x": 762,
209     "y": 332,
210     "z": "eee34efd.4b429",
211     "wires": [
212       [
213         "37674e3c.40ea42",
214         "ccbdc0a1.c9b6b"
215       ]
216     ]
217   },
218   {
219     "id": "fba86d29.7638a",
220     "type": "set",
221     "name": "set error code and message",
222     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n",
223     "comments": "",
224     "x": 1342,
225     "y": 232,
226     "z": "eee34efd.4b429",
227     "wires": []
228   },
229   {
230     "id": "37674e3c.40ea42",
231     "type": "set",
232     "name": "set error code and message",
233     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n",
234     "comments": "",
235     "x": 1053,
236     "y": 300,
237     "z": "eee34efd.4b429",
238     "wires": []
239   }
240 ]