aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-generic-configuration-input.json
blob: d0cf13208fe69885fc9a987372c6f1dfd2cb22ea (plain)
1
[{"id":"fec175c0.305418","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":221.66665649414062,"y":436.6666555404663,"z":"dff79744.2b1858","wires":[["a7cfa614.1fcea8","c293d248.0b3bd","6f4942b8.b10bfc","9488fd97.7d961","620f9309.92b41c"]]},{"id":"a7cfa614.1fcea8","type":"switchNode","name":"switch svc-request-id","xml":"<switch test='`$generic-configuration-topology-operation-input.sdnc-request-header.svc-request-id`'>\n","comments":"","outputs":1,"x":453.95241001674094,"y":432.36606843130926,"z":"dff79744.2b1858","wires":[["bbb37bdd.fc1198"]]},{"id":"bbb37bdd.fc1198","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":679.6667044503347,"y":432.3660722460065,"z":"dff79744.2b1858","wires":[["60444e77.ba17e"]]},{"id":"60444e77.ba17e","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.0952704293386,"y":432.3660703386579,"z":"dff79744.2b1858","wires":[]},{"id":"c293d248.0b3bd","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$generic-configuration-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":442.5237731933594,"y":390.9375,"z":"dff79744.2b1858","wires":[["555a951e.ea86ac"]]},{"id":"555a951e.ea86ac","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":678.2381248474121,"y":389.50889778137207,"z":"dff79744.2b1858","wires":[["6839d50d.6e626c"]]},{"id":"6839d50d.6e626c","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.2380981445312,"y":389.50890731811523,"z":"dff79744.2b1858","wires":[]},{"id":"6f4942b8.b10bfc","type":"switchNode","name":"switch request-action","xml":"<switch test='`$generic-configuration-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":452.5238265991211,"y":475.2232151031494,"z":"dff79744.2b1858","wires":[["1e714623.bc70ba"]]},{"id":"1e714623.bc70ba","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":679.6667000906809,"y":475.2232260022845,"z":"dff79744.2b1858","wires":[["4b63c339.21d57c"]]},{"id":"4b63c339.21d57c","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.0952660696848,"y":475.22322409493586,"z":"dff79744.2b1858","wires":[]},{"id":"e8fd7432.d81498","type":"comment","name":"Validation of required fields","info":"","comments":"","x":602.5237830025808,"y":346.65178258078436,"z":"dff79744.2b1858","wires":[]},{"id":"9488fd97.7d961","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$generic-configuration-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":437.9999542236328,"y":615.5804071426392,"z":"dff79744.2b1858","wires":[["6305c878.8817e8","5e809fd6.bb388","ab8dd6a5.082308","5f3f90fc.fed14","afe84e17.b5cf4"]]},{"id":"6305c878.8817e8","type":"outcome","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":636.4522841317312,"y":520.1042266573224,"z":"dff79744.2b1858","wires":[["e81af348.ca45e"]]},{"id":"3c589a14.0b6f06","type":"dgstart","name":"DGSTART","outputs":1,"x":112.08333042689719,"y":85.38984448569158,"z":"dff79744.2b1858","wires":[["4bfbd45e.cf8fdc"]]},{"id":"4bfbd45e.cf8fdc","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":228.797607421875,"y":125.62795598166326,"z":"dff79744.2b1858","wires":[["7606cd3f.319944"]]},{"id":"7606cd3f.319944","type":"method","name":"method validate-generic-configuration-input","xml":"<method rpc='validate-generic-configuration-input' mode='sync'>\n","comments":"","outputs":1,"x":218.76195744105735,"y":166.63984067099432,"z":"dff79744.2b1858","wires":[["fec175c0.305418"]]},{"id":"a3d0a710.15ace8","type":"comment","name":"validate-generic-configuration-input","info":"","comments":"","x":506.4281866891042,"y":32.97618825095037,"z":"dff79744.2b1858","wires":[]},{"id":"5e809fd6.bb388","type":"outcome","name":"activate","xml":"<outcome value='activate'>\n","comments":"","outputs":1,"x":637.7022192818777,"y":565.3571658815656,"z":"dff79744.2b1858","wires":[["e81af348.ca45e"]]},{"id":"e81af348.ca45e","type":"switchNode","name":"switch request-action","xml":"<switch test='`$generic-configuration-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":829.9999640328542,"y":539.9999843324933,"z":"dff79744.2b1858","wires":[["51e1d90d.a9ebf8","f4020138.4a278"]]},{"id":"51e1d90d.a9ebf8","type":"outcome","name":"CreateGenericConfigurationInstance","xml":"<outcome value='CreateGenericConfigurationInstance'>\n","comments":"","outputs":1,"x":1099.9999640328542,"y":511.6666303362165,"z":"dff79744.2b1858","wires":[["83c1beff.b4a4c"]]},{"id":"f4020138.4a278","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1008.333357129778,"y":561.6666751589094,"z":"dff79744.2b1858","wires":[["cc93d973.20cf78"]]},{"id":"cc93d973.20cf78","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=\"`'If svc-action is ' + $generic-configuration-topology-operation-input.sdnc-request-header.svc-action + ' then request-action must be CreateGenericConfigurationInstance'`\" />\n","comments":"","x":1156.6665976388113,"y":561.6666732515607,"z":"dff79744.2b1858","wires":[]},{"id":"ab8dd6a5.082308","type":"outcome","name":"deactivate","xml":"<outcome value='deactivate'>\n","comments":"","outputs":1,"x":644.9999678475515,"y":613.3333221163068,"z":"dff79744.2b1858","wires":[["915529cf.298168"]]},{"id":"5f3f90fc.fed14","type":"outcome","name":"unassign","xml":"<outcome value='unassign'>\n","comments":"","outputs":1,"x":641.2498877389089,"y":658.5862327303205,"z":"dff79744.2b1858","wires":[["915529cf.298168"]]},{"id":"915529cf.298168","type":"switchNode","name":"switch request-action","xml":"<switch test='`$generic-configuration-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":828.5476439339773,"y":633.2290549959455,"z":"dff79744.2b1858","wires":[["14e74c4c.287fa4","2eb64ceb.c6c984"]]},{"id":"14e74c4c.287fa4","type":"outcome","name":"DeleteGenericConfigurationInstance","xml":"<outcome value='DeleteGenericConfigurationInstance'>\n","comments":"","outputs":1,"x":1098.5476439339773,"y":604.8957009996686,"z":"dff79744.2b1858","wires":[["4e8836e6.688e68"]]},{"id":"2eb64ceb.c6c984","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1006.8810370309011,"y":654.8957458223615,"z":"dff79744.2b1858","wires":[["67f8def.fd30a2"]]},{"id":"67f8def.fd30a2","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=\"`'If svc-action is ' + $generic-configuration-topology-operation-input.sdnc-request-header.svc-action + ' then request-action must be DeleteGenericConfigurationInstance'`\" />\n","comments":"","x":1155.2142775399343,"y":654.8957439150129,"z":"dff79744.2b1858","wires":[]},{"id":"620f9309.92b41c","type":"switchNode","name":"switch service-instance-id","xml":"<switch test='`$service-data.service-information.service-instance-id`'>\n","comments":"","outputs":1,"x":470,"y":299.9999809265137,"z":"dff79744.2b1858","wires":[["75300639.e476a8"]]},{"id":"75300639.e476a8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":706.6665992736816,"y":300,"z":"dff79744.2b1858","wires":[["43ca05df.ffe46c"]]},{"id":"43ca05df.ffe46c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Service instance ' + $generic-configuration-topology-operation-input.service-information.service-instance-id + ' does not exist'`\" />\n","comments":"","x":861.6666278839111,"y":299.9999895095825,"z":"dff79744.2b1858","wires":[]},{"id":"83c1beff.b4a4c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1324.9999313354492,"y":511.00000953674316,"z":"dff79744.2b1858","wires":[[]]},{"id":"4e8836e6.688e68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1325,"y":603.3333129882812,"z":"dff79744.2b1858","wires":[[]]},{"id":"afe84e17.b5cf4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":633.3333587646484,"y":706.6666946411133,"z":"dff79744.2b1858","wires":[["9f9701d8.2a016"]]},{"id":"9f9701d8.2a016","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=\"`'Unsupported svc-action ' + $generic-configuration-topology-operation-input.sdnc-request-header.svc-action`\" />\n","comments":"","x":799.9999389648438,"y":706.3333129882812,"z":"dff79744.2b1858","wires":[]}]