diff options
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Sync_2.0.0.json')
-rw-r--r-- | appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Sync_2.0.0.json | 1365 |
1 files changed, 1365 insertions, 0 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Sync_2.0.0.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Sync_2.0.0.json new file mode 100644 index 000000000..289376697 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_Generic_Sync_2.0.0.json @@ -0,0 +1,1365 @@ +/*- + * ============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": [] + }] |