I am trying to find a way to terminate the current workflow execution from the workflow method. For reference, if there is an exception in the workflow method then I want to terminate the workflow execution.
I am trying to find a way to terminate the current workflow execution from the workflow method. For reference, if there is an exception in the workflow method then I want to terminate the workflow execution.
Take a look at responses in posts here and here.
Note that If you want your workflow to fail on any exception type, you could set WorkflowImplementationOptions ->FailWorkflowExceptionTypes to Throwable.class.
Thanks, @tihomir. This helped me.