Deployment onap rename
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / APPC / APPC_VM_Stop.json
1 [
2     {
3         "id": "a36507bd.9411a8",
4         "name": "DGSTART",
5         "outputs": 1,
6         "type": "dgstart",
7         "wires": [
8             [
9                 "c156b4fa.66d0a8"
10             ]
11         ],
12         "x": 129,
13         "y": 66,
14         "z": "602aa70d.a192e8"
15     },
16     {
17         "comments": "",
18         "id": "c156b4fa.66d0a8",
19         "module": "APPC",
20         "name": "APPC 2.0.0",
21         "outputs": 1,
22         "type": "service-logic",
23         "version": "2.0.0",
24         "wires": [
25             [
26                 "6c3d7cf.b631784"
27             ]
28         ],
29         "x": 306.0000915527344,
30         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>",
31         "y": 65.5666732788086,
32         "z": "602aa70d.a192e8"
33     },
34     {
35         "comments": "",
36         "id": "6c3d7cf.b631784",
37         "name": "VM_Stop",
38         "outputs": 1,
39         "type": "method",
40         "wires": [
41             [
42                 "8896d091.49bc2"
43             ]
44         ],
45         "x": 248.46435165405273,
46         "xml": "<method rpc='VM_Stop' mode='sync'>\n",
47         "y": 157.3880786895752,
48         "z": "602aa70d.a192e8"
49     },
50     {
51         "comments": "",
52         "id": "8896d091.49bc2",
53         "name": "Stop",
54         "outputs": 1,
55         "type": "execute",
56         "wires": [
57             [
58                 "985b942b.ec64e8",
59                 "34939973.cf1fd6"
60             ]
61         ],
62         "x": 409,
63         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n",
64         "y": 158.50000762939453,
65         "z": "602aa70d.a192e8"
66     },
67     {
68         "comments": "",
69         "id": "34939973.cf1fd6",
70         "name": "success",
71         "outputs": 1,
72         "type": "success",
73         "wires": [
74             [
75                 "f35d3b53.86e768"
76             ]
77         ],
78         "x": 582.1170654296875,
79         "xml": "<outcome value='success'>\n",
80         "y": 159.4286117553711,
81         "z": "602aa70d.a192e8"
82     },
83     {
84         "comments": "",
85         "id": "f35d3b53.86e768",
86         "name": "switch STATUS",
87         "outputs": 1,
88         "type": "switchNode",
89         "wires": [
90             [
91                 "885dbd51.87507",
92                 "10f2aa34.ea80d6"
93             ]
94         ],
95         "x": 764.9102783203125,
96         "xml": "<switch test='`$STOP_STATUS`'>\n",
97         "y": 158.98406219482422,
98         "z": "602aa70d.a192e8"
99     },
100     {
101         "comments": "",
102         "id": "985b942b.ec64e8",
103         "name": "failure",
104         "outputs": 1,
105         "type": "failure",
106         "wires": [
107             [
108                 "28dfcdd7.ba3e32"
109             ]
110         ],
111         "x": 589.9047241210938,
112         "xml": "<outcome value='failure'>\n",
113         "y": 342.07161712646484,
114         "z": "602aa70d.a192e8"
115     },
116     {
117         "comments": "",
118         "id": "9d1c57f6.77ce08",
119         "name": "return failure",
120         "type": "returnFailure",
121         "wires": [],
122         "x": 1315,
123         "xml": "<return status='failure'>\n",
124         "y": 408.7500228881836,
125         "z": "602aa70d.a192e8"
126     },
127     {
128         "comments": "",
129         "id": "885dbd51.87507",
130         "name": "SUCCESS",
131         "outputs": 1,
132         "type": "success",
133         "wires": [
134             [
135                 "8b1c6f1d.bf4c"
136             ]
137         ],
138         "x": 958.5,
139         "xml": "<outcome value='SUCCESS'>\n",
140         "y": 133.5,
141         "z": "602aa70d.a192e8"
142     },
143     {
144         "comments": "",
145         "id": "10f2aa34.ea80d6",
146         "name": "ERROR",
147         "outputs": 1,
148         "type": "other",
149         "wires": [
150             [
151                 "149167fb.227158"
152             ]
153         ],
154         "x": 947.5713500976562,
155         "xml": "<outcome value='ERROR'>\n",
156         "y": 205.0000457763672,
157         "z": "602aa70d.a192e8"
158     },
159     {
160         "comments": "",
161         "id": "ec5b4ab9.b62488",
162         "name": "set success code and message",
163         "type": "set",
164         "wires": [],
165         "x": 1361,
166         "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",
167         "y": 109.5666732788086,
168         "z": "602aa70d.a192e8"
169     },
170     {
171         "comments": "",
172         "id": "fdfee58d.d86908",
173         "name": "return success",
174         "type": "returnSuccess",
175         "wires": [],
176         "x": 1316,
177         "xml": "<return status='success'>\n",
178         "y": 173.56666564941406,
179         "z": "602aa70d.a192e8"
180     },
181     {
182         "atomic": "true",
183         "comments": "",
184         "id": "149167fb.227158",
185         "name": "block : atomic",
186         "outputs": 1,
187         "type": "block",
188         "wires": [
189             [
190                 "32f7f639.b0517a",
191                 "9d1c57f6.77ce08"
192             ]
193         ],
194         "x": 1119,
195         "xml": "<block atomic='true'>",
196         "y": 214.56666564941406,
197         "z": "602aa70d.a192e8"
198     },
199     {
200         "atomic": "true",
201         "comments": "",
202         "id": "28dfcdd7.ba3e32",
203         "name": "block : atomic",
204         "outputs": 1,
205         "type": "block",
206         "wires": [
207             [
208                 "dcf150a2.8fa62",
209                 "9d1c57f6.77ce08"
210             ]
211         ],
212         "x": 765,
213         "xml": "<block atomic='true'>",
214         "y": 341.5666732788086,
215         "z": "602aa70d.a192e8"
216     },
217     {
218         "comments": "",
219         "id": "32f7f639.b0517a",
220         "name": "set error code and message",
221         "type": "set",
222         "wires": [],
223         "x": 1345,
224         "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n",
225         "y": 241.5666732788086,
226         "z": "602aa70d.a192e8"
227     },
228     {
229         "comments": "",
230         "id": "dcf150a2.8fa62",
231         "name": "set error code and message",
232         "type": "set",
233         "wires": [],
234         "x": 1056,
235         "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n",
236         "y": 309.5666732788086,
237         "z": "602aa70d.a192e8"
238     },
239     {
240         "atomic": "false",
241         "comments": "",
242         "id": "8b1c6f1d.bf4c",
243         "name": "block : atomic",
244         "outputs": 1,
245         "type": "block",
246         "wires": [
247             [
248                 "ec5b4ab9.b62488",
249                 "fdfee58d.d86908"
250             ]
251         ],
252         "x": 1120,
253         "xml": "<block atomic='true'>\n",
254         "y": 142,
255         "z": "602aa70d.a192e8"
256     }
257 ]