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