Deployment onap rename
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / APPC / APPC_VM_Start.json
1 [
2     {
3         "id": "4c12a5c8.90ab7c",
4         "name": "DGSTART",
5         "outputs": 1,
6         "type": "dgstart",
7         "wires": [
8             [
9                 "3f8e186b.788b58"
10             ]
11         ],
12         "x": 179,
13         "y": 322,
14         "z": "3b333f3b.e62d"
15     },
16     {
17         "comments": "",
18         "id": "3f8e186b.788b58",
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                 "e2b2f3.05197d1"
27             ]
28         ],
29         "x": 362.0001220703125,
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": 322.5666809082031,
32         "z": "3b333f3b.e62d"
33     },
34     {
35         "comments": "",
36         "id": "e2b2f3.05197d1",
37         "name": "VM_Start",
38         "outputs": 1,
39         "type": "method",
40         "wires": [
41             [
42                 "9c797c4b.fc3f8"
43             ]
44         ],
45         "x": 311.75006103515625,
46         "xml": "<method rpc='VM_Start' mode='sync'>\n",
47         "y": 406.816650390625,
48         "z": "3b333f3b.e62d"
49     },
50     {
51         "comments": "",
52         "id": "9c797c4b.fc3f8",
53         "name": "Start",
54         "outputs": 1,
55         "type": "execute",
56         "wires": [
57             [
58                 "8ec37e81.db48b",
59                 "6a2f0d5b.f084e4"
60             ]
61         ],
62         "x": 496,
63         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='startServer'>\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`\" />",
64         "y": 406,
65         "z": "3b333f3b.e62d"
66     },
67     {
68         "comments": "",
69         "id": "6a2f0d5b.f084e4",
70         "name": "success",
71         "outputs": 1,
72         "type": "success",
73         "wires": [
74             [
75                 "51fd4bef.090064"
76             ]
77         ],
78         "x": 675.9735107421875,
79         "xml": "<outcome value='success'>\n",
80         "y": 407.2143859863281,
81         "z": "3b333f3b.e62d"
82     },
83     {
84         "comments": "",
85         "id": "8ec37e81.db48b",
86         "name": "failure",
87         "outputs": 1,
88         "type": "failure",
89         "wires": [
90             [
91                 "8ccb55ea.a7c328"
92             ]
93         ],
94         "x": 670.6187744140625,
95         "xml": "<outcome value='failure'>\n",
96         "y": 633.14306640625,
97         "z": "3b333f3b.e62d"
98     },
99     {
100         "comments": "",
101         "id": "51fd4bef.090064",
102         "name": "STATUS",
103         "outputs": 1,
104         "type": "switchNode",
105         "wires": [
106             [
107                 "8e71a1ab.2673b",
108                 "9153a9b0.79c868"
109             ]
110         ],
111         "x": 823,
112         "xml": "<switch test='`$START_STATUS`'>\n",
113         "y": 407.0000305175781,
114         "z": "3b333f3b.e62d"
115     },
116     {
117         "comments": "",
118         "id": "8e71a1ab.2673b",
119         "name": "SUCCESS",
120         "outputs": 1,
121         "type": "other",
122         "wires": [
123             [
124                 "218c4c31.746404"
125             ]
126         ],
127         "x": 997.7144775390625,
128         "xml": "<outcome value='SUCCESS'>\n",
129         "y": 405.4286193847656,
130         "z": "3b333f3b.e62d"
131     },
132     {
133         "comments": "",
134         "id": "9153a9b0.79c868",
135         "name": "ERROR",
136         "outputs": 1,
137         "type": "other",
138         "wires": [
139             [
140                 "d6c921e6.f062f"
141             ]
142         ],
143         "x": 998.28564453125,
144         "xml": "<outcome value='ERROR'>\n",
145         "y": 474.71435546875,
146         "z": "3b333f3b.e62d"
147     },
148     {
149         "comments": "",
150         "id": "91055b26.4540f8",
151         "name": "return success",
152         "type": "returnSuccess",
153         "wires": [],
154         "x": 1355.6666259765625,
155         "xml": "<return status='success'>",
156         "y": 452,
157         "z": "3b333f3b.e62d"
158     },
159     {
160         "comments": "",
161         "id": "be1d8c86.5510c",
162         "name": "return failure",
163         "type": "returnFailure",
164         "wires": [],
165         "x": 1364.8734130859375,
166         "xml": "<return status='failure'>\n",
167         "y": 680.4286499023438,
168         "z": "3b333f3b.e62d"
169     },
170     {
171         "comments": "",
172         "id": "55a5d83c.b56328",
173         "name": "set success code and message",
174         "type": "set",
175         "wires": [],
176         "x": 1404,
177         "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",
178         "y": 408,
179         "z": "3b333f3b.e62d"
180     },
181     {
182         "comments": "",
183         "id": "11e66810.229818",
184         "name": "set error code and message",
185         "type": "set",
186         "wires": [],
187         "x": 1117,
188         "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM failed' />\n",
189         "y": 602,
190         "z": "3b333f3b.e62d"
191     },
192     {
193         "comments": "",
194         "id": "18420693.2d9f89",
195         "name": "set error code and message",
196         "type": "set",
197         "wires": [],
198         "x": 1398,
199         "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM status is error' />\n",
200         "y": 507,
201         "z": "3b333f3b.e62d"
202     },
203     {
204         "atomic": "true",
205         "comments": "",
206         "id": "218c4c31.746404",
207         "name": "block : atomic",
208         "outputs": 1,
209         "type": "block",
210         "wires": [
211             [
212                 "55a5d83c.b56328",
213                 "91055b26.4540f8"
214             ]
215         ],
216         "x": 1161,
217         "xml": "<block atomic='true'>",
218         "y": 407,
219         "z": "3b333f3b.e62d"
220     },
221     {
222         "atomic": "true",
223         "comments": "",
224         "id": "d6c921e6.f062f",
225         "name": "block : atomic",
226         "outputs": 1,
227         "type": "block",
228         "wires": [
229             [
230                 "18420693.2d9f89",
231                 "be1d8c86.5510c"
232             ]
233         ],
234         "x": 1154,
235         "xml": "<block atomic='true'>",
236         "y": 475,
237         "z": "3b333f3b.e62d"
238     },
239     {
240         "atomic": "true",
241         "comments": "",
242         "id": "8ccb55ea.a7c328",
243         "name": "block : atomic",
244         "outputs": 1,
245         "type": "block",
246         "wires": [
247             [
248                 "11e66810.229818",
249                 "be1d8c86.5510c"
250             ]
251         ],
252         "x": 873,
253         "xml": "<block atomic='true'>",
254         "y": 639,
255         "z": "3b333f3b.e62d"
256     }
257 ]