I was able to set required Activiti form variables on a process start event and this works great on the explorer. Human user has to enter the value of the variables on the form or they cannot start the task. However, through the REST API, one can still simply start a process without providing these variables. Is it possible to make variables mandatory using the process definition? Or do I have to write my own REST service and validate the variables?
I'm thinking about a workaround which is have the very first task to be a script task and check the required variables and throw error/exceptions. I wonder if there can be something easier built in.
Thank you trademak for the reply and the link. But it is not my question. I am looking for real validation to prevent a process instance from starting if required variables are not provided. The form variables on the start event works if user uses the explorer but not when code using the REST API.
I hope this can be a feature on the REST API and fundamentally on the engine.