I have a workflow that converts a docx to pdf then does some more processing on the document.
I would like to kill/terminate/cancel the workflow if the conversion fails but I am not sure the best way to do this. Do I just throw an exception and let that kill the workflow? I would like to leave a useful message in the history other than "Error Occurred" that could help with debugging.
I have a couple other areas in the code where I would also like to be able to kill the workflow and leave a useful History message and outcome.
Is there a good way to do this?