8da7294dca59c4d6eda10693c6977e468a697c45
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / APPC / APPC_method_topology-operation-all_2.0.0.json
1 [
2     {
3         "id": "99bfac0c.66405",
4         "type": "service-logic",
5         "name": "APPC 2.0.0",
6         "module": "APPC",
7         "version": "2.0.0",
8         "comments": "",
9         "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'>",
10         "outputs": 1,
11         "x": 114.75,
12         "y": 78,
13         "z": "551b1552.aae4ec",
14         "wires": [
15             [
16                 "87a31d5f.785ce"
17             ]
18         ]
19     },
20     {
21         "id": "5284c172.ad7b4",
22         "type": "dgstart",
23         "name": "DGSTART",
24         "outputs": 1,
25         "x": 121.75,
26         "y": 28,
27         "z": "551b1552.aae4ec",
28         "wires": [
29             [
30                 "99bfac0c.66405"
31             ]
32         ]
33     },
34     {
35         "id": "b69b6144.4964a",
36         "type": "switchNode",
37         "name": "action",
38         "xml": "<switch test='`$org.openecomp.appc.action`'>\n",
39         "comments": "What method should we try to call. Closely maps to __action__Server()",
40         "outputs": 1,
41         "x": 112.75,
42         "y": 160,
43         "z": "551b1552.aae4ec",
44         "wires": [
45             [
46                 "3c76f1b.fc3890e",
47                 "3bbff8f1.c44008",
48                 "67723fa.f988dc",
49                 "82f997d3.7d0668",
50                 "bb942a8e.446bd8",
51                 "3d16f80b.b81e98"
52             ]
53         ]
54     },
55     {
56         "id": "3c76f1b.fc3890e",
57         "type": "outcome",
58         "name": "restart",
59         "xml": "<outcome value='restart'>\n",
60         "comments": "",
61         "outputs": 1,
62         "x": 267.75,
63         "y": 175,
64         "z": "551b1552.aae4ec",
65         "wires": [
66             [
67                 "f6ee74ac.091188"
68             ]
69         ]
70     },
71     {
72         "id": "3bbff8f1.c44008",
73         "type": "outcome",
74         "name": "rebuild",
75         "xml": "<outcome value='rebuild'>\n",
76         "comments": "",
77         "outputs": 1,
78         "x": 279,
79         "y": 301,
80         "z": "551b1552.aae4ec",
81         "wires": [
82             [
83                 "336f5c4b.cc90a4"
84             ]
85         ]
86     },
87     {
88         "id": "67723fa.f988dc",
89         "type": "other",
90         "name": "Unknown",
91         "xml": "<outcome value='Other'>\n",
92         "comments": "Unknown action provided. Fail",
93         "outputs": 1,
94         "x": 285,
95         "y": 785,
96         "z": "551b1552.aae4ec",
97         "wires": [
98             [
99                 "90b7e545.6f4818"
100             ]
101         ]
102     },
103     {
104         "id": "90b7e545.6f4818",
105         "type": "returnFailure",
106         "name": "Unknown Action",
107         "xml": "<return status='failure'>\n<parameter name='error-code' value='404' />\n<parameter name='error-message' value='Unknown action specified' />\n",
108         "comments": "",
109         "x": 886.5,
110         "y": 785,
111         "z": "551b1552.aae4ec",
112         "wires": []
113     },
114     {
115         "id": "f6ee74ac.091188",
116         "type": "execute",
117         "name": "restartServer()",
118         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
119         "comments": "",
120         "outputs": 1,
121         "x": 430.75,
122         "y": 177,
123         "z": "551b1552.aae4ec",
124         "wires": [
125             [
126                 "3e552093.c1aae",
127                 "df92233b.206de"
128             ]
129         ]
130     },
131     {
132         "id": "3e552093.c1aae",
133         "type": "success",
134         "name": "success",
135         "xml": "<outcome value='success'>\n",
136         "comments": "",
137         "outputs": 1,
138         "x": 579.75,
139         "y": 178,
140         "z": "551b1552.aae4ec",
141         "wires": [
142             [
143                 "60e4194b.9f1be8"
144             ]
145         ]
146     },
147     {
148         "id": "60e4194b.9f1be8",
149         "type": "returnSuccess",
150         "name": "return success",
151         "xml": "<return status='success'>\n",
152         "comments": "",
153         "x": 922.75,
154         "y": 302,
155         "z": "551b1552.aae4ec",
156         "wires": []
157     },
158     {
159         "id": "fda90bc9.0256f8",
160         "type": "returnFailure",
161         "name": "return failure",
162         "xml": "<return status='failure'>\n<!--\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='failed' />\n-->",
163         "comments": "",
164         "x": 920.75,
165         "y": 478,
166         "z": "551b1552.aae4ec",
167         "wires": []
168     },
169     {
170         "id": "336f5c4b.cc90a4",
171         "type": "execute",
172         "name": "rebuildServer()",
173         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
174         "comments": "",
175         "outputs": 1,
176         "x": 441.75,
177         "y": 302,
178         "z": "551b1552.aae4ec",
179         "wires": [
180             [
181                 "8981943d.767e68",
182                 "444dcc7.fbbb234"
183             ]
184         ]
185     },
186     {
187         "id": "8981943d.767e68",
188         "type": "success",
189         "name": "success",
190         "xml": "<outcome value='success'>\n",
191         "comments": "",
192         "outputs": 1,
193         "x": 591.75,
194         "y": 301,
195         "z": "551b1552.aae4ec",
196         "wires": [
197             [
198                 "60e4194b.9f1be8"
199             ]
200         ]
201     },
202     {
203         "id": "87a31d5f.785ce",
204         "type": "method",
205         "name": "method",
206         "xml": "<method rpc='topology-operation-all' mode='sync'>\n",
207         "comments": "",
208         "outputs": 1,
209         "x": 272.75,
210         "y": 78,
211         "z": "551b1552.aae4ec",
212         "wires": [
213             [
214                 "b69b6144.4964a"
215             ]
216         ]
217     },
218     {
219         "id": "82f997d3.7d0668",
220         "type": "outcome",
221         "name": "migrate",
222         "xml": "<outcome value='migrate'>\n",
223         "comments": "",
224         "outputs": 1,
225         "x": 281.5,
226         "y": 421,
227         "z": "551b1552.aae4ec",
228         "wires": [
229             [
230                 "ae163e95.51e9c"
231             ]
232         ]
233     },
234     {
235         "id": "ae163e95.51e9c",
236         "type": "execute",
237         "name": "migrateServer()",
238         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='migrateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
239         "comments": "",
240         "outputs": 1,
241         "x": 444.5,
242         "y": 420,
243         "z": "551b1552.aae4ec",
244         "wires": [
245             [
246                 "f18ec542.0e7138",
247                 "4c64d27c.b39b2c"
248             ]
249         ]
250     },
251     {
252         "id": "f18ec542.0e7138",
253         "type": "success",
254         "name": "success",
255         "xml": "<outcome value='success'>\n",
256         "comments": "",
257         "outputs": 1,
258         "x": 600,
259         "y": 420,
260         "z": "551b1552.aae4ec",
261         "wires": [
262             [
263                 "60e4194b.9f1be8"
264             ]
265         ]
266     },
267     {
268         "id": "4c64d27c.b39b2c",
269         "type": "other",
270         "name": "other",
271         "xml": "<outcome value='Other'>\n",
272         "comments": "",
273         "outputs": 1,
274         "x": 596,
275         "y": 460,
276         "z": "551b1552.aae4ec",
277         "wires": [
278             [
279                 "fda90bc9.0256f8"
280             ]
281         ]
282     },
283     {
284         "id": "444dcc7.fbbb234",
285         "type": "other",
286         "name": "other",
287         "xml": "<outcome value='Other'>\n",
288         "comments": "",
289         "outputs": 1,
290         "x": 587.75,
291         "y": 339,
292         "z": "551b1552.aae4ec",
293         "wires": [
294             [
295                 "fda90bc9.0256f8"
296             ]
297         ]
298     },
299     {
300         "id": "84b5bf3d.7b4a4",
301         "type": "other",
302         "name": "other",
303         "xml": "<outcome value='Other'>\n",
304         "comments": "",
305         "outputs": 1,
306         "x": 595,
307         "y": 700,
308         "z": "551b1552.aae4ec",
309         "wires": [
310             [
311                 "b99f0467.4660f8"
312             ]
313         ]
314     },
315     {
316         "id": "84f23c8f.7b0dc",
317         "type": "success",
318         "name": "success",
319         "xml": "<outcome value='success'>\n",
320         "comments": "",
321         "outputs": 1,
322         "x": 598,
323         "y": 664,
324         "z": "551b1552.aae4ec",
325         "wires": [
326             [
327                 "b99f0467.4660f8"
328             ]
329         ]
330     },
331     {
332         "id": "707eb288.8f814c",
333         "type": "execute",
334         "name": "evacuateServer()",
335         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
336         "comments": "",
337         "outputs": 1,
338         "x": 442.5,
339         "y": 664,
340         "z": "551b1552.aae4ec",
341         "wires": [
342             [
343                 "84b5bf3d.7b4a4",
344                 "84f23c8f.7b0dc"
345             ]
346         ]
347     },
348     {
349         "id": "bb942a8e.446bd8",
350         "type": "outcome",
351         "name": "migrate",
352         "xml": "<outcome value='evacuate'>\n",
353         "comments": "",
354         "outputs": 1,
355         "x": 279.5,
356         "y": 665,
357         "z": "551b1552.aae4ec",
358         "wires": [
359             [
360                 "707eb288.8f814c"
361             ]
362         ]
363     },
364     {
365         "id": "df92233b.206de",
366         "type": "failure",
367         "name": "failure",
368         "xml": "<outcome value='failure'>\n",
369         "comments": "",
370         "outputs": 1,
371         "x": 583,
372         "y": 224,
373         "z": "551b1552.aae4ec",
374         "wires": [
375             [
376                 "fda90bc9.0256f8"
377             ]
378         ]
379     },
380     {
381         "id": "b99f0467.4660f8",
382         "type": "returnFailure",
383         "name": "Not Yet Implemented",
384         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='This action is not yet implemented' />\n",
385         "comments": "",
386         "x": 898,
387         "y": 683,
388         "z": "551b1552.aae4ec",
389         "wires": []
390     },
391     {
392         "id": "3d16f80b.b81e98",
393         "type": "outcome",
394         "name": "snapshot",
395         "xml": "<outcome value='snapshot'>\n",
396         "comments": "",
397         "outputs": 1,
398         "x": 282,
399         "y": 533,
400         "z": "551b1552.aae4ec",
401         "wires": [
402             [
403                 "7b8aa37e.280c6c"
404             ]
405         ]
406     },
407     {
408         "id": "7b8aa37e.280c6c",
409         "type": "execute",
410         "name": "createSnapshot()",
411         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='createSnapshot'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
412         "comments": "",
413         "outputs": 1,
414         "x": 445,
415         "y": 532,
416         "z": "551b1552.aae4ec",
417         "wires": [
418             [
419                 "b2fdd324.e7734",
420                 "72f58d9a.ca2144"
421             ]
422         ]
423     },
424     {
425         "id": "b2fdd324.e7734",
426         "type": "success",
427         "name": "success",
428         "xml": "<outcome value='success'>\n",
429         "comments": "",
430         "outputs": 1,
431         "x": 600.5,
432         "y": 532,
433         "z": "551b1552.aae4ec",
434         "wires": [
435             [
436                 "60e4194b.9f1be8"
437             ]
438         ]
439     },
440     {
441         "id": "72f58d9a.ca2144",
442         "type": "other",
443         "name": "other",
444         "xml": "<outcome value='Other'>\n",
445         "comments": "",
446         "outputs": 1,
447         "x": 596.5,
448         "y": 572,
449         "z": "551b1552.aae4ec",
450         "wires": [
451             [
452                 "fda90bc9.0256f8"
453             ]
454         ]
455     },
456     {
457         "id": "7fee971b.b82fe8",
458         "type": "success",
459         "name": "success",
460         "xml": "<outcome value='success'>\n",
461         "comments": "",
462         "outputs": 1,
463         "x": 962,
464         "y": 556,
465         "z": "551b1552.aae4ec",
466         "wires": [
467             [
468                 "fba5b0ee.57367"
469             ]
470         ]
471     },
472     {
473         "id": "fba5b0ee.57367",
474         "type": "returnSuccess",
475         "name": "return success",
476         "xml": "<return status='success'>\n",
477         "comments": "",
478         "x": 1275,
479         "y": 617,
480         "z": "551b1552.aae4ec",
481         "wires": []
482     },
483     {
484         "id": "c6eec239.65f49",
485         "type": "returnFailure",
486         "name": "return failure",
487         "xml": "<return status='failure'>\n<!--\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='failed' />\n-->",
488         "comments": "",
489         "x": 1285,
490         "y": 812,
491         "z": "551b1552.aae4ec",
492         "wires": []
493     },
494     {
495         "id": "aebd3b77.717c8",
496         "type": "success",
497         "name": "success",
498         "xml": "<outcome value='success'>\n",
499         "comments": "",
500         "outputs": 1,
501         "x": 974,
502         "y": 679,
503         "z": "551b1552.aae4ec",
504         "wires": [
505             [
506                 "fba5b0ee.57367"
507             ]
508         ]
509     },
510     {
511         "id": "61570f13.03e13",
512         "type": "outcome",
513         "name": "migrate",
514         "xml": "<outcome value='migrate'>\n",
515         "comments": "",
516         "outputs": 1,
517         "x": 663.75,
518         "y": 799,
519         "z": "551b1552.aae4ec",
520         "wires": [
521             [
522                 "4b9dc5bd.fed9ac"
523             ]
524         ]
525     },
526     {
527         "id": "4b9dc5bd.fed9ac",
528         "type": "execute",
529         "name": "migrateServer()",
530         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='migrateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
531         "comments": "",
532         "outputs": 1,
533         "x": 826.75,
534         "y": 798,
535         "z": "551b1552.aae4ec",
536         "wires": [
537             [
538                 "54315afb.9b2a34",
539                 "1a5da1c6.c6a002"
540             ]
541         ]
542     },
543     {
544         "id": "54315afb.9b2a34",
545         "type": "success",
546         "name": "success",
547         "xml": "<outcome value='success'>\n",
548         "comments": "",
549         "outputs": 1,
550         "x": 982.25,
551         "y": 798,
552         "z": "551b1552.aae4ec",
553         "wires": [
554             [
555                 "fba5b0ee.57367"
556             ]
557         ]
558     },
559     {
560         "id": "1a5da1c6.c6a002",
561         "type": "other",
562         "name": "other",
563         "xml": "<outcome value='Other'>\n",
564         "comments": "",
565         "outputs": 1,
566         "x": 978.25,
567         "y": 838,
568         "z": "551b1552.aae4ec",
569         "wires": [
570             [
571                 "c6eec239.65f49"
572             ]
573         ]
574     },
575     {
576         "id": "15e18db0.b27eda",
577         "type": "other",
578         "name": "other",
579         "xml": "<outcome value='Other'>\n",
580         "comments": "",
581         "outputs": 1,
582         "x": 970,
583         "y": 717,
584         "z": "551b1552.aae4ec",
585         "wires": [
586             [
587                 "c6eec239.65f49"
588             ]
589         ]
590     },
591     {
592         "id": "b92b57bc.074df8",
593         "type": "other",
594         "name": "other",
595         "xml": "<outcome value='Other'>\n",
596         "comments": "",
597         "outputs": 1,
598         "x": 979.25,
599         "y": 954,
600         "z": "551b1552.aae4ec",
601         "wires": [
602             [
603                 "f2833507.0f2148"
604             ]
605         ]
606     },
607     {
608         "id": "d669863.db192b8",
609         "type": "success",
610         "name": "success",
611         "xml": "<outcome value='success'>\n",
612         "comments": "",
613         "outputs": 1,
614         "x": 982.25,
615         "y": 918,
616         "z": "551b1552.aae4ec",
617         "wires": [
618             [
619                 "f2833507.0f2148"
620             ]
621         ]
622     },
623     {
624         "id": "69143893.52d5d",
625         "type": "execute",
626         "name": "evacuateServer()",
627         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
628         "comments": "",
629         "outputs": 1,
630         "x": 826.75,
631         "y": 918,
632         "z": "551b1552.aae4ec",
633         "wires": [
634             [
635                 "d669863.db192b8",
636                 "b92b57bc.074df8"
637             ]
638         ]
639     },
640     {
641         "id": "8e670719.e182d8",
642         "type": "outcome",
643         "name": "migrate",
644         "xml": "<outcome value='evacuate'>\n",
645         "comments": "",
646         "outputs": 1,
647         "x": 663.75,
648         "y": 919,
649         "z": "551b1552.aae4ec",
650         "wires": [
651             [
652                 "69143893.52d5d"
653             ]
654         ]
655     },
656     {
657         "id": "15ac686f.889474",
658         "type": "failure",
659         "name": "failure",
660         "xml": "<outcome value='failure'>\n",
661         "comments": "",
662         "outputs": 1,
663         "x": 965.25,
664         "y": 602,
665         "z": "551b1552.aae4ec",
666         "wires": [
667             [
668                 "c6eec239.65f49"
669             ]
670         ]
671     },
672     {
673         "id": "f2833507.0f2148",
674         "type": "returnFailure",
675         "name": "Not Yet Implemented",
676         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='This action is not yet implemented' />\n",
677         "comments": "",
678         "x": 1282.25,
679         "y": 937,
680         "z": "551b1552.aae4ec",
681         "wires": []
682     }
683 ]