-/*-
- * ============LICENSE_START=======================================================
- * ONAP : APP-C
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-[{
- "id": "9c13e82a.387b38",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 131.66665649414062,
- "y": 116.6666750907898,
- "z": "214b12db.e4ae8e",
- "wires": [["c8696732.57b668"]]
-},
- {
- "id": "c8696732.57b668",
- "type": "service-logic",
- "name": "APPC 2.0.0",
- "module": "APPC",
- "version": "2.0.0",
- "comments": "",
- "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'>",
- "outputs": 1,
- "x": 311.6666564941406,
- "y": 116.6666750907898,
- "z": "214b12db.e4ae8e",
- "wires": [["11c0a5be.fe5bfa"]]
- },
- {
- "id": "11c0a5be.fe5bfa",
- "type": "method",
- "name": "Sync",
- "xml": "<method rpc='Generic_Sync' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 490.6666564941406,
- "y": 116.6666750907898,
- "z": "214b12db.e4ae8e",
- "wires": [["cb484414.952458"]]
- },
- {
- "id": "9ec6a6d6.7a5678",
- "type": "get-resource",
- "name": "Retrieve current config details",
- "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[]\">",
- "comments": "",
- "outputs": 1,
- "x": 519.0861930847168,
- "y": 437.4498953819275,
- "z": "214b12db.e4ae8e",
- "wires": [["a4a4499.da795b8",
- "d4b62675.cc3218",
- "f40aff31.110c9"]]
- },
- {
- "id": "f40aff31.110c9",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 771.3759498596191,
- "y": 365.17019033432007,
- "z": "214b12db.e4ae8e",
- "wires": [["841d3cc6.f08c7"]]
- },
- {
- "id": "a4a4499.da795b8",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>",
- "comments": "",
- "outputs": 1,
- "x": 776.3759956359863,
- "y": 436.947970867157,
- "z": "214b12db.e4ae8e",
- "wires": [["b9da4281.1adab"]]
- },
- {
- "id": "d4b62675.cc3218",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 773.598217010498,
- "y": 500.61465311050415,
- "z": "214b12db.e4ae8e",
- "wires": [["88d88ec0.cbcfa"]]
- },
- {
- "id": "2a1906ba.c69e1a",
- "type": "execute",
- "name": "Report Error to DCAE",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1229.2260704040527,
- "y": 539.5462489128113,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "2195ead0.db2c66",
- "type": "returnFailure",
- "name": "return failure",
- "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",
- "comments": "",
- "x": 1207.9867248535156,
- "y": 592.734308719635,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "9e646937.3ed6a8",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
- "comments": "",
- "x": 1214.5936851501465,
- "y": 436.7257466316223,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "88cf09de.c0d5e8",
- "type": "set",
- "name": "Set error message",
- "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",
- "comments": "",
- "x": 1215.234661102295,
- "y": 384.6402335166931,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "841d3cc6.f08c7",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 932.456859588623,
- "y": 365.05907678604126,
- "z": "214b12db.e4ae8e",
- "wires": [["88cf09de.c0d5e8",
- "2a1906ba.c69e1a",
- "2195ead0.db2c66",
- "1aa4df6e.f6da11"]]
- },
- {
- "id": "b9da4281.1adab",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 940.0124244689941,
- "y": 436.8368649482727,
- "z": "214b12db.e4ae8e",
- "wires": [["9e646937.3ed6a8",
- "2a1906ba.c69e1a",
- "2195ead0.db2c66",
- "1aa4df6e.f6da11"]]
- },
- {
- "id": "88d88ec0.cbcfa",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 409.5640525817871,
- "y": 615.6837515830994,
- "z": "214b12db.e4ae8e",
- "wires": [["7732a369.eb726c",
- "4f4a7a36.c2a284",
- "d5cea21b.c34aa",
- "11dcb423.01808c",
- "6d230a1.4a08cf4",
- "855ad0e4.d405c",
- "59566c79.8df204",
- "872a0177.f9c8f",
- "aa08d8db.e07148"]]
- },
- {
- "id": "7732a369.eb726c",
- "type": "for",
- "name": "for each current config",
- "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
- "comments": "",
- "outputs": 1,
- "x": 657.6324729919434,
- "y": 616.0513052940369,
- "z": "214b12db.e4ae8e",
- "wires": [["842b0ba4.2b8248"]]
- },
- {
- "id": "ce31ce3d.765e7",
- "type": "set",
- "name": "Set context",
- "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",
- "comments": "",
- "x": 1072.4787254333496,
- "y": 616.2821097373962,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "9fe7ebb1.f6f948",
- "type": "call",
- "name": "Call Retrieve running Config DG",
- "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1104.4786949157715,
- "y": 674.28204870224,
- "z": "214b12db.e4ae8e",
- "wires": [["cd269b5.a716568",
- "4f80d854.e62828",
- "83342c8c.51a98"]]
- },
- {
- "id": "842b0ba4.2b8248",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 852.7863121032715,
- "y": 675.205144405365,
- "z": "214b12db.e4ae8e",
- "wires": [["ce31ce3d.765e7",
- "9fe7ebb1.f6f948",
- "dd580aa1.a817c8",
- "4c8c9a0.c6b3768"]]
- },
- {
- "id": "cd269b5.a716568",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1346.5898399353027,
- "y": 623.2819828987122,
- "z": "214b12db.e4ae8e",
- "wires": [["7e006a6b.da6ef4"]]
- },
- {
- "id": "4f80d854.e62828",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>",
- "comments": "",
- "outputs": 1,
- "x": 1358.034236907959,
- "y": 676.28204870224,
- "z": "214b12db.e4ae8e",
- "wires": [["6c663e2f.d966d"]]
- },
- {
- "id": "83342c8c.51a98",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1368.1451988220215,
- "y": 728.3930716514587,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "4f4a7a36.c2a284",
- "type": "update",
- "name": "Mark current configs as historic",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 801.5814094543457,
- "y": 1163.6410536766052,
- "z": "214b12db.e4ae8e",
- "wires": [["25e5bfd2.2129e",
- "baa57190.f5968"]]
- },
- {
- "id": "d5cea21b.c34aa",
- "type": "save",
- "name": "Store device config as 'Current'",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 795.196704864502,
- "y": 1331.1795058250427,
- "z": "214b12db.e4ae8e",
- "wires": [["3111ae3b.b3f9e2",
- "f1f93963.7ca2d8"]]
- },
- {
- "id": "f1f93963.7ca2d8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1055.1968002319336,
- "y": 1375.1795058250427,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "3111ae3b.b3f9e2",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1050.1968002319336,
- "y": 1291.1795058250427,
- "z": "214b12db.e4ae8e",
- "wires": [["f16ab34d.41c77"]]
- },
- {
- "id": "25e5bfd2.2129e",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1060.581470489502,
- "y": 1218.6410384178162,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "baa57190.f5968",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1054.581470489502,
- "y": 1162.6410536766052,
- "z": "214b12db.e4ae8e",
- "wires": [["62bc5493.c88cfc"]]
- },
- {
- "id": "7e006a6b.da6ef4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1497.1454181671143,
- "y": 623.2819752693176,
- "z": "214b12db.e4ae8e",
- "wires": [["f6c71fae.e8d17",
- "a278106d.b2101",
- "aac04b94.261c38",
- "4b77bb4a.9f7014"]]
- },
- {
- "id": "f6c71fae.e8d17",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 1804.7011909484863,
- "y": 521.1709504127502,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "6c663e2f.d966d",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1510.4786949157715,
- "y": 675.1709036827087,
- "z": "214b12db.e4ae8e",
- "wires": [["963a5bc6.b3e628",
- "a278106d.b2101",
- "aac04b94.261c38",
- "4b77bb4a.9f7014"]]
- },
- {
- "id": "963a5bc6.b3e628",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
- "comments": "",
- "x": 1806.7012519836426,
- "y": 570.1709456443787,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "62bc5493.c88cfc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1223.359302520752,
- "y": 1163.6410536766052,
- "z": "214b12db.e4ae8e",
- "wires": [["fca9379c.f1ba58",
- "205f706d.16fb1",
- "15018948.152e47",
- "3521d3f3.e7bf6c",
- "4d82212c.2ef21"]]
- },
- {
- "id": "fca9379c.f1ba58",
- "type": "set",
- "name": "Set error message",
- "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",
- "comments": "",
- "x": 1451.6924629211426,
- "y": 1200.6411147117615,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "f16ab34d.41c77",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1216.9744491577148,
- "y": 1293.1795058250427,
- "z": "214b12db.e4ae8e",
- "wires": [["4adc4f3b.17a16",
- "205f706d.16fb1",
- "15018948.152e47",
- "3521d3f3.e7bf6c",
- "4d82212c.2ef21"]]
- },
- {
- "id": "4adc4f3b.17a16",
- "type": "set",
- "name": "Set error message",
- "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",
- "comments": "",
- "x": 1443.529987335205,
- "y": 1245.2907118797302,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "aac04b94.261c38",
- "type": "returnFailure",
- "name": "return failure",
- "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`\"/>",
- "comments": "",
- "x": 1787.5473823547363,
- "y": 713.0171122550964,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "a278106d.b2101",
- "type": "execute",
- "name": "Report Error to DCAE",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1816.5474433898926,
- "y": 663.0170950889587,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "15018948.152e47",
- "type": "returnFailure",
- "name": "return failure",
- "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`\"/>",
- "comments": "",
- "x": 1436.7608222961426,
- "y": 1427.1369032859802,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "205f706d.16fb1",
- "type": "execute",
- "name": "Report Error to DCAE",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1461.7608222961426,
- "y": 1337.1369032859802,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "f5cfbdb3.30a63",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 291.6666603088379,
- "y": 343.57577085494995,
- "z": "214b12db.e4ae8e",
- "wires": [["9ec6a6d6.7a5678",
- "58cdab19.f47684"]]
- },
- {
- "id": "1aa4df6e.f6da11",
- "type": "record",
- "name": "Log error",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1182.3589057922363,
- "y": 491.3589644432068,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "4b77bb4a.9f7014",
- "type": "record",
- "name": "Log error",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1778.0247383117676,
- "y": 613.7672305107117,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "3521d3f3.e7bf6c",
- "type": "record",
- "name": "Log error",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1427.1704940795898,
- "y": 1292.0814833641052,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "58cdab19.f47684",
- "type": "record",
- "name": "Log message",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 481.0855522155762,
- "y": 343.16138219833374,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "11dcb423.01808c",
- "type": "record",
- "name": "Log message",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 735.7780342102051,
- "y": 1098.2382216453552,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "6d230a1.4a08cf4",
- "type": "record",
- "name": "Log message",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 745.7009773254395,
- "y": 1274.3923964500427,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "855ad0e4.d405c",
- "type": "record",
- "name": "Log message",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 748.6198616027832,
- "y": 1218.4325575828552,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "59566c79.8df204",
- "type": "record",
- "name": "Log message",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 735.6198616027832,
- "y": 1387.8555312156677,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "872a0177.f9c8f",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 711.4660873413086,
- "y": 1504.8555312156677,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "dd580aa1.a817c8",
- "type": "set",
- "name": "Set Running Config ID",
- "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />\n\n",
- "comments": "",
- "x": 1083.6667442321777,
- "y": 733.0000834465027,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "aa08d8db.e07148",
- "type": "execute",
- "name": "Generate output payload",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
- "comments": "",
- "outputs": 1,
- "x": 763.6667366027832,
- "y": 1445.0000014305115,
- "z": "214b12db.e4ae8e",
- "wires": [["1639668d.25e0d9",
- "264aed94.5a8e32",
- "397802b1.358f0e"]]
- },
- {
- "id": "1639668d.25e0d9",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1006.6668586730957,
- "y": 1425.9999403953552,
- "z": "214b12db.e4ae8e",
- "wires": [["a0b721e.ccba5e"]]
- },
- {
- "id": "264aed94.5a8e32",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1008.6668586730957,
- "y": 1471.0000014305115,
- "z": "214b12db.e4ae8e",
- "wires": [["a0b721e.ccba5e"]]
- },
- {
- "id": "397802b1.358f0e",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1011.6667366027832,
- "y": 1521.9999403953552,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "a0b721e.ccba5e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1206.3336067199707,
- "y": 1482.9999403953552,
- "z": "214b12db.e4ae8e",
- "wires": [["a2cf5226.8165",
- "bd7acdda.91a63"]]
- },
- {
- "id": "bd7acdda.91a63",
- "type": "execute",
- "name": "Report error to DCAE",
- "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\" />",
- "comments": "",
- "outputs": 1,
- "x": 1441.2381706237793,
- "y": 1484.3807997703552,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "a2cf5226.8165",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
- "comments": "",
- "x": 1425.6666374206543,
- "y": 1533.5236220359802,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "4d82212c.2ef21",
- "type": "execute",
- "name": "Generate output payload",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
- "comments": "",
- "outputs": 1,
- "x": 1493.8887519836426,
- "y": 1385.0000014305115,
- "z": "214b12db.e4ae8e",
- "wires": [["425e2e54.04ff7",
- "d2f01dc7.e5e29",
- "481f9e71.90512"]]
- },
- {
- "id": "425e2e54.04ff7",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1740.8889350891113,
- "y": 1332.9999403953552,
- "z": "214b12db.e4ae8e",
- "wires": [["62fbe5e0.d9cdcc"]]
- },
- {
- "id": "d2f01dc7.e5e29",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1731.8889961242676,
- "y": 1386.0000014305115,
- "z": "214b12db.e4ae8e",
- "wires": [["62fbe5e0.d9cdcc"]]
- },
- {
- "id": "481f9e71.90512",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1733.888874053955,
- "y": 1435.9999403953552,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "62fbe5e0.d9cdcc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1936.5558052062988,
- "y": 1356.9999403953552,
- "z": "214b12db.e4ae8e",
- "wires": [["23d2ce67.52c4d2",
- "49e01c1c.c64a44"]]
- },
- {
- "id": "49e01c1c.c64a44",
- "type": "execute",
- "name": "Report error to DCAE",
- "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\" />",
- "comments": "",
- "outputs": 1,
- "x": 2165.460346221924,
- "y": 1355.3807997703552,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "23d2ce67.52c4d2",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
- "comments": "",
- "x": 2145.888813018799,
- "y": 1416.5236220359802,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "f6b28639.a1c3a8",
- "type": "outcome",
- "name": "Outcome: y",
- "xml": "<outcome value='y'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1190.6666526794434,
- "y": 808.1822867393494,
- "z": "214b12db.e4ae8e",
- "wires": [["60059d22.c2ba54"]]
- },
- {
- "id": "4c8c9a0.c6b3768",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$Publish_Config`'>",
- "comments": "",
- "outputs": 1,
- "x": 1037.6666984558105,
- "y": 799.5156636238098,
- "z": "214b12db.e4ae8e",
- "wires": [["f6b28639.a1c3a8",
- "6d199d17.82f204"]]
- },
- {
- "id": "60059d22.c2ba54",
- "type": "get-resource",
- "name": "Retrieve Running config details DB",
- "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\">",
- "comments": "",
- "outputs": 1,
- "x": 1432.6667404174805,
- "y": 829.1823210716248,
- "z": "214b12db.e4ae8e",
- "wires": [["cdc99515.922c58",
- "9a6d5a51.faabc8",
- "9034241c.159aa8"]]
- },
- {
- "id": "cdc99515.922c58",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1690.6669082641602,
- "y": 840.1825032234192,
- "z": "214b12db.e4ae8e",
- "wires": [["7e300025.5253a"]]
- },
- {
- "id": "7e300025.5253a",
- "type": "execute",
- "name": "execute CvaasDataIntoContext",
- "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`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1943.9172744750977,
- "y": 844.1830830574036,
- "z": "214b12db.e4ae8e",
- "wires": [["eb8bab96.3c6e98",
- "46abe9bb.2c0fd8",
- "ce71ba2a.e1ce38"]]
- },
- {
- "id": "eb8bab96.3c6e98",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2241.1673278808594,
- "y": 965.1831040382385,
- "z": "214b12db.e4ae8e",
- "wires": [["694c898b.ddbd58"]]
- },
- {
- "id": "46abe9bb.2c0fd8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2250.6669998168945,
- "y": 861.1828625202179,
- "z": "214b12db.e4ae8e",
- "wires": [["9fa2a21b.8af7c"]]
- },
- {
- "id": "ce71ba2a.e1ce38",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2257.667266845703,
- "y": 913.1830716133118,
- "z": "214b12db.e4ae8e",
- "wires": [["9fa2a21b.8af7c"]]
- },
- {
- "id": "9034241c.159aa8",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>",
- "comments": "",
- "outputs": 1,
- "x": 1524.9166564941406,
- "y": 1005.182294845581,
- "z": "214b12db.e4ae8e",
- "wires": [["567684cc.50b0dc"]]
- },
- {
- "id": "9a6d5a51.faabc8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1521.9165420532227,
- "y": 953.4044423103333,
- "z": "214b12db.e4ae8e",
- "wires": [["4bc0b87d.970378"]]
- },
- {
- "id": "4bc0b87d.970378",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1661.9975929260254,
- "y": 955.2935299873352,
- "z": "214b12db.e4ae8e",
- "wires": [["3ce78b3b.82fee4",
- "ce132d3c.9e7bb",
- "de31ac1.3cad05",
- "ba52c35d.d0a18"]]
- },
- {
- "id": "567684cc.50b0dc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1661.553165435791,
- "y": 1014.0713334083557,
- "z": "214b12db.e4ae8e",
- "wires": [["ce132d3c.9e7bb",
- "de31ac1.3cad05",
- "ba52c35d.d0a18",
- "956742c7.415fd"]]
- },
- {
- "id": "ba52c35d.d0a18",
- "type": "record",
- "name": "Log error",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1859.8998336791992,
- "y": 1030.5936121940613,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "3ce78b3b.82fee4",
- "type": "set",
- "name": "Set error message",
- "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",
- "comments": "",
- "x": 1892.7756729125977,
- "y": 930.875011920929,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "6d199d17.82f204",
- "type": "outcome",
- "name": "Outcome: Y",
- "xml": "<outcome value='Y'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1191.6667098999023,
- "y": 860.1822571754456,
- "z": "214b12db.e4ae8e",
- "wires": [["60059d22.c2ba54"]]
- },
- {
- "id": "956742c7.415fd",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
- "comments": "",
- "x": 1891.1346130371094,
- "y": 979.9603943824768,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "694c898b.ddbd58",
- "type": "record",
- "name": "record cvass",
- "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`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2417.917697906494,
- "y": 1007.1834092140198,
- "z": "214b12db.e4ae8e",
- "wires": [["e96f6416.e57a18",
- "9939c991.265c38"]]
- },
- {
- "id": "900e8879.a7b3f8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
- "comments": "",
- "x": 2636.6667404174805,
- "y": 938.7069244384766,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "4c75663f.43f0d8",
- "type": "execute",
- "name": "execute CheckFileCreated",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2490.933391571045,
- "y": 1143.9486117362976,
- "z": "214b12db.e4ae8e",
- "wires": [["a473caa6.56a5f8",
- "18a86d58.a2caa3",
- "3498054b.73705a"]]
- },
- {
- "id": "4f4d3434.694adc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2965.4338912963867,
- "y": 1122.9491600990295,
- "z": "214b12db.e4ae8e",
- "wires": [["8b90be34.c5f61",
- "cab8f54e.ec65e8",
- "feccd180.68417",
- "cd47c223.a0626"]]
- },
- {
- "id": "8b90be34.c5f61",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
- "comments": "",
- "x": 3205.9892539978027,
- "y": 1070.8379549980164,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "feccd180.68417",
- "type": "record",
- "name": "Log error",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 3182.3132286071777,
- "y": 1122.4345178604126,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "cab8f54e.ec65e8",
- "type": "execute",
- "name": "Report Error to DCAE",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3216.8359298706055,
- "y": 1174.6844897270203,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "18a86d58.a2caa3",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2745.9338912963867,
- "y": 1097.9491291046143,
- "z": "214b12db.e4ae8e",
- "wires": [["4f4d3434.694adc"]]
- },
- {
- "id": "a473caa6.56a5f8",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2754.9335975646973,
- "y": 1154.9489903450012,
- "z": "214b12db.e4ae8e",
- "wires": [["4f4d3434.694adc"]]
- },
- {
- "id": "3498054b.73705a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2761.933582305908,
- "y": 1207.9490694999695,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "9fa2a21b.8af7c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2456.3336868286133,
- "y": 883.1828720569611,
- "z": "214b12db.e4ae8e",
- "wires": [["900e8879.a7b3f8",
- "8652a63d.1ea618"]]
- },
- {
- "id": "8652a63d.1ea618",
- "type": "execute",
- "name": "Report error to DCAE",
- "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\" />",
- "comments": "",
- "outputs": 1,
- "x": 2655.238349914551,
- "y": 840.5637314319611,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "e96f6416.e57a18",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2254.933277130127,
- "y": 1124.9486260414124,
- "z": "214b12db.e4ae8e",
- "wires": [["4c75663f.43f0d8"]]
- },
- {
- "id": "9939c991.265c38",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2255.9330825805664,
- "y": 1167.9487557411194,
- "z": "214b12db.e4ae8e",
- "wires": [["4c75663f.43f0d8"]]
- },
- {
- "id": "de31ac1.3cad05",
- "type": "returnFailure",
- "name": "return failure",
- "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",
- "comments": "",
- "x": 1875.5276527404785,
- "y": 1128.9689564704895,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "ce132d3c.9e7bb",
- "type": "execute",
- "name": "Report Error to DCAE",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1900.7669982910156,
- "y": 1077.7808966636658,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "cb484414.952458",
- "type": "execute",
- "name": "Set payload in Context",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
- "comments": "",
- "outputs": 1,
- "x": 726.6667137145996,
- "y": 116.74999856948853,
- "z": "214b12db.e4ae8e",
- "wires": [["b20f9d10.79243",
- "c4b37771.d26c18",
- "b02ba377.938ab",
- "d871965c.fc6f98"]]
- },
- {
- "id": "c4b37771.d26c18",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1016.6667289733887,
- "y": 58.99999761581421,
- "z": "214b12db.e4ae8e",
- "wires": [["507fcd18.8ae1c4"]]
- },
- {
- "id": "b02ba377.938ab",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1017.6667289733887,
- "y": 108.99999761581421,
- "z": "214b12db.e4ae8e",
- "wires": [["507fcd18.8ae1c4"]]
- },
- {
- "id": "d871965c.fc6f98",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1010.6667289733887,
- "y": 164.00001287460327,
- "z": "214b12db.e4ae8e",
- "wires": [["507fcd18.8ae1c4"]]
- },
- {
- "id": "b20f9d10.79243",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1007.6667900085449,
- "y": 219.750009059906,
- "z": "214b12db.e4ae8e",
- "wires": [["f5cfbdb3.30a63"]]
- },
- {
- "id": "507fcd18.8ae1c4",
- "type": "block",
- "name": "block",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1224.3333702087402,
- "y": 151.99999952316284,
- "z": "214b12db.e4ae8e",
- "wires": [["2a1493.66c87b6e",
- "861e0870.0e6308"]]
- },
- {
- "id": "861e0870.0e6308",
- "type": "execute",
- "name": "OutputMessageBuilder",
- "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\" />",
- "comments": "",
- "outputs": 1,
- "x": 1454.6664390563965,
- "y": 103.88888502120972,
- "z": "214b12db.e4ae8e",
- "wires": [["b958118a.b4c35"]]
- },
- {
- "id": "2a1493.66c87b6e",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
- "comments": "",
- "x": 1421.666316986084,
- "y": 152.52372694015503,
- "z": "214b12db.e4ae8e",
- "wires": []
- },
- {
- "id": "b958118a.b4c35",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1662.7614707946777,
- "y": 103.17462110519409,
- "z": "214b12db.e4ae8e",
- "wires": [["61a0d1cf.928f8"]]
- },
- {
- "id": "61a0d1cf.928f8",
- "type": "execute",
- "name": "Report Error to DCAE",
- "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1864.3330039978027,
- "y": 102.88888502120972,
- "z": "214b12db.e4ae8e",
- "wires": [[]]
- },
- {
- "id": "cd47c223.a0626",
- "type": "returnFailure",
- "name": "return failure",
- "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",
- "comments": "",
- "x": 3202.333251953125,
- "y": 1273,
- "z": "214b12db.e4ae8e",
- "wires": []
- }]
+[\r
+ {\r
+ "id": "9c13e82a.387b38",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 131.66665649414062,\r
+ "y": 116.6666750907898,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "c8696732.57b668"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c8696732.57b668",\r
+ "type": "service-logic",\r
+ "name": "APPC 2.0.0",\r
+ "module": "APPC",\r
+ "version": "2.0.0",\r
+ "comments": "",\r
+ "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'>",\r
+ "outputs": 1,\r
+ "x": 311.6666564941406,\r
+ "y": 116.6666750907898,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "11c0a5be.fe5bfa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "11c0a5be.fe5bfa",\r
+ "type": "method",\r
+ "name": "Sync",\r
+ "xml": "<method rpc='Generic_Sync' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 490.6666564941406,\r
+ "y": 116.6666750907898,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "cb484414.952458"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ec6a6d6.7a5678",\r
+ "type": "get-resource",\r
+ "name": "Retrieve current config details",\r
+ "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[]\">",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 519.0861930847168,\r
+ "y": 437.4498953819275,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "a4a4499.da795b8",\r
+ "d4b62675.cc3218",\r
+ "f40aff31.110c9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f40aff31.110c9",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 771.3759498596191,\r
+ "y": 365.17019033432007,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "841d3cc6.f08c7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a4a4499.da795b8",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 776.3759956359863,\r
+ "y": 436.947970867157,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "b9da4281.1adab"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d4b62675.cc3218",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 773.598217010498,\r
+ "y": 500.61465311050415,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "88d88ec0.cbcfa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2a1906ba.c69e1a",\r
+ "type": "execute",\r
+ "name": "Report Error to DCAE",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1229.2260704040527,\r
+ "y": 539.5462489128113,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2195ead0.db2c66",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1207.9867248535156,\r
+ "y": 592.734308719635,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9e646937.3ed6a8",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",\r
+ "comments": "",\r
+ "x": 1214.5936851501465,\r
+ "y": 436.7257466316223,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "88cf09de.c0d5e8",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1215.234661102295,\r
+ "y": 384.6402335166931,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "841d3cc6.f08c7",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 932.456859588623,\r
+ "y": 365.05907678604126,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "88cf09de.c0d5e8",\r
+ "2a1906ba.c69e1a",\r
+ "2195ead0.db2c66",\r
+ "1aa4df6e.f6da11"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b9da4281.1adab",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 940.0124244689941,\r
+ "y": 436.8368649482727,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "9e646937.3ed6a8",\r
+ "2a1906ba.c69e1a",\r
+ "2195ead0.db2c66",\r
+ "1aa4df6e.f6da11"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "88d88ec0.cbcfa",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 409.5640525817871,\r
+ "y": 615.6837515830994,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "7732a369.eb726c",\r
+ "4f4a7a36.c2a284",\r
+ "d5cea21b.c34aa",\r
+ "11dcb423.01808c",\r
+ "6d230a1.4a08cf4",\r
+ "855ad0e4.d405c",\r
+ "59566c79.8df204",\r
+ "872a0177.f9c8f",\r
+ "aa08d8db.e07148"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7732a369.eb726c",\r
+ "type": "for",\r
+ "name": "for each current config",\r
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 657.6324729919434,\r
+ "y": 616.0513052940369,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "842b0ba4.2b8248"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce31ce3d.765e7",\r
+ "type": "set",\r
+ "name": "Set context",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1072.4787254333496,\r
+ "y": 616.2821097373962,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9fe7ebb1.f6f948",\r
+ "type": "call",\r
+ "name": "Call Retrieve running Config DG",\r
+ "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1104.4786949157715,\r
+ "y": 674.28204870224,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "cd269b5.a716568",\r
+ "4f80d854.e62828",\r
+ "83342c8c.51a98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "842b0ba4.2b8248",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 852.7863121032715,\r
+ "y": 675.205144405365,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "ce31ce3d.765e7",\r
+ "9fe7ebb1.f6f948",\r
+ "dd580aa1.a817c8",\r
+ "4c8c9a0.c6b3768"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cd269b5.a716568",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1346.5898399353027,\r
+ "y": 623.2819828987122,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "7e006a6b.da6ef4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4f80d854.e62828",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1358.034236907959,\r
+ "y": 676.28204870224,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "6c663e2f.d966d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "83342c8c.51a98",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1368.1451988220215,\r
+ "y": 728.3930716514587,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "4f4a7a36.c2a284",\r
+ "type": "update",\r
+ "name": "Mark current configs as historic",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 801.5814094543457,\r
+ "y": 1163.6410536766052,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "25e5bfd2.2129e",\r
+ "baa57190.f5968"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d5cea21b.c34aa",\r
+ "type": "save",\r
+ "name": "Store device config as 'Current'",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 795.196704864502,\r
+ "y": 1331.1795058250427,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "3111ae3b.b3f9e2",\r
+ "f1f93963.7ca2d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f1f93963.7ca2d8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1055.1968002319336,\r
+ "y": 1375.1795058250427,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3111ae3b.b3f9e2",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1050.1968002319336,\r
+ "y": 1291.1795058250427,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "f16ab34d.41c77"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "25e5bfd2.2129e",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1060.581470489502,\r
+ "y": 1218.6410384178162,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "baa57190.f5968",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1054.581470489502,\r
+ "y": 1162.6410536766052,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "62bc5493.c88cfc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7e006a6b.da6ef4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1497.1454181671143,\r
+ "y": 623.2819752693176,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "f6c71fae.e8d17",\r
+ "a278106d.b2101",\r
+ "aac04b94.261c38",\r
+ "4b77bb4a.9f7014"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6c71fae.e8d17",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\" />\n",\r
+ "comments": "",\r
+ "x": 1804.7011909484863,\r
+ "y": 521.1709504127502,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6c663e2f.d966d",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1510.4786949157715,\r
+ "y": 675.1709036827087,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "963a5bc6.b3e628",\r
+ "a278106d.b2101",\r
+ "aac04b94.261c38",\r
+ "4b77bb4a.9f7014"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "963a5bc6.b3e628",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",\r
+ "comments": "",\r
+ "x": 1806.7012519836426,\r
+ "y": 570.1709456443787,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "62bc5493.c88cfc",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1223.359302520752,\r
+ "y": 1163.6410536766052,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "fca9379c.f1ba58",\r
+ "205f706d.16fb1",\r
+ "15018948.152e47",\r
+ "3521d3f3.e7bf6c",\r
+ "4d82212c.2ef21"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fca9379c.f1ba58",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1451.6924629211426,\r
+ "y": 1200.6411147117615,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f16ab34d.41c77",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1216.9744491577148,\r
+ "y": 1293.1795058250427,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "4adc4f3b.17a16",\r
+ "205f706d.16fb1",\r
+ "15018948.152e47",\r
+ "3521d3f3.e7bf6c",\r
+ "4d82212c.2ef21"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4adc4f3b.17a16",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1443.529987335205,\r
+ "y": 1245.2907118797302,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "aac04b94.261c38",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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`\"/>",\r
+ "comments": "",\r
+ "x": 1787.5473823547363,\r
+ "y": 713.0171122550964,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a278106d.b2101",\r
+ "type": "execute",\r
+ "name": "Report Error to DCAE",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1816.5474433898926,\r
+ "y": 663.0170950889587,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "15018948.152e47",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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`\"/>",\r
+ "comments": "",\r
+ "x": 1436.7608222961426,\r
+ "y": 1427.1369032859802,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "205f706d.16fb1",\r
+ "type": "execute",\r
+ "name": "Report Error to DCAE",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1461.7608222961426,\r
+ "y": 1337.1369032859802,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f5cfbdb3.30a63",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 291.6666603088379,\r
+ "y": 343.57577085494995,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "9ec6a6d6.7a5678",\r
+ "58cdab19.f47684"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1aa4df6e.f6da11",\r
+ "type": "record",\r
+ "name": "Log error",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1182.3589057922363,\r
+ "y": 491.3589644432068,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "4b77bb4a.9f7014",\r
+ "type": "record",\r
+ "name": "Log error",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1778.0247383117676,\r
+ "y": 613.7672305107117,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3521d3f3.e7bf6c",\r
+ "type": "record",\r
+ "name": "Log error",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1427.1704940795898,\r
+ "y": 1292.0814833641052,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "58cdab19.f47684",\r
+ "type": "record",\r
+ "name": "Log message",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 481.0855522155762,\r
+ "y": 343.16138219833374,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "11dcb423.01808c",\r
+ "type": "record",\r
+ "name": "Log message",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 735.7780342102051,\r
+ "y": 1098.2382216453552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6d230a1.4a08cf4",\r
+ "type": "record",\r
+ "name": "Log message",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 745.7009773254395,\r
+ "y": 1274.3923964500427,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "855ad0e4.d405c",\r
+ "type": "record",\r
+ "name": "Log message",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 748.6198616027832,\r
+ "y": 1218.4325575828552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "59566c79.8df204",\r
+ "type": "record",\r
+ "name": "Log message",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 735.6198616027832,\r
+ "y": 1387.8555312156677,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "872a0177.f9c8f",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "xml": "<return status='success'>\n",\r
+ "comments": "",\r
+ "x": 711.4660873413086,\r
+ "y": 1504.8555312156677,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dd580aa1.a817c8",\r
+ "type": "set",\r
+ "name": "Set Running Config ID",\r
+ "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />\n\n",\r
+ "comments": "",\r
+ "x": 1083.6667442321777,\r
+ "y": 733.0000834465027,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "aa08d8db.e07148",\r
+ "type": "execute",\r
+ "name": "Generate output payload",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 763.6667366027832,\r
+ "y": 1445.0000014305115,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "1639668d.25e0d9",\r
+ "264aed94.5a8e32",\r
+ "397802b1.358f0e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1639668d.25e0d9",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1006.6668586730957,\r
+ "y": 1425.9999403953552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "a0b721e.ccba5e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "264aed94.5a8e32",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1008.6668586730957,\r
+ "y": 1471.0000014305115,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "a0b721e.ccba5e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "397802b1.358f0e",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1011.6667366027832,\r
+ "y": 1521.9999403953552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a0b721e.ccba5e",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1206.3336067199707,\r
+ "y": 1482.9999403953552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "a2cf5226.8165",\r
+ "bd7acdda.91a63"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bd7acdda.91a63",\r
+ "type": "execute",\r
+ "name": "Report error to DCAE",\r
+ "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\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1441.2381706237793,\r
+ "y": 1484.3807997703552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2cf5226.8165",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+ "comments": "",\r
+ "x": 1425.6666374206543,\r
+ "y": 1533.5236220359802,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4d82212c.2ef21",\r
+ "type": "execute",\r
+ "name": "Generate output payload",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1493.8887519836426,\r
+ "y": 1385.0000014305115,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "425e2e54.04ff7",\r
+ "d2f01dc7.e5e29",\r
+ "481f9e71.90512"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "425e2e54.04ff7",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1740.8889350891113,\r
+ "y": 1332.9999403953552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "62fbe5e0.d9cdcc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d2f01dc7.e5e29",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1731.8889961242676,\r
+ "y": 1386.0000014305115,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "62fbe5e0.d9cdcc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "481f9e71.90512",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1733.888874053955,\r
+ "y": 1435.9999403953552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "62fbe5e0.d9cdcc",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1936.5558052062988,\r
+ "y": 1356.9999403953552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "23d2ce67.52c4d2",\r
+ "49e01c1c.c64a44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "49e01c1c.c64a44",\r
+ "type": "execute",\r
+ "name": "Report error to DCAE",\r
+ "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\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2165.460346221924,\r
+ "y": 1355.3807997703552,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "23d2ce67.52c4d2",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+ "comments": "",\r
+ "x": 2145.888813018799,\r
+ "y": 1416.5236220359802,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f6b28639.a1c3a8",\r
+ "type": "outcome",\r
+ "name": "Outcome: y",\r
+ "xml": "<outcome value='y'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1190.6666526794434,\r
+ "y": 808.1822867393494,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "60059d22.c2ba54"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4c8c9a0.c6b3768",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test='`$Publish_Config`'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1037.6666984558105,\r
+ "y": 799.5156636238098,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "f6b28639.a1c3a8",\r
+ "6d199d17.82f204"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "60059d22.c2ba54",\r
+ "type": "get-resource",\r
+ "name": "Retrieve Running config details DB",\r
+ "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\">",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1432.6667404174805,\r
+ "y": 829.1823210716248,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "cdc99515.922c58",\r
+ "9a6d5a51.faabc8",\r
+ "9034241c.159aa8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cdc99515.922c58",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1690.6669082641602,\r
+ "y": 840.1825032234192,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "7e300025.5253a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7e300025.5253a",\r
+ "type": "execute",\r
+ "name": "execute CvaasDataIntoContext",\r
+ "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=\"appc01\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1943.9172744750977,\r
+ "y": 844.1830830574036,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "eb8bab96.3c6e98",\r
+ "46abe9bb.2c0fd8",\r
+ "ce71ba2a.e1ce38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eb8bab96.3c6e98",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2241.1673278808594,\r
+ "y": 965.1831040382385,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "694c898b.ddbd58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46abe9bb.2c0fd8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2250.6669998168945,\r
+ "y": 861.1828625202179,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "9fa2a21b.8af7c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce71ba2a.e1ce38",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2257.667266845703,\r
+ "y": 913.1830716133118,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "9fa2a21b.8af7c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9034241c.159aa8",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1524.9166564941406,\r
+ "y": 1005.182294845581,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "567684cc.50b0dc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a6d5a51.faabc8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1521.9165420532227,\r
+ "y": 953.4044423103333,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "4bc0b87d.970378"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4bc0b87d.970378",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1661.9975929260254,\r
+ "y": 955.2935299873352,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "3ce78b3b.82fee4",\r
+ "ce132d3c.9e7bb",\r
+ "de31ac1.3cad05",\r
+ "ba52c35d.d0a18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "567684cc.50b0dc",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1661.553165435791,\r
+ "y": 1014.0713334083557,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "ce132d3c.9e7bb",\r
+ "de31ac1.3cad05",\r
+ "ba52c35d.d0a18",\r
+ "956742c7.415fd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ba52c35d.d0a18",\r
+ "type": "record",\r
+ "name": "Log error",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1859.8998336791992,\r
+ "y": 1030.5936121940613,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3ce78b3b.82fee4",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1892.7756729125977,\r
+ "y": 930.875011920929,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6d199d17.82f204",\r
+ "type": "outcome",\r
+ "name": "Outcome: Y",\r
+ "xml": "<outcome value='Y'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1191.6667098999023,\r
+ "y": 860.1822571754456,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "60059d22.c2ba54"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "956742c7.415fd",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",\r
+ "comments": "",\r
+ "x": 1891.1346130371094,\r
+ "y": 979.9603943824768,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "694c898b.ddbd58",\r
+ "type": "record",\r
+ "name": "record cvass",\r
+ "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`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2417.917697906494,\r
+ "y": 1007.1834092140198,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "e96f6416.e57a18",\r
+ "9939c991.265c38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "900e8879.a7b3f8",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+ "comments": "",\r
+ "x": 2636.6667404174805,\r
+ "y": 938.7069244384766,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4c75663f.43f0d8",\r
+ "type": "execute",\r
+ "name": "execute CheckFileCreated",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2490.933391571045,\r
+ "y": 1143.9486117362976,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "a473caa6.56a5f8",\r
+ "18a86d58.a2caa3",\r
+ "3498054b.73705a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4f4d3434.694adc",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2965.4338912963867,\r
+ "y": 1122.9491600990295,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "8b90be34.c5f61",\r
+ "cab8f54e.ec65e8",\r
+ "feccd180.68417",\r
+ "cd47c223.a0626"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8b90be34.c5f61",\r
+ "type": "set",\r
+ "name": "Set error message",\r
+ "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",\r
+ "comments": "",\r
+ "x": 3205.9892539978027,\r
+ "y": 1070.8379549980164,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "feccd180.68417",\r
+ "type": "record",\r
+ "name": "Log error",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3182.3132286071777,\r
+ "y": 1122.4345178604126,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "cab8f54e.ec65e8",\r
+ "type": "execute",\r
+ "name": "Report Error to DCAE",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3216.8359298706055,\r
+ "y": 1174.6844897270203,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "18a86d58.a2caa3",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2745.9338912963867,\r
+ "y": 1097.9491291046143,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "4f4d3434.694adc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a473caa6.56a5f8",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2754.9335975646973,\r
+ "y": 1154.9489903450012,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "4f4d3434.694adc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3498054b.73705a",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2761.933582305908,\r
+ "y": 1207.9490694999695,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9fa2a21b.8af7c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2456.3336868286133,\r
+ "y": 883.1828720569611,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "900e8879.a7b3f8",\r
+ "8652a63d.1ea618"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8652a63d.1ea618",\r
+ "type": "execute",\r
+ "name": "Report error to DCAE",\r
+ "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=\"Error while fetching cvass data\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2655.238349914551,\r
+ "y": 840.5637314319611,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e96f6416.e57a18",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2254.933277130127,\r
+ "y": 1124.9486260414124,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "4c75663f.43f0d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9939c991.265c38",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2255.9330825805664,\r
+ "y": 1167.9487557411194,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "4c75663f.43f0d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "de31ac1.3cad05",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1875.5276527404785,\r
+ "y": 1128.9689564704895,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ce132d3c.9e7bb",\r
+ "type": "execute",\r
+ "name": "Report Error to DCAE",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1900.7669982910156,\r
+ "y": 1077.7808966636658,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "cb484414.952458",\r
+ "type": "execute",\r
+ "name": "Set payload in Context",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 726.6667137145996,\r
+ "y": 116.74999856948853,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "b20f9d10.79243",\r
+ "c4b37771.d26c18",\r
+ "b02ba377.938ab",\r
+ "d871965c.fc6f98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c4b37771.d26c18",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1016.6667289733887,\r
+ "y": 58.99999761581421,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "507fcd18.8ae1c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b02ba377.938ab",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1017.6667289733887,\r
+ "y": 108.99999761581421,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "507fcd18.8ae1c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d871965c.fc6f98",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1010.6667289733887,\r
+ "y": 164.00001287460327,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "507fcd18.8ae1c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b20f9d10.79243",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1007.6667900085449,\r
+ "y": 219.750009059906,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "f5cfbdb3.30a63"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "507fcd18.8ae1c4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1224.3333702087402,\r
+ "y": 151.99999952316284,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "2a1493.66c87b6e",\r
+ "861e0870.0e6308"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "861e0870.0e6308",\r
+ "type": "execute",\r
+ "name": "OutputMessageBuilder",\r
+ "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\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1454.6664390563965,\r
+ "y": 103.88888502120972,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "b958118a.b4c35"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2a1493.66c87b6e",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",\r
+ "comments": "",\r
+ "x": 1421.666316986084,\r
+ "y": 152.52372694015503,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b958118a.b4c35",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1662.7614707946777,\r
+ "y": 103.17462110519409,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ [\r
+ "61a0d1cf.928f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "61a0d1cf.928f8",\r
+ "type": "execute",\r
+ "name": "Report Error to DCAE",\r
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1864.3330039978027,\r
+ "y": 102.88888502120972,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "cd47c223.a0626",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 3202.333251953125,\r
+ "y": 1273,\r
+ "z": "214b12db.e4ae8e",\r
+ "wires": []\r
+ }\r
+]\r