Good morning.
Trying to figure out a way to send users to an "Error" form if the workflow we are running fails. The process we have is basically users submit a form, the form starts a workflow, the task waits for the workflow to finish, then sends the user to another form with variables from the first one.
The workflow has a Custom Query where we need to check if it fails. My thought is to have a Try-Catch and if it does fail then to create a Error token, assign it Yes, write it back to the form to a hidden "Error" single line, then have a gateway that checks. If the Error single line is Yes, send it down the error task.
I have made it so the Query fails and see that part is working fine.
However the task in Forms needs to wait for Workflow to complete. But if its an error it does not seem to move on. If I don't wait for it to complete, the next form is not going to have information that comes from the workflow. Here is my gateway:
Is there a better way or am I missing something? There are going to be multiple forms through the whole process and each Form is going to have a workflow. The workflow needs to finish before moving to the next form since information from that workflow is going to be passed to the next form. However if the workflow fails we would like the next Form to be an error form.
Thanks,
Chris