2 "id": "9c13e82a.387b38",
6 "x": 131.66665649414062,
7 "y": 116.6666750907898,
8 "z": "214b12db.e4ae8e",
9 "wires": [["c8696732.57b668"]]
12 "id": "c8696732.57b668",
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": 311.6666564941406,
21 "y": 116.6666750907898,
22 "z": "214b12db.e4ae8e",
23 "wires": [["11c0a5be.fe5bfa"]]
26 "id": "11c0a5be.fe5bfa",
29 "xml": "<method rpc='Generic_Sync' mode='sync'>\n",
32 "x": 490.6666564941406,
33 "y": 116.6666750907898,
34 "z": "214b12db.e4ae8e",
35 "wires": [["cb484414.952458"]]
38 "id": "9ec6a6d6.7a5678",
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 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": 519.0861930847168,
45 "y": 437.4498953819275,
46 "z": "214b12db.e4ae8e",
47 "wires": [["a4a4499.da795b8",
52 "id": "f40aff31.110c9",
55 "xml": "<outcome value='failure'>\n",
58 "x": 771.3759498596191,
59 "y": 365.17019033432007,
60 "z": "214b12db.e4ae8e",
61 "wires": [["841d3cc6.f08c7"]]
64 "id": "a4a4499.da795b8",
67 "xml": "<outcome value='not-found'>",
70 "x": 776.3759956359863,
71 "y": 436.947970867157,
72 "z": "214b12db.e4ae8e",
73 "wires": [["b9da4281.1adab"]]
76 "id": "d4b62675.cc3218",
79 "xml": "<outcome value='success'>\n",
82 "x": 773.598217010498,
83 "y": 500.61465311050415,
84 "z": "214b12db.e4ae8e",
85 "wires": [["88d88ec0.cbcfa"]]
88 "id": "2a1906ba.c69e1a",
90 "name": "Report Error to DCAE",
91 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
94 "x": 1229.2260704040527,
95 "y": 539.5462489128113,
96 "z": "214b12db.e4ae8e",
100 "id": "2195ead0.db2c66",
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": 1207.9867248535156,
106 "y": 592.734308719635,
107 "z": "214b12db.e4ae8e",
111 "id": "9e646937.3ed6a8",
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": 1214.5936851501465,
117 "y": 436.7257466316223,
118 "z": "214b12db.e4ae8e",
122 "id": "88cf09de.c0d5e8",
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": 1215.234661102295,
128 "y": 384.6402335166931,
129 "z": "214b12db.e4ae8e",
133 "id": "841d3cc6.f08c7",
140 "x": 932.456859588623,
141 "y": 365.05907678604126,
142 "z": "214b12db.e4ae8e",
143 "wires": [["88cf09de.c0d5e8",
149 "id": "b9da4281.1adab",
156 "x": 940.0124244689941,
157 "y": 436.8368649482727,
158 "z": "214b12db.e4ae8e",
159 "wires": [["9e646937.3ed6a8",
165 "id": "88d88ec0.cbcfa",
167 "name": "block : atomic",
168 "xml": "<block atomic='true'>",
172 "x": 409.5640525817871,
173 "y": 615.6837515830994,
174 "z": "214b12db.e4ae8e",
175 "wires": [["7732a369.eb726c",
186 "id": "7732a369.eb726c",
188 "name": "for each current config",
189 "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
192 "x": 657.6324729919434,
193 "y": 616.0513052940369,
194 "z": "214b12db.e4ae8e",
195 "wires": [["842b0ba4.2b8248"]]
198 "id": "ce31ce3d.765e7",
200 "name": "Set context",
201 "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",
203 "x": 1072.4787254333496,
204 "y": 616.2821097373962,
205 "z": "214b12db.e4ae8e",
209 "id": "9fe7ebb1.f6f948",
211 "name": "Call Retrieve running Config DG",
212 "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
215 "x": 1104.4786949157715,
216 "y": 674.28204870224,
217 "z": "214b12db.e4ae8e",
218 "wires": [["cd269b5.a716568",
223 "id": "842b0ba4.2b8248",
225 "name": "block : atomic",
226 "xml": "<block atomic='true'>",
230 "x": 852.7863121032715,
231 "y": 675.205144405365,
232 "z": "214b12db.e4ae8e",
233 "wires": [["ce31ce3d.765e7",
239 "id": "cd269b5.a716568",
242 "xml": "<outcome value='failure'>\n",
245 "x": 1346.5898399353027,
246 "y": 623.2819828987122,
247 "z": "214b12db.e4ae8e",
248 "wires": [["7e006a6b.da6ef4"]]
251 "id": "4f80d854.e62828",
254 "xml": "<outcome value='not-found'>",
257 "x": 1358.034236907959,
258 "y": 676.28204870224,
259 "z": "214b12db.e4ae8e",
260 "wires": [["6c663e2f.d966d"]]
263 "id": "83342c8c.51a98",
266 "xml": "<outcome value='success'>\n",
269 "x": 1368.1451988220215,
270 "y": 728.3930716514587,
271 "z": "214b12db.e4ae8e",
275 "id": "4f4a7a36.c2a284",
277 "name": "Mark current configs as historic",
278 "xml": "<update resource='SQL' force='true' plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' key=\"UPDATE UPLOAD_CONFIG SET config_indicator=null WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\">\n",
281 "x": 801.5814094543457,
282 "y": 1163.6410536766052,
283 "z": "214b12db.e4ae8e",
284 "wires": [["25e5bfd2.2129e",
288 "id": "d5cea21b.c34aa",
290 "name": "Store device config as 'Current'",
291 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, content) SELECT request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, 'Current', content FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y')\" force='true'>\n",
294 "x": 795.196704864502,
295 "y": 1331.1795058250427,
296 "z": "214b12db.e4ae8e",
297 "wires": [["3111ae3b.b3f9e2",
301 "id": "f1f93963.7ca2d8",
304 "xml": "<outcome value='success'>\n",
307 "x": 1055.1968002319336,
308 "y": 1375.1795058250427,
309 "z": "214b12db.e4ae8e",
313 "id": "3111ae3b.b3f9e2",
316 "xml": "<outcome value='failure'>\n",
319 "x": 1050.1968002319336,
320 "y": 1291.1795058250427,
321 "z": "214b12db.e4ae8e",
322 "wires": [["f16ab34d.41c77"]]
325 "id": "25e5bfd2.2129e",
328 "xml": "<outcome value='success'>\n",
331 "x": 1060.581470489502,
332 "y": 1218.6410384178162,
333 "z": "214b12db.e4ae8e",
337 "id": "baa57190.f5968",
340 "xml": "<outcome value='failure'>\n",
343 "x": 1054.581470489502,
344 "y": 1162.6410536766052,
345 "z": "214b12db.e4ae8e",
346 "wires": [["62bc5493.c88cfc"]]
349 "id": "7e006a6b.da6ef4",
356 "x": 1497.1454181671143,
357 "y": 623.2819752693176,
358 "z": "214b12db.e4ae8e",
359 "wires": [["f6c71fae.e8d17",
365 "id": "f6c71fae.e8d17",
367 "name": "Set error message",
368 "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\" />\n",
370 "x": 1804.7011909484863,
371 "y": 521.1709504127502,
372 "z": "214b12db.e4ae8e",
376 "id": "6c663e2f.d966d",
383 "x": 1510.4786949157715,
384 "y": 675.1709036827087,
385 "z": "214b12db.e4ae8e",
386 "wires": [["963a5bc6.b3e628",
392 "id": "963a5bc6.b3e628",
394 "name": "Set error message",
395 "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
397 "x": 1806.7012519836426,
398 "y": 570.1709456443787,
399 "z": "214b12db.e4ae8e",
403 "id": "62bc5493.c88cfc",
410 "x": 1223.359302520752,
411 "y": 1163.6410536766052,
412 "z": "214b12db.e4ae8e",
413 "wires": [["fca9379c.f1ba58",
420 "id": "fca9379c.f1ba58",
422 "name": "Set error message",
423 "xml": "<set>\n<parameter name='error-message' value=\"`'Error while marking current configuration as historic in the repository for vnf-id:' + $input.action-identifiers.vnf-id`\" />\n",
425 "x": 1451.6924629211426,
426 "y": 1200.6411147117615,
427 "z": "214b12db.e4ae8e",
431 "id": "f16ab34d.41c77",
438 "x": 1216.9744491577148,
439 "y": 1293.1795058250427,
440 "z": "214b12db.e4ae8e",
441 "wires": [["4adc4f3b.17a16",
448 "id": "4adc4f3b.17a16",
450 "name": "Set error message",
451 "xml": "<set>\n<parameter name='error-message' value=\"`'Error while storing the new current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\" />\n",
453 "x": 1443.529987335205,
454 "y": 1245.2907118797302,
455 "z": "214b12db.e4ae8e",
459 "id": "aac04b94.261c38",
460 "type": "returnFailure",
461 "name": "return failure",
462 "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`\"/>",
464 "x": 1787.5473823547363,
465 "y": 713.0171122550964,
466 "z": "214b12db.e4ae8e",
470 "id": "a278106d.b2101",
472 "name": "Report Error to DCAE",
473 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
476 "x": 1816.5474433898926,
477 "y": 663.0170950889587,
478 "z": "214b12db.e4ae8e",
482 "id": "15018948.152e47",
483 "type": "returnFailure",
484 "name": "return failure",
485 "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`\"/>",
487 "x": 1436.7608222961426,
488 "y": 1427.1369032859802,
489 "z": "214b12db.e4ae8e",
493 "id": "205f706d.16fb1",
495 "name": "Report Error to DCAE",
496 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
499 "x": 1461.7608222961426,
500 "y": 1337.1369032859802,
501 "z": "214b12db.e4ae8e",
505 "id": "f5cfbdb3.30a63",
512 "x": 291.6666603088379,
513 "y": 343.57577085494995,
514 "z": "214b12db.e4ae8e",
515 "wires": [["9ec6a6d6.7a5678",
519 "id": "1aa4df6e.f6da11",
522 "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",
525 "x": 1182.3589057922363,
526 "y": 491.3589644432068,
527 "z": "214b12db.e4ae8e",
531 "id": "4b77bb4a.9f7014",
534 "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",
537 "x": 1778.0247383117676,
538 "y": 613.7672305107117,
539 "z": "214b12db.e4ae8e",
543 "id": "3521d3f3.e7bf6c",
546 "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",
549 "x": 1427.1704940795898,
550 "y": 1292.0814833641052,
551 "z": "214b12db.e4ae8e",
555 "id": "58cdab19.f47684",
557 "name": "Log message",
558 "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",
561 "x": 481.0855522155762,
562 "y": 343.16138219833374,
563 "z": "214b12db.e4ae8e",
567 "id": "11dcb423.01808c",
569 "name": "Log message",
570 "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=\"`'Marking current configuration as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
573 "x": 735.7780342102051,
574 "y": 1098.2382216453552,
575 "z": "214b12db.e4ae8e",
579 "id": "6d230a1.4a08cf4",
581 "name": "Log message",
582 "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=\"`'Storing device configuration as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
585 "x": 745.7009773254395,
586 "y": 1274.3923964500427,
587 "z": "214b12db.e4ae8e",
591 "id": "855ad0e4.d405c",
593 "name": "Log message",
594 "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=\"`'Current configuration marked as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
597 "x": 748.6198616027832,
598 "y": 1218.4325575828552,
599 "z": "214b12db.e4ae8e",
603 "id": "59566c79.8df204",
605 "name": "Log message",
606 "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=\"`'Device configuration stored as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
609 "x": 735.6198616027832,
610 "y": 1387.8555312156677,
611 "z": "214b12db.e4ae8e",
615 "id": "872a0177.f9c8f",
616 "type": "returnSuccess",
617 "name": "return success",
618 "xml": "<return status='success'>\n",
620 "x": 711.4660873413086,
621 "y": 1504.8555312156677,
622 "z": "214b12db.e4ae8e",
626 "id": "dd580aa1.a817c8",
628 "name": "Set Running Config ID",
629 "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />\n\n",
631 "x": 1083.6667442321777,
632 "y": 733.0000834465027,
633 "z": "214b12db.e4ae8e",
637 "id": "aa08d8db.e07148",
639 "name": "Generate output payload",
640 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
643 "x": 763.6667366027832,
644 "y": 1445.0000014305115,
645 "z": "214b12db.e4ae8e",
646 "wires": [["1639668d.25e0d9",
651 "id": "1639668d.25e0d9",
654 "xml": "<outcome value='failure'>\n",
657 "x": 1006.6668586730957,
658 "y": 1425.9999403953552,
659 "z": "214b12db.e4ae8e",
660 "wires": [["a0b721e.ccba5e"]]
663 "id": "264aed94.5a8e32",
666 "xml": "<outcome value='not-found'>\n",
669 "x": 1008.6668586730957,
670 "y": 1471.0000014305115,
671 "z": "214b12db.e4ae8e",
672 "wires": [["a0b721e.ccba5e"]]
675 "id": "397802b1.358f0e",
678 "xml": "<outcome value='success'>\n",
681 "x": 1011.6667366027832,
682 "y": 1521.9999403953552,
683 "z": "214b12db.e4ae8e",
687 "id": "a0b721e.ccba5e",
689 "name": "block : atomic",
690 "xml": "<block atomic='true'>",
694 "x": 1206.3336067199707,
695 "y": 1482.9999403953552,
696 "z": "214b12db.e4ae8e",
697 "wires": [["a2cf5226.8165",
701 "id": "bd7acdda.91a63",
703 "name": "Report error to DCAE",
704 "xml": "<execute plugin='org.openecomp.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\" />",
707 "x": 1441.2381706237793,
708 "y": 1484.3807997703552,
709 "z": "214b12db.e4ae8e",
713 "id": "a2cf5226.8165",
714 "type": "returnFailure",
715 "name": "return failure",
716 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
718 "x": 1425.6666374206543,
719 "y": 1533.5236220359802,
720 "z": "214b12db.e4ae8e",
724 "id": "4d82212c.2ef21",
726 "name": "Generate output payload",
727 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
730 "x": 1493.8887519836426,
731 "y": 1385.0000014305115,
732 "z": "214b12db.e4ae8e",
733 "wires": [["425e2e54.04ff7",
738 "id": "425e2e54.04ff7",
741 "xml": "<outcome value='failure'>\n",
744 "x": 1740.8889350891113,
745 "y": 1332.9999403953552,
746 "z": "214b12db.e4ae8e",
747 "wires": [["62fbe5e0.d9cdcc"]]
750 "id": "d2f01dc7.e5e29",
753 "xml": "<outcome value='not-found'>\n",
756 "x": 1731.8889961242676,
757 "y": 1386.0000014305115,
758 "z": "214b12db.e4ae8e",
759 "wires": [["62fbe5e0.d9cdcc"]]
762 "id": "481f9e71.90512",
765 "xml": "<outcome value='success'>\n",
768 "x": 1733.888874053955,
769 "y": 1435.9999403953552,
770 "z": "214b12db.e4ae8e",
774 "id": "62fbe5e0.d9cdcc",
776 "name": "block : atomic",
777 "xml": "<block atomic='true'>",
781 "x": 1936.5558052062988,
782 "y": 1356.9999403953552,
783 "z": "214b12db.e4ae8e",
784 "wires": [["23d2ce67.52c4d2",
788 "id": "49e01c1c.c64a44",
790 "name": "Report error to DCAE",
791 "xml": "<execute plugin='org.openecomp.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\" />",
794 "x": 2165.460346221924,
795 "y": 1355.3807997703552,
796 "z": "214b12db.e4ae8e",
800 "id": "23d2ce67.52c4d2",
801 "type": "returnFailure",
802 "name": "return failure",
803 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
805 "x": 2145.888813018799,
806 "y": 1416.5236220359802,
807 "z": "214b12db.e4ae8e",
811 "id": "f6b28639.a1c3a8",
813 "name": "Outcome: y",
814 "xml": "<outcome value='y'>\n",
817 "x": 1190.6666526794434,
818 "y": 808.1822867393494,
819 "z": "214b12db.e4ae8e",
820 "wires": [["60059d22.c2ba54"]]
823 "id": "4c8c9a0.c6b3768",
824 "type": "switchNode",
826 "xml": "<switch test='`$Publish_Config`'>",
829 "x": 1037.6666984558105,
830 "y": 799.5156636238098,
831 "z": "214b12db.e4ae8e",
832 "wires": [["f6b28639.a1c3a8",
836 "id": "60059d22.c2ba54",
837 "type": "get-resource",
838 "name": "Retrieve Running config details DB",
839 "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\">",
842 "x": 1432.6667404174805,
843 "y": 829.1823210716248,
844 "z": "214b12db.e4ae8e",
845 "wires": [["cdc99515.922c58",
850 "id": "cdc99515.922c58",
853 "xml": "<outcome value='success'>\n",
856 "x": 1690.6669082641602,
857 "y": 840.1825032234192,
858 "z": "214b12db.e4ae8e",
859 "wires": [["7e300025.5253a"]]
862 "id": "7e300025.5253a",
864 "name": "execute CvaasDataIntoContext",
865 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/app/bvc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc01\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
868 "x": 1943.9172744750977,
869 "y": 844.1830830574036,
870 "z": "214b12db.e4ae8e",
871 "wires": [["eb8bab96.3c6e98",
876 "id": "eb8bab96.3c6e98",
879 "xml": "<outcome value='success'>\n",
882 "x": 2241.1673278808594,
883 "y": 965.1831040382385,
884 "z": "214b12db.e4ae8e",
885 "wires": [["694c898b.ddbd58"]]
888 "id": "46abe9bb.2c0fd8",
891 "xml": "<outcome value='failure'>\n",
894 "x": 2250.6669998168945,
895 "y": 861.1828625202179,
896 "z": "214b12db.e4ae8e",
897 "wires": [["9fa2a21b.8af7c"]]
900 "id": "ce71ba2a.e1ce38",
903 "xml": "<outcome value='not-found'>\n",
906 "x": 2257.667266845703,
907 "y": 913.1830716133118,
908 "z": "214b12db.e4ae8e",
909 "wires": [["9fa2a21b.8af7c"]]
912 "id": "9034241c.159aa8",
915 "xml": "<outcome value='not-found'>",
918 "x": 1524.9166564941406,
919 "y": 1005.182294845581,
920 "z": "214b12db.e4ae8e",
921 "wires": [["567684cc.50b0dc"]]
924 "id": "9a6d5a51.faabc8",
927 "xml": "<outcome value='failure'>\n",
930 "x": 1521.9165420532227,
931 "y": 953.4044423103333,
932 "z": "214b12db.e4ae8e",
933 "wires": [["4bc0b87d.970378"]]
936 "id": "4bc0b87d.970378",
943 "x": 1661.9975929260254,
944 "y": 955.2935299873352,
945 "z": "214b12db.e4ae8e",
946 "wires": [["3ce78b3b.82fee4",
952 "id": "567684cc.50b0dc",
959 "x": 1661.553165435791,
960 "y": 1014.0713334083557,
961 "z": "214b12db.e4ae8e",
962 "wires": [["ce132d3c.9e7bb",
968 "id": "ba52c35d.d0a18",
971 "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",
974 "x": 1859.8998336791992,
975 "y": 1030.5936121940613,
976 "z": "214b12db.e4ae8e",
980 "id": "3ce78b3b.82fee4",
982 "name": "Set error message",
983 "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",
985 "x": 1892.7756729125977,
986 "y": 930.875011920929,
987 "z": "214b12db.e4ae8e",
991 "id": "6d199d17.82f204",
993 "name": "Outcome: Y",
994 "xml": "<outcome value='Y'>\n",
997 "x": 1191.6667098999023,
998 "y": 860.1822571754456,
999 "z": "214b12db.e4ae8e",
1000 "wires": [["60059d22.c2ba54"]]
1003 "id": "956742c7.415fd",
1005 "name": "Set error message",
1006 "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
1008 "x": 1891.1346130371094,
1009 "y": 979.9603943824768,
1010 "z": "214b12db.e4ae8e",
1014 "id": "694c898b.ddbd58",
1016 "name": "record cvass",
1017 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`$cvaas-file-name`\"/>\n<parameter name=\"record\" value=\"`$cvaas-file-content`\"/>",
1020 "x": 2417.917697906494,
1021 "y": 1007.1834092140198,
1022 "z": "214b12db.e4ae8e",
1023 "wires": [["e96f6416.e57a18",
1027 "id": "900e8879.a7b3f8",
1028 "type": "returnFailure",
1029 "name": "return failure",
1030 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1032 "x": 2636.6667404174805,
1033 "y": 938.7069244384766,
1034 "z": "214b12db.e4ae8e",
1038 "id": "4c75663f.43f0d8",
1040 "name": "execute CheckFileCreated",
1041 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
1044 "x": 2490.933391571045,
1045 "y": 1143.9486117362976,
1046 "z": "214b12db.e4ae8e",
1047 "wires": [["a473caa6.56a5f8",
1052 "id": "4f4d3434.694adc",
1054 "name": "block : atomic",
1055 "xml": "<block atomic='true'>",
1059 "x": 2965.4338912963867,
1060 "y": 1122.9491600990295,
1061 "z": "214b12db.e4ae8e",
1062 "wires": [["8b90be34.c5f61",
1068 "id": "8b90be34.c5f61",
1070 "name": "Set error message",
1071 "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
1073 "x": 3205.9892539978027,
1074 "y": 1070.8379549980164,
1075 "z": "214b12db.e4ae8e",
1079 "id": "feccd180.68417",
1081 "name": "Log error",
1082 "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",
1085 "x": 3182.3132286071777,
1086 "y": 1122.4345178604126,
1087 "z": "214b12db.e4ae8e",
1091 "id": "cab8f54e.ec65e8",
1093 "name": "Report Error to DCAE",
1094 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1097 "x": 3216.8359298706055,
1098 "y": 1174.6844897270203,
1099 "z": "214b12db.e4ae8e",
1103 "id": "18a86d58.a2caa3",
1106 "xml": "<outcome value='failure'>\n",
1109 "x": 2745.9338912963867,
1110 "y": 1097.9491291046143,
1111 "z": "214b12db.e4ae8e",
1112 "wires": [["4f4d3434.694adc"]]
1115 "id": "a473caa6.56a5f8",
1116 "type": "not-found",
1117 "name": "not-found",
1118 "xml": "<outcome value='not-found'>\n",
1121 "x": 2754.9335975646973,
1122 "y": 1154.9489903450012,
1123 "z": "214b12db.e4ae8e",
1124 "wires": [["4f4d3434.694adc"]]
1127 "id": "3498054b.73705a",
1130 "xml": "<outcome value='success'>\n",
1133 "x": 2761.933582305908,
1134 "y": 1207.9490694999695,
1135 "z": "214b12db.e4ae8e",
1139 "id": "9fa2a21b.8af7c",
1141 "name": "block : atomic",
1142 "xml": "<block atomic='true'>",
1146 "x": 2456.3336868286133,
1147 "y": 883.1828720569611,
1148 "z": "214b12db.e4ae8e",
1149 "wires": [["900e8879.a7b3f8",
1153 "id": "8652a63d.1ea618",
1155 "name": "Report error to DCAE",
1156 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Error while fetching cvass data\" />",
1159 "x": 2655.238349914551,
1160 "y": 840.5637314319611,
1161 "z": "214b12db.e4ae8e",
1165 "id": "e96f6416.e57a18",
1168 "xml": "<outcome value='failure'>\n",
1171 "x": 2254.933277130127,
1172 "y": 1124.9486260414124,
1173 "z": "214b12db.e4ae8e",
1174 "wires": [["4c75663f.43f0d8"]]
1177 "id": "9939c991.265c38",
1180 "xml": "<outcome value='success'>\n",
1183 "x": 2255.9330825805664,
1184 "y": 1167.9487557411194,
1185 "z": "214b12db.e4ae8e",
1186 "wires": [["4c75663f.43f0d8"]]
1189 "id": "de31ac1.3cad05",
1190 "type": "returnFailure",
1191 "name": "return failure",
1192 "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",
1194 "x": 1875.5276527404785,
1195 "y": 1128.9689564704895,
1196 "z": "214b12db.e4ae8e",
1200 "id": "ce132d3c.9e7bb",
1202 "name": "Report Error to DCAE",
1203 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1206 "x": 1900.7669982910156,
1207 "y": 1077.7808966636658,
1208 "z": "214b12db.e4ae8e",
1212 "id": "cb484414.952458",
1214 "name": "Set payload in Context",
1215 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
1218 "x": 726.6667137145996,
1219 "y": 116.74999856948853,
1220 "z": "214b12db.e4ae8e",
1221 "wires": [["b20f9d10.79243",
1227 "id": "c4b37771.d26c18",
1230 "xml": "<outcome value='Other'>\n",
1233 "x": 1016.6667289733887,
1234 "y": 58.99999761581421,
1235 "z": "214b12db.e4ae8e",
1236 "wires": [["507fcd18.8ae1c4"]]
1239 "id": "b02ba377.938ab",
1242 "xml": "<outcome value='failure'>\n",
1245 "x": 1017.6667289733887,
1246 "y": 108.99999761581421,
1247 "z": "214b12db.e4ae8e",
1248 "wires": [["507fcd18.8ae1c4"]]
1251 "id": "d871965c.fc6f98",
1252 "type": "not-found",
1253 "name": "not-found",
1254 "xml": "<outcome value='not-found'>\n",
1257 "x": 1010.6667289733887,
1258 "y": 164.00001287460327,
1259 "z": "214b12db.e4ae8e",
1260 "wires": [["507fcd18.8ae1c4"]]
1263 "id": "b20f9d10.79243",
1266 "xml": "<outcome value='success'>\n",
1269 "x": 1007.6667900085449,
1270 "y": 219.750009059906,
1271 "z": "214b12db.e4ae8e",
1272 "wires": [["f5cfbdb3.30a63"]]
1275 "id": "507fcd18.8ae1c4",
1278 "xml": "<block atomic='true'>",
1282 "x": 1224.3333702087402,
1283 "y": 151.99999952316284,
1284 "z": "214b12db.e4ae8e",
1285 "wires": [["2a1493.66c87b6e",
1289 "id": "861e0870.0e6308",
1291 "name": "OutputMessageBuilder",
1292 "xml": "<execute plugin='org.openecomp.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\" />",
1295 "x": 1454.6664390563965,
1296 "y": 103.88888502120972,
1297 "z": "214b12db.e4ae8e",
1298 "wires": [["b958118a.b4c35"]]
1301 "id": "2a1493.66c87b6e",
1302 "type": "returnFailure",
1303 "name": "return failure",
1304 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1306 "x": 1421.666316986084,
1307 "y": 152.52372694015503,
1308 "z": "214b12db.e4ae8e",
1312 "id": "b958118a.b4c35",
1315 "xml": "<outcome value='success'>\n",
1318 "x": 1662.7614707946777,
1319 "y": 103.17462110519409,
1320 "z": "214b12db.e4ae8e",
1321 "wires": [["61a0d1cf.928f8"]]
1324 "id": "61a0d1cf.928f8",
1326 "name": "Report Error to DCAE",
1327 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
1330 "x": 1864.3330039978027,
1331 "y": 102.88888502120972,
1332 "z": "214b12db.e4ae8e",
1336 "id": "cd47c223.a0626",
1337 "type": "returnFailure",
1338 "name": "return failure",
1339 "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",
1341 "x": 3202.333251953125,
1343 "z": "214b12db.e4ae8e",