Platform Hardening for DG Json files - Part 2
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_StopVM_VM_2.0.0.json
1 [\r
2     {\r
3         "id": "1cef050a.1dfbcb",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 141.515625,\r
8         "y": 164.4333267211914,\r
9         "z": "a6b16db5.af508",\r
10         "wires": [\r
11             [\r
12                 "a9d8f072.10cbd"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "a9d8f072.10cbd",\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": 318.5157165527344,\r
26         "y": 164,\r
27         "z": "a6b16db5.af508",\r
28         "wires": [\r
29             [\r
30                 "46c68f6c.01837"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "46c68f6c.01837",\r
36         "type": "method",\r
37         "name": "StopVM_VM",\r
38         "xml": "<method rpc='StopVM_VM' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 260.97997665405273,\r
42         "y": 255.8214054107666,\r
43         "z": "a6b16db5.af508",\r
44         "wires": [\r
45             [\r
46                 "fd5f6afc.5b61a8"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "ed427ea8.f19f5",\r
52         "type": "execute",\r
53         "name": "Stop",\r
54         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$stop-vm-url`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$AICIdentity`\" />\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 1105.3989791870117,\r
58         "y": 605.2190837860107,\r
59         "z": "a6b16db5.af508",\r
60         "wires": [\r
61             [\r
62                 "b5b4b5a6.7469d8",\r
63                 "d5e5239f.dcc79"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "b5b4b5a6.7469d8",\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": 1226.303726196289,\r
75         "y": 770.7907104492188,\r
76         "z": "a6b16db5.af508",\r
77         "wires": [\r
78             [\r
79                 "ed170974.4288c8"\r
80             ]\r
81         ]\r
82     },\r
83     {\r
84         "id": "d5e5239f.dcc79",\r
85         "type": "success",\r
86         "name": "success",\r
87         "xml": "<outcome value='success'>\n",\r
88         "comments": "",\r
89         "outputs": 1,\r
90         "x": 1261.5160751342773,\r
91         "y": 572.1476917266846,\r
92         "z": "a6b16db5.af508",\r
93         "wires": [\r
94             [\r
95                 "249fafc6.75699"\r
96             ]\r
97         ]\r
98     },\r
99     {\r
100         "id": "a3ddab0f.be74c8",\r
101         "type": "block",\r
102         "name": "block",\r
103         "xml": "<block atomic='true'>",\r
104         "atomic": "true",\r
105         "comments": "",\r
106         "outputs": 1,\r
107         "x": 1904.9443244934082,\r
108         "y": 761.433759689331,\r
109         "z": "a6b16db5.af508",\r
110         "wires": [\r
111             [\r
112                 "dbdf325c.08025",\r
113                 "f2981778.0beac8",\r
114                 "e1c0fbcb.5e70d8"\r
115             ]\r
116         ]\r
117     },\r
118     {\r
119         "id": "dbdf325c.08025",\r
120         "type": "set",\r
121         "name": "Set error message",\r
122         "xml": "<set>\n<parameter name='event-message' value=\"`'Failure while stopping the server: ' + $stop-vm-url`\"/>\n",\r
123         "comments": "",\r
124         "x": 2087.516101837158,\r
125         "y": 722.1479930877686,\r
126         "z": "a6b16db5.af508",\r
127         "wires": []\r
128     },\r
129     {\r
130         "id": "f2981778.0beac8",\r
131         "type": "record",\r
132         "name": "Log error",\r
133         "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
134         "comments": "",\r
135         "outputs": 1,\r
136         "x": 2079.945056915283,\r
137         "y": 762.3383617401123,\r
138         "z": "a6b16db5.af508",\r
139         "wires": [\r
140             []\r
141         ]\r
142     },\r
143     {\r
144         "id": "44750395.80221c",\r
145         "type": "set",\r
146         "name": "Set Success Message",\r
147         "xml": "<set>\n<parameter name='success-message' value=\"`'Stop succeeded for the server : ' + $stop-vm-url`\"/>\n\n\n",\r
148         "comments": "",\r
149         "x": 1916.2298202514648,\r
150         "y": 403.2907085418701,\r
151         "z": "a6b16db5.af508",\r
152         "wires": []\r
153     },\r
154     {\r
155         "id": "5c22eb96.f3da94",\r
156         "type": "record",\r
157         "name": "Log message",\r
158         "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=\"`$success-message`\"/>\n",\r
159         "comments": "",\r
160         "outputs": 1,\r
161         "x": 1906.0870056152344,\r
162         "y": 454.86212062835693,\r
163         "z": "a6b16db5.af508",\r
164         "wires": [\r
165             []\r
166         ]\r
167     },\r
168     {\r
169         "id": "64459e63.09ed5",\r
170         "type": "switchNode",\r
171         "name": "switch:Last Attempt",\r
172         "xml": "<switch test='`$stopRetryCount == $retryIndex`'>\n",\r
173         "comments": "",\r
174         "outputs": 1,\r
175         "x": 1554.9280242919922,\r
176         "y": 767.0052223205566,\r
177         "z": "a6b16db5.af508",\r
178         "wires": [\r
179             [\r
180                 "76293fdb.a702e",\r
181                 "c9e6ef87.507db"\r
182             ]\r
183         ]\r
184     },\r
185     {\r
186         "id": "c9e6ef87.507db",\r
187         "type": "outcomeTrue",\r
188         "name": "true",\r
189         "xml": "<outcome value='true'>\n",\r
190         "comments": "",\r
191         "outputs": 1,\r
192         "x": 1763.8207893371582,\r
193         "y": 759.3266429901123,\r
194         "z": "a6b16db5.af508",\r
195         "wires": [\r
196             [\r
197                 "a3ddab0f.be74c8"\r
198             ]\r
199         ]\r
200     },\r
201     {\r
202         "id": "76293fdb.a702e",\r
203         "type": "outcomeFalse",\r
204         "name": "false",\r
205         "xml": "<outcome value='false'>\n",\r
206         "comments": "",\r
207         "outputs": 1,\r
208         "x": 1749.1777744293213,\r
209         "y": 872.0405941009521,\r
210         "z": "a6b16db5.af508",\r
211         "wires": [\r
212             [\r
213                 "ebef8c77.3f0be"\r
214             ]\r
215         ]\r
216     },\r
217     {\r
218         "id": "2b09b8ff.3e3148",\r
219         "type": "for",\r
220         "name": "Loop",\r
221         "xml": "<for index=\"retryIndex\" start=\"1\" end=\"`$stopRetryCount + 1`\" >",\r
222         "comments": "",\r
223         "outputs": 1,\r
224         "x": 614.6270370483398,\r
225         "y": 610.1476726531982,\r
226         "z": "a6b16db5.af508",\r
227         "wires": [\r
228             [\r
229                 "9f75fd7d.6a168"\r
230             ]\r
231         ]\r
232     },\r
233     {\r
234         "id": "ebef8c77.3f0be",\r
235         "type": "record",\r
236         "name": "Log error",\r
237         "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=\"`'Stop attempt ' + $retryIndex + ' of ' + $stopRetryCount + ' failed for server : ' + $stop-vm-url + '. Retrying.'`\"/>\n",\r
238         "comments": "",\r
239         "outputs": 1,\r
240         "x": 1992.2613925933838,\r
241         "y": 870.2905941009521,\r
242         "z": "a6b16db5.af508",\r
243         "wires": [\r
244             []\r
245         ]\r
246     },\r
247     {\r
248         "id": "e1c0fbcb.5e70d8",\r
249         "type": "returnFailure",\r
250         "name": "return failure",\r
251         "xml": "<return status='failure'>\n",\r
252         "comments": "",\r
253         "x": 2095.960437774658,\r
254         "y": 811.5766429901123,\r
255         "z": "a6b16db5.af508",\r
256         "wires": []\r
257     },\r
258     {\r
259         "id": "ab4f157e.b95da8",\r
260         "type": "returnSuccess",\r
261         "name": "return success",\r
262         "xml": "<return status='success'>",\r
263         "comments": "",\r
264         "x": 1914.3252487182617,\r
265         "y": 579.4334754943848,\r
266         "z": "a6b16db5.af508",\r
267         "wires": []\r
268     },\r
269     {\r
270         "id": "249fafc6.75699",\r
271         "type": "switchNode",\r
272         "name": "switch STATUS",\r
273         "xml": "<switch test='`$STOP_STATUS`'>\n",\r
274         "comments": "",\r
275         "outputs": 1,\r
276         "x": 1422.3092880249023,\r
277         "y": 573.7031383514404,\r
278         "z": "a6b16db5.af508",\r
279         "wires": [\r
280             [\r
281                 "bfaa23ff.9722f",\r
282                 "6d690331.49ee2c",\r
283                 "335e834f.a28b2c"\r
284             ]\r
285         ]\r
286     },\r
287     {\r
288         "id": "bfaa23ff.9722f",\r
289         "type": "other",\r
290         "name": "ERROR",\r
291         "xml": "<outcome value='ERROR'>\n",\r
292         "comments": "",\r
293         "outputs": 1,\r
294         "x": 1503.8330841064453,\r
295         "y": 659.6078596115112,\r
296         "z": "a6b16db5.af508",\r
297         "wires": [\r
298             [\r
299                 "ed170974.4288c8"\r
300             ]\r
301         ]\r
302     },\r
303     {\r
304         "id": "6d690331.49ee2c",\r
305         "type": "success",\r
306         "name": "SUCCESS",\r
307         "xml": "<outcome value='SUCCESS'>\n",\r
308         "comments": "",\r
309         "outputs": 1,\r
310         "x": 1669.2617568969727,\r
311         "y": 542.6078939437866,\r
312         "z": "a6b16db5.af508",\r
313         "wires": [\r
314             [\r
315                 "85005452.136278"\r
316             ]\r
317         ]\r
318     },\r
319     {\r
320         "id": "ed170974.4288c8",\r
321         "type": "block",\r
322         "name": "block",\r
323         "xml": "<block atomic='true'>",\r
324         "atomic": "true",\r
325         "comments": "",\r
326         "outputs": 1,\r
327         "x": 1387.2457962036133,\r
328         "y": 767.8937721252441,\r
329         "z": "a6b16db5.af508",\r
330         "wires": [\r
331             [\r
332                 "64459e63.09ed5"\r
333             ]\r
334         ]\r
335     },\r
336     {\r
337         "id": "fd5f6afc.5b61a8",\r
338         "type": "switchNode",\r
339         "name": "switch STATUS",\r
340         "xml": "<switch test='`$STOP_STATUS`'>\n",\r
341         "comments": "",\r
342         "outputs": 1,\r
343         "x": 238.10294723510742,\r
344         "y": 523.8015937805176,\r
345         "z": "a6b16db5.af508",\r
346         "wires": [\r
347             [\r
348                 "517f7561.af124c",\r
349                 "15485fed.56523",\r
350                 "ddbde736.0b20d8",\r
351                 "4810dc09.1ec194"\r
352             ]\r
353         ]\r
354     },\r
355     {\r
356         "id": "15485fed.56523",\r
357         "type": "other",\r
358         "name": "ERROR",\r
359         "xml": "<outcome value='ERROR'>\n",\r
360         "comments": "",\r
361         "outputs": 1,\r
362         "x": 412.3886528015137,\r
363         "y": 588.087329864502,\r
364         "z": "a6b16db5.af508",\r
365         "wires": [\r
366             [\r
367                 "8f66cbff.7a29e8"\r
368             ]\r
369         ]\r
370     },\r
371     {\r
372         "id": "517f7561.af124c",\r
373         "type": "success",\r
374         "name": "SUCCESS",\r
375         "xml": "<outcome value='SUCCESS'>\n",\r
376         "comments": "",\r
377         "outputs": 1,\r
378         "x": 407.8174858093262,\r
379         "y": 461.08732986450195,\r
380         "z": "a6b16db5.af508",\r
381         "wires": [\r
382             [\r
383                 "8f66cbff.7a29e8"\r
384             ]\r
385         ]\r
386     },\r
387     {\r
388         "id": "ddbde736.0b20d8",\r
389         "type": "other",\r
390         "name": "CONTEXT_NOT_FOUND",\r
391         "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",\r
392         "comments": "",\r
393         "outputs": 1,\r
394         "x": 419.53152084350586,\r
395         "y": 676.6587200164795,\r
396         "z": "a6b16db5.af508",\r
397         "wires": [\r
398             [\r
399                 "b496c2e5.7e0b7"\r
400             ]\r
401         ]\r
402     },\r
403     {\r
404         "id": "335e834f.a28b2c",\r
405         "type": "other",\r
406         "name": "CONTEXT_NOT_FOUND",\r
407         "xml": "<outcome value='CONTEXT_NOT_FOUND'>\n",\r
408         "comments": "",\r
409         "outputs": 1,\r
410         "x": 1725.245979309082,\r
411         "y": 622.3729629516602,\r
412         "z": "a6b16db5.af508",\r
413         "wires": [\r
414             [\r
415                 "a3ddab0f.be74c8"\r
416             ]\r
417         ]\r
418     },\r
419     {\r
420         "id": "784c3e4a.5134e",\r
421         "type": "returnFailure",\r
422         "name": "return failure",\r
423         "xml": "<return status='failure'>\n",\r
424         "comments": "",\r
425         "x": 499.5314750671387,\r
426         "y": 878.0872135162354,\r
427         "z": "a6b16db5.af508",\r
428         "wires": []\r
429     },\r
430     {\r
431         "id": "b496c2e5.7e0b7",\r
432         "type": "block",\r
433         "name": "block",\r
434         "xml": "<block atomic='true'>",\r
435         "atomic": "true",\r
436         "comments": "",\r
437         "outputs": 1,\r
438         "x": 275.2457695007324,\r
439         "y": 826.658694267273,\r
440         "z": "a6b16db5.af508",\r
441         "wires": [\r
442             [\r
443                 "784c3e4a.5134e",\r
444                 "34ff62bb.1ea1ce",\r
445                 "c3ad6392.97ef"\r
446             ]\r
447         ]\r
448     },\r
449     {\r
450         "id": "4810dc09.1ec194",\r
451         "type": "success",\r
452         "name": "EMPTY",\r
453         "xml": "<outcome value=''>\n",\r
454         "comments": "",\r
455         "outputs": 1,\r
456         "x": 408.1029472351074,\r
457         "y": 520.9444465637207,\r
458         "z": "a6b16db5.af508",\r
459         "wires": [\r
460             [\r
461                 "8f66cbff.7a29e8"\r
462             ]\r
463         ]\r
464     },\r
465     {\r
466         "id": "34ff62bb.1ea1ce",\r
467         "type": "set",\r
468         "name": "Set error message",\r
469         "xml": "<set>\n<parameter name='event-message' value=\"Invalid AICIdentity or tenant or credentials\"/>\n",\r
470         "comments": "",\r
471         "x": 523.8172416687012,\r
472         "y": 782.3729972839355,\r
473         "z": "a6b16db5.af508",\r
474         "wires": []\r
475     },\r
476     {\r
477         "id": "c3ad6392.97ef",\r
478         "type": "record",\r
479         "name": "Log error",\r
480         "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
481         "comments": "",\r
482         "outputs": 1,\r
483         "x": 506.24620056152344,\r
484         "y": 823.9919185638428,\r
485         "z": "a6b16db5.af508",\r
486         "wires": [\r
487             []\r
488         ]\r
489     },\r
490     {\r
491         "id": "8f66cbff.7a29e8",\r
492         "type": "block",\r
493         "name": "block : atomic",\r
494         "xml": "<block atomic='true'>",\r
495         "atomic": "true",\r
496         "comments": "",\r
497         "outputs": 1,\r
498         "x": 616.6743812561035,\r
499         "y": 516.6587257385254,\r
500         "z": "a6b16db5.af508",\r
501         "wires": [\r
502             [\r
503                 "614e98a0.740898",\r
504                 "2b09b8ff.3e3148",\r
505                 "630a1e7d.61b31"\r
506             ]\r
507         ]\r
508     },\r
509     {\r
510         "id": "614e98a0.740898",\r
511         "type": "switchNode",\r
512         "name": "switch : stopRetryCount >= 0",\r
513         "xml": "<switch test='`$stopRetryCount >= 0`'>\n",\r
514         "comments": "",\r
515         "outputs": 1,\r
516         "x": 886.6744194030762,\r
517         "y": 448.08729553222656,\r
518         "z": "a6b16db5.af508",\r
519         "wires": [\r
520             [\r
521                 "1f5b5e63.c28f42",\r
522                 "e7474230.d8845"\r
523             ]\r
524         ]\r
525     },\r
526     {\r
527         "id": "1f5b5e63.c28f42",\r
528         "type": "outcomeFalse",\r
529         "name": "false",\r
530         "xml": "<outcome value='false'>\n",\r
531         "comments": "",\r
532         "outputs": 1,\r
533         "x": 1103.817211151123,\r
534         "y": 406.65876388549805,\r
535         "z": "a6b16db5.af508",\r
536         "wires": [\r
537             [\r
538                 "e793bc34.ec31a"\r
539             ]\r
540         ]\r
541     },\r
542     {\r
543         "id": "e7474230.d8845",\r
544         "type": "outcomeTrue",\r
545         "name": "true",\r
546         "xml": "<outcome value='true'>\n",\r
547         "comments": "",\r
548         "outputs": 1,\r
549         "x": 1110.9600982666016,\r
550         "y": 483.80166721343994,\r
551         "z": "a6b16db5.af508",\r
552         "wires": [\r
553             [\r
554                 "af7b47ca.fc8588"\r
555             ]\r
556         ]\r
557     },\r
558     {\r
559         "id": "af7b47ca.fc8588",\r
560         "type": "set",\r
561         "name": "increment stopRetryCount",\r
562         "xml": "<set>\n<parameter name=\"stopRetryCount\" value=\"`$stopRetryCount + 1`\" />\n",\r
563         "comments": "",\r
564         "x": 1293.817195892334,\r
565         "y": 482.37305450439453,\r
566         "z": "a6b16db5.af508",\r
567         "wires": []\r
568     },\r
569     {\r
570         "id": "e793bc34.ec31a",\r
571         "type": "set",\r
572         "name": "set stopRetryCount",\r
573         "xml": "<set>\n<parameter name='stopRetryCount' value='1' />\n",\r
574         "comments": "",\r
575         "x": 1275.2457847595215,\r
576         "y": 405.2301845550537,\r
577         "z": "a6b16db5.af508",\r
578         "wires": []\r
579     },\r
580     {\r
581         "id": "85005452.136278",\r
582         "type": "block",\r
583         "name": "block",\r
584         "xml": "<block atomic='true'>",\r
585         "atomic": "true",\r
586         "comments": "",\r
587         "outputs": 1,\r
588         "x": 1691.515609741211,\r
589         "y": 450.1476058959961,\r
590         "z": "a6b16db5.af508",\r
591         "wires": [\r
592             [\r
593                 "44750395.80221c",\r
594                 "5c22eb96.f3da94",\r
595                 "ab4f157e.b95da8",\r
596                 "40c219cc.406928"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "630a1e7d.61b31",\r
602         "type": "set",\r
603         "name": "initialize exitLoop",\r
604         "xml": "<set>\n<parameter name='exitLoop' value='false' />\n",\r
605         "comments": "",\r
606         "x": 851.5155944824219,\r
607         "y": 340.14762115478516,\r
608         "z": "a6b16db5.af508",\r
609         "wires": []\r
610     },\r
611     {\r
612         "id": "40c219cc.406928",\r
613         "type": "set",\r
614         "name": "set exitLoop",\r
615         "xml": "<set>\n<parameter name='exitLoop' value='true' />\n",\r
616         "comments": "",\r
617         "x": 1921.5157165527344,\r
618         "y": 514.4333572387695,\r
619         "z": "a6b16db5.af508",\r
620         "wires": []\r
621     },\r
622     {\r
623         "id": "9f75fd7d.6a168",\r
624         "type": "switchNode",\r
625         "name": "switch exitLoop",\r
626         "xml": "<switch test='`$exitLoop`'>\n",\r
627         "comments": "",\r
628         "outputs": 1,\r
629         "x": 781.5155944824219,\r
630         "y": 608.7190322875977,\r
631         "z": "a6b16db5.af508",\r
632         "wires": [\r
633             [\r
634                 "e7b114e6.a3f9c8",\r
635                 "91b0004b.02402"\r
636             ]\r
637         ]\r
638     },\r
639     {\r
640         "id": "e7b114e6.a3f9c8",\r
641         "type": "outcomeFalse",\r
642         "name": "false",\r
643         "xml": "<outcome value='false'>\n",\r
644         "comments": "",\r
645         "outputs": 1,\r
646         "x": 950.0869522094727,\r
647         "y": 610.1476383209229,\r
648         "z": "a6b16db5.af508",\r
649         "wires": [\r
650             [\r
651                 "ed427ea8.f19f5"\r
652             ]\r
653         ]\r
654     },\r
655     {\r
656         "id": "91b0004b.02402",\r
657         "type": "outcomeTrue",\r
658         "name": "true",\r
659         "xml": "<outcome value='true'>\n",\r
660         "comments": "",\r
661         "outputs": 1,\r
662         "x": 947.2299499511719,\r
663         "y": 675.861946105957,\r
664         "z": "a6b16db5.af508",\r
665         "wires": [\r
666             []\r
667         ]\r
668     }\r
669 ]\r