Terminate a workflow programmatically and display custom error message on the page
Hi All,
I have a usecase to terminate the workflow initiated on a page if a condition check within a custom process step in that workflow is not met. Tried using terminate option but it doesn't have an option to send a custom error message that needs to displayed on the page as a reason for termination.
Please let me know if there is a way we can achieve it.
Thanks