2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
22 "id": "9c13e82a.387b38",
26 "x": 131.66665649414062,
27 "y": 116.6666750907898,
28 "z": "214b12db.e4ae8e",
29 "wires": [["c8696732.57b668"]]
32 "id": "c8696732.57b668",
33 "type": "service-logic",
38 "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>",
40 "x": 311.6666564941406,
41 "y": 116.6666750907898,
42 "z": "214b12db.e4ae8e",
43 "wires": [["11c0a5be.fe5bfa"]]
46 "id": "11c0a5be.fe5bfa",
49 "xml": "<method rpc='Generic_Sync' mode='sync'>\n",
52 "x": 490.6666564941406,
53 "y": 116.6666750907898,
54 "z": "214b12db.e4ae8e",
55 "wires": [["cb484414.952458"]]
58 "id": "9ec6a6d6.7a5678",
59 "type": "get-resource",
60 "name": "Retrieve current config details",
61 "xml": "<get-resource plugin='org.openecomp.sdnc.sli.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[]\">",
64 "x": 519.0861930847168,
65 "y": 437.4498953819275,
66 "z": "214b12db.e4ae8e",
67 "wires": [["a4a4499.da795b8",
72 "id": "f40aff31.110c9",
75 "xml": "<outcome value='failure'>\n",
78 "x": 771.3759498596191,
79 "y": 365.17019033432007,
80 "z": "214b12db.e4ae8e",
81 "wires": [["841d3cc6.f08c7"]]
84 "id": "a4a4499.da795b8",
87 "xml": "<outcome value='not-found'>",
90 "x": 776.3759956359863,
91 "y": 436.947970867157,
92 "z": "214b12db.e4ae8e",
93 "wires": [["b9da4281.1adab"]]
96 "id": "d4b62675.cc3218",
99 "xml": "<outcome value='success'>\n",
102 "x": 773.598217010498,
103 "y": 500.61465311050415,
104 "z": "214b12db.e4ae8e",
105 "wires": [["88d88ec0.cbcfa"]]
108 "id": "2a1906ba.c69e1a",
110 "name": "Report Error to DCAE",
111 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
114 "x": 1229.2260704040527,
115 "y": 539.5462489128113,
116 "z": "214b12db.e4ae8e",
120 "id": "2195ead0.db2c66",
121 "type": "returnFailure",
122 "name": "return failure",
123 "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",
125 "x": 1207.9867248535156,
126 "y": 592.734308719635,
127 "z": "214b12db.e4ae8e",
131 "id": "9e646937.3ed6a8",
133 "name": "Set error message",
134 "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
136 "x": 1214.5936851501465,
137 "y": 436.7257466316223,
138 "z": "214b12db.e4ae8e",
142 "id": "88cf09de.c0d5e8",
144 "name": "Set error message",
145 "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",
147 "x": 1215.234661102295,
148 "y": 384.6402335166931,
149 "z": "214b12db.e4ae8e",
153 "id": "841d3cc6.f08c7",
160 "x": 932.456859588623,
161 "y": 365.05907678604126,
162 "z": "214b12db.e4ae8e",
163 "wires": [["88cf09de.c0d5e8",
169 "id": "b9da4281.1adab",
176 "x": 940.0124244689941,
177 "y": 436.8368649482727,
178 "z": "214b12db.e4ae8e",
179 "wires": [["9e646937.3ed6a8",
185 "id": "88d88ec0.cbcfa",
187 "name": "block : atomic",
188 "xml": "<block atomic='true'>",
192 "x": 409.5640525817871,
193 "y": 615.6837515830994,
194 "z": "214b12db.e4ae8e",
195 "wires": [["7732a369.eb726c",
206 "id": "7732a369.eb726c",
208 "name": "for each current config",
209 "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
212 "x": 657.6324729919434,
213 "y": 616.0513052940369,
214 "z": "214b12db.e4ae8e",
215 "wires": [["842b0ba4.2b8248"]]
218 "id": "ce31ce3d.765e7",
220 "name": "Set context",
221 "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",
223 "x": 1072.4787254333496,
224 "y": 616.2821097373962,
225 "z": "214b12db.e4ae8e",
229 "id": "9fe7ebb1.f6f948",
231 "name": "Call Retrieve running Config DG",
232 "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
235 "x": 1104.4786949157715,
236 "y": 674.28204870224,
237 "z": "214b12db.e4ae8e",
238 "wires": [["cd269b5.a716568",
243 "id": "842b0ba4.2b8248",
245 "name": "block : atomic",
246 "xml": "<block atomic='true'>",
250 "x": 852.7863121032715,
251 "y": 675.205144405365,
252 "z": "214b12db.e4ae8e",
253 "wires": [["ce31ce3d.765e7",
259 "id": "cd269b5.a716568",
262 "xml": "<outcome value='failure'>\n",
265 "x": 1346.5898399353027,
266 "y": 623.2819828987122,
267 "z": "214b12db.e4ae8e",
268 "wires": [["7e006a6b.da6ef4"]]
271 "id": "4f80d854.e62828",
274 "xml": "<outcome value='not-found'>",
277 "x": 1358.034236907959,
278 "y": 676.28204870224,
279 "z": "214b12db.e4ae8e",
280 "wires": [["6c663e2f.d966d"]]
283 "id": "83342c8c.51a98",
286 "xml": "<outcome value='success'>\n",
289 "x": 1368.1451988220215,
290 "y": 728.3930716514587,
291 "z": "214b12db.e4ae8e",
295 "id": "4f4a7a36.c2a284",
297 "name": "Mark current configs as historic",
298 "xml": "<update resource='SQL' force='true' plugin='org.openecomp.sdnc.sli.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",
301 "x": 801.5814094543457,
302 "y": 1163.6410536766052,
303 "z": "214b12db.e4ae8e",
304 "wires": [["25e5bfd2.2129e",
308 "id": "d5cea21b.c34aa",
310 "name": "Store device config as 'Current'",
311 "xml": "<save plugin='org.openecomp.sdnc.sli.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",
314 "x": 795.196704864502,
315 "y": 1331.1795058250427,
316 "z": "214b12db.e4ae8e",
317 "wires": [["3111ae3b.b3f9e2",
321 "id": "f1f93963.7ca2d8",
324 "xml": "<outcome value='success'>\n",
327 "x": 1055.1968002319336,
328 "y": 1375.1795058250427,
329 "z": "214b12db.e4ae8e",
333 "id": "3111ae3b.b3f9e2",
336 "xml": "<outcome value='failure'>\n",
339 "x": 1050.1968002319336,
340 "y": 1291.1795058250427,
341 "z": "214b12db.e4ae8e",
342 "wires": [["f16ab34d.41c77"]]
345 "id": "25e5bfd2.2129e",
348 "xml": "<outcome value='success'>\n",
351 "x": 1060.581470489502,
352 "y": 1218.6410384178162,
353 "z": "214b12db.e4ae8e",
357 "id": "baa57190.f5968",
360 "xml": "<outcome value='failure'>\n",
363 "x": 1054.581470489502,
364 "y": 1162.6410536766052,
365 "z": "214b12db.e4ae8e",
366 "wires": [["62bc5493.c88cfc"]]
369 "id": "7e006a6b.da6ef4",
376 "x": 1497.1454181671143,
377 "y": 623.2819752693176,
378 "z": "214b12db.e4ae8e",
379 "wires": [["f6c71fae.e8d17",
385 "id": "f6c71fae.e8d17",
387 "name": "Set error message",
388 "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\" />\n",
390 "x": 1804.7011909484863,
391 "y": 521.1709504127502,
392 "z": "214b12db.e4ae8e",
396 "id": "6c663e2f.d966d",
403 "x": 1510.4786949157715,
404 "y": 675.1709036827087,
405 "z": "214b12db.e4ae8e",
406 "wires": [["963a5bc6.b3e628",
412 "id": "963a5bc6.b3e628",
414 "name": "Set error message",
415 "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
417 "x": 1806.7012519836426,
418 "y": 570.1709456443787,
419 "z": "214b12db.e4ae8e",
423 "id": "62bc5493.c88cfc",
430 "x": 1223.359302520752,
431 "y": 1163.6410536766052,
432 "z": "214b12db.e4ae8e",
433 "wires": [["fca9379c.f1ba58",
440 "id": "fca9379c.f1ba58",
442 "name": "Set error message",
443 "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",
445 "x": 1451.6924629211426,
446 "y": 1200.6411147117615,
447 "z": "214b12db.e4ae8e",
451 "id": "f16ab34d.41c77",
458 "x": 1216.9744491577148,
459 "y": 1293.1795058250427,
460 "z": "214b12db.e4ae8e",
461 "wires": [["4adc4f3b.17a16",
468 "id": "4adc4f3b.17a16",
470 "name": "Set error message",
471 "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",
473 "x": 1443.529987335205,
474 "y": 1245.2907118797302,
475 "z": "214b12db.e4ae8e",
479 "id": "aac04b94.261c38",
480 "type": "returnFailure",
481 "name": "return failure",
482 "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`\"/>",
484 "x": 1787.5473823547363,
485 "y": 713.0171122550964,
486 "z": "214b12db.e4ae8e",
490 "id": "a278106d.b2101",
492 "name": "Report Error to DCAE",
493 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
496 "x": 1816.5474433898926,
497 "y": 663.0170950889587,
498 "z": "214b12db.e4ae8e",
502 "id": "15018948.152e47",
503 "type": "returnFailure",
504 "name": "return failure",
505 "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`\"/>",
507 "x": 1436.7608222961426,
508 "y": 1427.1369032859802,
509 "z": "214b12db.e4ae8e",
513 "id": "205f706d.16fb1",
515 "name": "Report Error to DCAE",
516 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
519 "x": 1461.7608222961426,
520 "y": 1337.1369032859802,
521 "z": "214b12db.e4ae8e",
525 "id": "f5cfbdb3.30a63",
532 "x": 291.6666603088379,
533 "y": 343.57577085494995,
534 "z": "214b12db.e4ae8e",
535 "wires": [["9ec6a6d6.7a5678",
539 "id": "1aa4df6e.f6da11",
542 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
545 "x": 1182.3589057922363,
546 "y": 491.3589644432068,
547 "z": "214b12db.e4ae8e",
551 "id": "4b77bb4a.9f7014",
554 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
557 "x": 1778.0247383117676,
558 "y": 613.7672305107117,
559 "z": "214b12db.e4ae8e",
563 "id": "3521d3f3.e7bf6c",
566 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
569 "x": 1427.1704940795898,
570 "y": 1292.0814833641052,
571 "z": "214b12db.e4ae8e",
575 "id": "58cdab19.f47684",
577 "name": "Log message",
578 "xml": "<record plugin=\"org.openecomp.sdnc.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",
581 "x": 481.0855522155762,
582 "y": 343.16138219833374,
583 "z": "214b12db.e4ae8e",
587 "id": "11dcb423.01808c",
589 "name": "Log message",
590 "xml": "<record plugin=\"org.openecomp.sdnc.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",
593 "x": 735.7780342102051,
594 "y": 1098.2382216453552,
595 "z": "214b12db.e4ae8e",
599 "id": "6d230a1.4a08cf4",
601 "name": "Log message",
602 "xml": "<record plugin=\"org.openecomp.sdnc.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",
605 "x": 745.7009773254395,
606 "y": 1274.3923964500427,
607 "z": "214b12db.e4ae8e",
611 "id": "855ad0e4.d405c",
613 "name": "Log message",
614 "xml": "<record plugin=\"org.openecomp.sdnc.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",
617 "x": 748.6198616027832,
618 "y": 1218.4325575828552,
619 "z": "214b12db.e4ae8e",
623 "id": "59566c79.8df204",
625 "name": "Log message",
626 "xml": "<record plugin=\"org.openecomp.sdnc.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",
629 "x": 735.6198616027832,
630 "y": 1387.8555312156677,
631 "z": "214b12db.e4ae8e",
635 "id": "872a0177.f9c8f",
636 "type": "returnSuccess",
637 "name": "return success",
638 "xml": "<return status='success'>\n",
640 "x": 711.4660873413086,
641 "y": 1504.8555312156677,
642 "z": "214b12db.e4ae8e",
646 "id": "dd580aa1.a817c8",
648 "name": "Set Running Config ID",
649 "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />\n\n",
651 "x": 1083.6667442321777,
652 "y": 733.0000834465027,
653 "z": "214b12db.e4ae8e",
657 "id": "aa08d8db.e07148",
659 "name": "Generate output payload",
660 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
663 "x": 763.6667366027832,
664 "y": 1445.0000014305115,
665 "z": "214b12db.e4ae8e",
666 "wires": [["1639668d.25e0d9",
671 "id": "1639668d.25e0d9",
674 "xml": "<outcome value='failure'>\n",
677 "x": 1006.6668586730957,
678 "y": 1425.9999403953552,
679 "z": "214b12db.e4ae8e",
680 "wires": [["a0b721e.ccba5e"]]
683 "id": "264aed94.5a8e32",
686 "xml": "<outcome value='not-found'>\n",
689 "x": 1008.6668586730957,
690 "y": 1471.0000014305115,
691 "z": "214b12db.e4ae8e",
692 "wires": [["a0b721e.ccba5e"]]
695 "id": "397802b1.358f0e",
698 "xml": "<outcome value='success'>\n",
701 "x": 1011.6667366027832,
702 "y": 1521.9999403953552,
703 "z": "214b12db.e4ae8e",
707 "id": "a0b721e.ccba5e",
709 "name": "block : atomic",
710 "xml": "<block atomic='true'>",
714 "x": 1206.3336067199707,
715 "y": 1482.9999403953552,
716 "z": "214b12db.e4ae8e",
717 "wires": [["a2cf5226.8165",
721 "id": "bd7acdda.91a63",
723 "name": "Report error to DCAE",
724 "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\" />",
727 "x": 1441.2381706237793,
728 "y": 1484.3807997703552,
729 "z": "214b12db.e4ae8e",
733 "id": "a2cf5226.8165",
734 "type": "returnFailure",
735 "name": "return failure",
736 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
738 "x": 1425.6666374206543,
739 "y": 1533.5236220359802,
740 "z": "214b12db.e4ae8e",
744 "id": "4d82212c.2ef21",
746 "name": "Generate output payload",
747 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
750 "x": 1493.8887519836426,
751 "y": 1385.0000014305115,
752 "z": "214b12db.e4ae8e",
753 "wires": [["425e2e54.04ff7",
758 "id": "425e2e54.04ff7",
761 "xml": "<outcome value='failure'>\n",
764 "x": 1740.8889350891113,
765 "y": 1332.9999403953552,
766 "z": "214b12db.e4ae8e",
767 "wires": [["62fbe5e0.d9cdcc"]]
770 "id": "d2f01dc7.e5e29",
773 "xml": "<outcome value='not-found'>\n",
776 "x": 1731.8889961242676,
777 "y": 1386.0000014305115,
778 "z": "214b12db.e4ae8e",
779 "wires": [["62fbe5e0.d9cdcc"]]
782 "id": "481f9e71.90512",
785 "xml": "<outcome value='success'>\n",
788 "x": 1733.888874053955,
789 "y": 1435.9999403953552,
790 "z": "214b12db.e4ae8e",
794 "id": "62fbe5e0.d9cdcc",
796 "name": "block : atomic",
797 "xml": "<block atomic='true'>",
801 "x": 1936.5558052062988,
802 "y": 1356.9999403953552,
803 "z": "214b12db.e4ae8e",
804 "wires": [["23d2ce67.52c4d2",
808 "id": "49e01c1c.c64a44",
810 "name": "Report error to DCAE",
811 "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\" />",
814 "x": 2165.460346221924,
815 "y": 1355.3807997703552,
816 "z": "214b12db.e4ae8e",
820 "id": "23d2ce67.52c4d2",
821 "type": "returnFailure",
822 "name": "return failure",
823 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
825 "x": 2145.888813018799,
826 "y": 1416.5236220359802,
827 "z": "214b12db.e4ae8e",
831 "id": "f6b28639.a1c3a8",
833 "name": "Outcome: y",
834 "xml": "<outcome value='y'>\n",
837 "x": 1190.6666526794434,
838 "y": 808.1822867393494,
839 "z": "214b12db.e4ae8e",
840 "wires": [["60059d22.c2ba54"]]
843 "id": "4c8c9a0.c6b3768",
844 "type": "switchNode",
846 "xml": "<switch test='`$Publish_Config`'>",
849 "x": 1037.6666984558105,
850 "y": 799.5156636238098,
851 "z": "214b12db.e4ae8e",
852 "wires": [["f6b28639.a1c3a8",
856 "id": "60059d22.c2ba54",
857 "type": "get-resource",
858 "name": "Retrieve Running config details DB",
859 "xml": "<get-resource plugin='org.openecomp.sdnc.sli.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\">",
862 "x": 1432.6667404174805,
863 "y": 829.1823210716248,
864 "z": "214b12db.e4ae8e",
865 "wires": [["cdc99515.922c58",
870 "id": "cdc99515.922c58",
873 "xml": "<outcome value='success'>\n",
876 "x": 1690.6669082641602,
877 "y": 840.1825032234192,
878 "z": "214b12db.e4ae8e",
879 "wires": [["7e300025.5253a"]]
882 "id": "7e300025.5253a",
884 "name": "execute CvaasDataIntoContext",
885 "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`\" />",
888 "x": 1943.9172744750977,
889 "y": 844.1830830574036,
890 "z": "214b12db.e4ae8e",
891 "wires": [["eb8bab96.3c6e98",
896 "id": "eb8bab96.3c6e98",
899 "xml": "<outcome value='success'>\n",
902 "x": 2241.1673278808594,
903 "y": 965.1831040382385,
904 "z": "214b12db.e4ae8e",
905 "wires": [["694c898b.ddbd58"]]
908 "id": "46abe9bb.2c0fd8",
911 "xml": "<outcome value='failure'>\n",
914 "x": 2250.6669998168945,
915 "y": 861.1828625202179,
916 "z": "214b12db.e4ae8e",
917 "wires": [["9fa2a21b.8af7c"]]
920 "id": "ce71ba2a.e1ce38",
923 "xml": "<outcome value='not-found'>\n",
926 "x": 2257.667266845703,
927 "y": 913.1830716133118,
928 "z": "214b12db.e4ae8e",
929 "wires": [["9fa2a21b.8af7c"]]
932 "id": "9034241c.159aa8",
935 "xml": "<outcome value='not-found'>",
938 "x": 1524.9166564941406,
939 "y": 1005.182294845581,
940 "z": "214b12db.e4ae8e",
941 "wires": [["567684cc.50b0dc"]]
944 "id": "9a6d5a51.faabc8",
947 "xml": "<outcome value='failure'>\n",
950 "x": 1521.9165420532227,
951 "y": 953.4044423103333,
952 "z": "214b12db.e4ae8e",
953 "wires": [["4bc0b87d.970378"]]
956 "id": "4bc0b87d.970378",
963 "x": 1661.9975929260254,
964 "y": 955.2935299873352,
965 "z": "214b12db.e4ae8e",
966 "wires": [["3ce78b3b.82fee4",
972 "id": "567684cc.50b0dc",
979 "x": 1661.553165435791,
980 "y": 1014.0713334083557,
981 "z": "214b12db.e4ae8e",
982 "wires": [["ce132d3c.9e7bb",
988 "id": "ba52c35d.d0a18",
991 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
994 "x": 1859.8998336791992,
995 "y": 1030.5936121940613,
996 "z": "214b12db.e4ae8e",
1000 "id": "3ce78b3b.82fee4",
1002 "name": "Set error message",
1003 "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",
1005 "x": 1892.7756729125977,
1006 "y": 930.875011920929,
1007 "z": "214b12db.e4ae8e",
1011 "id": "6d199d17.82f204",
1013 "name": "Outcome: Y",
1014 "xml": "<outcome value='Y'>\n",
1017 "x": 1191.6667098999023,
1018 "y": 860.1822571754456,
1019 "z": "214b12db.e4ae8e",
1020 "wires": [["60059d22.c2ba54"]]
1023 "id": "956742c7.415fd",
1025 "name": "Set error message",
1026 "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
1028 "x": 1891.1346130371094,
1029 "y": 979.9603943824768,
1030 "z": "214b12db.e4ae8e",
1034 "id": "694c898b.ddbd58",
1036 "name": "record cvass",
1037 "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`\"/>",
1040 "x": 2417.917697906494,
1041 "y": 1007.1834092140198,
1042 "z": "214b12db.e4ae8e",
1043 "wires": [["e96f6416.e57a18",
1047 "id": "900e8879.a7b3f8",
1048 "type": "returnFailure",
1049 "name": "return failure",
1050 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1052 "x": 2636.6667404174805,
1053 "y": 938.7069244384766,
1054 "z": "214b12db.e4ae8e",
1058 "id": "4c75663f.43f0d8",
1060 "name": "execute CheckFileCreated",
1061 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
1064 "x": 2490.933391571045,
1065 "y": 1143.9486117362976,
1066 "z": "214b12db.e4ae8e",
1067 "wires": [["a473caa6.56a5f8",
1072 "id": "4f4d3434.694adc",
1074 "name": "block : atomic",
1075 "xml": "<block atomic='true'>",
1079 "x": 2965.4338912963867,
1080 "y": 1122.9491600990295,
1081 "z": "214b12db.e4ae8e",
1082 "wires": [["8b90be34.c5f61",
1088 "id": "8b90be34.c5f61",
1090 "name": "Set error message",
1091 "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
1093 "x": 3205.9892539978027,
1094 "y": 1070.8379549980164,
1095 "z": "214b12db.e4ae8e",
1099 "id": "feccd180.68417",
1101 "name": "Log error",
1102 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
1105 "x": 3182.3132286071777,
1106 "y": 1122.4345178604126,
1107 "z": "214b12db.e4ae8e",
1111 "id": "cab8f54e.ec65e8",
1113 "name": "Report Error to DCAE",
1114 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1117 "x": 3216.8359298706055,
1118 "y": 1174.6844897270203,
1119 "z": "214b12db.e4ae8e",
1123 "id": "18a86d58.a2caa3",
1126 "xml": "<outcome value='failure'>\n",
1129 "x": 2745.9338912963867,
1130 "y": 1097.9491291046143,
1131 "z": "214b12db.e4ae8e",
1132 "wires": [["4f4d3434.694adc"]]
1135 "id": "a473caa6.56a5f8",
1136 "type": "not-found",
1137 "name": "not-found",
1138 "xml": "<outcome value='not-found'>\n",
1141 "x": 2754.9335975646973,
1142 "y": 1154.9489903450012,
1143 "z": "214b12db.e4ae8e",
1144 "wires": [["4f4d3434.694adc"]]
1147 "id": "3498054b.73705a",
1150 "xml": "<outcome value='success'>\n",
1153 "x": 2761.933582305908,
1154 "y": 1207.9490694999695,
1155 "z": "214b12db.e4ae8e",
1159 "id": "9fa2a21b.8af7c",
1161 "name": "block : atomic",
1162 "xml": "<block atomic='true'>",
1166 "x": 2456.3336868286133,
1167 "y": 883.1828720569611,
1168 "z": "214b12db.e4ae8e",
1169 "wires": [["900e8879.a7b3f8",
1173 "id": "8652a63d.1ea618",
1175 "name": "Report error to DCAE",
1176 "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\" />",
1179 "x": 2655.238349914551,
1180 "y": 840.5637314319611,
1181 "z": "214b12db.e4ae8e",
1185 "id": "e96f6416.e57a18",
1188 "xml": "<outcome value='failure'>\n",
1191 "x": 2254.933277130127,
1192 "y": 1124.9486260414124,
1193 "z": "214b12db.e4ae8e",
1194 "wires": [["4c75663f.43f0d8"]]
1197 "id": "9939c991.265c38",
1200 "xml": "<outcome value='success'>\n",
1203 "x": 2255.9330825805664,
1204 "y": 1167.9487557411194,
1205 "z": "214b12db.e4ae8e",
1206 "wires": [["4c75663f.43f0d8"]]
1209 "id": "de31ac1.3cad05",
1210 "type": "returnFailure",
1211 "name": "return failure",
1212 "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",
1214 "x": 1875.5276527404785,
1215 "y": 1128.9689564704895,
1216 "z": "214b12db.e4ae8e",
1220 "id": "ce132d3c.9e7bb",
1222 "name": "Report Error to DCAE",
1223 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1226 "x": 1900.7669982910156,
1227 "y": 1077.7808966636658,
1228 "z": "214b12db.e4ae8e",
1232 "id": "cb484414.952458",
1234 "name": "Set payload in Context",
1235 "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
1238 "x": 726.6667137145996,
1239 "y": 116.74999856948853,
1240 "z": "214b12db.e4ae8e",
1241 "wires": [["b20f9d10.79243",
1247 "id": "c4b37771.d26c18",
1250 "xml": "<outcome value='Other'>\n",
1253 "x": 1016.6667289733887,
1254 "y": 58.99999761581421,
1255 "z": "214b12db.e4ae8e",
1256 "wires": [["507fcd18.8ae1c4"]]
1259 "id": "b02ba377.938ab",
1262 "xml": "<outcome value='failure'>\n",
1265 "x": 1017.6667289733887,
1266 "y": 108.99999761581421,
1267 "z": "214b12db.e4ae8e",
1268 "wires": [["507fcd18.8ae1c4"]]
1271 "id": "d871965c.fc6f98",
1272 "type": "not-found",
1273 "name": "not-found",
1274 "xml": "<outcome value='not-found'>\n",
1277 "x": 1010.6667289733887,
1278 "y": 164.00001287460327,
1279 "z": "214b12db.e4ae8e",
1280 "wires": [["507fcd18.8ae1c4"]]
1283 "id": "b20f9d10.79243",
1286 "xml": "<outcome value='success'>\n",
1289 "x": 1007.6667900085449,
1290 "y": 219.750009059906,
1291 "z": "214b12db.e4ae8e",
1292 "wires": [["f5cfbdb3.30a63"]]
1295 "id": "507fcd18.8ae1c4",
1298 "xml": "<block atomic='true'>",
1302 "x": 1224.3333702087402,
1303 "y": 151.99999952316284,
1304 "z": "214b12db.e4ae8e",
1305 "wires": [["2a1493.66c87b6e",
1309 "id": "861e0870.0e6308",
1311 "name": "OutputMessageBuilder",
1312 "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\" />",
1315 "x": 1454.6664390563965,
1316 "y": 103.88888502120972,
1317 "z": "214b12db.e4ae8e",
1318 "wires": [["b958118a.b4c35"]]
1321 "id": "2a1493.66c87b6e",
1322 "type": "returnFailure",
1323 "name": "return failure",
1324 "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1326 "x": 1421.666316986084,
1327 "y": 152.52372694015503,
1328 "z": "214b12db.e4ae8e",
1332 "id": "b958118a.b4c35",
1335 "xml": "<outcome value='success'>\n",
1338 "x": 1662.7614707946777,
1339 "y": 103.17462110519409,
1340 "z": "214b12db.e4ae8e",
1341 "wires": [["61a0d1cf.928f8"]]
1344 "id": "61a0d1cf.928f8",
1346 "name": "Report Error to DCAE",
1347 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
1350 "x": 1864.3330039978027,
1351 "y": 102.88888502120972,
1352 "z": "214b12db.e4ae8e",
1356 "id": "cd47c223.a0626",
1357 "type": "returnFailure",
1358 "name": "return failure",
1359 "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",
1361 "x": 3202.333251953125,
1363 "z": "214b12db.e4ae8e",