0ddff5b4ae6e96295a4d3f2cf89c9efcfa306291
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / Dispatcher-DG / APPC_Start_VM.json
1 [
2   {
3     "id": "d52f4308.555fb",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 96.99993896484375,
8     "y": 54,
9     "z": "1cdd4efa.2a36b1",
10     "wires": [
11       [
12         "763cad7e.1450b4"
13       ]
14     ]
15   },
16   {
17     "id": "763cad7e.1450b4",
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": 141.99993896484375,
26     "y": 137,
27     "z": "1cdd4efa.2a36b1",
28     "wires": [
29       [
30         "812b1c37.4885c"
31       ]
32     ]
33   },
34   {
35     "id": "812b1c37.4885c",
36     "type": "method",
37     "name": "Start VM",
38     "xml": "<method rpc='Start_VM' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 301.99993896484375,
42     "y": 137,
43     "z": "1cdd4efa.2a36b1",
44     "wires": [
45       [
46         "c47aa6c9.8c9378"
47       ]
48     ]
49   },
50   {
51     "id": "280842c.c99e1be",
52     "type": "call",
53     "name": "Start Application ",
54     "xml": "<call module='`$ApplicationStart.dg_module`' rpc='`$ApplicationStart.dg_name`' version='`$ApplicationStart.dg_version`' mode='sync'  >\n",
55     "comments": "",
56     "outputs": 1,
57     "x": 766.9999771118164,
58     "y": 336.0000305175781,
59     "z": "1cdd4efa.2a36b1",
60     "wires": [
61       [
62         "144156f7.572b29",
63         "7eab80e5.2adb3",
64         "70e14c1f.8e34e4"
65       ]
66     ]
67   },
68   {
69     "id": "144156f7.572b29",
70     "type": "success",
71     "name": "success",
72     "xml": "<outcome value='success'>\n",
73     "comments": "",
74     "outputs": 1,
75     "x": 998.9999771118164,
76     "y": 266.9998779296875,
77     "z": "1cdd4efa.2a36b1",
78     "wires": [
79       [
80         "96fd3f86.877cb"
81       ]
82     ]
83   },
84   {
85     "id": "7eab80e5.2adb3",
86     "type": "failure",
87     "name": "failure",
88     "xml": "<outcome value='failure'>\n",
89     "comments": "",
90     "outputs": 1,
91     "x": 996.9999771118164,
92     "y": 407.9999694824219,
93     "z": "1cdd4efa.2a36b1",
94     "wires": [
95       [
96         "deb77571.89feb8"
97       ]
98     ]
99   },
100   {
101     "id": "db549b18.455358",
102     "type": "returnSuccess",
103     "name": "return success",
104     "xml": "<return status='success'>\n",
105     "comments": "",
106     "x": 1378.0005493164062,
107     "y": 262.9998779296875,
108     "z": "1cdd4efa.2a36b1",
109     "wires": []
110   },
111   {
112     "id": "c47aa6c9.8c9378",
113     "type": "execute",
114     "name": "Resolve Application Start DG",
115     "xml": "<execute plugin='org.onap.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Start_Application\" />\n<parameter name=\"api-ver\" value=\"2.0.0\" />\n<parameter name=\"prefix\" value=\"ApplicationStart\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n",
116     "comments": "",
117     "outputs": 1,
118     "x": 349,
119     "y": 238,
120     "z": "1cdd4efa.2a36b1",
121     "wires": [
122       [
123         "ba0ce95d.a32d48",
124         "cc32ed95.f1246"
125       ]
126     ]
127   },
128   {
129     "id": "ba0ce95d.a32d48",
130     "type": "failure",
131     "name": "failure",
132     "xml": "<outcome value='failure'>\n",
133     "comments": "",
134     "outputs": 1,
135     "x": 604,
136     "y": 143,
137     "z": "1cdd4efa.2a36b1",
138     "wires": [
139       [
140         "c89af7a5.6217e8"
141       ]
142     ]
143   },
144   {
145     "id": "cc32ed95.f1246",
146     "type": "success",
147     "name": "success",
148     "xml": "<outcome value='success'>\n",
149     "comments": "",
150     "outputs": 1,
151     "x": 598.9999771118164,
152     "y": 336.0000305175781,
153     "z": "1cdd4efa.2a36b1",
154     "wires": [
155       [
156         "280842c.c99e1be"
157       ]
158     ]
159   },
160   {
161     "id": "c89af7a5.6217e8",
162     "type": "block",
163     "name": "block : atomic",
164     "xml": "<block atomic='true'>",
165     "atomic": "true",
166     "comments": "",
167     "outputs": 1,
168     "x": 770.0000610351562,
169     "y": 142,
170     "z": "1cdd4efa.2a36b1",
171     "wires": [
172       [
173         "e4e7b04c.adb7d",
174         "d2671f6c.53d78",
175         "735a4bd9.4bb604"
176       ]
177     ]
178   },
179   {
180     "id": "e4e7b04c.adb7d",
181     "type": "record",
182     "name": "Log message",
183     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
184     "comments": "",
185     "outputs": 1,
186     "x": 992,
187     "y": 143,
188     "z": "1cdd4efa.2a36b1",
189     "wires": [
190       []
191     ]
192   },
193   {
194     "id": "735a4bd9.4bb604",
195     "type": "set",
196     "name": "Set failure code and message",
197     "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Failed to resolve Application start DG for : ' + $vnfcType`\"/>\n",
198     "comments": "",
199     "x": 1037,
200     "y": 98.88888549804688,
201     "z": "1cdd4efa.2a36b1",
202     "wires": []
203   },
204   {
205     "id": "d2671f6c.53d78",
206     "type": "returnFailure",
207     "name": "return failure",
208     "xml": "<return status='failure'>\n",
209     "comments": "",
210     "x": 989.9998779296875,
211     "y": 186.00006103515625,
212     "z": "1cdd4efa.2a36b1",
213     "wires": []
214   },
215   {
216     "id": "70e14c1f.8e34e4",
217     "type": "not-found",
218     "name": "not-found",
219     "xml": "<outcome value='not-found'>\n",
220     "comments": "",
221     "outputs": 1,
222     "x": 996.5555191040039,
223     "y": 335.8888854980469,
224     "z": "1cdd4efa.2a36b1",
225     "wires": [
226       [
227         "bbaacbc9.6e42a8"
228       ]
229     ]
230   },
231   {
232     "id": "bbaacbc9.6e42a8",
233     "type": "block",
234     "name": "block : atomic",
235     "xml": "<block atomic='true'>",
236     "atomic": "true",
237     "comments": "",
238     "outputs": 1,
239     "x": 1172.222267150879,
240     "y": 336.8888854980469,
241     "z": "1cdd4efa.2a36b1",
242     "wires": [
243       [
244         "2620f33d.ba7aac",
245         "d98a42e2.78acd",
246         "87259f65.26a31"
247       ]
248     ]
249   },
250   {
251     "id": "2620f33d.ba7aac",
252     "type": "set",
253     "name": "Set failure code and message",
254     "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Application Start DG not found for : ' + $vnfcType`\" />\n",
255     "comments": "",
256     "x": 1426.5555419921875,
257     "y": 316.77777099609375,
258     "z": "1cdd4efa.2a36b1",
259     "wires": []
260   },
261   {
262     "id": "d98a42e2.78acd",
263     "type": "record",
264     "name": "Log message",
265     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
266     "comments": "",
267     "outputs": 1,
268     "x": 1381.5554809570312,
269     "y": 362.8888854980469,
270     "z": "1cdd4efa.2a36b1",
271     "wires": [
272       []
273     ]
274   },
275   {
276     "id": "87259f65.26a31",
277     "type": "returnFailure",
278     "name": "return failure",
279     "xml": "<return status='failure'>\n",
280     "comments": "",
281     "x": 1379.555519104004,
282     "y": 408.8888854980469,
283     "z": "1cdd4efa.2a36b1",
284     "wires": []
285   },
286   {
287     "id": "deb77571.89feb8",
288     "type": "block",
289     "name": "block : atomic",
290     "xml": "<block atomic='true'>",
291     "atomic": "true",
292     "comments": "",
293     "outputs": 1,
294     "x": 1155.555549621582,
295     "y": 407.8888854980469,
296     "z": "1cdd4efa.2a36b1",
297     "wires": [
298       [
299         "d98a42e2.78acd",
300         "87259f65.26a31"
301       ]
302     ]
303   },
304   {
305     "id": "96fd3f86.877cb",
306     "type": "block",
307     "name": "block : atomic",
308     "xml": "<block atomic='true'>",
309     "atomic": "true",
310     "comments": "",
311     "outputs": 1,
312     "x": 1172.9999389648438,
313     "y": 264,
314     "z": "1cdd4efa.2a36b1",
315     "wires": [
316       [
317         "db549b18.455358",
318         "ba9d1c0b.3d282"
319       ]
320     ]
321   },
322   {
323     "id": "ba9d1c0b.3d282",
324     "type": "set",
325     "name": "Set success code and message",
326     "xml": "<set>\n<parameter name='error-code' value=\"400\"/>\n<parameter name='error-message' value=\"Success\" />\n",
327     "comments": "",
328     "x": 1430.9999389648438,
329     "y": 218,
330     "z": "1cdd4efa.2a36b1",
331     "wires": []
332   }
333 ]