Deployment onap rename
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / APPC / APPC_MergeTemplateData.json
1 [
2     {
3         "comments": "",
4         "id": "8ee93af3.e76758",
5         "name": "switch config-type",
6         "outputs": 1,
7         "type": "switchNode",
8         "wires": [
9             [
10                 "617b6511.320aec",
11                 "d2208875.808258"
12             ]
13         ],
14         "x": 431.6666564941406,
15         "xml": "<switch test='`$config-type`'>\n",
16         "y": 315.8253974914551,
17         "z": "a49375c8.88c748"
18     },
19     {
20         "comments": "",
21         "id": "617b6511.320aec",
22         "name": "outcome: template",
23         "outputs": 1,
24         "type": "success",
25         "wires": [
26             [
27                 "9708e2c6.a3ce4"
28             ]
29         ],
30         "x": 649.8214435577393,
31         "xml": "<outcome value=\"template\">",
32         "y": 317.1111030578613,
33         "z": "a49375c8.88c748"
34     },
35     {
36         "comments": "",
37         "id": "6f91db3d.8b0924",
38         "name": "call: GenerateTemplateConfig",
39         "outputs": 1,
40         "type": "call",
41         "wires": [
42             [
43                 "75d7daa7.8058a4",
44                 "6a26f541.aa907c"
45             ]
46         ],
47         "x": 1061.4881992340088,
48         "xml": "<call module=\"APPC\" rpc=\"GenerateTemplateConfig\" mode=\"sync\">",
49         "y": 447.36110496520996,
50         "z": "a49375c8.88c748"
51     },
52     {
53         "comments": "",
54         "id": "75d7daa7.8058a4",
55         "name": "not-found",
56         "outputs": 1,
57         "type": "failure",
58         "wires": [
59             [
60                 "314e0e4f.5adb22"
61             ]
62         ],
63         "x": 1292.0713901519775,
64         "xml": "<outcome value='not-found'>\n",
65         "y": 448.02779388427734,
66         "z": "a49375c8.88c748"
67     },
68     {
69         "atomic": "true",
70         "comments": null,
71         "id": "314e0e4f.5adb22",
72         "name": "block : atomic",
73         "outputs": 1,
74         "type": "block",
75         "wires": [
76             [
77                 "bdc01df2.1a5d8"
78             ]
79         ],
80         "x": 1464.488145828247,
81         "xml": "<block atomic=\"true\">",
82         "y": 447.6944193840027,
83         "z": "a49375c8.88c748"
84     },
85     {
86         "comments": "",
87         "id": "bdc01df2.1a5d8",
88         "name": "return failure",
89         "type": "returnFailure",
90         "wires": [],
91         "x": 1658.5714015960693,
92         "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow GenerateTemplateConfig not found'`\"/>\n\t",
93         "y": 448.44441986083984,
94         "z": "a49375c8.88c748"
95     },
96     {
97         "comments": "",
98         "id": "6a26f541.aa907c",
99         "name": "failure",
100         "outputs": 1,
101         "type": "failure",
102         "wires": [
103             [
104                 "7ba894b.5d3a46c"
105             ]
106         ],
107         "x": 1292.1547679901123,
108         "xml": "<outcome value='failure'>\n",
109         "y": 506.527792930603,
110         "z": "a49375c8.88c748"
111     },
112     {
113         "atomic": "true",
114         "comments": null,
115         "id": "7ba894b.5d3a46c",
116         "name": "block : atomic",
117         "outputs": 1,
118         "type": "block",
119         "wires": [
120             [
121                 "9728b5f9.536268"
122             ]
123         ],
124         "x": 1467.154893875122,
125         "xml": "<block atomic=\"true\">",
126         "y": 507.027792930603,
127         "z": "a49375c8.88c748"
128     },
129     {
130         "comments": "",
131         "id": "9728b5f9.536268",
132         "name": "return failure",
133         "type": "returnFailure",
134         "wires": [],
135         "x": 1667.988145828247,
136         "xml": "<return status=\"failure\">\n\t\n\t",
137         "y": 507.44441986083984,
138         "z": "a49375c8.88c748"
139     },
140     {
141         "comments": "",
142         "id": "7e6e5c1a.29c4a4",
143         "info": "",
144         "name": "templatename cases",
145         "type": "comment",
146         "wires": [],
147         "x": 642.7381381988525,
148         "y": 370.4444465637207,
149         "z": "a49375c8.88c748"
150     },
151     {
152         "comments": "",
153         "id": "37b38554.dad0ca",
154         "info": "",
155         "name": "merge ASDC template and data",
156         "type": "comment",
157         "wires": [],
158         "x": 968.9881381988525,
159         "y": 674.0277881622314,
160         "z": "a49375c8.88c748"
161     },
162     {
163         "comments": "",
164         "id": "63a29ad8.8e05e4",
165         "info": "",
166         "name": "configBlock with or without parameters",
167         "type": "comment",
168         "wires": [],
169         "x": 620.9881076812744,
170         "y": 647.8611078262329,
171         "z": "a49375c8.88c748"
172     },
173     {
174         "atomic": "true",
175         "comments": null,
176         "id": "9708e2c6.a3ce4",
177         "name": "block : atomic",
178         "outputs": 1,
179         "type": "block",
180         "wires": [
181             [
182                 "6f91db3d.8b0924",
183                 "9ebb8ed8.eaa4e"
184             ]
185         ],
186         "x": 843.904821395874,
187         "xml": "<block atomic=\"true\">",
188         "y": 318.5277290344238,
189         "z": "a49375c8.88c748"
190     },
191     {
192         "comments": "",
193         "id": "9ebb8ed8.eaa4e",
194         "name": "execute getTemplate",
195         "outputs": 1,
196         "type": "execute",
197         "wires": [
198             [
199                 "367ba220.8bea8e",
200                 "8c4d147f.36cf68"
201             ]
202         ],
203         "x": 1048.8214511871338,
204         "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
205         "y": 315.6111030578613,
206         "z": "a49375c8.88c748"
207     },
208     {
209         "comments": "",
210         "id": "367ba220.8bea8e",
211         "name": "failure",
212         "outputs": 1,
213         "type": "failure",
214         "wires": [
215             [
216                 "9f013009.4fb92"
217             ]
218         ],
219         "x": 1232.4881420135498,
220         "xml": "<outcome value='failure'>\n",
221         "y": 375.2777318954468,
222         "z": "a49375c8.88c748"
223     },
224     {
225         "atomic": "true",
226         "comments": null,
227         "id": "9f013009.4fb92",
228         "name": "block : atomic",
229         "outputs": 1,
230         "type": "block",
231         "wires": [
232             [
233                 "e5aa2afa.241d48"
234             ]
235         ],
236         "x": 1415.238145828247,
237         "xml": "<block atomic=\"true\">",
238         "y": 369.527792930603,
239         "z": "a49375c8.88c748"
240     },
241     {
242         "comments": "",
243         "id": "e5aa2afa.241d48",
244         "name": "return failure",
245         "type": "returnFailure",
246         "wires": [],
247         "x": 1596.9881496429443,
248         "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$config-template.error-message`\"/>\n\t\n\t\n\t",
249         "y": 368.52773094177246,
250         "z": "a49375c8.88c748"
251     },
252     {
253         "comments": "",
254         "id": "8c4d147f.36cf68",
255         "name": "not-found",
256         "outputs": 1,
257         "type": "failure",
258         "wires": [
259             [
260                 "b643f5da.9fc9b8"
261             ]
262         ],
263         "x": 1230.1548900604248,
264         "xml": "<outcome value='not-found'>\n",
265         "y": 285.69444847106934,
266         "z": "a49375c8.88c748"
267     },
268     {
269         "atomic": "true",
270         "comments": null,
271         "id": "b643f5da.9fc9b8",
272         "name": "block : atomic",
273         "outputs": 1,
274         "type": "block",
275         "wires": [
276             [
277                 "7e56335c.a0b01c"
278             ]
279         ],
280         "x": 1400.738145828247,
281         "xml": "<block atomic=\"true\">",
282         "y": 286.0277919769287,
283         "z": "a49375c8.88c748"
284     },
285     {
286         "comments": "",
287         "id": "7e56335c.a0b01c",
288         "name": "return failure",
289         "type": "returnFailure",
290         "wires": [],
291         "x": 1595.7382717132568,
292         "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to get template info\"/>\n\t\n\t\n\t",
293         "y": 286.2777614593506,
294         "z": "a49375c8.88c748"
295     },
296     {
297         "comments": "",
298         "id": "d2208875.808258",
299         "name": "outcome: Other",
300         "outputs": 1,
301         "type": "success",
302         "wires": [
303             [
304                 "a7aad416.c57578"
305             ]
306         ],
307         "x": 613.4881000518799,
308         "xml": "<outcome value=\"Other\">",
309         "y": 576.8611087799072,
310         "z": "a49375c8.88c748"
311     },
312     {
313         "atomic": "true",
314         "comments": null,
315         "id": "a7aad416.c57578",
316         "name": "block : atomic",
317         "outputs": 1,
318         "type": "block",
319         "wires": [
320             [
321                 "efd06d3f.ada62"
322             ]
323         ],
324         "x": 803.238130569458,
325         "xml": "<block atomic=\"true\">",
326         "y": 584.8611087799072,
327         "z": "a49375c8.88c748"
328     },
329     {
330         "comments": "",
331         "id": "efd06d3f.ada62",
332         "name": "call: GenerateConfig",
333         "outputs": 1,
334         "type": "call",
335         "wires": [
336             [
337                 "af0cd93c.94b1b8",
338                 "4352a232.eb3aec"
339             ]
340         ],
341         "x": 1017.7381381988525,
342         "xml": "<call module=\"APPC\" rpc=\"GenerateConfig\" mode=\"sync\">",
343         "y": 597.8611087799072,
344         "z": "a49375c8.88c748"
345     },
346     {
347         "comments": "",
348         "id": "af0cd93c.94b1b8",
349         "name": "not-found",
350         "outputs": 1,
351         "type": "failure",
352         "wires": [
353             [
354                 "f4ef6668.6a1018"
355             ]
356         ],
357         "x": 1223.7381420135498,
358         "xml": "<outcome value='not-found'>\n",
359         "y": 596.8611068725586,
360         "z": "a49375c8.88c748"
361     },
362     {
363         "atomic": "true",
364         "comments": null,
365         "id": "f4ef6668.6a1018",
366         "name": "block : atomic",
367         "outputs": 1,
368         "type": "block",
369         "wires": [
370             [
371                 "39d87011.2d87b"
372             ]
373         ],
374         "x": 1393.238145828247,
375         "xml": "<block atomic=\"true\">",
376         "y": 597.6111068725586,
377         "z": "a49375c8.88c748"
378     },
379     {
380         "comments": "",
381         "id": "39d87011.2d87b",
382         "name": "return failure",
383         "type": "returnFailure",
384         "wires": [],
385         "x": 1577.988145828247,
386         "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow GenerateConfig not found'`\"/>\n\t",
387         "y": 597.1111068725586,
388         "z": "a49375c8.88c748"
389     },
390     {
391         "comments": "",
392         "id": "4352a232.eb3aec",
393         "name": "failure",
394         "outputs": 1,
395         "type": "failure",
396         "wires": [
397             [
398                 "37a5a6a1.b52c9a"
399             ]
400         ],
401         "x": 1216.7381381988525,
402         "xml": "<outcome value='failure'>\n",
403         "y": 687.6111087799072,
404         "z": "a49375c8.88c748"
405     },
406     {
407         "atomic": "true",
408         "comments": null,
409         "id": "37a5a6a1.b52c9a",
410         "name": "block : atomic",
411         "outputs": 1,
412         "type": "block",
413         "wires": [
414             [
415                 "26d3fdda.ad1b12"
416             ]
417         ],
418         "x": 1390.2381381988525,
419         "xml": "<block atomic=\"true\">",
420         "y": 681.8611087799072,
421         "z": "a49375c8.88c748"
422     },
423     {
424         "comments": "",
425         "id": "26d3fdda.ad1b12",
426         "name": "return failure",
427         "type": "returnFailure",
428         "wires": [],
429         "x": 1575.238145828247,
430         "xml": "<return status=\"failure\">\n\t\n\t",
431         "y": 680.1111097335815,
432         "z": "a49375c8.88c748"
433     },
434     {
435         "id": "ff782964.e94288",
436         "name": "DGSTART",
437         "outputs": 1,
438         "type": "dgstart",
439         "wires": [
440             [
441                 "eadfabd6.6161f8"
442             ]
443         ],
444         "x": 176.1825466156006,
445         "y": 83.33332920074463,
446         "z": "a49375c8.88c748"
447     },
448     {
449         "comments": "",
450         "id": "eadfabd6.6161f8",
451         "module": "APPC",
452         "name": "APPC 4.0.0",
453         "outputs": 1,
454         "type": "service-logic",
455         "version": "4.0.0",
456         "wires": [
457             [
458                 "7cd40519.3b23dc"
459             ]
460         ],
461         "x": 409.2936382293701,
462         "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'>",
463         "y": 84.55554962158203,
464         "z": "a49375c8.88c748"
465     },
466     {
467         "comments": "",
468         "id": "7cd40519.3b23dc",
469         "name": "method MergeTemplateData",
470         "outputs": 1,
471         "type": "method",
472         "wires": [
473             [
474                 "3fa03099.10f27"
475             ]
476         ],
477         "x": 631.3769855499268,
478         "xml": "<method rpc='MergeTemplateData' mode='sync'>\n",
479         "y": 83.52777004241943,
480         "z": "a49375c8.88c748"
481     },
482     {
483         "atomic": "true",
484         "comments": null,
485         "id": "3fa03099.10f27",
486         "name": "block : atomic",
487         "outputs": 1,
488         "type": "block",
489         "wires": [
490             [
491                 "8ee93af3.e76758",
492                 "6fc699a0.777a38",
493                 "5514dd63.d31be4",
494                 "f310f0a8.6039f",
495                 "a2cedd5c.acad2"
496             ]
497         ],
498         "x": 169.23812103271484,
499         "xml": "<block atomic=\"true\">",
500         "y": 270.27781772613525,
501         "z": "a49375c8.88c748"
502     },
503     {
504         "comments": "",
505         "id": "6fc699a0.777a38",
506         "name": "record",
507         "outputs": 1,
508         "type": "record",
509         "wires": [
510             []
511         ],
512         "x": 834.1985054016113,
513         "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=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"CONFIGPARAMS\" value=\"`$config-data`\"/>\n<parameter name=\"CONFIGPARAMS1\" value=\"`$block_configuration-parameters`\"/>\n<parameter name=\"TEMPLATENAME\" value=\"`$template-name`\"/>\n<parameter name=\"CONFIGURATION\" value=\"`$configuration`\"/>\n<parameter name=\"CONFIGURATION1\" value=\"`$block_configuration`\"/>\n\n",
514         "y": 130.43650484085083,
515         "z": "a49375c8.88c748"
516     },
517     {
518         "comments": "",
519         "id": "a2cedd5c.acad2",
520         "name": "call: ProcessParameterDefinition",
521         "outputs": 1,
522         "type": "call",
523         "wires": [
524             [
525                 "66999aa1.1b0464",
526                 "62eeaa57.a2b194"
527             ]
528         ],
529         "x": 788.5318756103516,
530         "xml": "<call module=\"APPC\" rpc=\"ProcessParameterDefinition\" mode=\"sync\">",
531         "y": 207.13093757629395,
532         "z": "a49375c8.88c748"
533     },
534     {
535         "comments": "",
536         "id": "66999aa1.1b0464",
537         "name": "not-found",
538         "outputs": 1,
539         "type": "failure",
540         "wires": [
541             [
542                 "65712e43.c571a"
543             ]
544         ],
545         "x": 1153.5595512390137,
546         "xml": "<outcome value='not-found'>\n",
547         "y": 134.57539558410645,
548         "z": "a49375c8.88c748"
549     },
550     {
551         "atomic": "true",
552         "comments": null,
553         "id": "65712e43.c571a",
554         "name": "block : atomic",
555         "outputs": 1,
556         "type": "block",
557         "wires": [
558             [
559                 "1eaf25d0.77480a"
560             ]
561         ],
562         "x": 1340.3095531463623,
563         "xml": "<block atomic=\"true\">",
564         "y": 132.5753936767578,
565         "z": "a49375c8.88c748"
566     },
567     {
568         "comments": "",
569         "id": "1eaf25d0.77480a",
570         "name": "return failure",
571         "type": "returnFailure",
572         "wires": [],
573         "x": 1523.8095569610596,
574         "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow ProcessParameterDefinition not found'`\"/>\n\t",
575         "y": 132.07539558410645,
576         "z": "a49375c8.88c748"
577     },
578     {
579         "comments": "",
580         "id": "62eeaa57.a2b194",
581         "name": "failure",
582         "outputs": 1,
583         "type": "failure",
584         "wires": [
585             [
586                 "cba7e8ee.c38b88"
587             ]
588         ],
589         "x": 1140.0595531463623,
590         "xml": "<outcome value='failure'>\n",
591         "y": 191.57539653778076,
592         "z": "a49375c8.88c748"
593     },
594     {
595         "atomic": "true",
596         "comments": null,
597         "id": "cba7e8ee.c38b88",
598         "name": "block : atomic",
599         "outputs": 1,
600         "type": "block",
601         "wires": [
602             [
603                 "f131fee9.6e3c4"
604             ]
605         ],
606         "x": 1324.3095531463623,
607         "xml": "<block atomic=\"true\">",
608         "y": 191.82539463043213,
609         "z": "a49375c8.88c748"
610     },
611     {
612         "comments": "",
613         "id": "5514dd63.d31be4",
614         "name": "execute saveTxLog",
615         "outputs": 1,
616         "type": "execute",
617         "wires": [
618             [
619                 "5d3a75fc.b01dec"
620             ]
621         ],
622         "x": 520.4166278839111,
623         "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"Prepare Success\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n",
624         "y": 803.0277366638184,
625         "z": "a49375c8.88c748"
626     },
627     {
628         "comments": "",
629         "id": "5d3a75fc.b01dec",
630         "name": "failure",
631         "outputs": 1,
632         "type": "failure",
633         "wires": [
634             [
635                 "414c097b.0db3f8"
636             ]
637         ],
638         "x": 722.5833492279053,
639         "xml": "<outcome value='failure'>\n",
640         "y": 817.1110496520996,
641         "z": "a49375c8.88c748"
642     },
643     {
644         "atomic": "true",
645         "comments": null,
646         "id": "414c097b.0db3f8",
647         "name": "block : atomic",
648         "outputs": 1,
649         "type": "block",
650         "wires": [
651             []
652         ],
653         "x": 950.6666660308838,
654         "xml": "<block atomic=\"true\">",
655         "y": 814.8610496520996,
656         "z": "a49375c8.88c748"
657     },
658     {
659         "comments": "",
660         "id": "f310f0a8.6039f",
661         "name": "record",
662         "outputs": 1,
663         "type": "record",
664         "wires": [
665             []
666         ],
667         "x": 443.3333110809326,
668         "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=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"CONFIGPARAMS\" value=\"`$config-data`\"/>\n",
669         "y": 920.9444265365601,
670         "z": "a49375c8.88c748"
671     },
672     {
673         "comments": "",
674         "id": "f131fee9.6e3c4",
675         "name": "return failure",
676         "type": "returnFailure",
677         "wires": [],
678         "x": 1514.7262878417969,
679         "xml": "<return status=\"failure\">\n\t\n\t",
680         "y": 190.15872383117676,
681         "z": "a49375c8.88c748"
682     }
683 ]