872ee1be0711f7e2868c2411a072a0a61361acae
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / Dispatcher-DG / APPC_Stop_VM_2.0.0.json
1 [
2   {
3     "id": "4a37fdf2.6a2504",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 114,
8     "y": 144,
9     "z": "bff4e0f.991972",
10     "wires": [
11       [
12         "24ca19d3.fe69f6"
13       ]
14     ]
15   },
16   {
17     "id": "24ca19d3.fe69f6",
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": 261,
26     "y": 144,
27     "z": "bff4e0f.991972",
28     "wires": [
29       [
30         "68e5e092.be1d4"
31       ]
32     ]
33   },
34   {
35     "id": "68e5e092.be1d4",
36     "type": "method",
37     "name": "Stop_VM",
38     "xml": "<method rpc='Stop_VM' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 413.5,
42     "y": 144,
43     "z": "bff4e0f.991972",
44     "wires": [
45       [
46         "79ce376b.14ba38"
47       ]
48     ]
49   },
50   {
51     "id": "546085a8.48136c",
52     "type": "execute",
53     "name": "Resolve Stop Application DG",
54     "xml": "<execute plugin='org.onap.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$i].vnfcType`' /> \n<parameter name=\"action\" value=\"Stop_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value='StopApplication' />",
55     "comments": "",
56     "outputs": 1,
57     "x": 315.5,
58     "y": 364,
59     "z": "bff4e0f.991972",
60     "wires": [
61       [
62         "af254db7.09d53",
63         "27344cac.0eda34"
64       ]
65     ]
66   },
67   {
68     "id": "af254db7.09d53",
69     "type": "failure",
70     "name": "failure",
71     "xml": "<outcome value='failure'>\n",
72     "comments": "",
73     "outputs": 1,
74     "x": 546,
75     "y": 444,
76     "z": "bff4e0f.991972",
77     "wires": [
78       [
79         "b3421a0a.ab34d8"
80       ]
81     ]
82   },
83   {
84     "id": "4a4711ec.83e88",
85     "type": "call",
86     "name": "Call Stop Application DG",
87     "xml": "<call module='`$StopApplication.dg_module`' rpc='`$StopApplication.dg_name`' mode='sync' >\n",
88     "comments": "",
89     "outputs": 1,
90     "x": 742,
91     "y": 364,
92     "z": "bff4e0f.991972",
93     "wires": [
94       [
95         "5b84fc8a.59ac94",
96         "c108322b.df0e7",
97         "3efda8ab.632bf8"
98       ]
99     ]
100   },
101   {
102     "id": "5b84fc8a.59ac94",
103     "type": "success",
104     "name": "success",
105     "xml": "<outcome value='success'>\n",
106     "comments": "",
107     "outputs": 1,
108     "x": 990,
109     "y": 364,
110     "z": "bff4e0f.991972",
111     "wires": [
112       [
113         "3c46d78d.4277c8"
114       ]
115     ]
116   },
117   {
118     "id": "7892211.d99b2e",
119     "type": "block",
120     "name": "block",
121     "xml": "<block>\n",
122     "atomic": "false",
123     "comments": "",
124     "outputs": 1,
125     "x": 1146,
126     "y": 244,
127     "z": "bff4e0f.991972",
128     "wires": [
129       [
130         "b3421a0a.ab34d8",
131         "2013c4a3.b2f33c",
132         "f600a7ce.f7f418"
133       ]
134     ]
135   },
136   {
137     "id": "b3421a0a.ab34d8",
138     "type": "call",
139     "name": "Call StopVM_VM",
140     "xml": "<call module='APPC' rpc='StopVM_VM' mode='sync' >\n",
141     "comments": "",
142     "outputs": 1,
143     "x": 1398,
144     "y": 444,
145     "z": "bff4e0f.991972",
146     "wires": [
147       [
148         "823575c7.9529b8",
149         "403b9a.8f504468",
150         "ff7db04.0cfe85"
151       ]
152     ]
153   },
154   {
155     "id": "823575c7.9529b8",
156     "type": "failure",
157     "name": "failure",
158     "xml": "<outcome value='failure'>\n",
159     "comments": "",
160     "outputs": 1,
161     "x": 1646,
162     "y": 304,
163     "z": "bff4e0f.991972",
164     "wires": [
165       [
166         "f628fc33.96856"
167       ]
168     ]
169   },
170   {
171     "id": "403b9a.8f504468",
172     "type": "success",
173     "name": "success",
174     "xml": "<outcome value='success'>\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 1650,
178     "y": 444,
179     "z": "bff4e0f.991972",
180     "wires": [
181       [
182         "ea7f288e.c58648"
183       ]
184     ]
185   },
186   {
187     "id": "27344cac.0eda34",
188     "type": "other",
189     "name": "success",
190     "xml": "<outcome value='success'>\n",
191     "comments": "",
192     "outputs": 1,
193     "x": 546,
194     "y": 364,
195     "z": "bff4e0f.991972",
196     "wires": [
197       [
198         "4a4711ec.83e88"
199       ]
200     ]
201   },
202   {
203     "id": "c108322b.df0e7",
204     "type": "other",
205     "name": "failure",
206     "xml": "<outcome value='failure'>\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 986,
210     "y": 244,
211     "z": "bff4e0f.991972",
212     "wires": [
213       [
214         "7892211.d99b2e"
215       ]
216     ]
217   },
218   {
219     "id": "3efda8ab.632bf8",
220     "type": "not-found",
221     "name": "not-found",
222     "xml": "<outcome value='not-found'>\n",
223     "comments": "",
224     "outputs": 1,
225     "x": 995,
226     "y": 144,
227     "z": "bff4e0f.991972",
228     "wires": [
229       [
230         "191e02b6.f79f4d"
231       ]
232     ]
233   },
234   {
235     "id": "191e02b6.f79f4d",
236     "type": "block",
237     "name": "block",
238     "xml": "<block>\n",
239     "atomic": "false",
240     "comments": "",
241     "outputs": 1,
242     "x": 1806,
243     "y": 144,
244     "z": "bff4e0f.991972",
245     "wires": [
246       [
247         "8812042b.ba9358",
248         "f628fc33.96856"
249       ]
250     ]
251   },
252   {
253     "id": "8812042b.ba9358",
254     "type": "set",
255     "name": "Set event message",
256     "xml": "<set>\n<parameter name='event-message' value=\"`'Cannot find DG: ' + $StopApplication.dg_module + ' ' + $StopApplication.dg_name`\"/>\n\n\n",
257     "comments": "",
258     "x": 2085.5,
259     "y": 144,
260     "z": "bff4e0f.991972",
261     "wires": []
262   },
263   {
264     "id": "59b9a03e.8323b",
265     "type": "set",
266     "name": "init",
267     "xml": "<set>\n<parameter name='StopApplicationFailed' value='false' />\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 246,
271     "y": 244,
272     "z": "bff4e0f.991972",
273     "wires": [
274       []
275     ]
276   },
277   {
278     "id": "79ce376b.14ba38",
279     "type": "block",
280     "name": "block",
281     "xml": "<block>\n",
282     "atomic": "false",
283     "comments": "",
284     "outputs": 1,
285     "x": 106,
286     "y": 244,
287     "z": "bff4e0f.991972",
288     "wires": [
289       [
290         "59b9a03e.8323b",
291         "546085a8.48136c"
292       ]
293     ]
294   },
295   {
296     "id": "ea7f288e.c58648",
297     "type": "block",
298     "name": "block",
299     "xml": "<block>\n",
300     "atomic": "false",
301     "comments": "",
302     "outputs": 1,
303     "x": 1806,
304     "y": 444,
305     "z": "bff4e0f.991972",
306     "wires": [
307       [
308         "d59b6aa1.c91618",
309         "b8335fae.52296"
310       ]
311     ]
312   },
313   {
314     "id": "3c46d78d.4277c8",
315     "type": "block",
316     "name": "block",
317     "xml": "<block>\n",
318     "atomic": "false",
319     "comments": "",
320     "outputs": 1,
321     "x": 1146,
322     "y": 364,
323     "z": "bff4e0f.991972",
324     "wires": [
325       [
326         "b3421a0a.ab34d8",
327         "b8335fae.52296"
328       ]
329     ]
330   },
331   {
332     "id": "2013c4a3.b2f33c",
333     "type": "set",
334     "name": "Set Stop Application Failed",
335     "xml": "<set>\n<parameter name='StopApplicationFailed' value='true' />\n",
336     "comments": "",
337     "outputs": 1,
338     "x": 1429.5,
339     "y": 204,
340     "z": "bff4e0f.991972",
341     "wires": [
342       []
343     ]
344   },
345   {
346     "id": "d59b6aa1.c91618",
347     "type": "switchNode",
348     "name": "Switch Stop Application Failed",
349     "xml": "<switch test=\"`$StopApplicationFailed`\">\n",
350     "comments": "",
351     "outputs": 1,
352     "x": 2035.5,
353     "y": 471,
354     "z": "bff4e0f.991972",
355     "wires": [
356       [
357         "b987da03.0dc0f8",
358         "8fa7fbb8.8355c8"
359       ]
360     ]
361   },
362   {
363     "id": "b987da03.0dc0f8",
364     "type": "outcomeTrue",
365     "name": "true",
366     "xml": "<outcome value='true'>\n",
367     "comments": "",
368     "outputs": 1,
369     "x": 2266,
370     "y": 444,
371     "z": "bff4e0f.991972",
372     "wires": [
373       [
374         "98412d6e.2237"
375       ]
376     ]
377   },
378   {
379     "id": "98412d6e.2237",
380     "type": "returnFailure",
381     "name": "return failure",
382     "xml": "<return status='failure'>\n",
383     "comments": "",
384     "x": 2465,
385     "y": 444,
386     "z": "bff4e0f.991972",
387     "wires": []
388   },
389   {
390     "id": "fffd4e3c.8b204",
391     "type": "returnSuccess",
392     "name": "return success",
393     "xml": "<return status='success'>\n",
394     "comments": "",
395     "x": 2471,
396     "y": 504,
397     "z": "bff4e0f.991972",
398     "wires": []
399   },
400   {
401     "id": "8fa7fbb8.8355c8",
402     "type": "other",
403     "name": "other",
404     "xml": "<outcome value='Other'>\n",
405     "comments": "",
406     "outputs": 1,
407     "x": 2266,
408     "y": 504,
409     "z": "bff4e0f.991972",
410     "wires": [
411       [
412         "fffd4e3c.8b204"
413       ]
414     ]
415   },
416   {
417     "id": "ff7db04.0cfe85",
418     "type": "not-found",
419     "name": "not-found",
420     "xml": "<outcome value='not-found'>\n",
421     "comments": "",
422     "outputs": 1,
423     "x": 1655,
424     "y": 204,
425     "z": "bff4e0f.991972",
426     "wires": [
427       [
428         "c640b015.2be11"
429       ]
430     ]
431   },
432   {
433     "id": "1dffaf3f.e12151",
434     "type": "execute",
435     "name": "OutputMessageBuilder",
436     "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",
437     "comments": "",
438     "outputs": 1,
439     "x": 2509,
440     "y": 122,
441     "z": "bff4e0f.991972",
442     "wires": [
443       []
444     ]
445   },
446   {
447     "id": "f628fc33.96856",
448     "type": "block",
449     "name": "block",
450     "xml": "<block>\n",
451     "atomic": "false",
452     "comments": "",
453     "outputs": 1,
454     "x": 2046,
455     "y": 304,
456     "z": "bff4e0f.991972",
457     "wires": [
458       [
459         "f600a7ce.f7f418",
460         "cf5c9d26.942c4"
461       ]
462     ]
463   },
464   {
465     "id": "c41ea253.33c72",
466     "type": "set",
467     "name": "Set event message",
468     "xml": "<set>\n<parameter name='event-message' value=\"Cannot find DG: StopVM_VM\"/>\n\n\n",
469     "comments": "",
470     "x": 2085.5,
471     "y": 204,
472     "z": "bff4e0f.991972",
473     "wires": []
474   },
475   {
476     "id": "2186d059.4b82f",
477     "type": "record",
478     "name": "Log error",
479     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",
480     "comments": "",
481     "outputs": 1,
482     "x": 2465,
483     "y": 71,
484     "z": "bff4e0f.991972",
485     "wires": [
486       []
487     ]
488   },
489   {
490     "id": "cf5c9d26.942c4",
491     "type": "returnFailure",
492     "name": "return failure",
493     "xml": "<return status='failure'>\n",
494     "comments": "",
495     "x": 2465,
496     "y": 304,
497     "z": "bff4e0f.991972",
498     "wires": []
499   },
500   {
501     "id": "c640b015.2be11",
502     "type": "block",
503     "name": "block",
504     "xml": "<block>\n",
505     "atomic": "false",
506     "comments": "",
507     "outputs": 1,
508     "x": 1806,
509     "y": 204,
510     "z": "bff4e0f.991972",
511     "wires": [
512       [
513         "c41ea253.33c72",
514         "f628fc33.96856"
515       ]
516     ]
517   },
518   {
519     "id": "5fb32110.cadf8",
520     "type": "execute",
521     "name": "Report Error",
522     "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
523     "comments": "",
524     "outputs": 1,
525     "x": 2478,
526     "y": 176,
527     "z": "bff4e0f.991972",
528     "wires": [
529       []
530     ]
531   },
532   {
533     "id": "f600a7ce.f7f418",
534     "type": "block",
535     "name": "block",
536     "xml": "<block>\n",
537     "atomic": "false",
538     "comments": "",
539     "outputs": 1,
540     "x": 2266,
541     "y": 244,
542     "z": "bff4e0f.991972",
543     "wires": [
544       [
545         "2186d059.4b82f",
546         "1dffaf3f.e12151",
547         "5fb32110.cadf8",
548         "a2ebc53c.230e08"
549       ]
550     ]
551   },
552   {
553     "id": "b8335fae.52296",
554     "type": "block",
555     "name": "block",
556     "xml": "<block>\n",
557     "atomic": "false",
558     "comments": "",
559     "outputs": 1,
560     "x": 2446,
561     "y": 364,
562     "z": "bff4e0f.991972",
563     "wires": [
564       [
565         "72a691f7.431cd",
566         "2b14f2c8.13f01e",
567         "292317f2.1be5c8"
568       ]
569     ]
570   },
571   {
572     "id": "2b14f2c8.13f01e",
573     "type": "execute",
574     "name": "Report Success",
575     "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />",
576     "comments": "",
577     "outputs": 1,
578     "x": 2684.5,
579     "y": 358,
580     "z": "bff4e0f.991972",
581     "wires": [
582       []
583     ]
584   },
585   {
586     "id": "72a691f7.431cd",
587     "type": "record",
588     "name": "Log success",
589     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$success-message`\"/>\n",
590     "comments": "",
591     "outputs": 1,
592     "x": 2674,
593     "y": 300,
594     "z": "bff4e0f.991972",
595     "wires": [
596       []
597     ]
598   },
599   {
600     "id": "a2ebc53c.230e08",
601     "type": "set",
602     "name": "Set failure code and message",
603     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$event-message`\" />\n",
604     "comments": "",
605     "outputs": 1,
606     "x": 2531,
607     "y": 229,
608     "z": "bff4e0f.991972",
609     "wires": [
610       []
611     ]
612   },
613   {
614     "id": "292317f2.1be5c8",
615     "type": "set",
616     "name": "Set success code and message",
617     "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"`$success-message`\" />\n",
618     "comments": "",
619     "outputs": 1,
620     "x": 2737,
621     "y": 412,
622     "z": "bff4e0f.991972",
623     "wires": [
624       []
625     ]
626   }
627 ]