aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE
diff options
context:
space:
mode:
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE')
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_2.0.1_method_configuration-document-request.json388
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_method_configuration-document-request_3.0.0.json569
2 files changed, 955 insertions, 2 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_2.0.1_method_configuration-document-request.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_2.0.1_method_configuration-document-request.json
index e5b54ac1b..6a4ec0e90 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_2.0.1_method_configuration-document-request.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_2.0.1_method_configuration-document-request.json
@@ -1 +1,387 @@
-[{"id":"16b56aca.921305","type":"dgstart","name":"DGSTART","outputs":1,"x":164,"y":68,"z":"c6a88251.aeda8","wires":[["dafab93e.ef6db8"]]},{"id":"71efd50a.f24eec","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":209,"y":199,"z":"c6a88251.aeda8","wires":[["7ab86011.58b3d","51012c63.b2c994","10cfc47.8fe793c","9b276109.1a9f8"]]},{"id":"d686b8ea.8264f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":575,"y":381,"z":"c6a88251.aeda8","wires":[["cce5b362.94661"]]},{"id":"5cf21fe6.ee98e","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"503\"/>\n\t<parameter name=\"error-message\" value=\"Unable to save ASDC artifact\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":948,"y":439,"z":"c6a88251.aeda8","wires":[]},{"id":"6a8fcfe.ea99b3","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":280,"y":575,"z":"c6a88251.aeda8","wires":[["62a9108b.dca58"]]},{"id":"62a9108b.dca58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":438,"y":611,"z":"c6a88251.aeda8","wires":[["9ca441f6.58cd1","995305a7.07ec28","9d8a547b.b434f8"]]},{"id":"9d8a547b.b434f8","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='error-code' value='200' />\n","comments":"","x":666,"y":733,"z":"c6a88251.aeda8","wires":[]},{"id":"dafab93e.ef6db8","type":"service-logic","name":"ASDC-MESSAGE 2.0.1","module":"ASDC-MESSAGE","version":"2.0.1","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='ASDC-MESSAGE' version='2.0.1'>","outputs":1,"x":386,"y":68,"z":"c6a88251.aeda8","wires":[["5cb3be39.2d283"]]},{"id":"5cb3be39.2d283","type":"method","name":"configuration-document-request","xml":"<method rpc='configuration-document-request' mode='sync'>\n","comments":"","outputs":1,"x":270,"y":129,"z":"c6a88251.aeda8","wires":[["71efd50a.f24eec"]]},{"id":"7ab86011.58b3d","type":"get-resource","name":"get-resource: asdc-reference SQLResource","xml":"<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT vnf_type, vnfc_type, file_category\n\t FROM ASDC_REFERENCE\n WHERE artifact_name = $configuration-document-request-input.document-parameters.artifact-name ;\"\n force='true'\n\tpfx='asdc-reference'>\n","comments":"","outputs":1,"x":492,"y":192,"z":"c6a88251.aeda8","wires":[["3e5e30f7.7b527","3ce6e169.a2dc8e"]]},{"id":"9b276109.1a9f8","type":"save","name":"save asdc-file SQLResource","xml":"<save \tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey='INSERT INTO CONFIGFILES\n\t SET data_source = \"ASDC\",\n\t vnf_type = $asdc-reference.vnf-type ,\n\t vnfc_type = $asdc-reference.vnfc-type ,\n\t file_category \t= $asdc-reference.file-category ,\n\t file_name = $configuration-document-request-input.document-parameters.artifact-name ,\n\t file_content = $escapedData ;'\n\t \tforce='true'\n\n \tpfx='tmp.config-files'>\n","comments":"","outputs":1,"x":342,"y":389,"z":"c6a88251.aeda8","wires":[["d686b8ea.8264f8","6a8fcfe.ea99b3","de6d6715.fb9568"]]},{"id":"51012c63.b2c994","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"vnf-type\" value=\"`$asdc-reference.vnf-type`\"/>\n<parameter name=\"vnfc-type\" value=\"`$asdc-reference.vnfc-type`\"/>\n<parameter name=\"file-category\" value=\"`$asdc-reference.file-category`\"/>\n\n\n\n","comments":"","outputs":1,"x":378,"y":235,"z":"c6a88251.aeda8","wires":[[]]},{"id":"3e5e30f7.7b527","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":750,"y":157,"z":"c6a88251.aeda8","wires":[["568cd496.8a01fc"]]},{"id":"3ce6e169.a2dc8e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":758,"y":223,"z":"c6a88251.aeda8","wires":[["568cd496.8a01fc"]]},{"id":"d8e09650.bf1098","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"502\"/>\n\t<parameter name=\"error-message\" value=\"Unable to retrieve asdc_resource\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":1226,"y":291,"z":"c6a88251.aeda8","wires":[]},{"id":"9ca441f6.58cd1","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"file-contents\" value=\"`$configuration-document-request-input.configuration-document-information.document-parameters[0].artifact-contents`\"/>\n\n","comments":"","outputs":1,"x":643,"y":634,"z":"c6a88251.aeda8","wires":[[]]},{"id":"995305a7.07ec28","type":"set","name":"set deploy-ok","xml":"<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_OK\" />\n","comments":"","outputs":1,"x":665,"y":681,"z":"c6a88251.aeda8","wires":[[]]},{"id":"cce5b362.94661","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":725,"y":406,"z":"c6a88251.aeda8","wires":[["21e0bdf3.1ca732","c27c40a2.ae31","5cf21fe6.ee98e"]]},{"id":"21e0bdf3.1ca732","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"503\"/>\n\n","comments":"","outputs":1,"x":921,"y":324,"z":"c6a88251.aeda8","wires":[[]]},{"id":"c27c40a2.ae31","type":"set","name":"set deploy-error 503","xml":"<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"failure to store artifact\" />\n\n","comments":"","outputs":1,"x":954,"y":373,"z":"c6a88251.aeda8","wires":[[]]},{"id":"568cd496.8a01fc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":981,"y":166,"z":"c6a88251.aeda8","wires":[["a514a19d.1922e","f8fdb850.32b458","d8e09650.bf1098"]]},{"id":"a514a19d.1922e","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"502\"/>","comments":"","outputs":1,"x":1199,"y":140,"z":"c6a88251.aeda8","wires":[[]]},{"id":"f8fdb850.32b458","type":"set","name":"set: deploy-error-502","xml":"<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"missing asdc_reference data for artifact-name\" />\n\n\n","comments":"","outputs":1,"x":1213,"y":195,"z":"c6a88251.aeda8","wires":[[]]},{"id":"de6d6715.fb9568","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":583,"y":440,"z":"c6a88251.aeda8","wires":[["cce5b362.94661"]]},{"id":"10cfc47.8fe793c","type":"configure","name":"configure: escapeSQL","xml":"<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='escapeSql' >\n<parameter name=\"artifactContents\" value=\"`$configuration-document-request-input.document-parameters.artifact-contents`\"/>\n\n","comments":"","outputs":1,"x":379,"y":286,"z":"c6a88251.aeda8","wires":[[]]}]
+[
+ {
+ "id": "16b56aca.921305",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 164,
+ "y": 68,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "dafab93e.ef6db8"
+ ]
+ ]
+ },
+ {
+ "id": "71efd50a.f24eec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 209,
+ "y": 199,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "7ab86011.58b3d",
+ "51012c63.b2c994",
+ "10cfc47.8fe793c",
+ "9b276109.1a9f8"
+ ]
+ ]
+ },
+ {
+ "id": "d686b8ea.8264f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 575,
+ "y": 381,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "cce5b362.94661"
+ ]
+ ]
+ },
+ {
+ "id": "5cf21fe6.ee98e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"503\"/>\n\t<parameter name=\"error-message\" value=\"Unable to save ASDC artifact\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments": "",
+ "x": 948,
+ "y": 439,
+ "z": "c6a88251.aeda8",
+ "wires": []
+ },
+ {
+ "id": "6a8fcfe.ea99b3",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 280,
+ "y": 575,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "62a9108b.dca58"
+ ]
+ ]
+ },
+ {
+ "id": "62a9108b.dca58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 438,
+ "y": 611,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "9ca441f6.58cd1",
+ "995305a7.07ec28",
+ "9d8a547b.b434f8"
+ ]
+ ]
+ },
+ {
+ "id": "9d8a547b.b434f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n",
+ "comments": "",
+ "x": 666,
+ "y": 733,
+ "z": "c6a88251.aeda8",
+ "wires": []
+ },
+ {
+ "id": "dafab93e.ef6db8",
+ "type": "service-logic",
+ "name": "ASDC-MESSAGE 2.0.1",
+ "module": "ASDC-MESSAGE",
+ "version": "2.0.1",
+ "comments": "",
+ "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='ASDC-MESSAGE' version='2.0.1'>",
+ "outputs": 1,
+ "x": 386,
+ "y": 68,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "5cb3be39.2d283"
+ ]
+ ]
+ },
+ {
+ "id": "5cb3be39.2d283",
+ "type": "method",
+ "name": "configuration-document-request",
+ "xml": "<method rpc='configuration-document-request' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 270,
+ "y": 129,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "71efd50a.f24eec"
+ ]
+ ]
+ },
+ {
+ "id": "7ab86011.58b3d",
+ "type": "get-resource",
+ "name": "get-resource: asdc-reference SQLResource",
+ "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT vnf_type, vnfc_type, file_category\n\t FROM ASDC_REFERENCE\n WHERE artifact_name = $configuration-document-request-input.document-parameters.artifact-name ;\"\n force='true'\n\tpfx='asdc-reference'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 492,
+ "y": 192,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "3e5e30f7.7b527",
+ "3ce6e169.a2dc8e"
+ ]
+ ]
+ },
+ {
+ "id": "9b276109.1a9f8",
+ "type": "save",
+ "name": "save asdc-file SQLResource",
+ "xml": "<save \tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey='INSERT INTO CONFIGFILES\n\t SET data_source = \"ASDC\",\n\t vnf_type = $asdc-reference.vnf-type ,\n\t vnfc_type = $asdc-reference.vnfc-type ,\n\t file_category \t= $asdc-reference.file-category ,\n\t file_name = $configuration-document-request-input.document-parameters.artifact-name ,\n\t file_content = $escapedData ;'\n\t \tforce='true'\n\n \tpfx='tmp.config-files'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 342,
+ "y": 389,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "d686b8ea.8264f8",
+ "6a8fcfe.ea99b3",
+ "de6d6715.fb9568"
+ ]
+ ]
+ },
+ {
+ "id": "51012c63.b2c994",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"vnf-type\" value=\"`$asdc-reference.vnf-type`\"/>\n<parameter name=\"vnfc-type\" value=\"`$asdc-reference.vnfc-type`\"/>\n<parameter name=\"file-category\" value=\"`$asdc-reference.file-category`\"/>\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 378,
+ "y": 235,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3e5e30f7.7b527",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 750,
+ "y": 157,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "568cd496.8a01fc"
+ ]
+ ]
+ },
+ {
+ "id": "3ce6e169.a2dc8e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 758,
+ "y": 223,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "568cd496.8a01fc"
+ ]
+ ]
+ },
+ {
+ "id": "d8e09650.bf1098",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"502\"/>\n\t<parameter name=\"error-message\" value=\"Unable to retrieve asdc_resource\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments": "",
+ "x": 1226,
+ "y": 291,
+ "z": "c6a88251.aeda8",
+ "wires": []
+ },
+ {
+ "id": "9ca441f6.58cd1",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"file-contents\" value=\"`$configuration-document-request-input.configuration-document-information.document-parameters[0].artifact-contents`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 643,
+ "y": 634,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "995305a7.07ec28",
+ "type": "set",
+ "name": "set deploy-ok",
+ "xml": "<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_OK\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 665,
+ "y": 681,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cce5b362.94661",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 725,
+ "y": 406,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "21e0bdf3.1ca732",
+ "c27c40a2.ae31",
+ "5cf21fe6.ee98e"
+ ]
+ ]
+ },
+ {
+ "id": "21e0bdf3.1ca732",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"503\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 921,
+ "y": 324,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c27c40a2.ae31",
+ "type": "set",
+ "name": "set deploy-error 503",
+ "xml": "<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"failure to store artifact\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 954,
+ "y": 373,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "568cd496.8a01fc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 981,
+ "y": 166,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "a514a19d.1922e",
+ "f8fdb850.32b458",
+ "d8e09650.bf1098"
+ ]
+ ]
+ },
+ {
+ "id": "a514a19d.1922e",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"502\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199,
+ "y": 140,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f8fdb850.32b458",
+ "type": "set",
+ "name": "set: deploy-error-502",
+ "xml": "<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"missing asdc_reference data for artifact-name\" />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1213,
+ "y": 195,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "de6d6715.fb9568",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 583,
+ "y": 440,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ [
+ "cce5b362.94661"
+ ]
+ ]
+ },
+ {
+ "id": "10cfc47.8fe793c",
+ "type": "configure",
+ "name": "configure: escapeSQL",
+ "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='escapeSql' >\n<parameter name=\"artifactContents\" value=\"`$configuration-document-request-input.document-parameters.artifact-contents`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 379,
+ "y": 286,
+ "z": "c6a88251.aeda8",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_method_configuration-document-request_3.0.0.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_method_configuration-document-request_3.0.0.json
index 766a81291..bf0a1609e 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_method_configuration-document-request_3.0.0.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/ASDC-MESSAGE/ASDC-MESSAGE_method_configuration-document-request_3.0.0.json
@@ -1 +1,568 @@
-[{"id":"8f48883d.679f48","type":"dgstart","name":"DGSTART","outputs":1,"x":109,"y":43.99999713897705,"z":"28a80c95.6f39c4","wires":[["bd600a44.6c6cc8"]]},{"id":"24671a98.3cbfe6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":444.3333206176758,"y":121.88888263702393,"z":"28a80c95.6f39c4","wires":[["6952f2c1.c8768c"]]},{"id":"92cd7002.19f79","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":780.2222023010254,"y":449.11104583740234,"z":"28a80c95.6f39c4","wires":[["63034f6b.1ca7e"]]},{"id":"b2658f84.2d5dc","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"503\"/>\n\t<parameter name=\"error-message\" value=\"Unable to save ASDC artifact\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":1154.444320678711,"y":396.3332395553589,"z":"28a80c95.6f39c4","wires":[]},{"id":"369d3bdf.5c54a4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":752.4444885253906,"y":625.7776575088501,"z":"28a80c95.6f39c4","wires":[["ed2c0654.f52c48"]]},{"id":"ed2c0654.f52c48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":955.1111526489258,"y":625.9999551773071,"z":"28a80c95.6f39c4","wires":[["8de31d68.7e5","7b65641b.dce5cc","4c10cb1c.481084"]]},{"id":"4c10cb1c.481084","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='error-code' value='200' />\n","comments":"","x":1158.000015258789,"y":665.8888864517212,"z":"28a80c95.6f39c4","wires":[]},{"id":"bd600a44.6c6cc8","type":"service-logic","name":"ASDC-MESSAGE 3.0.0","module":"ASDC-MESSAGE","version":"3.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='ASDC-MESSAGE' version='3.0.0'>","outputs":1,"x":368.1111297607422,"y":42,"z":"28a80c95.6f39c4","wires":[["86900238.26815"]]},{"id":"86900238.26815","type":"method","name":"configuration-document-request","xml":"<method rpc='configuration-document-request' mode='sync'>\n","comments":"","outputs":1,"x":179.77781677246094,"y":125.22222995758057,"z":"28a80c95.6f39c4","wires":[["24671a98.3cbfe6"]]},{"id":"6952f2c1.c8768c","type":"get-resource","name":"get-resource: asdc-reference SQLResource","xml":"<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT vnf_type, vnfc_type, file_category\n\t FROM ASDC_REFERENCE\n WHERE artifact_name = $configuration-document-request-input.document-parameters.artifact-name ;\"\n force='true'\n\tpfx='asdc-reference'>\n","comments":"","outputs":1,"x":697.7777709960938,"y":72.33334350585938,"z":"28a80c95.6f39c4","wires":[["d72a70bd.4c03c","c2dec095.61d77","793fb24.a89de4c"]]},{"id":"e03ec3d2.d8db","type":"save","name":"save asdc-file SQLResource","xml":"<save \tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey='INSERT INTO ASDC_ARTIFACTS\n\t SET service_uuid\t= $configuration-document-request-input.document-parameters.service-uuid ,\n\t distribution_id\t= $configuration-document-request-input.document-parameters.distribution-id ,\n\t service_name\t= $configuration-document-request-input.document-parameters.service-name ,\n\t\tservice_description\t= $configuration-document-request-input.document-parameters.service-description ,\n\t\tresource_uuid\t= $configuration-document-request-input.document-parameters.resource-uuid ,\n\t\tresource_instance_name\t= $configuration-document-request-input.document-parameters.resource-instance-name ,\n\t\tresource_name\t= $configuration-document-request-input.document-parameters.resource-name ,\n\t\tresource_version\t= $configuration-document-request-input.document-parameters.resource-version ,\n\t\tresource_type\t= $configuration-document-request-input.document-parameters.resource-type ,\n\t\tartifact_uuid\t= $configuration-document-request-input.document-parameters.artifact-uuid ,\n\t\tartifact_type\t= $configuration-document-request-input.document-parameters.artifact-type ,\n\t\tartifact_version\t= $configuration-document-request-input.document-parameters.artifact-version ,\n\t\tartifact_description\t= $configuration-document-request-input.document-parameters.artifact-description ,\n\t\tinternal_version\t= $asdc-artifacts.internalversion ,\n\t artifact_name = $configuration-document-request-input.document-parameters.artifact-name ,\n\t artifact_content = $convertconfig.escapeData ;'\n\t \tforce='true'\n\n \tpfx='tmp.asdc-artifacts'>\n","comments":"","outputs":1,"x":530.2777900695801,"y":516.6666259765625,"z":"28a80c95.6f39c4","wires":[["92cd7002.19f79","369d3bdf.5c54a4","65ec4b77.655924"]]},{"id":"d72a70bd.4c03c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":978.9999389648438,"y":63.888885498046875,"z":"28a80c95.6f39c4","wires":[["755c0ce1.265bd4"]]},{"id":"c2dec095.61d77","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1021.6666870117188,"y":133,"z":"28a80c95.6f39c4","wires":[["755c0ce1.265bd4"]]},{"id":"194d7eb0.2c5761","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"502\"/>\n\t<parameter name=\"error-message\" value=\"Unable to retrieve asdc_resource\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":1337,"y":140.33334350585938,"z":"28a80c95.6f39c4","wires":[]},{"id":"8de31d68.7e5","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"file-contents\" value=\"`$configuration-document-request-input.configuration-document-information.document-parameters[0].artifact-contents`\"/>\n\n","comments":"","outputs":1,"x":1125.8889656066895,"y":566.6665868759155,"z":"28a80c95.6f39c4","wires":[[]]},{"id":"7b65641b.dce5cc","type":"set","name":"set deploy-ok","xml":"<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_OK\" />\n","comments":"","x":1150.2222366333008,"y":614.222170829773,"z":"28a80c95.6f39c4","wires":[]},{"id":"63034f6b.1ca7e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":926.9999694824219,"y":491.1109781265259,"z":"28a80c95.6f39c4","wires":[["d64e50ba.e5739","9b6e24b7.fdfe38","b2658f84.2d5dc"]]},{"id":"d64e50ba.e5739","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"503\"/>\n\n","comments":"","outputs":1,"x":1147.4444198608398,"y":519.110951423645,"z":"28a80c95.6f39c4","wires":[[]]},{"id":"9b6e24b7.fdfe38","type":"set","name":"set deploy-error 503","xml":"<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"failure to store artifact\" />\n\n","comments":"","x":1186.5553817749023,"y":459.22210597991943,"z":"28a80c95.6f39c4","wires":[]},{"id":"755c0ce1.265bd4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":1165.333251953125,"y":86.44444274902344,"z":"28a80c95.6f39c4","wires":[["1c294786.e44028","c0456dd5.b1e53","194d7eb0.2c5761"]]},{"id":"1c294786.e44028","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"502\"/>","comments":"","outputs":1,"x":1316.2220458984375,"y":20.888885498046875,"z":"28a80c95.6f39c4","wires":[[]]},{"id":"c0456dd5.b1e53","type":"set","name":"set: deploy-error-502","xml":"<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"missing asdc_reference data for artifact-name\" />\n\n\n","comments":"","x":1369.7779541015625,"y":84.22221374511719,"z":"28a80c95.6f39c4","wires":[]},{"id":"65ec4b77.655924","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":772.8888893127441,"y":541.9999313354492,"z":"28a80c95.6f39c4","wires":[["63034f6b.1ca7e"]]},{"id":"f952ccb7.2b199","type":"configure","name":"configure: escapeSQL","xml":"<execute plugin=\"org.onap.sdnc.config.generator.convert.ConvertNode\" method=\"escapeData\">\n<parameter name=\"unEscapeData\" value=\"`$configuration-document-request-input.document-parameters.artifact-contents`\" />\n<parameter name=\"dataType\" value=\"SQL\" />\n<parameter name=\"responsePrefix\" value=\"convertconfig\" />\n\n","comments":"","outputs":1,"x":190.22225952148438,"y":426.55548095703125,"z":"28a80c95.6f39c4","wires":[["19da8879.6b1b48","bacd2a00.1e76f8"]]},{"id":"793fb24.a89de4c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":155.11114501953125,"y":200.44439697265625,"z":"28a80c95.6f39c4","wires":[["2de3157d.970b2a"]]},{"id":"980f749f.5434b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":318.8888931274414,"y":336.33330821990967,"z":"28a80c95.6f39c4","wires":[["f952ccb7.2b199","1d3051dc.9282ce"]]},{"id":"c45cff68.8f337","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":318.88891220092773,"y":515.3332853317261,"z":"28a80c95.6f39c4","wires":[["e03ec3d2.d8db"]]},{"id":"1d3051dc.9282ce","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"502\"/>","comments":"","outputs":1,"x":600.3333435058594,"y":284.99993896484375,"z":"28a80c95.6f39c4","wires":[[]]},{"id":"19da8879.6b1b48","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":150.66671752929688,"y":514.5554780960083,"z":"28a80c95.6f39c4","wires":[["c45cff68.8f337"]]},{"id":"d5fde229.a1b3d","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"503\"/>\n\t<parameter name=\"error-message\" value=\"`$convertconfig.error-message`\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":922.0000038146973,"y":310.2221803665161,"z":"28a80c95.6f39c4","wires":[]},{"id":"bacd2a00.1e76f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":505.4444885253906,"y":397.7777404785156,"z":"28a80c95.6f39c4","wires":[["fbad77e5.29f018"]]},{"id":"fbad77e5.29f018","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":667.4444808959961,"y":354.4443893432617,"z":"28a80c95.6f39c4","wires":[["d5fde229.a1b3d","fb6cdc78.ae031"]]},{"id":"fb6cdc78.ae031","type":"set","name":"set deploy-error 503","xml":"<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"failure to store artifact\" />\n\n","comments":"","x":952.4444808959961,"y":377.55552768707275,"z":"28a80c95.6f39c4","wires":[]},{"id":"2de3157d.970b2a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":362,"y":209,"z":"28a80c95.6f39c4","wires":[["f924ea07.11f418"]]},{"id":"f924ea07.11f418","type":"get-resource","name":"get-resource: Internal version SQLResource","xml":"<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"select IF(max(INTERNAL_VERSION)>0,max(INTERNAL_VERSION)+1,1) as internalversion\n\t FROM ASDC_ARTIFACTS\n WHERE ARTIFACT_NAME = $configuration-document-request-input.document-parameters.artifact-name ;\"\n force='true'\n\tpfx='asdc-artifacts'>\n\n\n\n","comments":"","outputs":1,"x":648,"y":194,"z":"28a80c95.6f39c4","wires":[["20525a76.581316","26b20401.248fac"]]},{"id":"20525a76.581316","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":132,"y":323,"z":"28a80c95.6f39c4","wires":[["980f749f.5434b8"]]},{"id":"26b20401.248fac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":983,"y":190,"z":"28a80c95.6f39c4","wires":[["755c0ce1.265bd4"]]}]
+[
+ {
+ "id": "8f48883d.679f48",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 109,
+ "y": 43.99999713897705,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "bd600a44.6c6cc8"
+ ]
+ ]
+ },
+ {
+ "id": "24671a98.3cbfe6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 444.3333206176758,
+ "y": 121.88888263702393,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "6952f2c1.c8768c"
+ ]
+ ]
+ },
+ {
+ "id": "92cd7002.19f79",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 780.2222023010254,
+ "y": 449.11104583740234,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "63034f6b.1ca7e"
+ ]
+ ]
+ },
+ {
+ "id": "b2658f84.2d5dc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"503\"/>\n\t<parameter name=\"error-message\" value=\"Unable to save SDC artifact\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments": "",
+ "x": 1154.444320678711,
+ "y": 396.3332395553589,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "369d3bdf.5c54a4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 752.4444885253906,
+ "y": 625.7776575088501,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "ed2c0654.f52c48"
+ ]
+ ]
+ },
+ {
+ "id": "ed2c0654.f52c48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 955.1111526489258,
+ "y": 625.9999551773071,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "8de31d68.7e5",
+ "7b65641b.dce5cc",
+ "4c10cb1c.481084"
+ ]
+ ]
+ },
+ {
+ "id": "4c10cb1c.481084",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n",
+ "comments": "",
+ "x": 1158.000015258789,
+ "y": 665.8888864517212,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "bd600a44.6c6cc8",
+ "type": "service-logic",
+ "name": "SDC-MESSAGE 3.0.0",
+ "module": "SDC-MESSAGE",
+ "version": "3.0.0",
+ "comments": "",
+ "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='SDC-MESSAGE' version='3.0.0'>",
+ "outputs": 1,
+ "x": 368.1111297607422,
+ "y": 42,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "86900238.26815"
+ ]
+ ]
+ },
+ {
+ "id": "86900238.26815",
+ "type": "method",
+ "name": "configuration-document-request",
+ "xml": "<method rpc='configuration-document-request' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 179.77781677246094,
+ "y": 125.22222995758057,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "24671a98.3cbfe6"
+ ]
+ ]
+ },
+ {
+ "id": "6952f2c1.c8768c",
+ "type": "get-resource",
+ "name": "get-resource: asdc-reference SQLResource",
+ "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT vnf_type, vnfc_type, file_category\n\t FROM ASDC_REFERENCE\n WHERE artifact_name = $configuration-document-request-input.document-parameters.artifact-name ;\"\n force='true'\n\tpfx='asdc-reference'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 697.7777709960938,
+ "y": 72.33334350585938,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "d72a70bd.4c03c",
+ "c2dec095.61d77",
+ "793fb24.a89de4c"
+ ]
+ ]
+ },
+ {
+ "id": "e03ec3d2.d8db",
+ "type": "save",
+ "name": "save asdc-file SQLResource",
+ "xml": "<save \tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey='INSERT INTO ASDC_ARTIFACTS\n\t SET service_uuid\t= $configuration-document-request-input.document-parameters.service-uuid ,\n\t distribution_id\t= $configuration-document-request-input.document-parameters.distribution-id ,\n\t service_name\t= $configuration-document-request-input.document-parameters.service-name ,\n\t\tservice_description\t= $configuration-document-request-input.document-parameters.service-description ,\n\t\tresource_uuid\t= $configuration-document-request-input.document-parameters.resource-uuid ,\n\t\tresource_instance_name\t= $configuration-document-request-input.document-parameters.resource-instance-name ,\n\t\tresource_name\t= $configuration-document-request-input.document-parameters.resource-name ,\n\t\tresource_version\t= $configuration-document-request-input.document-parameters.resource-version ,\n\t\tresource_type\t= $configuration-document-request-input.document-parameters.resource-type ,\n\t\tartifact_uuid\t= $configuration-document-request-input.document-parameters.artifact-uuid ,\n\t\tartifact_type\t= $configuration-document-request-input.document-parameters.artifact-type ,\n\t\tartifact_version\t= $configuration-document-request-input.document-parameters.artifact-version ,\n\t\tartifact_description\t= $configuration-document-request-input.document-parameters.artifact-description ,\n\t\tinternal_version\t= $asdc-artifacts.internalversion ,\n\t artifact_name = $configuration-document-request-input.document-parameters.artifact-name ,\n\t artifact_content = $convertconfig.escapeData ;'\n\t \tforce='true'\n\n \tpfx='tmp.asdc-artifacts'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 530.2777900695801,
+ "y": 516.6666259765625,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "92cd7002.19f79",
+ "369d3bdf.5c54a4",
+ "65ec4b77.655924"
+ ]
+ ]
+ },
+ {
+ "id": "d72a70bd.4c03c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 978.9999389648438,
+ "y": 63.888885498046875,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "755c0ce1.265bd4"
+ ]
+ ]
+ },
+ {
+ "id": "c2dec095.61d77",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1021.6666870117188,
+ "y": 133,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "755c0ce1.265bd4"
+ ]
+ ]
+ },
+ {
+ "id": "194d7eb0.2c5761",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"502\"/>\n\t<parameter name=\"error-message\" value=\"Unable to retrieve asdc_resource\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments": "",
+ "x": 1337,
+ "y": 140.33334350585938,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "8de31d68.7e5",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"file-contents\" value=\"`$configuration-document-request-input.configuration-document-information.document-parameters[0].artifact-contents`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1125.8889656066895,
+ "y": 566.6665868759155,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7b65641b.dce5cc",
+ "type": "set",
+ "name": "set deploy-ok",
+ "xml": "<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_OK\" />\n",
+ "comments": "",
+ "x": 1150.2222366333008,
+ "y": 614.222170829773,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "63034f6b.1ca7e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 926.9999694824219,
+ "y": 491.1109781265259,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "d64e50ba.e5739",
+ "9b6e24b7.fdfe38",
+ "b2658f84.2d5dc"
+ ]
+ ]
+ },
+ {
+ "id": "d64e50ba.e5739",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"503\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1147.4444198608398,
+ "y": 519.110951423645,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9b6e24b7.fdfe38",
+ "type": "set",
+ "name": "set deploy-error 503",
+ "xml": "<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"failure to store artifact\" />\n\n",
+ "comments": "",
+ "x": 1186.5553817749023,
+ "y": 459.22210597991943,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "755c0ce1.265bd4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1165.333251953125,
+ "y": 86.44444274902344,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "1c294786.e44028",
+ "c0456dd5.b1e53",
+ "194d7eb0.2c5761"
+ ]
+ ]
+ },
+ {
+ "id": "1c294786.e44028",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"502\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1316.2220458984375,
+ "y": 20.888885498046875,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c0456dd5.b1e53",
+ "type": "set",
+ "name": "set: deploy-error-502",
+ "xml": "<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"missing asdc_reference data for artifact-name\" />\n\n\n",
+ "comments": "",
+ "x": 1369.7779541015625,
+ "y": 84.22221374511719,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "65ec4b77.655924",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 772.8888893127441,
+ "y": 541.9999313354492,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "63034f6b.1ca7e"
+ ]
+ ]
+ },
+ {
+ "id": "f952ccb7.2b199",
+ "type": "configure",
+ "name": "configure: escapeSQL",
+ "xml": "<execute plugin=\"onap.onap.sdnc.config.generator.convert.ConvertNode\" method=\"escapeData\">\n<parameter name=\"unEscapeData\" value=\"`$configuration-document-request-input.document-parameters.artifact-contents`\" />\n<parameter name=\"dataType\" value=\"SQL\" />\n<parameter name=\"responsePrefix\" value=\"convertconfig\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 190.22225952148438,
+ "y": 426.55548095703125,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "19da8879.6b1b48",
+ "bacd2a00.1e76f8"
+ ]
+ ]
+ },
+ {
+ "id": "793fb24.a89de4c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 155.11114501953125,
+ "y": 200.44439697265625,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "2de3157d.970b2a"
+ ]
+ ]
+ },
+ {
+ "id": "980f749f.5434b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 318.8888931274414,
+ "y": 336.33330821990967,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "f952ccb7.2b199",
+ "1d3051dc.9282ce"
+ ]
+ ]
+ },
+ {
+ "id": "c45cff68.8f337",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 318.88891220092773,
+ "y": 515.3332853317261,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "e03ec3d2.d8db"
+ ]
+ ]
+ },
+ {
+ "id": "1d3051dc.9282ce",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"error-code\" value=\"502\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 600.3333435058594,
+ "y": 284.99993896484375,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "19da8879.6b1b48",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 150.66671752929688,
+ "y": 514.5554780960083,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "c45cff68.8f337"
+ ]
+ ]
+ },
+ {
+ "id": "d5fde229.a1b3d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"503\"/>\n\t<parameter name=\"error-message\" value=\"`$convertconfig.error-message`\"/>\n\t<parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments": "",
+ "x": 922.0000038146973,
+ "y": 310.2221803665161,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "bacd2a00.1e76f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 505.4444885253906,
+ "y": 397.7777404785156,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "fbad77e5.29f018"
+ ]
+ ]
+ },
+ {
+ "id": "fbad77e5.29f018",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 667.4444808959961,
+ "y": 354.4443893432617,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "d5fde229.a1b3d",
+ "fb6cdc78.ae031"
+ ]
+ ]
+ },
+ {
+ "id": "fb6cdc78.ae031",
+ "type": "set",
+ "name": "set deploy-error 503",
+ "xml": "<set>\n\t<parameter name=\"config-document-response.request-id\" value=\"`$configuration-document-request-input.request-information.request-id`\" />\n\t<parameter name=\"config-document-response.status\" value=\"DEPLOY_ERROR\" />\n\t<parameter name=\"config-document-response.error-reason\" value=\"failure to store artifact\" />\n\n",
+ "comments": "",
+ "x": 952.4444808959961,
+ "y": 377.55552768707275,
+ "z": "28a80c95.6f39c4",
+ "wires": []
+ },
+ {
+ "id": "2de3157d.970b2a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 362,
+ "y": 209,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "f924ea07.11f418"
+ ]
+ ]
+ },
+ {
+ "id": "f924ea07.11f418",
+ "type": "get-resource",
+ "name": "get-resource: Internal version SQLResource",
+ "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"select IF(max(INTERNAL_VERSION)>0,max(INTERNAL_VERSION)+1,1) as internalversion\n\t FROM ASDC_ARTIFACTS\n WHERE ARTIFACT_NAME = $configuration-document-request-input.document-parameters.artifact-name ;\"\n force='true'\n\tpfx='asdc-artifacts'>\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 648,
+ "y": 194,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "20525a76.581316",
+ "26b20401.248fac"
+ ]
+ ]
+ },
+ {
+ "id": "20525a76.581316",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 132,
+ "y": 323,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "980f749f.5434b8"
+ ]
+ ]
+ },
+ {
+ "id": "26b20401.248fac",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 983,
+ "y": 190,
+ "z": "28a80c95.6f39c4",
+ "wires": [
+ [
+ "755c0ce1.265bd4"
+ ]
+ ]
+ }
+]