Added cvaas file name in Audit and Sync
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_method_Generic_Audit_2.0.0.json
1 [
2     {
3         "id": "a1ddbe8e.b4dbc",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 79.9999008178711,
8         "y": 84.08333426713943,
9         "z": "9f97f676.932c28",
10         "wires": [
11             [
12                 "e360e3ba.7207b"
13             ]
14         ]
15     },
16     {
17         "id": "e360e3ba.7207b",
18         "type": "service-logic",
19         "name": "APPC 2.0.0",
20         "module": "APPC",
21         "version": "2.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='2.0.0'>",
24         "outputs": 1,
25         "x": 259.9999008178711,
26         "y": 84.08333426713943,
27         "z": "9f97f676.932c28",
28         "wires": [
29             [
30                 "58cb5c35.937564"
31             ]
32         ]
33     },
34     {
35         "id": "58cb5c35.937564",
36         "type": "method",
37         "name": "Generic_Audit",
38         "xml": "<method rpc='Generic_Audit' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 438.9999008178711,
42         "y": 84.08333426713943,
43         "z": "9f97f676.932c28",
44         "wires": [
45             [
46                 "3ee4c4de.552a6c"
47             ]
48         ]
49     },
50     {
51         "id": "e5f14ebc.cf689",
52         "type": "get-resource",
53         "name": "Retrieve current config details",
54         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"SELECT service_description, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address , content FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\" pfx=\"currnt-config[]\">",
55         "comments": "",
56         "outputs": 1,
57         "x": 418.4194107055664,
58         "y": 480.8665657043457,
59         "z": "9f97f676.932c28",
60         "wires": [
61             [
62                 "1ccf8df.0979972",
63                 "610affd8.9bb53",
64                 "8b38226c.79a46"
65             ]
66         ]
67     },
68     {
69         "id": "8b38226c.79a46",
70         "type": "failure",
71         "name": "failure",
72         "xml": "<outcome value='failure'>\n",
73         "comments": "",
74         "outputs": 1,
75         "x": 693.7091751098633,
76         "y": 418.58686447143555,
77         "z": "9f97f676.932c28",
78         "wires": [
79             [
80                 "abda2920.c300c8"
81             ]
82         ]
83     },
84     {
85         "id": "1ccf8df.0979972",
86         "type": "not-found",
87         "name": "not-found",
88         "xml": "<outcome value='not-found'>",
89         "comments": "",
90         "outputs": 1,
91         "x": 700.7092361450195,
92         "y": 483.3646430969238,
93         "z": "9f97f676.932c28",
94         "wires": [
95             [
96                 "7b5505bd.5ebf1c"
97             ]
98         ]
99     },
100     {
101         "id": "610affd8.9bb53",
102         "type": "success",
103         "name": "success",
104         "xml": "<outcome value='success'>\n",
105         "comments": "",
106         "outputs": 1,
107         "x": 632.9314651489258,
108         "y": 533.0313148498535,
109         "z": "9f97f676.932c28",
110         "wires": [
111             [
112                 "e753f26f.d2196"
113             ]
114         ]
115     },
116     {
117         "id": "dab5f775.0cca08",
118         "type": "execute",
119         "name": "Report Error to DCAE",
120         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
121         "comments": "",
122         "outputs": 1,
123         "x": 1155.5592727661133,
124         "y": 496.9629249572754,
125         "z": "9f97f676.932c28",
126         "wires": [
127             []
128         ]
129     },
130     {
131         "id": "26af193a.f9e9c6",
132         "type": "returnFailure",
133         "name": "return failure",
134         "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
135         "comments": "",
136         "x": 1150.319953918457,
137         "y": 542.1509742736816,
138         "z": "9f97f676.932c28",
139         "wires": []
140     },
141     {
142         "id": "350f2d92.f66c82",
143         "type": "set",
144         "name": "Set error message",
145         "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
146         "comments": "",
147         "x": 1140.926887512207,
148         "y": 411.1424140930176,
149         "z": "9f97f676.932c28",
150         "wires": []
151     },
152     {
153         "id": "ee2743b.75b01c",
154         "type": "set",
155         "name": "Set error message",
156         "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving current configuration from the repository for the vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
157         "comments": "",
158         "x": 1142.5678787231445,
159         "y": 368.0569190979004,
160         "z": "9f97f676.932c28",
161         "wires": []
162     },
163     {
164         "id": "abda2920.c300c8",
165         "type": "block",
166         "name": "block",
167         "xml": "<block>\n",
168         "atomic": "false",
169         "comments": "",
170         "outputs": 1,
171         "x": 854.7900466918945,
172         "y": 417.4757499694824,
173         "z": "9f97f676.932c28",
174         "wires": [
175             [
176                 "ee2743b.75b01c",
177                 "dab5f775.0cca08",
178                 "26af193a.f9e9c6",
179                 "935be210.f0f08"
180             ]
181         ]
182     },
183     {
184         "id": "7b5505bd.5ebf1c",
185         "type": "block",
186         "name": "block",
187         "xml": "<block>\n",
188         "atomic": "false",
189         "comments": "",
190         "outputs": 1,
191         "x": 865.3456497192383,
192         "y": 481.2535285949707,
193         "z": "9f97f676.932c28",
194         "wires": [
195             [
196                 "350f2d92.f66c82",
197                 "dab5f775.0cca08",
198                 "26af193a.f9e9c6",
199                 "935be210.f0f08"
200             ]
201         ]
202     },
203     {
204         "id": "e753f26f.d2196",
205         "type": "block",
206         "name": "block : atomic",
207         "xml": "<block atomic='true'>",
208         "atomic": "true",
209         "comments": "",
210         "outputs": 1,
211         "x": 262.8972854614258,
212         "y": 631.1004371643066,
213         "z": "9f97f676.932c28",
214         "wires": [
215             [
216                 "2e3b4165.4db5ce",
217                 "b7a7699.00dfa98",
218                 "1626d397.d2153c",
219                 "a6de7f55.c8767"
220             ]
221         ]
222     },
223     {
224         "id": "2e3b4165.4db5ce",
225         "type": "for",
226         "name": "for each current config",
227         "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
228         "comments": "",
229         "outputs": 1,
230         "x": 490.9656448364258,
231         "y": 631.4679908752441,
232         "z": "9f97f676.932c28",
233         "wires": [
234             [
235                 "a913817d.6bcd2"
236             ]
237         ]
238     },
239     {
240         "id": "923b5cb7.14daa",
241         "type": "set",
242         "name": "Set context",
243         "xml": "<set>\n<parameter name='service-description' value=\"`$currnt-config[$i].service-description`\" />\n<parameter name='vm-name' value=\"`$currnt-config[$i].vm-name`\" />\n<parameter name='vnf-type' value=\"`$currnt-config[$i].vnf-type`\" />\n<parameter name='vnfc-type' value=\"`$currnt-config[$i].vnfc-type`\" />\n<parameter name='host-ip-address' value=\"`$currnt-config[$i].host-ip-address`\" />\n<parameter name='vnf-name' value=\"`$currnt-config[$i].vnf-name`\" />\n<parameter name='current-config' value=\"`$currnt-config[$i].content`\" />\n\n",
244         "comments": "",
245         "x": 766.811897277832,
246         "y": 609.6987953186035,
247         "z": "9f97f676.932c28",
248         "wires": []
249     },
250     {
251         "id": "85a2a673.c02858",
252         "type": "call",
253         "name": "Call Retrieve running Config DG",
254         "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
255         "comments": "",
256         "outputs": 1,
257         "x": 817.811897277832,
258         "y": 666.6988258361816,
259         "z": "9f97f676.932c28",
260         "wires": [
261             [
262                 "fca04ba0.265568",
263                 "cb616d3d.d9b89",
264                 "56abf4c3.7ee71c"
265             ]
266         ]
267     },
268     {
269         "id": "a913817d.6bcd2",
270         "type": "block",
271         "name": "block : atomic",
272         "xml": "<block atomic='true'>",
273         "atomic": "true",
274         "comments": "",
275         "outputs": 1,
276         "x": 513.1195449829102,
277         "y": 729.6218299865723,
278         "z": "9f97f676.932c28",
279         "wires": [
280             [
281                 "923b5cb7.14daa",
282                 "85a2a673.c02858",
283                 "307b2e1.75460d2",
284                 "95ad83d3.f3b54",
285                 "2154ab83.cdf124"
286             ]
287         ]
288     },
289     {
290         "id": "fca04ba0.265568",
291         "type": "failure",
292         "name": "failure",
293         "xml": "<outcome value='failure'>\n",
294         "comments": "",
295         "outputs": 1,
296         "x": 1078.9230422973633,
297         "y": 613.6987342834473,
298         "z": "9f97f676.932c28",
299         "wires": [
300             [
301                 "e5aeeef0.e2c5"
302             ]
303         ]
304     },
305     {
306         "id": "cb616d3d.d9b89",
307         "type": "not-found",
308         "name": "not-found",
309         "xml": "<outcome value='not-found'>",
310         "comments": "",
311         "outputs": 1,
312         "x": 1079.3673782348633,
313         "y": 666.6988258361816,
314         "z": "9f97f676.932c28",
315         "wires": [
316             [
317                 "9b274c50.a8f86"
318             ]
319         ]
320     },
321     {
322         "id": "56abf4c3.7ee71c",
323         "type": "success",
324         "name": "success",
325         "xml": "<outcome value='success'>\n",
326         "comments": "",
327         "outputs": 1,
328         "x": 1083.4785232543945,
329         "y": 710.8098487854004,
330         "z": "9f97f676.932c28",
331         "wires": [
332             []
333         ]
334     },
335     {
336         "id": "e5aeeef0.e2c5",
337         "type": "block",
338         "name": "block",
339         "xml": "<block>\n",
340         "atomic": "false",
341         "comments": "",
342         "outputs": 1,
343         "x": 1228.478645324707,
344         "y": 613.6987342834473,
345         "z": "9f97f676.932c28",
346         "wires": [
347             [
348                 "4d152ac5.0528b4",
349                 "37ea9168.fe717e",
350                 "9154ada8.76482"
351             ]
352         ]
353     },
354     {
355         "id": "9b274c50.a8f86",
356         "type": "block",
357         "name": "block",
358         "xml": "<block>\n",
359         "atomic": "false",
360         "comments": "",
361         "outputs": 1,
362         "x": 1230.811897277832,
363         "y": 664.5876808166504,
364         "z": "9f97f676.932c28",
365         "wires": [
366             [
367                 "18d6b2cd.a5875d",
368                 "4d152ac5.0528b4",
369                 "37ea9168.fe717e",
370                 "9154ada8.76482"
371             ]
372         ]
373     },
374     {
375         "id": "18d6b2cd.a5875d",
376         "type": "set",
377         "name": "Set error message",
378         "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
379         "comments": "",
380         "x": 1473.0341873168945,
381         "y": 639.5876808166504,
382         "z": "9f97f676.932c28",
383         "wires": []
384     },
385     {
386         "id": "37ea9168.fe717e",
387         "type": "returnFailure",
388         "name": "return failure",
389         "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
390         "comments": "",
391         "x": 1494.8804092407227,
392         "y": 884.4338417053223,
393         "z": "9f97f676.932c28",
394         "wires": []
395     },
396     {
397         "id": "4d152ac5.0528b4",
398         "type": "execute",
399         "name": "Report Error to DCAE",
400         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
401         "comments": "",
402         "outputs": 1,
403         "x": 1508.8803787231445,
404         "y": 806.4338111877441,
405         "z": "9f97f676.932c28",
406         "wires": [
407             []
408         ]
409     },
410     {
411         "id": "d60ca35a.103e9",
412         "type": "block",
413         "name": "block",
414         "xml": "<block>\n",
415         "atomic": "false",
416         "comments": "",
417         "outputs": 1,
418         "x": 210.9998779296875,
419         "y": 412.99244117736816,
420         "z": "9f97f676.932c28",
421         "wires": [
422             [
423                 "e5f14ebc.cf689",
424                 "d628d5a8.790d88"
425             ]
426         ]
427     },
428     {
429         "id": "935be210.f0f08",
430         "type": "record",
431         "name": "Log error",
432         "xml": "<record plugin=\"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=\"`$error-message`\"/>\n",
433         "comments": "",
434         "outputs": 1,
435         "x": 1113.6921463012695,
436         "y": 454.77563858032227,
437         "z": "9f97f676.932c28",
438         "wires": [
439             []
440         ]
441     },
442     {
443         "id": "9154ada8.76482",
444         "type": "record",
445         "name": "Log error",
446         "xml": "<record plugin=\"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=\"`$error-message`\"/>\n",
447         "comments": "",
448         "outputs": 1,
449         "x": 1453.357551574707,
450         "y": 765.1839942932129,
451         "z": "9f97f676.932c28",
452         "wires": [
453             []
454         ]
455     },
456     {
457         "id": "d628d5a8.790d88",
458         "type": "record",
459         "name": "Log message",
460         "xml": "<record plugin=\"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=\"`'Retrieving current configuration details from the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
461         "comments": "",
462         "outputs": 1,
463         "x": 400.4187698364258,
464         "y": 414.57805252075195,
465         "z": "9f97f676.932c28",
466         "wires": [
467             []
468         ]
469     },
470     {
471         "id": "b7a7699.00dfa98",
472         "type": "record",
473         "name": "Log message",
474         "xml": "<record plugin=\"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=\"`'Audit action successful for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
475         "comments": "",
476         "outputs": 1,
477         "x": 484.953067779541,
478         "y": 1553.2725563049316,
479         "z": "9f97f676.932c28",
480         "wires": [
481             []
482         ]
483     },
484     {
485         "id": "1626d397.d2153c",
486         "type": "returnSuccess",
487         "name": "return success",
488         "xml": "<return status='success'>\n",
489         "comments": "",
490         "x": 462.79919815063477,
491         "y": 1623.2724342346191,
492         "z": "9f97f676.932c28",
493         "wires": []
494     },
495     {
496         "id": "ded62b87.362a18",
497         "type": "failure",
498         "name": "failure",
499         "xml": "<outcome value='failure'>\n",
500         "comments": "",
501         "outputs": 1,
502         "x": 1020.2896194458008,
503         "y": 923.8037452697754,
504         "z": "9f97f676.932c28",
505         "wires": [
506             [
507                 "eb4e18fc.70c388"
508             ]
509         ]
510     },
511     {
512         "id": "88ce9080.f34b2",
513         "type": "not-found",
514         "name": "not-found",
515         "xml": "<outcome value='not-found'>",
516         "comments": "",
517         "outputs": 1,
518         "x": 1024.2897415161133,
519         "y": 978.5815773010254,
520         "z": "9f97f676.932c28",
521         "wires": [
522             [
523                 "83889e3b.d981b"
524             ]
525         ]
526     },
527     {
528         "id": "16e8c482.c9c08b",
529         "type": "success",
530         "name": "success",
531         "xml": "<outcome value='success'>\n",
532         "comments": "",
533         "outputs": 1,
534         "x": 886.5118789672852,
535         "y": 1035.2482738494873,
536         "z": "9f97f676.932c28",
537         "wires": [
538             [
539                 "12c57efb.ffcf31"
540             ]
541         ]
542     },
543     {
544         "id": "83889e3b.d981b",
545         "type": "block",
546         "name": "block",
547         "xml": "<block>\n",
548         "atomic": "false",
549         "comments": "",
550         "outputs": 1,
551         "x": 1308.9262924194336,
552         "y": 974.4703979492188,
553         "z": "9f97f676.932c28",
554         "wires": [
555             [
556                 "84021bda.055068",
557                 "eb449bdc.564648",
558                 "bb2ef69f.ddf888",
559                 "c8155b31.362778"
560             ]
561         ]
562     },
563     {
564         "id": "eb4e18fc.70c388",
565         "type": "block",
566         "name": "block",
567         "xml": "<block>\n",
568         "atomic": "false",
569         "comments": "",
570         "outputs": 1,
571         "x": 1308.3705520629883,
572         "y": 923.692569732666,
573         "z": "9f97f676.932c28",
574         "wires": [
575             [
576                 "eb449bdc.564648",
577                 "bb2ef69f.ddf888",
578                 "c8155b31.362778",
579                 "84021bda.055068"
580             ]
581         ]
582     },
583     {
584         "id": "84021bda.055068",
585         "type": "set",
586         "name": "Set error message",
587         "xml": "<set>\n<parameter name='error-message' value=\"`'Error comparing current and running configuration for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n<parameter name='error-code' value='500'/>",
588         "comments": "",
589         "x": 1598.5073928833008,
590         "y": 973.3591957092285,
591         "z": "9f97f676.932c28",
592         "wires": []
593     },
594     {
595         "id": "12c57efb.ffcf31",
596         "type": "switchNode",
597         "name": "switch",
598         "xml": "<switch test='`$STATUS`'>",
599         "comments": "",
600         "outputs": 1,
601         "x": 1013.9999465942383,
602         "y": 1070.083408355713,
603         "z": "9f97f676.932c28",
604         "wires": [
605             [
606                 "637073ec.0b4adc",
607                 "cd1e01e3.d765a",
608                 "2d3d7893.57f028"
609             ]
610         ]
611     },
612     {
613         "id": "637073ec.0b4adc",
614         "type": "success",
615         "name": "no match",
616         "xml": "<outcome value='FAILURE'>",
617         "comments": "",
618         "outputs": 1,
619         "x": 1169.9999465942383,
620         "y": 1071.833408355713,
621         "z": "9f97f676.932c28",
622         "wires": [
623             [
624                 "1ac2d8d7.d51727"
625             ]
626         ]
627     },
628     {
629         "id": "1ac2d8d7.d51727",
630         "type": "block",
631         "name": "block",
632         "xml": "<block>\n",
633         "atomic": "false",
634         "comments": "",
635         "outputs": 1,
636         "x": 1333.0000267028809,
637         "y": 1085.0833568572998,
638         "z": "9f97f676.932c28",
639         "wires": [
640             [
641                 "eb449bdc.564648",
642                 "bb2ef69f.ddf888",
643                 "c8155b31.362778",
644                 "adac14cd.cf8508",
645                 "4c313bbb.12daa4",
646                 "f034eb20.d93418"
647             ]
648         ]
649     },
650     {
651         "id": "1fa684cd.087fcb",
652         "type": "block",
653         "name": "block",
654         "xml": "<block>\n",
655         "atomic": "false",
656         "comments": "",
657         "outputs": 1,
658         "x": 1313.9999465942383,
659         "y": 1033.5833778381348,
660         "z": "9f97f676.932c28",
661         "wires": [
662             [
663                 "eb449bdc.564648",
664                 "bb2ef69f.ddf888",
665                 "c8155b31.362778",
666                 "84021bda.055068"
667             ]
668         ]
669     },
670     {
671         "id": "eb449bdc.564648",
672         "type": "record",
673         "name": "Log error",
674         "xml": "<record plugin=\"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=\"`$Error-Message`\"/>\n",
675         "comments": "",
676         "outputs": 1,
677         "x": 1584.9999465942383,
678         "y": 1100.083408355713,
679         "z": "9f97f676.932c28",
680         "wires": [
681             []
682         ]
683     },
684     {
685         "id": "bb2ef69f.ddf888",
686         "type": "execute",
687         "name": "Report Error to DCAE",
688         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
689         "comments": "",
690         "outputs": 1,
691         "x": 1605.8671340942383,
692         "y": 1201.2707862854004,
693         "z": "9f97f676.932c28",
694         "wires": [
695             []
696         ]
697     },
698     {
699         "id": "c8155b31.362778",
700         "type": "returnFailure",
701         "name": "return failure",
702         "xml": "<return status='failure'>\n<parameter name='error-code' value=\"`$error-code`\"/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
703         "comments": "",
704         "x": 1675.6279220581055,
705         "y": 1460.458869934082,
706         "z": "9f97f676.932c28",
707         "wires": []
708     },
709     {
710         "id": "307b2e1.75460d2",
711         "type": "execute",
712         "name": "Compare",
713         "xml": "<execute plugin='org.onap.sdnc.config.audit.node.CompareNode' method='compare' >\n<parameter name='sourceDataType' value=\"Current\" />\n<parameter name='sourceData' value=\"`$current-config`\" />\n<parameter name='targetDataType' value=\"Running\" />\n<parameter name='targetData' value=\"`$running-config.content`\" />\n<parameter name='compareDataType' value=\"`$protocol`\" />",
714         "comments": "",
715         "outputs": 1,
716         "x": 729.9999465942383,
717         "y": 967.0834083557129,
718         "z": "9f97f676.932c28",
719         "wires": [
720             [
721                 "ded62b87.362a18",
722                 "88ce9080.f34b2",
723                 "16e8c482.c9c08b"
724             ]
725         ]
726     },
727     {
728         "id": "adac14cd.cf8508",
729         "type": "set",
730         "name": "Set error message",
731         "xml": "<set>\n<parameter name='error-message' value=\"`$Error-Message`\"/>\n<parameter name='error-code' value=\"`$Error-code`\"/>\n",
732         "comments": "",
733         "x": 1597.9999160766602,
734         "y": 1052.0833187103271,
735         "z": "9f97f676.932c28",
736         "wires": []
737     },
738     {
739         "id": "33b195c.1e94f6a",
740         "type": "set",
741         "name": "Set error message",
742         "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
743         "comments": "",
744         "x": 1473.5073318481445,
745         "y": 727.0833473205566,
746         "z": "9f97f676.932c28",
747         "wires": []
748     },
749     {
750         "id": "bc363e25.8693b",
751         "type": "set",
752         "name": "Set error message",
753         "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving running configuration from the repository for the vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
754         "comments": "",
755         "x": 1468.148323059082,
756         "y": 680.9978675842285,
757         "z": "9f97f676.932c28",
758         "wires": []
759     },
760     {
761         "id": "b48ac617.5af2b8",
762         "type": "block",
763         "name": "block",
764         "xml": "<block>\n",
765         "atomic": "false",
766         "comments": "",
767         "outputs": 1,
768         "x": 1234.370475769043,
769         "y": 747.416690826416,
770         "z": "9f97f676.932c28",
771         "wires": [
772             [
773                 "bc363e25.8693b",
774                 "9154ada8.76482",
775                 "4d152ac5.0528b4",
776                 "37ea9168.fe717e",
777                 "fecad295.7952e"
778             ]
779         ]
780     },
781     {
782         "id": "77302eff.a2754",
783         "type": "block",
784         "name": "block",
785         "xml": "<block>\n",
786         "atomic": "false",
787         "comments": "",
788         "outputs": 1,
789         "x": 1241.926139831543,
790         "y": 797.1944618225098,
791         "z": "9f97f676.932c28",
792         "wires": [
793             [
794                 "33b195c.1e94f6a",
795                 "9154ada8.76482",
796                 "4d152ac5.0528b4",
797                 "37ea9168.fe717e",
798                 "fecad295.7952e"
799             ]
800         ]
801     },
802     {
803         "id": "94a66aae.a52098",
804         "type": "not-found",
805         "name": "not-found",
806         "xml": "<outcome value='not-found'>",
807         "comments": "",
808         "outputs": 1,
809         "x": 1088.289665222168,
810         "y": 797.3055458068848,
811         "z": "9f97f676.932c28",
812         "wires": [
813             [
814                 "77302eff.a2754"
815             ]
816         ]
817     },
818     {
819         "id": "e8cf6616.c9d7e8",
820         "type": "failure",
821         "name": "failure",
822         "xml": "<outcome value='failure'>\n",
823         "comments": "",
824         "outputs": 1,
825         "x": 1089.2894821166992,
826         "y": 749.5278053283691,
827         "z": "9f97f676.932c28",
828         "wires": [
829             [
830                 "b48ac617.5af2b8"
831             ]
832         ]
833     },
834     {
835         "id": "95ad83d3.f3b54",
836         "type": "get-resource",
837         "name": "Retrieve Running config details DB",
838         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\" SELECT upload_config_id, request_id, originator_id, service_description, action, upload_date, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, pending_delete ,content FROM UPLOAD_CONFIG WHERE UPLOAD_CONFIG_ID = $runningConfig.UPLOAD-CONFIG-ID\" pfx=\"running-config\" >",
839         "comments": "",
840         "outputs": 1,
841         "x": 825.999885559082,
842         "y": 793.8074684143066,
843         "z": "9f97f676.932c28",
844         "wires": [
845             [
846                 "94a66aae.a52098",
847                 "e8cf6616.c9d7e8",
848                 "a961dda8.5cac1"
849             ]
850         ]
851     },
852     {
853         "id": "a961dda8.5cac1",
854         "type": "success",
855         "name": "success",
856         "xml": "<outcome value='success'>\n",
857         "comments": "",
858         "outputs": 1,
859         "x": 1086.9997482299805,
860         "y": 847.0833778381348,
861         "z": "9f97f676.932c28",
862         "wires": [
863             []
864         ]
865     },
866     {
867         "id": "cd1e01e3.d765a",
868         "type": "success",
869         "name": "match",
870         "xml": "<outcome value='SUCCESS'>\n",
871         "comments": "",
872         "outputs": 1,
873         "x": 1162.9999542236328,
874         "y": 1132.0834693908691,
875         "z": "9f97f676.932c28",
876         "wires": [
877             [
878                 "83de1abe.040b38"
879             ]
880         ]
881     },
882     {
883         "id": "2d3d7893.57f028",
884         "type": "not-found",
885         "name": "not-found",
886         "xml": "<outcome value='not-found'>\n",
887         "comments": "",
888         "outputs": 1,
889         "x": 1173.9999465942383,
890         "y": 1027.083408355713,
891         "z": "9f97f676.932c28",
892         "wires": [
893             [
894                 "1fa684cd.087fcb"
895             ]
896         ]
897     },
898     {
899         "id": "2154ab83.cdf124",
900         "type": "set",
901         "name": "Set Running Config ID",
902         "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />",
903         "comments": "",
904         "x": 806.1110305786133,
905         "y": 728.4167518615723,
906         "z": "9f97f676.932c28",
907         "wires": []
908     },
909     {
910         "id": "a6de7f55.c8767",
911         "type": "execute",
912         "name": "Generate output payload",
913         "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
914         "comments": "",
915         "outputs": 1,
916         "x": 554.2219581604004,
917         "y": 1493.5281105041504,
918         "z": "9f97f676.932c28",
919         "wires": [
920             [
921                 "c8bfde9e.a1d36",
922                 "310b3cbf.a449a4",
923                 "765fe720.6093e8"
924             ]
925         ]
926     },
927     {
928         "id": "c8bfde9e.a1d36",
929         "type": "failure",
930         "name": "failure",
931         "xml": "<outcome value='failure'>\n",
932         "comments": "",
933         "outputs": 1,
934         "x": 784.2220802307129,
935         "y": 1431.5280494689941,
936         "z": "9f97f676.932c28",
937         "wires": [
938             [
939                 "e5b20e46.ff968"
940             ]
941         ]
942     },
943     {
944         "id": "310b3cbf.a449a4",
945         "type": "not-found",
946         "name": "not-found",
947         "xml": "<outcome value='not-found'>\n",
948         "comments": "",
949         "outputs": 1,
950         "x": 796.2220802307129,
951         "y": 1494.5281105041504,
952         "z": "9f97f676.932c28",
953         "wires": [
954             [
955                 "e5b20e46.ff968"
956             ]
957         ]
958     },
959     {
960         "id": "765fe720.6093e8",
961         "type": "success",
962         "name": "success",
963         "xml": "<outcome value='success'>\n",
964         "comments": "",
965         "outputs": 1,
966         "x": 791.2219581604004,
967         "y": 1558.5280494689941,
968         "z": "9f97f676.932c28",
969         "wires": [
970             []
971         ]
972     },
973     {
974         "id": "e5b20e46.ff968",
975         "type": "block",
976         "name": "block : atomic",
977         "xml": "<block atomic='true'>",
978         "atomic": "true",
979         "comments": "",
980         "outputs": 1,
981         "x": 985.8888282775879,
982         "y": 1494.5280494689941,
983         "z": "9f97f676.932c28",
984         "wires": [
985             [
986                 "75e9aea.522415",
987                 "96406c2d.55ca"
988             ]
989         ]
990     },
991     {
992         "id": "96406c2d.55ca",
993         "type": "execute",
994         "name": "Report error to DCAE",
995         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
996         "comments": "",
997         "outputs": 1,
998         "x": 1230.793369293213,
999         "y": 1496.9089088439941,
1000         "z": "9f97f676.932c28",
1001         "wires": [
1002             []
1003         ]
1004     },
1005     {
1006         "id": "75e9aea.522415",
1007         "type": "returnFailure",
1008         "name": "return failure",
1009         "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1010         "comments": "",
1011         "x": 1218.221836090088,
1012         "y": 1549.0517311096191,
1013         "z": "9f97f676.932c28",
1014         "wires": []
1015     },
1016     {
1017         "id": "4c313bbb.12daa4",
1018         "type": "execute",
1019         "name": "Generate output payload",
1020         "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
1021         "comments": "",
1022         "outputs": 1,
1023         "x": 1634.6666946411133,
1024         "y": 1149.5278358459473,
1025         "z": "9f97f676.932c28",
1026         "wires": [
1027             [
1028                 "257e1adc.fdbe36",
1029                 "d8b7ff64.191d5",
1030                 "5b624b4d.fc3df4"
1031             ]
1032         ]
1033     },
1034     {
1035         "id": "257e1adc.fdbe36",
1036         "type": "failure",
1037         "name": "failure",
1038         "xml": "<outcome value='failure'>\n",
1039         "comments": "",
1040         "outputs": 1,
1041         "x": 1853.6667861938477,
1042         "y": 1115.527744293213,
1043         "z": "9f97f676.932c28",
1044         "wires": [
1045             [
1046                 "cb5db291.4530d"
1047             ]
1048         ]
1049     },
1050     {
1051         "id": "d8b7ff64.191d5",
1052         "type": "not-found",
1053         "name": "not-found",
1054         "xml": "<outcome value='not-found'>\n",
1055         "comments": "",
1056         "outputs": 1,
1057         "x": 1855.6667861938477,
1058         "y": 1161.5278663635254,
1059         "z": "9f97f676.932c28",
1060         "wires": [
1061             [
1062                 "cb5db291.4530d"
1063             ]
1064         ]
1065     },
1066     {
1067         "id": "5b624b4d.fc3df4",
1068         "type": "success",
1069         "name": "success",
1070         "xml": "<outcome value='success'>\n",
1071         "comments": "",
1072         "outputs": 1,
1073         "x": 1855.6666946411133,
1074         "y": 1204.5277137756348,
1075         "z": "9f97f676.932c28",
1076         "wires": [
1077             []
1078         ]
1079     },
1080     {
1081         "id": "cb5db291.4530d",
1082         "type": "block",
1083         "name": "block : atomic",
1084         "xml": "<block atomic='true'>",
1085         "atomic": "true",
1086         "comments": "",
1087         "outputs": 1,
1088         "x": 2048.3335342407227,
1089         "y": 1136.527744293213,
1090         "z": "9f97f676.932c28",
1091         "wires": [
1092             [
1093                 "6d13eafe.e967b4",
1094                 "d9656c92.dc555"
1095             ]
1096         ]
1097     },
1098     {
1099         "id": "d9656c92.dc555",
1100         "type": "execute",
1101         "name": "Report error to DCAE",
1102         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
1103         "comments": "",
1104         "outputs": 1,
1105         "x": 2247.23819732666,
1106         "y": 1093.908603668213,
1107         "z": "9f97f676.932c28",
1108         "wires": [
1109             []
1110         ]
1111     },
1112     {
1113         "id": "6d13eafe.e967b4",
1114         "type": "returnFailure",
1115         "name": "return failure",
1116         "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1117         "comments": "",
1118         "x": 2223.666664123535,
1119         "y": 1181.051670074463,
1120         "z": "9f97f676.932c28",
1121         "wires": []
1122     },
1123     {
1124         "id": "fecad295.7952e",
1125         "type": "execute",
1126         "name": "Generate output payload",
1127         "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
1128         "comments": "",
1129         "outputs": 1,
1130         "x": 1521.4443740844727,
1131         "y": 843.416690826416,
1132         "z": "9f97f676.932c28",
1133         "wires": [
1134             [
1135                 "e52576ee.12e928",
1136                 "abbae360.fedac",
1137                 "c1b8d91e.8d1f08"
1138             ]
1139         ]
1140     },
1141     {
1142         "id": "e52576ee.12e928",
1143         "type": "failure",
1144         "name": "failure",
1145         "xml": "<outcome value='failure'>\n",
1146         "comments": "",
1147         "outputs": 1,
1148         "x": 1765.444465637207,
1149         "y": 809.4165992736816,
1150         "z": "9f97f676.932c28",
1151         "wires": [
1152             [
1153                 "3dd426b0.6e7f9a"
1154             ]
1155         ]
1156     },
1157     {
1158         "id": "abbae360.fedac",
1159         "type": "not-found",
1160         "name": "not-found",
1161         "xml": "<outcome value='not-found'>\n",
1162         "comments": "",
1163         "outputs": 1,
1164         "x": 1767.444465637207,
1165         "y": 855.4167213439941,
1166         "z": "9f97f676.932c28",
1167         "wires": [
1168             [
1169                 "3dd426b0.6e7f9a"
1170             ]
1171         ]
1172     },
1173     {
1174         "id": "c1b8d91e.8d1f08",
1175         "type": "success",
1176         "name": "success",
1177         "xml": "<outcome value='success'>\n",
1178         "comments": "",
1179         "outputs": 1,
1180         "x": 1767.4443740844727,
1181         "y": 898.4165687561035,
1182         "z": "9f97f676.932c28",
1183         "wires": [
1184             []
1185         ]
1186     },
1187     {
1188         "id": "3dd426b0.6e7f9a",
1189         "type": "block",
1190         "name": "block : atomic",
1191         "xml": "<block atomic='true'>",
1192         "atomic": "true",
1193         "comments": "",
1194         "outputs": 1,
1195         "x": 1960.111213684082,
1196         "y": 830.4165992736816,
1197         "z": "9f97f676.932c28",
1198         "wires": [
1199             [
1200                 "9e0c65c1.f52658",
1201                 "4311e57f.b7b7fc"
1202             ]
1203         ]
1204     },
1205     {
1206         "id": "4311e57f.b7b7fc",
1207         "type": "execute",
1208         "name": "Report error to DCAE",
1209         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
1210         "comments": "",
1211         "outputs": 1,
1212         "x": 2159.0158767700195,
1213         "y": 787.7974586486816,
1214         "z": "9f97f676.932c28",
1215         "wires": [
1216             []
1217         ]
1218     },
1219     {
1220         "id": "9e0c65c1.f52658",
1221         "type": "returnFailure",
1222         "name": "return failure",
1223         "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1224         "comments": "",
1225         "x": 2135.4443435668945,
1226         "y": 874.9405250549316,
1227         "z": "9f97f676.932c28",
1228         "wires": []
1229     },
1230     {
1231         "id": "83de1abe.040b38",
1232         "type": "switchNode",
1233         "name": "switch",
1234         "xml": "<switch test='`$publish-config`'>",
1235         "comments": "",
1236         "outputs": 1,
1237         "x": 1200.5003051757812,
1238         "y": 1266.083574295044,
1239         "z": "9f97f676.932c28",
1240         "wires": [
1241             [
1242                 "3325f25e.bbe1de",
1243                 "53759dc7.c8e504"
1244             ]
1245         ]
1246     },
1247     {
1248         "id": "3325f25e.bbe1de",
1249         "type": "outcome",
1250         "name": "Outcome: y",
1251         "xml": "<outcome value='y'>\n",
1252         "comments": "",
1253         "outputs": 1,
1254         "x": 1374.5002059936523,
1255         "y": 1246.7502841949463,
1256         "z": "9f97f676.932c28",
1257         "wires": [
1258             [
1259                 "f034eb20.d93418"
1260             ]
1261         ]
1262     },
1263     {
1264         "id": "53759dc7.c8e504",
1265         "type": "outcome",
1266         "name": "Outcome: Y",
1267         "xml": "<outcome value='Y'>\n",
1268         "comments": "",
1269         "outputs": 1,
1270         "x": 1371.4170608520508,
1271         "y": 1289.833547592163,
1272         "z": "9f97f676.932c28",
1273         "wires": [
1274             [
1275                 "f034eb20.d93418"
1276             ]
1277         ]
1278     },
1279     {
1280         "id": "f034eb20.d93418",
1281         "type": "execute",
1282         "name": "execute CvaasDataIntoContext",
1283         "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/onap/appc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc001\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
1284         "comments": "",
1285         "outputs": 1,
1286         "x": 1729.917236328125,
1287         "y": 1298.8338718414307,
1288         "z": "9f97f676.932c28",
1289         "wires": [
1290             [
1291                 "2dc87d1d.e4ec42",
1292                 "9c2781ef.7b76c"
1293             ]
1294         ]
1295     },
1296     {
1297         "id": "2dc87d1d.e4ec42",
1298         "type": "success",
1299         "name": "success",
1300         "xml": "<outcome value='success'>\n",
1301         "comments": "",
1302         "outputs": 1,
1303         "x": 1997.1674118041992,
1304         "y": 1299.8340373039246,
1305         "z": "9f97f676.932c28",
1306         "wires": [
1307             [
1308                 "2bb2bbf.8cebb44"
1309             ]
1310         ]
1311     },
1312     {
1313         "id": "2bb2bbf.8cebb44",
1314         "type": "record",
1315         "name": "record cvass",
1316         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`$cvaas-file-name`\"/>\n<parameter name=\"record\" value=\"`$cvaas-file-content`\"/>",
1317         "comments": "",
1318         "outputs": 1,
1319         "x": 2179.682327270508,
1320         "y": 1307.599196434021,
1321         "z": "9f97f676.932c28",
1322         "wires": [
1323             [
1324                 "c3b92bd9.d11c58",
1325                 "15fd09aa.e8d5e6"
1326             ]
1327         ]
1328     },
1329     {
1330         "id": "c3b92bd9.d11c58",
1331         "type": "failure",
1332         "name": "failure",
1333         "xml": "<outcome value='failure'>\n",
1334         "comments": "",
1335         "outputs": 1,
1336         "x": 2429.698127746582,
1337         "y": 1320.3642568588257,
1338         "z": "9f97f676.932c28",
1339         "wires": [
1340             [
1341                 "df60be12.6a8dc"
1342             ]
1343         ]
1344     },
1345     {
1346         "id": "15fd09aa.e8d5e6",
1347         "type": "success",
1348         "name": "success",
1349         "xml": "<outcome value='success'>\n",
1350         "comments": "",
1351         "outputs": 1,
1352         "x": 2431.6977767944336,
1353         "y": 1369.364426612854,
1354         "z": "9f97f676.932c28",
1355         "wires": [
1356             [
1357                 "df60be12.6a8dc"
1358             ]
1359         ]
1360     },
1361     {
1362         "id": "df60be12.6a8dc",
1363         "type": "execute",
1364         "name": "execute CheckFileCreated",
1365         "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
1366         "comments": "",
1367         "outputs": 1,
1368         "x": 2666.697841644287,
1369         "y": 1343.3643054962158,
1370         "z": "9f97f676.932c28",
1371         "wires": [
1372             [
1373                 "715eb9c.095cc48",
1374                 "63bca9ab.449bd8"
1375             ]
1376         ]
1377     },
1378     {
1379         "id": "715eb9c.095cc48",
1380         "type": "success",
1381         "name": "success",
1382         "xml": "<outcome value='success'>\n",
1383         "comments": "",
1384         "outputs": 1,
1385         "x": 2917.18359375,
1386         "y": 1421.5993309020996,
1387         "z": "9f97f676.932c28",
1388         "wires": [
1389             [
1390                 "6fcee7de.de7828"
1391             ]
1392         ]
1393     },
1394     {
1395         "id": "f6b4e65d.8d0ae8",
1396         "type": "block",
1397         "name": "block",
1398         "xml": "<block>",
1399         "atomic": "false",
1400         "comments": "",
1401         "outputs": 1,
1402         "x": 3123.182258605957,
1403         "y": 1374.5991201400757,
1404         "z": "9f97f676.932c28",
1405         "wires": [
1406             [
1407                 "2a3d85b8.0fa3aa",
1408                 "7a41fb4e.17abd4",
1409                 "f100d943.081e58",
1410                 "70a77eed.a48af"
1411             ]
1412         ]
1413     },
1414     {
1415         "id": "2a3d85b8.0fa3aa",
1416         "type": "set",
1417         "name": "Set error message",
1418         "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
1419         "comments": "",
1420         "x": 3387.738037109375,
1421         "y": 1313.487928390503,
1422         "z": "9f97f676.932c28",
1423         "wires": []
1424     },
1425     {
1426         "id": "7a41fb4e.17abd4",
1427         "type": "returnFailure",
1428         "name": "return failure",
1429         "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$output.status.message`\"/>",
1430         "comments": "",
1431         "x": 3364.5849571228027,
1432         "y": 1498.3346118927002,
1433         "z": "9f97f676.932c28",
1434         "wires": []
1435     },
1436     {
1437         "id": "f100d943.081e58",
1438         "type": "execute",
1439         "name": "OutputMessageBuilder",
1440         "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
1441         "comments": "",
1442         "outputs": 1,
1443         "x": 3396.3339767456055,
1444         "y": 1429.4880809783936,
1445         "z": "9f97f676.932c28",
1446         "wires": [
1447             [
1448                 "1d26e12d.b1e68f"
1449             ]
1450         ]
1451     },
1452     {
1453         "id": "1d26e12d.b1e68f",
1454         "type": "success",
1455         "name": "success",
1456         "xml": "<outcome value='success'>\n",
1457         "comments": "",
1458         "outputs": 1,
1459         "x": 3594.4660110473633,
1460         "y": 1436.0382852554321,
1461         "z": "9f97f676.932c28",
1462         "wires": [
1463             [
1464                 "1b0b05ef.3f8c1a"
1465             ]
1466         ]
1467     },
1468     {
1469         "id": "1b0b05ef.3f8c1a",
1470         "type": "execute",
1471         "name": "Report error to DCAE",
1472         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1473         "comments": "",
1474         "outputs": 1,
1475         "x": 3795.333568572998,
1476         "y": 1436.4882678985596,
1477         "z": "9f97f676.932c28",
1478         "wires": [
1479             []
1480         ]
1481     },
1482     {
1483         "id": "70a77eed.a48af",
1484         "type": "record",
1485         "name": "Log error",
1486         "xml": "<record plugin=\"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=\"`$error-message`\"/>",
1487         "comments": "",
1488         "outputs": 1,
1489         "x": 3359.833251953125,
1490         "y": 1378.4880485534668,
1491         "z": "9f97f676.932c28",
1492         "wires": [
1493             []
1494         ]
1495     },
1496     {
1497         "id": "9c2781ef.7b76c",
1498         "type": "other",
1499         "name": "other",
1500         "xml": "<outcome value='Other'>\n",
1501         "comments": "",
1502         "outputs": 1,
1503         "x": 2017.0000686645508,
1504         "y": 1465.0834197998047,
1505         "z": "9f97f676.932c28",
1506         "wires": [
1507             [
1508                 "19642735.be2e59"
1509             ]
1510         ]
1511     },
1512     {
1513         "id": "e5da7612.d02468",
1514         "type": "execute",
1515         "name": "OutputMessageBuilder",
1516         "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
1517         "comments": "",
1518         "outputs": 1,
1519         "x": 2359.000442504883,
1520         "y": 1463.083589553833,
1521         "z": "9f97f676.932c28",
1522         "wires": [
1523             [
1524                 "eb347b25.a82bb8"
1525             ]
1526         ]
1527     },
1528     {
1529         "id": "eb347b25.a82bb8",
1530         "type": "success",
1531         "name": "success",
1532         "xml": "<outcome value='success'>\n",
1533         "comments": "",
1534         "outputs": 1,
1535         "x": 2565.132148742676,
1536         "y": 1463.6331634521484,
1537         "z": "9f97f676.932c28",
1538         "wires": [
1539             [
1540                 "683bd4ce.43818c"
1541             ]
1542         ]
1543     },
1544     {
1545         "id": "683bd4ce.43818c",
1546         "type": "execute",
1547         "name": "Report Error to DCAE",
1548         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1549         "comments": "",
1550         "outputs": 1,
1551         "x": 2773.1324615478516,
1552         "y": 1464.633376121521,
1553         "z": "9f97f676.932c28",
1554         "wires": [
1555             []
1556         ]
1557     },
1558     {
1559         "id": "19642735.be2e59",
1560         "type": "block",
1561         "name": "block",
1562         "xml": "<block>",
1563         "atomic": "false",
1564         "comments": "",
1565         "outputs": 1,
1566         "x": 2169.000068664551,
1567         "y": 1465.0834197998047,
1568         "z": "9f97f676.932c28",
1569         "wires": [
1570             [
1571                 "e5da7612.d02468",
1572                 "494acc70.e0c374"
1573             ]
1574         ]
1575     },
1576     {
1577         "id": "494acc70.e0c374",
1578         "type": "returnFailure",
1579         "name": "return failure",
1580         "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$output.status.message`\"/>",
1581         "comments": "",
1582         "x": 2332.000068664551,
1583         "y": 1552.0834197998047,
1584         "z": "9f97f676.932c28",
1585         "wires": []
1586     },
1587     {
1588         "id": "3ee4c4de.552a6c",
1589         "type": "execute",
1590         "name": "Set payload in Context",
1591         "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
1592         "comments": "",
1593         "outputs": 1,
1594         "x": 698.9999160766602,
1595         "y": 86.75000667572021,
1596         "z": "9f97f676.932c28",
1597         "wires": [
1598             [
1599                 "2bd54371.cee8cc",
1600                 "7d717616.411948",
1601                 "6586784c.c25028",
1602                 "f62e2ddd.bc319"
1603             ]
1604         ]
1605     },
1606     {
1607         "id": "7d717616.411948",
1608         "type": "other",
1609         "name": "other",
1610         "xml": "<outcome value='Other'>\n",
1611         "comments": "",
1612         "outputs": 1,
1613         "x": 993.999885559082,
1614         "y": 20,
1615         "z": "9f97f676.932c28",
1616         "wires": [
1617             [
1618                 "f7494e55.6d52c"
1619             ]
1620         ]
1621     },
1622     {
1623         "id": "6586784c.c25028",
1624         "type": "failure",
1625         "name": "failure",
1626         "xml": "<outcome value='failure'>\n",
1627         "comments": "",
1628         "outputs": 1,
1629         "x": 994.999885559082,
1630         "y": 70,
1631         "z": "9f97f676.932c28",
1632         "wires": [
1633             [
1634                 "f7494e55.6d52c"
1635             ]
1636         ]
1637     },
1638     {
1639         "id": "f62e2ddd.bc319",
1640         "type": "not-found",
1641         "name": "not-found",
1642         "xml": "<outcome value='not-found'>\n",
1643         "comments": "",
1644         "outputs": 1,
1645         "x": 987.999885559082,
1646         "y": 125.00001525878906,
1647         "z": "9f97f676.932c28",
1648         "wires": [
1649             [
1650                 "f7494e55.6d52c"
1651             ]
1652         ]
1653     },
1654     {
1655         "id": "2bd54371.cee8cc",
1656         "type": "success",
1657         "name": "success",
1658         "xml": "<outcome value='success'>\n",
1659         "comments": "",
1660         "outputs": 1,
1661         "x": 984.9999465942383,
1662         "y": 180.7500114440918,
1663         "z": "9f97f676.932c28",
1664         "wires": [
1665             [
1666                 "d60ca35a.103e9"
1667             ]
1668         ]
1669     },
1670     {
1671         "id": "f7494e55.6d52c",
1672         "type": "block",
1673         "name": "block",
1674         "xml": "<block atomic='true'>",
1675         "atomic": "true",
1676         "comments": "",
1677         "outputs": 1,
1678         "x": 1201.6665267944336,
1679         "y": 113.00000190734863,
1680         "z": "9f97f676.932c28",
1681         "wires": [
1682             [
1683                 "84b9c44.20c5f38",
1684                 "de964e04.35c45"
1685             ]
1686         ]
1687     },
1688     {
1689         "id": "de964e04.35c45",
1690         "type": "execute",
1691         "name": "OutputMessageBuilder",
1692         "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=\"Failure in flattening payload Json\" />",
1693         "comments": "",
1694         "outputs": 1,
1695         "x": 1431.9995956420898,
1696         "y": 64.88888740539551,
1697         "z": "9f97f676.932c28",
1698         "wires": [
1699             [
1700                 "357e65c8.123b6a"
1701             ]
1702         ]
1703     },
1704     {
1705         "id": "84b9c44.20c5f38",
1706         "type": "returnFailure",
1707         "name": "return failure",
1708         "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1709         "comments": "",
1710         "x": 1398.9994735717773,
1711         "y": 113.52372932434082,
1712         "z": "9f97f676.932c28",
1713         "wires": []
1714     },
1715     {
1716         "id": "357e65c8.123b6a",
1717         "type": "success",
1718         "name": "success",
1719         "xml": "<outcome value='success'>\n",
1720         "comments": "",
1721         "outputs": 1,
1722         "x": 1640.094627380371,
1723         "y": 64.17462348937988,
1724         "z": "9f97f676.932c28",
1725         "wires": [
1726             [
1727                 "8396bb7d.c32218"
1728             ]
1729         ]
1730     },
1731     {
1732         "id": "8396bb7d.c32218",
1733         "type": "execute",
1734         "name": "Report Error to DCAE",
1735         "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
1736         "comments": "",
1737         "outputs": 1,
1738         "x": 1841.666160583496,
1739         "y": 63.88888740539551,
1740         "z": "9f97f676.932c28",
1741         "wires": [
1742             []
1743         ]
1744     },
1745     {
1746         "id": "63bca9ab.449bd8",
1747         "type": "failure",
1748         "name": "failure",
1749         "xml": "<outcome value='failure'>\n",
1750         "comments": "",
1751         "outputs": 1,
1752         "x": 2961.6666412353516,
1753         "y": 1327.9999796748161,
1754         "z": "9f97f676.932c28",
1755         "wires": [
1756             [
1757                 "f6b4e65d.8d0ae8"
1758             ]
1759         ]
1760     },
1761     {
1762         "id": "6fcee7de.de7828",
1763         "type": "set",
1764         "name": "Set file name and path in output",
1765         "xml": "<set>\n<parameter name='output-payload' value=\"`$cvaas-file-name`\" />\n\n",
1766         "comments": "",
1767         "x": 3095,
1768         "y": 1459,
1769         "z": "9f97f676.932c28",
1770         "wires": []
1771     }
1772 ]