aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-service-input.json
blob: fb7d4397f512e5ebfdb0025801e026e68b26e169 (plain)
1
[{"id":"edb23f9d.a0831","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":208.5714340209961,"y":432.857120513916,"z":"28243e86.88d342","wires":[["54626725.767df8","ae0ea7a6.aa4958","2ee7ae8e.ec3e02","572713cb.967e9c"]]},{"id":"54626725.767df8","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.19051361083984,"y":300.2232151031494,"z":"28243e86.88d342","wires":[["16c18fe2.37317"]]},{"id":"16c18fe2.37317","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":679.9048080444336,"y":300.2232189178467,"z":"28243e86.88d342","wires":[["7afca0eb.9cdce"]]},{"id":"7afca0eb.9cdce","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.3333740234375,"y":300.22321701049805,"z":"28243e86.88d342","wires":[]},{"id":"ae0ea7a6.aa4958","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":442.7618767874583,"y":258.79464667184016,"z":"28243e86.88d342","wires":[["3756f3ff.76490c"]]},{"id":"3756f3ff.76490c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":678.476228441511,"y":257.3660444532122,"z":"28243e86.88d342","wires":[["306ea9cf.6ce206"]]},{"id":"306ea9cf.6ce206","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.4762017386302,"y":257.3660539899554,"z":"28243e86.88d342","wires":[]},{"id":"2ee7ae8e.ec3e02","type":"switchNode","name":"switch request-action","xml":"<switch test='`$service-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":452.76193019322,"y":343.08036177498957,"z":"28243e86.88d342","wires":[["8d89fa.f2f75608"]]},{"id":"8d89fa.f2f75608","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":679.9048036847798,"y":343.08037267412465,"z":"28243e86.88d342","wires":[["2ce5e91a.3d5216"]]},{"id":"2ce5e91a.3d5216","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.3333696637837,"y":343.080370766776,"z":"28243e86.88d342","wires":[]},{"id":"44ec88dd.c9a958","type":"switchNode","name":"switch subscription-service-type","xml":"<switch test='`$service-topology-operation-input.service-information.subscription-service-type`'>\n","comments":"","outputs":1,"x":1075.083447047642,"y":430.937544958932,"z":"28243e86.88d342","wires":[["92ab775.631ee88"]]},{"id":"92ab775.631ee88","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1270.7977414812358,"y":430.93754209790904,"z":"28243e86.88d342","wires":[["e6796dc3.10f6c"]]},{"id":"e6796dc3.10f6c","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":1422.2262922014506,"y":430.93753160749156,"z":"28243e86.88d342","wires":[]},{"id":"b8ebffbf.bce06","type":"switchNode","name":"switch global-customer-id","xml":"<switch test='`$service-topology-operation-input.service-information.global-customer-id`'>\n","comments":"","outputs":1,"x":1055.0835004534038,"y":472.3661452702113,"z":"28243e86.88d342","wires":[["3275964a.60192a"]]},{"id":"3275964a.60192a","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1270.7977491106303,"y":472.3661471775599,"z":"28243e86.88d342","wires":[["2aa93764.d1ca48"]]},{"id":"2aa93764.d1ca48","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":1422.2263150896342,"y":472.3661452702113,"z":"28243e86.88d342","wires":[]},{"id":"f646cff6.1edd7","type":"switchNode","name":"switch model-invariant-uuid","xml":"<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":1060.7977185930522,"y":513.7947169712611,"z":"28243e86.88d342","wires":[["dfbf13d8.eedeb"]]},{"id":"dfbf13d8.eedeb","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1270.7977262224467,"y":513.794743674142,"z":"28243e86.88d342","wires":[["c13e23d1.c796b"]]},{"id":"c13e23d1.c796b","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.onap-model-information.model-invariant-uuid is a required input\" />\n","comments":"","x":1422.2262922014506,"y":513.7947417667933,"z":"28243e86.88d342","wires":[]},{"id":"bae96f52.32ae8","type":"switchNode","name":"switch model-uuid","xml":"<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":1030.797817775181,"y":555.2233306339808,"z":"28243e86.88d342","wires":[["dc4a3e4.f1212c"]]},{"id":"dc4a3e4.f1212c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1270.797817775181,"y":555.2233134678431,"z":"28243e86.88d342","wires":[["50e8e609.694fa8"]]},{"id":"50e8e609.694fa8","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.onap-model-information.model-uuid is a required input\" />\n","comments":"","x":1422.226383754185,"y":555.2233115604945,"z":"28243e86.88d342","wires":[]},{"id":"1b05c1d3.e757de","type":"switchNode","name":"switch model-name","xml":"<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-name`'>\n","comments":"","outputs":1,"x":1033.6548963274272,"y":596.6518412998744,"z":"28243e86.88d342","wires":[["57fd3f6c.ea562"]]},{"id":"57fd3f6c.ea562","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1269.3692136492045,"y":596.6518756321498,"z":"28243e86.88d342","wires":[["d82eb142.373f2"]]},{"id":"d82eb142.373f2","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.onap-model-information.model-name is a required input\" />\n","comments":"","x":1420.7977796282084,"y":596.6518737248011,"z":"28243e86.88d342","wires":[]},{"id":"8f018dc.a5bb37","type":"comment","name":"Validation of required fields","info":"","comments":"","x":602.7618865966797,"y":214.5089292526245,"z":"28243e86.88d342","wires":[]},{"id":"572713cb.967e9c","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":436.5713882446289,"y":601.7709045410156,"z":"28243e86.88d342","wires":[["4146d215.081c3c","f2a1e8.42ce8e18"]]},{"id":"4146d215.081c3c","type":"outcome","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":633.3570518493652,"y":514.6280498504639,"z":"28243e86.88d342","wires":[["2201de8b.f2d032"]]},{"id":"2201de8b.f2d032","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":825.4999258858816,"y":513.1994872774396,"z":"28243e86.88d342","wires":[["44ec88dd.c9a958","b8ebffbf.bce06","f646cff6.1edd7","bae96f52.32ae8","1b05c1d3.e757de"]]},{"id":"12a4a1e1.0f3c6e","type":"dgstart","name":"DGSTART","outputs":1,"x":112.32143620082297,"y":79.91365201132635,"z":"28243e86.88d342","wires":[["a4b20c73.9349b"]]},{"id":"a4b20c73.9349b","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":229.03571319580078,"y":120.15176350729803,"z":"28243e86.88d342","wires":[["efd6dbc2.72c708"]]},{"id":"efd6dbc2.72c708","type":"method","name":"method validate-service-input","xml":"<method rpc='validate-service-input' mode='sync'>\n","comments":"","outputs":1,"x":177.00006321498313,"y":161.16364819662908,"z":"28243e86.88d342","wires":[["edb23f9d.a0831"]]},{"id":"8e1cbab3.830fc8","type":"comment","name":"validate-service-input","info":"","comments":"","x":506.66629246303,"y":27.499995776585138,"z":"28243e86.88d342","wires":[]},{"id":"77dada46.44a994","type":"switchNode","name":"switch model-invariant-uuid","xml":"<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":1055.7143287658691,"y":647.1428604125977,"z":"28243e86.88d342","wires":[["952257b3.dd6078"]]},{"id":"952257b3.dd6078","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1265.7143363952637,"y":647.1428871154785,"z":"28243e86.88d342","wires":[["8da06761.60a388"]]},{"id":"8da06761.60a388","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.onap-model-information.model-invariant-uuid is a required input\" />\n","comments":"","x":1417.1429023742676,"y":647.1428852081299,"z":"28243e86.88d342","wires":[]},{"id":"64f8b162.eeba","type":"switchNode","name":"switch model-uuid","xml":"<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":1025.714427947998,"y":688.5714740753174,"z":"28243e86.88d342","wires":[["aee449b5.453ff8"]]},{"id":"aee449b5.453ff8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1265.714427947998,"y":688.5714569091797,"z":"28243e86.88d342","wires":[["572da02b.634f4"]]},{"id":"572da02b.634f4","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.onap-model-information.model-uuid is a required input\" />\n","comments":"","x":1417.142993927002,"y":688.571455001831,"z":"28243e86.88d342","wires":[]},{"id":"c3343db6.57a7d","type":"switchNode","name":"switch model-name","xml":"<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-name`'>\n","comments":"","outputs":1,"x":1028.5715065002441,"y":729.9999847412109,"z":"28243e86.88d342","wires":[["4dbe8140.1c24"]]},{"id":"4dbe8140.1c24","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1264.2858238220215,"y":730.0000190734863,"z":"28243e86.88d342","wires":[["3a247f65.3dbf2"]]},{"id":"3a247f65.3dbf2","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.onap-model-information.model-name is a required input\" />\n","comments":"","x":1415.7143898010254,"y":730.0000171661377,"z":"28243e86.88d342","wires":[]},{"id":"f2a1e8.42ce8e18","type":"outcome","name":"changeassign","xml":"<outcome value='changeassign'>\n","comments":"","outputs":1,"x":656.2736778259277,"y":686.547679901123,"z":"28243e86.88d342","wires":[["52eab4f4.64cf0c"]]},{"id":"52eab4f4.64cf0c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":826.1308364868164,"y":686.547679901123,"z":"28243e86.88d342","wires":[["77dada46.44a994","64f8b162.eeba","c3343db6.57a7d"]]}]