2 "id": "81a02ecc.e61b6",
6 "x": 119.66666412353516,
7 "y": 84.08333426713943,
8 "z": "f16b4873.701568",
9 "wires": [["98597336.3c647"]]
12 "id": "98597336.3c647",
13 "type": "service-logic",
18 "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'>",
20 "x": 299.66666412353516,
21 "y": 84.08333426713943,
22 "z": "f16b4873.701568",
23 "wires": [["3dddb84a.a123f8"]]
26 "id": "3dddb84a.a123f8",
28 "name": "Generic_Audit",
29 "xml": "<method rpc='Generic_Audit' mode='sync'>\n",
32 "x": 478.66666412353516,
33 "y": 84.08333426713943,
34 "z": "f16b4873.701568",
35 "wires": [["d043d660.7cbce8"]]
38 "id": "7490fc55.b23eb4",
39 "type": "get-resource",
40 "name": "Retrieve current config details",
41 "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[]\">",
44 "x": 458.08617401123047,
45 "y": 480.8665657043457,
46 "z": "f16b4873.701568",
47 "wires": [["dceb4c56.95345",
52 "id": "7c43698a.2b9eb8",
55 "xml": "<outcome value='failure'>\n",
58 "x": 733.3759384155273,
59 "y": 418.58686447143555,
60 "z": "f16b4873.701568",
61 "wires": [["90511868.d5a528"]]
64 "id": "dceb4c56.95345",
67 "xml": "<outcome value='not-found'>",
70 "x": 740.3759994506836,
71 "y": 483.3646430969238,
72 "z": "f16b4873.701568",
73 "wires": [["867bd8aa.3a55e8"]]
76 "id": "a55ef9f.1845d08",
79 "xml": "<outcome value='success'>\n",
82 "x": 672.5982284545898,
83 "y": 533.0313148498535,
84 "z": "f16b4873.701568",
85 "wires": [["30e459ed.1b9986"]]
88 "id": "7eaffd91.5e2494",
90 "name": "Report Error to DCAE",
91 "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
94 "x": 1195.2260360717773,
95 "y": 496.9629249572754,
96 "z": "f16b4873.701568",
100 "id": "2bbc2c8c.227ae4",
101 "type": "returnFailure",
102 "name": "return failure",
103 "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",
105 "x": 1189.986717224121,
106 "y": 542.1509742736816,
107 "z": "f16b4873.701568",
111 "id": "2c17d4fd.27bcac",
113 "name": "Set error message",
114 "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
116 "x": 1180.593650817871,
117 "y": 411.1424140930176,
118 "z": "f16b4873.701568",
122 "id": "d4c8b998.7b4678",
124 "name": "Set error message",
125 "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",
127 "x": 1182.2346420288086,
128 "y": 368.0569190979004,
129 "z": "f16b4873.701568",
133 "id": "90511868.d5a528",
140 "x": 894.4568099975586,
141 "y": 417.4757499694824,
142 "z": "f16b4873.701568",
143 "wires": [["d4c8b998.7b4678",
149 "id": "867bd8aa.3a55e8",
156 "x": 905.0124130249023,
157 "y": 481.2535285949707,
158 "z": "f16b4873.701568",
159 "wires": [["2c17d4fd.27bcac",
165 "id": "30e459ed.1b9986",
167 "name": "block : atomic",
168 "xml": "<block atomic='true'>",
172 "x": 302.56404876708984,
173 "y": 631.1004371643066,
174 "z": "f16b4873.701568",
175 "wires": [["b79fac1d.f13e1",
181 "id": "b79fac1d.f13e1",
183 "name": "for each current config",
184 "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
187 "x": 530.6324081420898,
188 "y": 631.4679908752441,
189 "z": "f16b4873.701568",
190 "wires": [["67f30b25.070c24"]]
193 "id": "eb62c9d8.e05988",
195 "name": "Set context",
196 "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",
198 "x": 806.4786605834961,
199 "y": 609.6987953186035,
200 "z": "f16b4873.701568",
204 "id": "c66c9b28.d58e38",
206 "name": "Call Retrieve running Config DG",
207 "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
210 "x": 857.4786605834961,
211 "y": 666.6988258361816,
212 "z": "f16b4873.701568",
213 "wires": [["e6375b8c.512fa8",
218 "id": "67f30b25.070c24",
220 "name": "block : atomic",
221 "xml": "<block atomic='true'>",
225 "x": 552.7863082885742,
226 "y": 729.6218299865723,
227 "z": "f16b4873.701568",
228 "wires": [["eb62c9d8.e05988",
235 "id": "e6375b8c.512fa8",
238 "xml": "<outcome value='failure'>\n",
241 "x": 1118.5898056030273,
242 "y": 613.6987342834473,
243 "z": "f16b4873.701568",
244 "wires": [["5a971e26.a7171"]]
247 "id": "b4636b56.55a038",
250 "xml": "<outcome value='not-found'>",
253 "x": 1119.0341415405273,
254 "y": 666.6988258361816,
255 "z": "f16b4873.701568",
256 "wires": [["bd38a484.bd0a98"]]
259 "id": "67a55747.3e2588",
262 "xml": "<outcome value='success'>\n",
265 "x": 1123.1452865600586,
266 "y": 710.8098487854004,
267 "z": "f16b4873.701568",
271 "id": "5a971e26.a7171",
278 "x": 1268.145408630371,
279 "y": 613.6987342834473,
280 "z": "f16b4873.701568",
281 "wires": [["72158f5.d06fd7",
286 "id": "bd38a484.bd0a98",
293 "x": 1270.478660583496,
294 "y": 664.5876808166504,
295 "z": "f16b4873.701568",
296 "wires": [["c433e537.6d3cf8",
302 "id": "c433e537.6d3cf8",
304 "name": "Set error message",
305 "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
307 "x": 1512.7009506225586,
308 "y": 639.5876808166504,
309 "z": "f16b4873.701568",
313 "id": "580bd65f.53d9c8",
314 "type": "returnFailure",
315 "name": "return failure",
316 "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`\"/>",
318 "x": 1534.5471725463867,
319 "y": 884.4338417053223,
320 "z": "f16b4873.701568",
324 "id": "72158f5.d06fd7",
326 "name": "Report Error to DCAE",
327 "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
330 "x": 1548.5471420288086,
331 "y": 806.4338111877441,
332 "z": "f16b4873.701568",
336 "id": "752bb299.feb57c",
343 "x": 250.66664123535156,
344 "y": 412.99244117736816,
345 "z": "f16b4873.701568",
346 "wires": [["7490fc55.b23eb4",
350 "id": "ac51bff5.352e5",
353 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
356 "x": 1153.3589096069336,
357 "y": 454.77563858032227,
358 "z": "f16b4873.701568",
362 "id": "c4fa8668.3392a8",
365 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
368 "x": 1493.024314880371,
369 "y": 765.1839942932129,
370 "z": "f16b4873.701568",
374 "id": "7c0de445.f1cc6c",
376 "name": "Log message",
377 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Retrieving current configuration details from the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
380 "x": 440.08553314208984,
381 "y": 414.57805252075195,
382 "z": "f16b4873.701568",
386 "id": "925cca6f.85b738",
388 "name": "Log message",
389 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Audit action successful for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
392 "x": 524.6198310852051,
393 "y": 1553.2725563049316,
394 "z": "f16b4873.701568",
398 "id": "a844b2a2.8681f",
399 "type": "returnSuccess",
400 "name": "return success",
401 "xml": "<return status='success'>\n",
403 "x": 502.4659614562988,
404 "y": 1623.2724342346191,
405 "z": "f16b4873.701568",
409 "id": "a97ef4e9.131748",
412 "xml": "<outcome value='failure'>\n",
415 "x": 1059.9563827514648,
416 "y": 923.8037452697754,
417 "z": "f16b4873.701568",
418 "wires": [["7f859626.3ecfd8"]]
421 "id": "8225d505.2c9498",
424 "xml": "<outcome value='not-found'>",
427 "x": 1063.9565048217773,
428 "y": 978.5815773010254,
429 "z": "f16b4873.701568",
430 "wires": [["bde3e23.e488b2"]]
433 "id": "57cfd6f7.764c38",
436 "xml": "<outcome value='success'>\n",
439 "x": 926.1786422729492,
440 "y": 1035.2482738494873,
441 "z": "f16b4873.701568",
442 "wires": [["fb928b6.eef3f78"]]
445 "id": "bde3e23.e488b2",
452 "x": 1348.5930557250977,
453 "y": 974.4703979492188,
454 "z": "f16b4873.701568",
455 "wires": [["1d860eb4.38f4b1",
461 "id": "7f859626.3ecfd8",
468 "x": 1348.0373153686523,
469 "y": 923.692569732666,
470 "z": "f16b4873.701568",
471 "wires": [["e4322d3b.8d1ab",
477 "id": "1d860eb4.38f4b1",
479 "name": "Set error message",
480 "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'/>",
482 "x": 1638.1741561889648,
483 "y": 973.3591957092285,
484 "z": "f16b4873.701568",
488 "id": "fb928b6.eef3f78",
489 "type": "switchNode",
491 "xml": "<switch test='`$STATUS`'>",
494 "x": 1053.6667098999023,
495 "y": 1070.083408355713,
496 "z": "f16b4873.701568",
497 "wires": [["8e39a0cd.ee399",
502 "id": "8e39a0cd.ee399",
505 "xml": "<outcome value='FAILURE'>",
508 "x": 1209.6667098999023,
509 "y": 1071.833408355713,
510 "z": "f16b4873.701568",
511 "wires": [["328dd4e4.27801c"]]
514 "id": "328dd4e4.27801c",
521 "x": 1372.666790008545,
522 "y": 1085.0833568572998,
523 "z": "f16b4873.701568",
524 "wires": [["e4322d3b.8d1ab",
532 "id": "77ff9a98.2bf224",
539 "x": 1353.6667098999023,
540 "y": 1033.5833778381348,
541 "z": "f16b4873.701568",
542 "wires": [["e4322d3b.8d1ab",
548 "id": "e4322d3b.8d1ab",
551 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$Error-Message`\"/>\n",
554 "x": 1624.6667098999023,
555 "y": 1100.083408355713,
556 "z": "f16b4873.701568",
560 "id": "9380a644.f57908",
562 "name": "Report Error to DCAE",
563 "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
566 "x": 1645.5338973999023,
567 "y": 1201.2707862854004,
568 "z": "f16b4873.701568",
572 "id": "a832eaf1.bc4ea8",
573 "type": "returnFailure",
574 "name": "return failure",
575 "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",
577 "x": 1715.2946853637695,
578 "y": 1460.458869934082,
579 "z": "f16b4873.701568",
583 "id": "1a5aec1c.ab3e44",
586 "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`\" />",
589 "x": 769.6667098999023,
590 "y": 967.0834083557129,
591 "z": "f16b4873.701568",
592 "wires": [["a97ef4e9.131748",
597 "id": "764e8614.57f5c8",
599 "name": "Set error message",
600 "xml": "<set>\n<parameter name='error-message' value=\"`$Error-Message`\"/>\n<parameter name='error-code' value=\"`$Error-code`\"/>\n",
602 "x": 1637.6666793823242,
603 "y": 1052.0833187103271,
604 "z": "f16b4873.701568",
608 "id": "87b58856.047f68",
610 "name": "Set error message",
611 "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
613 "x": 1513.1740951538086,
614 "y": 727.0833473205566,
615 "z": "f16b4873.701568",
619 "id": "f549e445.f74888",
621 "name": "Set error message",
622 "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",
624 "x": 1507.815086364746,
625 "y": 680.9978675842285,
626 "z": "f16b4873.701568",
630 "id": "6cdf93fd.27cd0c",
637 "x": 1274.037239074707,
638 "y": 747.416690826416,
639 "z": "f16b4873.701568",
640 "wires": [["f549e445.f74888",
647 "id": "cea9c726.916838",
654 "x": 1281.592903137207,
655 "y": 797.1944618225098,
656 "z": "f16b4873.701568",
657 "wires": [["87b58856.047f68",
664 "id": "183d6159.f57e3f",
667 "xml": "<outcome value='not-found'>",
670 "x": 1127.956428527832,
671 "y": 797.3055458068848,
672 "z": "f16b4873.701568",
673 "wires": [["cea9c726.916838"]]
676 "id": "4f9c33fe.ee7c6c",
679 "xml": "<outcome value='failure'>\n",
682 "x": 1128.9562454223633,
683 "y": 749.5278053283691,
684 "z": "f16b4873.701568",
685 "wires": [["6cdf93fd.27cd0c"]]
688 "id": "58111dc9.5f25b4",
689 "type": "get-resource",
690 "name": "Retrieve Running config details DB",
691 "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\" >",
694 "x": 865.6666488647461,
695 "y": 793.8074684143066,
696 "z": "f16b4873.701568",
697 "wires": [["183d6159.f57e3f",
702 "id": "5fa98c15.aa8b74",
705 "xml": "<outcome value='success'>\n",
708 "x": 1126.6665115356445,
709 "y": 847.0833778381348,
710 "z": "f16b4873.701568",
714 "id": "d61b176c.169178",
717 "xml": "<outcome value='SUCCESS'>\n",
720 "x": 1202.6667175292969,
721 "y": 1132.0834693908691,
722 "z": "f16b4873.701568",
723 "wires": [["5584c2d4.ec7c8c"]]
726 "id": "fd1426ee.97bc68",
729 "xml": "<outcome value='not-found'>\n",
732 "x": 1213.6667098999023,
733 "y": 1027.083408355713,
734 "z": "f16b4873.701568",
735 "wires": [["77ff9a98.2bf224"]]
738 "id": "b86d049a.13a1b8",
740 "name": "Set Running Config ID",
741 "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />",
743 "x": 845.7777938842773,
744 "y": 728.4167518615723,
745 "z": "f16b4873.701568",
749 "id": "dda489b7.a7bc78",
751 "name": "Generate output payload",
752 "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
755 "x": 593.8887214660645,
756 "y": 1493.5281105041504,
757 "z": "f16b4873.701568",
758 "wires": [["96b89330.eeb7f",
763 "id": "96b89330.eeb7f",
766 "xml": "<outcome value='failure'>\n",
769 "x": 823.888843536377,
770 "y": 1431.5280494689941,
771 "z": "f16b4873.701568",
772 "wires": [["5584053a.68313c"]]
775 "id": "23bea1a6.82114e",
778 "xml": "<outcome value='not-found'>\n",
781 "x": 835.888843536377,
782 "y": 1494.5281105041504,
783 "z": "f16b4873.701568",
784 "wires": [["5584053a.68313c"]]
787 "id": "dabc8dd4.4c031",
790 "xml": "<outcome value='success'>\n",
793 "x": 830.8887214660645,
794 "y": 1558.5280494689941,
795 "z": "f16b4873.701568",
799 "id": "5584053a.68313c",
801 "name": "block : atomic",
802 "xml": "<block atomic='true'>",
806 "x": 1025.555591583252,
807 "y": 1494.5280494689941,
808 "z": "f16b4873.701568",
809 "wires": [["2fc5495.ed614b6",
813 "id": "34834985.8ba986",
815 "name": "Report error to DCAE",
816 "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\" />",
819 "x": 1270.460132598877,
820 "y": 1496.9089088439941,
821 "z": "f16b4873.701568",
825 "id": "2fc5495.ed614b6",
826 "type": "returnFailure",
827 "name": "return failure",
828 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
830 "x": 1257.888599395752,
831 "y": 1549.0517311096191,
832 "z": "f16b4873.701568",
836 "id": "5aeed919.b83438",
838 "name": "Generate output payload",
839 "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
842 "x": 1674.3334579467773,
843 "y": 1149.5278358459473,
844 "z": "f16b4873.701568",
845 "wires": [["2f4b01d0.23640e",
850 "id": "2f4b01d0.23640e",
853 "xml": "<outcome value='failure'>\n",
856 "x": 1893.3335494995117,
857 "y": 1115.527744293213,
858 "z": "f16b4873.701568",
859 "wires": [["db92eec9.b5f62"]]
862 "id": "fc0cdc70.37ff2",
865 "xml": "<outcome value='not-found'>\n",
868 "x": 1895.3335494995117,
869 "y": 1161.5278663635254,
870 "z": "f16b4873.701568",
871 "wires": [["db92eec9.b5f62"]]
874 "id": "bf7d7229.c2d58",
877 "xml": "<outcome value='success'>\n",
880 "x": 1895.3334579467773,
881 "y": 1204.5277137756348,
882 "z": "f16b4873.701568",
886 "id": "db92eec9.b5f62",
888 "name": "block : atomic",
889 "xml": "<block atomic='true'>",
893 "x": 2088.0002975463867,
894 "y": 1136.527744293213,
895 "z": "f16b4873.701568",
896 "wires": [["e04cb8f.eb7b748",
900 "id": "254d3066.a4bc5",
902 "name": "Report error to DCAE",
903 "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\" />",
906 "x": 2286.904960632324,
907 "y": 1093.908603668213,
908 "z": "f16b4873.701568",
912 "id": "e04cb8f.eb7b748",
913 "type": "returnFailure",
914 "name": "return failure",
915 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
917 "x": 2263.333427429199,
918 "y": 1181.051670074463,
919 "z": "f16b4873.701568",
923 "id": "b79736f.f56eac8",
925 "name": "Generate output payload",
926 "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
929 "x": 1561.1111373901367,
930 "y": 843.416690826416,
931 "z": "f16b4873.701568",
932 "wires": [["97850b52.a31cd8",
937 "id": "97850b52.a31cd8",
940 "xml": "<outcome value='failure'>\n",
943 "x": 1805.111228942871,
944 "y": 809.4165992736816,
945 "z": "f16b4873.701568",
946 "wires": [["847cbebd.ab185"]]
949 "id": "41d36ebc.ba016",
952 "xml": "<outcome value='not-found'>\n",
955 "x": 1807.111228942871,
956 "y": 855.4167213439941,
957 "z": "f16b4873.701568",
958 "wires": [["847cbebd.ab185"]]
961 "id": "e6d25885.e4e788",
964 "xml": "<outcome value='success'>\n",
967 "x": 1807.1111373901367,
968 "y": 898.4165687561035,
969 "z": "f16b4873.701568",
973 "id": "847cbebd.ab185",
975 "name": "block : atomic",
976 "xml": "<block atomic='true'>",
980 "x": 1999.777976989746,
981 "y": 830.4165992736816,
982 "z": "f16b4873.701568",
983 "wires": [["e2703a71.5e2d08",
987 "id": "7312ce6e.051b1",
989 "name": "Report error to DCAE",
990 "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\" />",
993 "x": 2198.6826400756836,
994 "y": 787.7974586486816,
995 "z": "f16b4873.701568",
999 "id": "e2703a71.5e2d08",
1000 "type": "returnFailure",
1001 "name": "return failure",
1002 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1004 "x": 2175.1111068725586,
1005 "y": 874.9405250549316,
1006 "z": "f16b4873.701568",
1010 "id": "5584c2d4.ec7c8c",
1011 "type": "switchNode",
1013 "xml": "<switch test='`$Publish_Config`'>",
1016 "x": 1240.1670684814453,
1017 "y": 1266.083574295044,
1018 "z": "f16b4873.701568",
1019 "wires": [["b07cce86.c2267",
1023 "id": "b07cce86.c2267",
1025 "name": "Outcome: y",
1026 "xml": "<outcome value='y'>\n",
1029 "x": 1414.1669692993164,
1030 "y": 1246.7502841949463,
1031 "z": "f16b4873.701568",
1032 "wires": [["93ba279d.5bcbb8"]]
1035 "id": "54d48804.2f6488",
1037 "name": "Outcome: Y",
1038 "xml": "<outcome value='Y'>\n",
1041 "x": 1411.0838241577148,
1042 "y": 1289.833547592163,
1043 "z": "f16b4873.701568",
1044 "wires": [["93ba279d.5bcbb8"]]
1047 "id": "93ba279d.5bcbb8",
1049 "name": "execute CvaasDataIntoContext",
1050 "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/app/bvc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc001\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
1053 "x": 1769.583999633789,
1054 "y": 1298.8338718414307,
1055 "z": "f16b4873.701568",
1056 "wires": [["4f8601db.1cc81",
1060 "id": "4f8601db.1cc81",
1063 "xml": "<outcome value='success'>\n",
1066 "x": 2036.8341751098633,
1067 "y": 1299.8340373039246,
1068 "z": "f16b4873.701568",
1069 "wires": [["17c3243e.6f760c"]]
1072 "id": "17c3243e.6f760c",
1074 "name": "record cvass",
1075 "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`\"/>",
1078 "x": 2219.349090576172,
1079 "y": 1307.599196434021,
1080 "z": "f16b4873.701568",
1081 "wires": [["1befff30.f1b281",
1085 "id": "1befff30.f1b281",
1088 "xml": "<outcome value='failure'>\n",
1091 "x": 2469.364891052246,
1092 "y": 1320.3642568588257,
1093 "z": "f16b4873.701568",
1094 "wires": [["d4049805.d34618"]]
1097 "id": "e5a0a1ba.78591",
1100 "xml": "<outcome value='success'>\n",
1103 "x": 2471.3645401000977,
1104 "y": 1369.364426612854,
1105 "z": "f16b4873.701568",
1106 "wires": [["d4049805.d34618"]]
1109 "id": "d4049805.d34618",
1111 "name": "execute CheckFileCreated",
1112 "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
1115 "x": 2706.364604949951,
1116 "y": 1343.3643054962158,
1117 "z": "f16b4873.701568",
1118 "wires": [["8587844.5a70378",
1122 "id": "8587844.5a70378",
1125 "xml": "<outcome value='success'>\n",
1128 "x": 2956.850357055664,
1129 "y": 1421.5993309020996,
1130 "z": "f16b4873.701568",
1134 "id": "a89beb23.e0d968",
1141 "x": 3162.849021911621,
1142 "y": 1374.5991201400757,
1143 "z": "f16b4873.701568",
1144 "wires": [["6c7eaa88.024dc4",
1150 "id": "6c7eaa88.024dc4",
1152 "name": "Set error message",
1153 "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
1155 "x": 3427.404800415039,
1156 "y": 1313.487928390503,
1157 "z": "f16b4873.701568",
1161 "id": "fd02487c.77b308",
1162 "type": "returnFailure",
1163 "name": "return failure",
1164 "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`\"/>",
1166 "x": 3404.251720428467,
1167 "y": 1498.3346118927002,
1168 "z": "f16b4873.701568",
1172 "id": "e5102b5c.3b53c8",
1174 "name": "OutputMessageBuilder",
1175 "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
1178 "x": 3436.0007400512695,
1179 "y": 1429.4880809783936,
1180 "z": "f16b4873.701568",
1181 "wires": [["89703cbf.30313"]]
1184 "id": "89703cbf.30313",
1187 "xml": "<outcome value='success'>\n",
1190 "x": 3634.1327743530273,
1191 "y": 1436.0382852554321,
1192 "z": "f16b4873.701568",
1193 "wires": [["892031d3.9e1bd"]]
1196 "id": "892031d3.9e1bd",
1198 "name": "Report error to DCAE",
1199 "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1202 "x": 3835.000331878662,
1203 "y": 1436.4882678985596,
1204 "z": "f16b4873.701568",
1208 "id": "45de7390.486dfc",
1210 "name": "Log error",
1211 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>",
1214 "x": 3399.500015258789,
1215 "y": 1378.4880485534668,
1216 "z": "f16b4873.701568",
1220 "id": "d4ee7229.fae85",
1223 "xml": "<outcome value='Other'>\n",
1226 "x": 2056.666831970215,
1227 "y": 1465.0834197998047,
1228 "z": "f16b4873.701568",
1229 "wires": [["86d0a871.815158"]]
1232 "id": "a2c9685e.16d318",
1234 "name": "OutputMessageBuilder",
1235 "xml": "<execute plugin='org.onap.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
1238 "x": 2398.667205810547,
1239 "y": 1463.083589553833,
1240 "z": "f16b4873.701568",
1241 "wires": [["d7d7645d.5e76c8"]]
1244 "id": "d7d7645d.5e76c8",
1247 "xml": "<outcome value='success'>\n",
1250 "x": 2604.79891204834,
1251 "y": 1463.6331634521484,
1252 "z": "f16b4873.701568",
1253 "wires": [["80effa9c.33fce8"]]
1256 "id": "80effa9c.33fce8",
1258 "name": "Report Error to DCAE",
1259 "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1262 "x": 2812.7992248535156,
1263 "y": 1464.633376121521,
1264 "z": "f16b4873.701568",
1268 "id": "86d0a871.815158",
1275 "x": 2208.666831970215,
1276 "y": 1465.0834197998047,
1277 "z": "f16b4873.701568",
1278 "wires": [["a2c9685e.16d318",
1282 "id": "897e770a.605f58",
1283 "type": "returnFailure",
1284 "name": "return failure",
1285 "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`\"/>",
1287 "x": 2371.666831970215,
1288 "y": 1552.0834197998047,
1289 "z": "f16b4873.701568",
1293 "id": "d043d660.7cbce8",
1295 "name": "Set payload in Context",
1296 "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
1299 "x": 738.6666793823242,
1300 "y": 86.75000667572021,
1301 "z": "f16b4873.701568",
1302 "wires": [["3c42bbb1.da71f4",
1308 "id": "d63e629f.39f9",
1311 "xml": "<outcome value='Other'>\n",
1314 "x": 1033.666648864746,
1316 "z": "f16b4873.701568",
1317 "wires": [["51284245.e89c1c"]]
1320 "id": "17b5a1dd.0754de",
1323 "xml": "<outcome value='failure'>\n",
1326 "x": 1034.666648864746,
1328 "z": "f16b4873.701568",
1329 "wires": [["51284245.e89c1c"]]
1332 "id": "4fad0fe1.40343",
1333 "type": "not-found",
1334 "name": "not-found",
1335 "xml": "<outcome value='not-found'>\n",
1338 "x": 1027.666648864746,
1339 "y": 125.00001525878906,
1340 "z": "f16b4873.701568",
1341 "wires": [["51284245.e89c1c"]]
1344 "id": "3c42bbb1.da71f4",
1347 "xml": "<outcome value='success'>\n",
1350 "x": 1024.6667098999023,
1351 "y": 180.7500114440918,
1352 "z": "f16b4873.701568",
1353 "wires": [["752bb299.feb57c"]]
1356 "id": "51284245.e89c1c",
1359 "xml": "<block atomic='true'>",
1363 "x": 1241.3332901000977,
1364 "y": 113.00000190734863,
1365 "z": "f16b4873.701568",
1366 "wires": [["41523e11.c90e9",
1370 "id": "a9abc91a.956e38",
1372 "name": "OutputMessageBuilder",
1373 "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\" />",
1376 "x": 1471.666358947754,
1377 "y": 64.88888740539551,
1378 "z": "f16b4873.701568",
1379 "wires": [["10f72f11.953841"]]
1382 "id": "41523e11.c90e9",
1383 "type": "returnFailure",
1384 "name": "return failure",
1385 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1387 "x": 1438.6662368774414,
1388 "y": 113.52372932434082,
1389 "z": "f16b4873.701568",
1393 "id": "10f72f11.953841",
1396 "xml": "<outcome value='success'>\n",
1399 "x": 1679.7613906860352,
1400 "y": 64.17462348937988,
1401 "z": "f16b4873.701568",
1402 "wires": [["789d293f.1e9dc8"]]
1405 "id": "789d293f.1e9dc8",
1407 "name": "Report Error to DCAE",
1408 "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
1411 "x": 1881.3329238891602,
1412 "y": 63.88888740539551,
1413 "z": "f16b4873.701568",
1417 "id": "13a60653.f2418a",
1420 "xml": "<outcome value='failure'>\n",
1423 "x": 3001.3334045410156,
1424 "y": 1327.9999796748161,
1425 "z": "f16b4873.701568",
1426 "wires": [["a89beb23.e0d968"]]