Anyone have any patterns for handling/creating data model structures that are required to start a process or start a task(user tasks). From a API perspective you could start a Start event / user task /complete a user task without the form UI. The form acts as a sort of Data Model control of what data is transformed into the process variables. So if you drop the actual form UI, you lose that control.
So you could technically start a process through the API with user Input and you could start a process through the API without the UI Form.
Anyone come up with any sort of configurable option where you could Server Validate the Process variables that are Inputed when the process is started, and if the proper structure is not submitted, then the process will not start (or if it is a task, the task will not start)?
From a currently built in perspective I was thinking a YML/JSON file that defines the Data structure you are looking for when process starts and have a delegate run in the Execution Listener for Event Type: start. But have not tested and not clear if this would work.
I think the task scenario is more complicated than Start Events as task would have to deal with the different scopes + the existing and new variables. So if it simplifies the conversation, lets just look at Start Events.
Anyone have any thoughts?