I have created some custom activities and added to SPD Workflow. They are working as expected. However, when the code in the custom activity throws an exception the remaining steps in the Workflow always continue to execute. How to I stop the workflow from continuing. If exception happens - just need the Workflow to stop/exit.
I have the code wrapped in a try/catch block. I am logging the exception.
Code snippet:
try { ...doing stuff } catch (Exception ex) { Exception error = new Exception("failed ...", ex); this.LogError(...); } return ActivityExecutionStatus.Closed;