diff options
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-service-input.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-service-input.json | 531 |
1 files changed, 531 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-service-input.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-service-input.json new file mode 100644 index 00000000..fa3baaa4 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-service-input.json @@ -0,0 +1,531 @@ +[ + { + "id": "d54a485.152c1b8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 167.4999901907786, + "y": 410.00000422341486, + "z": "42cc1159.52eec", + "wires": [ + [ + "bcfa11de.2ed69", + "c928e0b1.6f8ba", + "862c95fc.9314d8", + "57d36230.80271c" + ] + ] + }, + { + "id": "bcfa11de.2ed69", + "type": "switchNode", + "name": "switch svc-request-id", + "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-request-id`'>\n", + "comments": "", + "outputs": 1, + "x": 454.5476303100586, + "y": 315.9374895095825, + "z": "42cc1159.52eec", + "wires": [ + [ + "388829d5.26a2f6" + ] + ] + }, + { + "id": "388829d5.26a2f6", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 680.2619247436523, + "y": 315.9374933242798, + "z": "42cc1159.52eec", + "wires": [ + [ + "9ad322ba.1f5cf" + ] + ] + }, + { + "id": "9ad322ba.1f5cf", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"sdnc-request-header.svc-request-id is a required input\" />\n", + "comments": "", + "x": 831.6904907226562, + "y": 315.93749141693115, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "c928e0b1.6f8ba", + "type": "switchNode", + "name": "switch svc-action", + "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n", + "comments": "", + "outputs": 1, + "x": 443.118993486677, + "y": 274.50892107827326, + "z": "42cc1159.52eec", + "wires": [ + [ + "14a44603.cceb6a" + ] + ] + }, + { + "id": "14a44603.cceb6a", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 678.8333451407298, + "y": 273.08031885964533, + "z": "42cc1159.52eec", + "wires": [ + [ + "2dd27fa8.9909d" + ] + ] + }, + { + "id": "2dd27fa8.9909d", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"sdnc-request-header.svc-action is a required input\" />\n", + "comments": "", + "x": 828.8333184378489, + "y": 273.0803283963885, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "862c95fc.9314d8", + "type": "switchNode", + "name": "switch request-action", + "xml": "<switch test='`$service-topology-operation-input.request-information.request-action`'>\n", + "comments": "", + "outputs": 1, + "x": 453.11904689243875, + "y": 358.7946361814227, + "z": "42cc1159.52eec", + "wires": [ + [ + "d18a5e6f.1258e" + ] + ] + }, + { + "id": "d18a5e6f.1258e", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 680.2619203839986, + "y": 358.79464708055775, + "z": "42cc1159.52eec", + "wires": [ + [ + "2fcf1e47.c379d2" + ] + ] + }, + { + "id": "2fcf1e47.c379d2", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"request-information.request-action is a required input\" />\n", + "comments": "", + "x": 831.6904863630025, + "y": 358.7946451732091, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "1abfff83.8ab75", + "type": "switchNode", + "name": "switch subscription-service-type", + "xml": "<switch test='`$service-topology-operation-input.service-information.subscription-service-type`'>\n", + "comments": "", + "outputs": 1, + "x": 1005.4405844552175, + "y": 480.9375510896955, + "z": "42cc1159.52eec", + "wires": [ + [ + "4139e9.e71e3618" + ] + ] + }, + { + "id": "4139e9.e71e3618", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 1201.1548788888113, + "y": 480.93754822867254, + "z": "42cc1159.52eec", + "wires": [ + [ + "c6f3b245.5780c" + ] + ] + }, + { + "id": "c6f3b245.5780c", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.subscription-service-type is a required input\" />\n", + "comments": "", + "x": 1352.583429609026, + "y": 480.93753773825506, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "742df1ab.3ae88", + "type": "switchNode", + "name": "switch global-customer-id", + "xml": "<switch test='`$service-topology-operation-input.service-information.global-customer-id`'>\n", + "comments": "", + "outputs": 1, + "x": 985.4406378609792, + "y": 522.3661514009748, + "z": "42cc1159.52eec", + "wires": [ + [ + "7ba07ba.47bde84" + ] + ] + }, + { + "id": "7ba07ba.47bde84", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 1201.1548865182058, + "y": 522.3661533083234, + "z": "42cc1159.52eec", + "wires": [ + [ + "cbe8d9bd.9c8618" + ] + ] + }, + { + "id": "cbe8d9bd.9c8618", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.global-customer-id is a required input\" />\n", + "comments": "", + "x": 1352.5834524972097, + "y": 522.3661514009748, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "1fcc9e4a.90b532", + "type": "switchNode", + "name": "switch model-invariant-uuid", + "xml": "<switch test='`$service-topology-operation-input.service-information.ecomp-model-information.model-invariant-uuid`'>\n", + "comments": "", + "outputs": 1, + "x": 991.1548560006277, + "y": 563.7947231020246, + "z": "42cc1159.52eec", + "wires": [ + [ + "a2b56163.2eead" + ] + ] + }, + { + "id": "a2b56163.2eead", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 1201.1548636300222, + "y": 563.7947498049055, + "z": "42cc1159.52eec", + "wires": [ + [ + "85da17f9.7b6ee8" + ] + ] + }, + { + "id": "85da17f9.7b6ee8", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.ecomp-model-information.model-invariant-uuid is a required input\" />\n", + "comments": "", + "x": 1352.583429609026, + "y": 563.7947478975568, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "96d57264.57088", + "type": "switchNode", + "name": "switch model-uuid", + "xml": "<switch test='`$service-topology-operation-input.service-information.ecomp-model-information.model-uuid`'>\n", + "comments": "", + "outputs": 1, + "x": 961.1549551827566, + "y": 605.2233367647443, + "z": "42cc1159.52eec", + "wires": [ + [ + "b0c11ff.c6916e" + ] + ] + }, + { + "id": "b0c11ff.c6916e", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 1201.1549551827566, + "y": 605.2233195986066, + "z": "42cc1159.52eec", + "wires": [ + [ + "6ef2e613.020628" + ] + ] + }, + { + "id": "6ef2e613.020628", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.ecomp-model-information.model-uuid is a required input\" />\n", + "comments": "", + "x": 1352.5835211617605, + "y": 605.223317691258, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "731761a3.6eed4", + "type": "switchNode", + "name": "switch model-name", + "xml": "<switch test='`$service-topology-operation-input.service-information.ecomp-model-information.model-name`'>\n", + "comments": "", + "outputs": 1, + "x": 964.0120337350027, + "y": 646.6518474306379, + "z": "42cc1159.52eec", + "wires": [ + [ + "65032b2e.022024" + ] + ] + }, + { + "id": "65032b2e.022024", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 1199.72635105678, + "y": 646.6518817629133, + "z": "42cc1159.52eec", + "wires": [ + [ + "b67eae73.a9f6c" + ] + ] + }, + { + "id": "b67eae73.a9f6c", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.ecomp-model-information.model-name is a required input\" />\n", + "comments": "", + "x": 1351.154917035784, + "y": 646.6518798555646, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "fb62d34c.a0426", + "type": "comment", + "name": "Validation of required fields", + "info": "", + "comments": "", + "x": 603.1190032958984, + "y": 230.22320365905762, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "57d36230.80271c", + "type": "switchNode", + "name": "switch svc-action", + "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n", + "comments": "", + "outputs": 1, + "x": 438.35706329345703, + "y": 563.1994934082031, + "z": "42cc1159.52eec", + "wires": [ + [ + "737f9c27.6f5f04" + ] + ] + }, + { + "id": "737f9c27.6f5f04", + "type": "outcome", + "name": "assign", + "xml": "<outcome value='assign'>\n", + "comments": "", + "outputs": 1, + "x": 600.857063293457, + "y": 563.1994934082031, + "z": "42cc1159.52eec", + "wires": [ + [ + "9f47db00.e034a8" + ] + ] + }, + { + "id": "9f47db00.e034a8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 755.857063293457, + "y": 563.1994934082031, + "z": "42cc1159.52eec", + "wires": [ + [ + "1abfff83.8ab75", + "742df1ab.3ae88", + "1fcc9e4a.90b532", + "96d57264.57088", + "731761a3.6eed4", + "7ae25d13.e12ea4" + ] + ] + }, + { + "id": "8465d752.ecf868", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 111.25, + "y": 79.91365623474121, + "z": "42cc1159.52eec", + "wires": [ + [ + "9f7bd881.0481b8" + ] + ] + }, + { + "id": "9f7bd881.0481b8", + "type": "service-logic", + "name": "GENERIC-RESOURCE-API ${project.version}", + "module": "GENERIC-RESOURCE-API", + "version": "${project.version}", + "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='GENERIC-RESOURCE-API' version='${project.version}'>", + "outputs": 1, + "x": 186.53570556640625, + "y": 120.15176773071289, + "z": "42cc1159.52eec", + "wires": [ + [ + "15072416.3cb84c" + ] + ] + }, + { + "id": "15072416.3cb84c", + "type": "method", + "name": "method validate-service-input", + "xml": "<method rpc='validate-service-input' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 175.92862701416016, + "y": 161.16365242004395, + "z": "42cc1159.52eec", + "wires": [ + [ + "d54a485.152c1b8" + ] + ] + }, + { + "id": "6f67c5b7.423c2c", + "type": "comment", + "name": "validate-service-input", + "info": "", + "comments": "", + "x": 505.59485626220703, + "y": 27.5, + "z": "42cc1159.52eec", + "wires": [] + }, + { + "id": "7ae25d13.e12ea4", + "type": "switchNode", + "name": "switch service-id", + "xml": "<switch test='`$service-topology-operation-input.service-information.service-id`'>\n", + "comments": "", + "outputs": 1, + "x": 957.1428375244141, + "y": 440.428599357605, + "z": "42cc1159.52eec", + "wires": [ + [ + "e9812407.bacf48" + ] + ] + }, + { + "id": "e9812407.bacf48", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 1197.571418762207, + "y": 440.4285955429077, + "z": "42cc1159.52eec", + "wires": [ + [ + "9d9de464.0da3a8" + ] + ] + }, + { + "id": "9d9de464.0da3a8", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.service-id is a required input\" />\n", + "comments": "", + "x": 1348.999984741211, + "y": 440.4285936355591, + "z": "42cc1159.52eec", + "wires": [] + } +] |