7a22ddfa23594572f4e81a7f63094444818df8fc
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_DGOrchestrator.json
1 [
2     {
3         "id": "d612d431.f004b",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 124,
8         "y": 73,
9         "z": "5f45af23.e79db",
10         "wires": [
11             [
12                 "27677f05.b61658"
13             ]
14         ]
15     },
16     {
17         "id": "27677f05.b61658",
18         "type": "service-logic",
19         "name": "APPC 4.0.0",
20         "module": "APPC",
21         "version": "4.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='4.0.0'>",
24         "outputs": 1,
25         "x": 281.34282302856445,
26         "y": 72.98572540283203,
27         "z": "5f45af23.e79db",
28         "wires": [
29             [
30                 "6a1ab2e2.eb373c"
31             ]
32         ]
33     },
34     {
35         "id": "6a1ab2e2.eb373c",
36         "type": "method",
37         "name": "method DGOrchestrator",
38         "xml": "<method rpc='DGOrchestrator' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 485.89046478271484,
42         "y": 62.48572540283203,
43         "z": "5f45af23.e79db",
44         "wires": [
45             [
46                 "c562cff4.4a1f8"
47             ]
48         ]
49     },
50     {
51         "id": "c562cff4.4a1f8",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 92.15634155273438,
59         "y": 196.18809700012207,
60         "z": "5f45af23.e79db",
61         "wires": [
62             [
63                 "9d146ec7.329fe8",
64                 "30b584d7.801d14",
65                 "725bb048.cdd648",
66                 "e9e57d16.81971"
67             ]
68         ]
69     },
70     {
71         "id": "e9e57d16.81971",
72         "type": "call",
73         "name": "call: setInputParams",
74         "xml": "<call module=\"APPC\" rpc=\"setInputParams\" mode=\"sync\">",
75         "comments": "",
76         "outputs": 1,
77         "x": 626.9142913818359,
78         "y": 112.48572635650635,
79         "z": "5f45af23.e79db",
80         "wires": [
81             [
82                 "46bf7501.f1691c",
83                 "2d8e3173.9404fe",
84                 "5bb535fe.49be94"
85             ]
86         ]
87     },
88     {
89         "id": "1d477f57.aca241",
90         "type": "failure",
91         "name": "failure",
92         "xml": "<outcome value='failure'>\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 2239.664306640625,
96         "y": 418.9023742675781,
97         "z": "5f45af23.e79db",
98         "wires": [
99             [
100                 "b2c90da.f6b237"
101             ]
102         ]
103     },
104     {
105         "id": "ae40264f.019cf",
106         "type": "execute",
107         "name": "execute get and executeFlowSequence",
108         "xml": "<execute plugin=\"org.onap.appc.flow.controller.node.FlowControlNode\" method=\"processFlow\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.flowControl\" />\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 2080.7911376953125,
112         "y": 474.2158203125,
113         "z": "5f45af23.e79db",
114         "wires": [
115             [
116                 "1d477f57.aca241",
117                 "93fc3192.f7b4d8"
118             ]
119         ]
120     },
121     {
122         "id": "b2c90da.f6b237",
123         "type": "block",
124         "name": "block : atomic",
125         "xml": "<block atomic=\"true\">",
126         "atomic": "true",
127         "comments": "",
128         "outputs": 1,
129         "x": 2377.7119140625,
130         "y": 420.4261779785156,
131         "z": "5f45af23.e79db",
132         "wires": [
133             [
134                 "ca5807aa.f436"
135             ]
136         ]
137     },
138     {
139         "id": "39177eed.de201a",
140         "type": "set",
141         "name": "set error-code 400 and message",
142         "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"SUCCESS - request has been processed successfully\" />\n<parameter name='output-payload' value='`$output-payload`' />\n",
143         "comments": "",
144         "x": 2361.18798828125,
145         "y": 658.9856567382812,
146         "z": "5f45af23.e79db",
147         "wires": []
148     },
149     {
150         "id": "93fc3192.f7b4d8",
151         "type": "success",
152         "name": "success",
153         "xml": "<outcome value='success'>\n",
154         "comments": "",
155         "outputs": 1,
156         "x": 2358.545166015625,
157         "y": 499.5690002441406,
158         "z": "5f45af23.e79db",
159         "wires": [
160             [
161                 "1339624d.f4d55e"
162             ]
163         ]
164     },
165     {
166         "id": "1339624d.f4d55e",
167         "type": "block",
168         "name": "block : atomic",
169         "xml": "<block atomic=\"true\">",
170         "atomic": "true",
171         "comments": "",
172         "outputs": 1,
173         "x": 2390.426025390625,
174         "y": 550.2237548828125,
175         "z": "5f45af23.e79db",
176         "wires": [
177             [
178                 "39177eed.de201a"
179             ]
180         ]
181     },
182     {
183         "id": "ca5807aa.f436",
184         "type": "set",
185         "name": "set error-code 401 and message",
186         "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$tmp.flowControl.status-message`\" />\n<parameter name='output-payload' value=\"\" />\n",
187         "comments": "",
188         "x": 2459.99755859375,
189         "y": 347.3666076660156,
190         "z": "5f45af23.e79db",
191         "wires": []
192     },
193     {
194         "id": "30b584d7.801d14",
195         "type": "execute",
196         "name": "execute saveTxLog",
197         "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n",
198         "comments": "",
199         "outputs": 1,
200         "x": 291.4975776672363,
201         "y": 914.0412883758545,
202         "z": "5f45af23.e79db",
203         "wires": [
204             [
205                 "b16b27b0.0da4b8"
206             ]
207         ]
208     },
209     {
210         "id": "b16b27b0.0da4b8",
211         "type": "failure",
212         "name": "failure",
213         "xml": "<outcome value='failure'>\n",
214         "comments": "",
215         "outputs": 1,
216         "x": 492.9419479370117,
217         "y": 914.957914352417,
218         "z": "5f45af23.e79db",
219         "wires": [
220             [
221                 "53998dfc.e0bdec"
222             ]
223         ]
224     },
225     {
226         "id": "53998dfc.e0bdec",
227         "type": "block",
228         "name": "block : atomic",
229         "xml": "<block atomic=\"true\">",
230         "atomic": "true",
231         "comments": "",
232         "outputs": 1,
233         "x": 668.4143218994141,
234         "y": 916.5412473678589,
235         "z": "5f45af23.e79db",
236         "wires": [
237             []
238         ]
239     },
240     {
241         "id": "9d146ec7.329fe8",
242         "type": "set",
243         "name": "set tmp.message",
244         "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n",
245         "comments": "",
246         "x": 310.2753677368164,
247         "y": 826.2357015609741,
248         "z": "5f45af23.e79db",
249         "wires": []
250     },
251     {
252         "id": "46bf7501.f1691c",
253         "type": "not-found",
254         "name": "not-found",
255         "xml": "<outcome value='not-found'>\n",
256         "comments": "",
257         "outputs": 1,
258         "x": 842.414306640625,
259         "y": 71.65238761901855,
260         "z": "5f45af23.e79db",
261         "wires": [
262             [
263                 "68730b05.41093c"
264             ]
265         ]
266     },
267     {
268         "id": "2d8e3173.9404fe",
269         "type": "failure",
270         "name": "failure",
271         "xml": "<outcome value='failure'>\n",
272         "comments": "",
273         "outputs": 1,
274         "x": 836.914306640625,
275         "y": 110.65238952636719,
276         "z": "5f45af23.e79db",
277         "wires": [
278             [
279                 "68730b05.41093c"
280             ]
281         ]
282     },
283     {
284         "id": "68730b05.41093c",
285         "type": "block",
286         "name": "block : atomic",
287         "xml": "<block atomic=\"true\">\n\n",
288         "atomic": "true",
289         "comments": "",
290         "outputs": 1,
291         "x": 1009.664306640625,
292         "y": 92.15241241455078,
293         "z": "5f45af23.e79db",
294         "wires": [
295             []
296         ]
297     },
298     {
299         "id": "725bb048.cdd648",
300         "type": "switchNode",
301         "name": "switch error-code",
302         "xml": "<switch test='`$error-code`'>\n",
303         "comments": "",
304         "outputs": 1,
305         "x": 315.0809631347656,
306         "y": 767.9024333953857,
307         "z": "5f45af23.e79db",
308         "wires": [
309             [
310                 "8090c154.a1d3d",
311                 "e85d8952.de489"
312             ]
313         ]
314     },
315     {
316         "id": "8090c154.a1d3d",
317         "type": "success",
318         "name": "outcome: 400",
319         "xml": "<outcome value=\"400\">",
320         "comments": "",
321         "outputs": 1,
322         "x": 579.7475891113281,
323         "y": 720.2357139587402,
324         "z": "5f45af23.e79db",
325         "wires": [
326             [
327                 "ce3b516.494c33"
328             ]
329         ]
330     },
331     {
332         "id": "e85d8952.de489",
333         "type": "success",
334         "name": "outcome: Other",
335         "xml": "<outcome value=\"Other\">",
336         "comments": "",
337         "outputs": 1,
338         "x": 579.664249420166,
339         "y": 820.235746383667,
340         "z": "5f45af23.e79db",
341         "wires": [
342             [
343                 "7e12114c.692c8"
344             ]
345         ]
346     },
347     {
348         "id": "ce3b516.494c33",
349         "type": "block",
350         "name": "block : atomic",
351         "xml": "<block atomic=\"true\">",
352         "atomic": "true",
353         "outputs": 1,
354         "x": 790.9976348876953,
355         "y": 722.9024209976196,
356         "z": "5f45af23.e79db",
357         "wires": [
358             [
359                 "e5979afa.9a7fd8"
360             ]
361         ]
362     },
363     {
364         "id": "7e12114c.692c8",
365         "type": "block",
366         "name": "block : atomic",
367         "xml": "<block atomic=\"true\">",
368         "atomic": "true",
369         "outputs": 1,
370         "x": 772.9974899291992,
371         "y": 821.485746383667,
372         "z": "5f45af23.e79db",
373         "wires": [
374             [
375                 "c13e27d2.798e68"
376             ]
377         ]
378     },
379     {
380         "id": "e5979afa.9a7fd8",
381         "type": "set",
382         "name": "set Status for dispatcher",
383         "xml": "<set>\n<parameter name='SvcLogic.status' value='success' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />\n<parameter name='output.payload' value='`$output-payload`'/>",
384         "comments": "",
385         "x": 1040.6643371582031,
386         "y": 721.0690479278564,
387         "z": "5f45af23.e79db",
388         "wires": []
389     },
390     {
391         "id": "c13e27d2.798e68",
392         "type": "set",
393         "name": "set Status for dispatcher",
394         "xml": "<set>\n<parameter name='SvcLogic.status' value='failure' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />\n<parameter name='output.payload' value='`$output-payload`'/>\n",
395         "comments": "",
396         "x": 1010.1642837524414,
397         "y": 820.4023923873901,
398         "z": "5f45af23.e79db",
399         "wires": []
400     },
401     {
402         "id": "5563256b.e56974",
403         "type": "block",
404         "name": "block : atomic",
405         "xml": "<block atomic=\"true\">",
406         "atomic": "true",
407         "comments": "",
408         "outputs": 1,
409         "x": 837.164306640625,
410         "y": 211.81903076171875,
411         "z": "5f45af23.e79db",
412         "wires": [
413             [
414                 "ba06fede.6a65b"
415             ]
416         ]
417     },
418     {
419         "id": "5bb535fe.49be94",
420         "type": "success",
421         "name": "success",
422         "xml": "<outcome value='success'>\n",
423         "comments": "",
424         "outputs": 1,
425         "x": 832.747615814209,
426         "y": 150.48571968078613,
427         "z": "5f45af23.e79db",
428         "wires": [
429             [
430                 "5563256b.e56974"
431             ]
432         ]
433     },
434     {
435         "id": "ba06fede.6a65b",
436         "type": "execute",
437         "name": "execute getCapability",
438         "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getCapability\">\n<parameter name=\"caplevel\" value=\"`$action-level`\" />\n<parameter name=\"checkCapability\" value=\"`$request-action`\" />\n<parameter name=\"vServerId\" value=\"`$vserver-id`\"/>\n<parameter name=\"vnf-type\" value=\"`$vnf-type`\" />\n",
439         "comments": "",
440         "outputs": 1,
441         "x": 834.9144897460938,
442         "y": 316.90234375,
443         "z": "5f45af23.e79db",
444         "wires": [
445             [
446                 "dbbaf6b.8538e08",
447                 "13fbac68.432c14"
448             ]
449         ]
450     },
451     {
452         "id": "61a509a2.681de8",
453         "type": "switchNode",
454         "name": "switch capability-result",
455         "xml": "<switch test=\"`$capabilities`\">\n",
456         "comments": "",
457         "outputs": 1,
458         "x": 1138.704574584961,
459         "y": 457.6452317237854,
460         "z": "5f45af23.e79db",
461         "wires": [
462             [
463                 "7acdc640.1fe91",
464                 "65a418dc.42d498",
465                 "ea32fdd6.dc1648"
466             ]
467         ]
468     },
469     {
470         "id": "7acdc640.1fe91",
471         "type": "success",
472         "name": "outcome: Not-Supported",
473         "xml": "<outcome value=\"Not-Supported\">",
474         "comments": "",
475         "outputs": 1,
476         "x": 1377.9144439697266,
477         "y": 584.2356586456299,
478         "z": "5f45af23.e79db",
479         "wires": [
480             [
481                 "dad89777.86f9b"
482             ]
483         ]
484     },
485     {
486         "id": "65a418dc.42d498",
487         "type": "success",
488         "name": "outcome: Supported",
489         "xml": "<outcome value=\"Supported\">",
490         "comments": "",
491         "outputs": 1,
492         "x": 1378.8310546875,
493         "y": 514.5690307617188,
494         "z": "5f45af23.e79db",
495         "wires": [
496             [
497                 "8b8232d3.c97758"
498             ]
499         ]
500     },
501     {
502         "id": "dbbaf6b.8538e08",
503         "type": "failure",
504         "name": "Other",
505         "xml": "<outcome value='Other'>\n",
506         "comments": "",
507         "outputs": 1,
508         "x": 1110.0094909667969,
509         "y": 318.0928611755371,
510         "z": "5f45af23.e79db",
511         "wires": [
512             [
513                 "aef30176.6772f"
514             ]
515         ]
516     },
517     {
518         "id": "13fbac68.432c14",
519         "type": "success",
520         "name": "success",
521         "xml": "<outcome value='success'>\n",
522         "comments": "",
523         "outputs": 1,
524         "x": 1094.4619979858398,
525         "y": 374.90238761901855,
526         "z": "5f45af23.e79db",
527         "wires": [
528             [
529                 "11cc4e86.30dbb9"
530             ]
531         ]
532     },
533     {
534         "id": "dad89777.86f9b",
535         "type": "set",
536         "name": "set error-code 450 and message",
537         "xml": "<set>\n<parameter name='error-code' value='450' />\n<parameter name='error-message' value=\"Request not supported\" />\n<parameter name='output-payload' value=\"\" />",
538         "comments": "",
539         "x": 1668.247543334961,
540         "y": 585.9023866653442,
541         "z": "5f45af23.e79db",
542         "wires": []
543     },
544     {
545         "id": "8b8232d3.c97758",
546         "type": "block",
547         "name": "block : atomic",
548         "xml": "<block atomic=\"true\">",
549         "atomic": "true",
550         "comments": "",
551         "outputs": 1,
552         "x": 1593.24755859375,
553         "y": 513.5690307617188,
554         "z": "5f45af23.e79db",
555         "wires": [
556             [
557                 "ecdb4d49.5fd018"
558             ]
559         ]
560     },
561     {
562         "id": "ea32fdd6.dc1648",
563         "type": "other",
564         "name": "Other",
565         "xml": "<outcome value='Other'>\n",
566         "comments": "",
567         "outputs": 1,
568         "x": 1315.5810661315918,
569         "y": 446.23571491241455,
570         "z": "5f45af23.e79db",
571         "wires": [
572             [
573                 "8b8232d3.c97758"
574             ]
575         ]
576     },
577     {
578         "id": "d9441e75.6c25e",
579         "type": "set",
580         "name": "set error code 401",
581         "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Cannot Determine Capabilities\" />\n<parameter name='output-payload' value=\"\" />\n",
582         "comments": "",
583         "x": 1459.9141845703125,
584         "y": 306.4857177734375,
585         "z": "5f45af23.e79db",
586         "wires": []
587     },
588     {
589         "id": "11cc4e86.30dbb9",
590         "type": "block",
591         "name": "block : atomic",
592         "xml": "<block atomic=\"true\">\n\n",
593         "atomic": "true",
594         "comments": "",
595         "outputs": 1,
596         "x": 939.2992706298828,
597         "y": 458.0594539642334,
598         "z": "5f45af23.e79db",
599         "wires": [
600             [
601                 "61a509a2.681de8"
602             ]
603         ]
604     },
605     {
606         "id": "fbfa55bf.6086b",
607         "type": "record",
608         "name": "record",
609         "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"` 'Capabilities results will be - '+$capabilities`\" />",
610         "comments": "",
611         "outputs": 1,
612         "x": 1424.322998046875,
613         "y": 354.702392578125,
614         "z": "5f45af23.e79db",
615         "wires": [
616             []
617         ]
618     },
619     {
620         "id": "aef30176.6772f",
621         "type": "block",
622         "name": "block : atomic",
623         "xml": "<block atomic=\"true\">\n\n",
624         "atomic": "true",
625         "comments": "",
626         "outputs": 1,
627         "x": 1263.24755859375,
628         "y": 317.15234375,
629         "z": "5f45af23.e79db",
630         "wires": [
631             [
632                 "d9441e75.6c25e",
633                 "fbfa55bf.6086b"
634             ]
635         ]
636     },
637     {
638         "id": "d24feafb.19922",
639         "type": "set",
640         "name": "set aai-vnf-type, vnf-type",
641         "xml": "<set>\n<parameter name='aai-vnf-type' value='`$vnf-type`' />\n<parameter name='vnf-type' value='' />\n",
642         "comments": "",
643         "x": 2141,
644         "y": 312,
645         "z": "5f45af23.e79db",
646         "wires": []
647     },
648     {
649         "id": "ecdb4d49.5fd018",
650         "type": "switchNode",
651         "name": "switch action-level",
652         "xml": "<switch test='`$action-level`'>\n",
653         "comments": "",
654         "outputs": 1,
655         "x": 1800,
656         "y": 512,
657         "z": "5f45af23.e79db",
658         "wires": [
659             [
660                 "94a8dfb7.3f2ca8",
661                 "c0d1df2.56de32"
662             ]
663         ]
664     },
665     {
666         "id": "94a8dfb7.3f2ca8",
667         "type": "success",
668         "name": "outcome: Other",
669         "xml": "<outcome value='Other'>",
670         "comments": "",
671         "outputs": 1,
672         "x": 2002.4166259765625,
673         "y": 577.4166259765625,
674         "z": "5f45af23.e79db",
675         "wires": [
676             [
677                 "ae40264f.019cf"
678             ]
679         ]
680     },
681     {
682         "id": "c0d1df2.56de32",
683         "type": "success",
684         "name": "outcome: vm",
685         "xml": "<outcome value='vm'>",
686         "comments": "",
687         "outputs": 1,
688         "x": 1740.4166259765625,
689         "y": 371.08331298828125,
690         "z": "5f45af23.e79db",
691         "wires": [
692             [
693                 "d5476b30.41f1b"
694             ]
695         ]
696     },
697     {
698         "id": "d5476b30.41f1b",
699         "type": "block",
700         "name": "block : atomic",
701         "xml": "<block atomic=\"true\">",
702         "atomic": "true",
703         "comments": "",
704         "outputs": 1,
705         "x": 1942.25,
706         "y": 372,
707         "z": "5f45af23.e79db",
708         "wires": [
709             [
710                 "d24feafb.19922",
711                 "ae40264f.019cf"
712             ]
713         ]
714     },
715     {
716         "id": "71377d69.4cdbc4",
717         "type": "comment",
718         "name": "vnf-type is set to nul here to enable VM level commands to select correct RPC ",
719         "info": "",
720         "comments": "",
721         "x": 1930,
722         "y": 257,
723         "z": "5f45af23.e79db",
724         "wires": []
725     }
726 ]