Generic resource API DG catch up
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_validate-vf-module-input.json
1 [{"id":"9280b236.24feb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":251.42857360839844,"y":502.50000231606623,"z":"3304d3ee.58708c","wires":[["b78de690.f9f5d8","da185984.e2c478","5a084fe5.895d4","f0d79a13.71b258","b047cbeb.978218","9eadf3bc.97835","2ca2061e.0237ca"]]},{"id":"b78de690.f9f5d8","type":"switchNode","name":"switch svc-request-id","xml":"<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`'>\n","comments":"","outputs":1,"x":534.1904830932617,"y":385.580340385437,"z":"3304d3ee.58708c","wires":[["de999d71.d9736"]]},{"id":"de999d71.d9736","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":759.9047775268555,"y":385.5803442001343,"z":"3304d3ee.58708c","wires":[["7ce8eacd.cf3c74"]]},{"id":"7ce8eacd.cf3c74","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":911.3333435058594,"y":385.58034229278564,"z":"3304d3ee.58708c","wires":[]},{"id":"da185984.e2c478","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":522.7618462698802,"y":344.15177195412775,"z":"3304d3ee.58708c","wires":[["a366b2a.b101a5"]]},{"id":"a366b2a.b101a5","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":758.4761979239329,"y":342.7231697354998,"z":"3304d3ee.58708c","wires":[["779cf777.ccd0f8"]]},{"id":"779cf777.ccd0f8","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":908.476171221052,"y":342.723179272243,"z":"3304d3ee.58708c","wires":[]},{"id":"5a084fe5.895d4","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":532.7618996756419,"y":428.43748705727717,"z":"3304d3ee.58708c","wires":[["661c9512.86ffdc"]]},{"id":"661c9512.86ffdc","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":759.9047731672017,"y":428.43749795641224,"z":"3304d3ee.58708c","wires":[["152789a.07c2376"]]},{"id":"152789a.07c2376","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":911.3333391462056,"y":428.4374960490636,"z":"3304d3ee.58708c","wires":[]},{"id":"836f5426.363f78","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":1100.893123626709,"y":649.8662757873535,"z":"3304d3ee.58708c","wires":[["69e64228.97fcac"]]},{"id":"69e64228.97fcac","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1305.893123626709,"y":649.8662586212158,"z":"3304d3ee.58708c","wires":[["29de077f.8e6ec8"]]},{"id":"29de077f.8e6ec8","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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1457.321689605713,"y":649.8662567138672,"z":"3304d3ee.58708c","wires":[]},{"id":"76957faf.3e90e","type":"switchNode","name":"switch tenant","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.tenant`'>\n","comments":"","outputs":1,"x":1046.750202178955,"y":691.2947864532471,"z":"3304d3ee.58708c","wires":[["eecf68c4.93b228"]]},{"id":"eecf68c4.93b228","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1304.4645195007324,"y":691.2948207855225,"z":"3304d3ee.58708c","wires":[["5279ca1e.d05be4"]]},{"id":"5279ca1e.d05be4","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=\"vf-module-information.vf-module-request-input.tenant is a required input\" />\n","comments":"","x":1455.8930854797363,"y":691.2948188781738,"z":"3304d3ee.58708c","wires":[]},{"id":"760ce011.a2906","type":"comment","name":"Validation of required fields","info":"","comments":"","x":682.7618560791016,"y":299.8660545349121,"z":"3304d3ee.58708c","wires":[]},{"id":"f0d79a13.71b258","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":516.3332977294922,"y":730.4614696502686,"z":"3304d3ee.58708c","wires":[["8728b60f.a48fd8","d0629521.3a3078"]]},{"id":"8728b60f.a48fd8","type":"outcome","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":677.1666145324707,"y":670.46142578125,"z":"3304d3ee.58708c","wires":[["c37e1bac.9bd818"]]},{"id":"c37e1bac.9bd818","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":869.1666145324707,"y":670.46142578125,"z":"3304d3ee.58708c","wires":[["836f5426.363f78","76957faf.3e90e","b4883195.b514a"]]},{"id":"bc09f30d.b7923","type":"dgstart","name":"DGSTART","outputs":1,"x":195.17858341761985,"y":172.41365432739258,"z":"3304d3ee.58708c","wires":[["e6e33f5c.32b8"]]},{"id":"e6e33f5c.32b8","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":308.4642889840261,"y":212.65176582336426,"z":"3304d3ee.58708c","wires":[["daeb37a6.218e58"]]},{"id":"daeb37a6.218e58","type":"method","name":"method validate-vf-module-input","xml":"<method rpc='validate-vf-module-input' mode='sync'>\n","comments":"","outputs":1,"x":265.5238783700124,"y":253.33031177520752,"z":"3304d3ee.58708c","wires":[["9280b236.24feb"]]},{"id":"9aac0344.99123","type":"comment","name":"validate-vf-module-input","info":"","comments":"","x":589.5234396798269,"y":119.99999809265137,"z":"3304d3ee.58708c","wires":[]},{"id":"b047cbeb.978218","type":"switchNode","name":"switch service-instance-id","xml":"<switch test='`$vf-module-topology-operation-input.service-information.service-instance-id`'>\n","comments":"","outputs":1,"x":545.7857306344167,"y":472.50001335144043,"z":"3304d3ee.58708c","wires":[["705f181f.599f48"]]},{"id":"705f181f.599f48","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":758.2143118722097,"y":472.50000953674316,"z":"3304d3ee.58708c","wires":[["f48f0d61.9dfa7"]]},{"id":"f48f0d61.9dfa7","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-instance-id is a required input\" />\n","comments":"","x":909.6428778512136,"y":472.50000762939453,"z":"3304d3ee.58708c","wires":[]},{"id":"9eadf3bc.97835","type":"switchNode","name":"switch vnf-id","xml":"<switch test='`$vf-module-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":503.28573989868164,"y":519.0000038146973,"z":"3304d3ee.58708c","wires":[["93e4cbab.2046c8"]]},{"id":"93e4cbab.2046c8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":758.5714492797852,"y":517.5714359283447,"z":"3304d3ee.58708c","wires":[["78d032f1.6b193c"]]},{"id":"78d032f1.6b193c","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=\"vnf-information.vnf-id is a required input\" />\n","comments":"","x":910.0000152587891,"y":517.5714340209961,"z":"3304d3ee.58708c","wires":[]},{"id":"b4883195.b514a","type":"switchNode","name":"switch aic-cloud-region","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`'>\n","comments":"","outputs":1,"x":1076.0952835083008,"y":733.5714435577393,"z":"3304d3ee.58708c","wires":[["eca915fe.8a7528"]]},{"id":"eca915fe.8a7528","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1302.8096008300781,"y":733.5714778900146,"z":"3304d3ee.58708c","wires":[["671723cf.0cce1c"]]},{"id":"671723cf.0cce1c","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=\"vf-module-request-input.aic-cloud-region is a required input\" />\n","comments":"","x":1454.238166809082,"y":733.571475982666,"z":"3304d3ee.58708c","wires":[]},{"id":"2ca2061e.0237ca","type":"switchNode","name":"switch vf-module-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`'>\n","comments":"","outputs":1,"x":524.0952301025391,"y":564.9999828338623,"z":"3304d3ee.58708c","wires":[["7dedc936.6d8c88"]]},{"id":"7dedc936.6d8c88","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":758.3809394836426,"y":563.5714149475098,"z":"3304d3ee.58708c","wires":[["d5bce79.04eca18"]]},{"id":"d5bce79.04eca18","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=\"vf-module-information.vf-module-id is a required input\" />\n","comments":"","x":909.8095054626465,"y":563.5714130401611,"z":"3304d3ee.58708c","wires":[]},{"id":"be6a2bca.c2c3f8","type":"switchNode","name":"switch vf-module-name","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`'>\n","comments":"","outputs":1,"x":1079.4285507202148,"y":607.666654586792,"z":"3304d3ee.58708c","wires":[["3fad2b1f.051354"]]},{"id":"3fad2b1f.051354","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1305.4285507202148,"y":607.6666374206543,"z":"3304d3ee.58708c","wires":[["9eb9e9d3.f24818"]]},{"id":"9eb9e9d3.f24818","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=\"vf-module-information.vf-module-request-input.vf-module-name is a required input\" />\n","comments":"","x":1456.8571166992188,"y":607.6666355133057,"z":"3304d3ee.58708c","wires":[]},{"id":"d0629521.3a3078","type":"outcome","name":"changeassign","xml":"<outcome value='changeassign'>\n","comments":"","outputs":1,"x":694.7619171142578,"y":795.0000286102295,"z":"3304d3ee.58708c","wires":[["d381036c.b7227"]]},{"id":"d381036c.b7227","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":921.4285583496094,"y":793.3333339691162,"z":"3304d3ee.58708c","wires":[["1c736669.31026a"]]},{"id":"1c736669.31026a","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1126.4285583496094,"y":793.3333168029785,"z":"3304d3ee.58708c","wires":[["5fc7ea4b.ad8e04"]]},{"id":"5fc7ea4b.ad8e04","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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1277.8571243286133,"y":793.3333148956299,"z":"3304d3ee.58708c","wires":[]},{"id":"bfdaa4c5.3cfce8","type":"comment","name":"REMOVED link here and MOVED vf-module-name validation to vf-module-topology-operation-assign after self-serve logic","info":"","comments":"","x":1434.2857055664062,"y":588.571418762207,"z":"3304d3ee.58708c","wires":[]}]