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