Thank for your timely response.
I'm looking for a a way to provide instant feedback to the form submitter via REST. Unless I'm missing something I see that I only have 3 options:
1. Move the business logic to validate the user outside of the process. I'd have to perform my form validation BEFORE my call: formService.submitStartFormData(). I'm not a big fan of that idea because I'd like the process to model my actual business process as closely as possible.
2. I could submit the form and write a loop that queries for a specific flag or state and then sleep n number of seconds before polling the database again. After the loop ends I can then return the proper status code indicating if the user validation passed or failed. Again, I'm not a big fan of this solution.
3. I could add a listener to Validate User and have the REST logic respond to complete event triggered by the listener.
Either way, in this case, the goal would be to give instant feedback to the user that the user name was either valid or invalid without having to make subsequent REST calls to check the status of the form validation step. Please advise as to other options if I missed them.