How to check an user input against a process variable in Bonita 7 ?
I can't access any process variables from a constraint script. According to the documentation, it's normal because constraints has been designed this way.
So, how can I perform advanced checks on user input ? If I do it with a script after the task has been submited, I have no way to inform the user something was wrong with his input. If I check the user input on the client side, anyone can easily bypass it.
I could make my own API to execute tasks and define my own constraints without limitations but it seems a bit overkill.
Any idea how to simply check a user input against a process variable ?
Use a process variable as a hidden field, example of using a process vairable can be found here,
PS: If this answers your question, please mark as Resolved
I don't want the task to be executed if the input is not valid
Thank you for your answer ! I will implement it tomorrow !
I'm developing a leave management system. I'm trying to make it as secure as possible because I've been told some of the users (who are developers) might try to cheat to get extra holidays.