AnsweredAssumed Answered

Form Validation

Question asked by agilliam on Oct 13, 2015
Latest reply on Oct 14, 2015 by trademak
I'm relatively new to Activiti and I've come across a problem that I haven't been able to figure out yet.

If I have a workflow similar to this…


My start task form expects a single field: userId. ValidateUser is business logic to determine if the userId already exists in our system.

I'm starting the task via REST with the following cal which just gives me the handle to a process instance:

ProcessInstance processInstance = formService.submitStartFormData(processDefinition.getId(), startVariables);

What I'm not understanding provide feedback to the user via the rest response without having to continuously query or poll the database to check for a status update of what happens inside of ValidateUser? Is there not a built in way to do Start and Task form server side validation via the Activiti API?

My current workaround is to add a listener to Validate User and have the REST logic respond to an event triggered by the listener.