Search code examples
workflow-foundation-4

Is there an activity to stop wf4?


Is there a way to use an activity to stop the execution of its workflow?

I have multiple TryCatch activities and If activities and it would be nice to be able to stop the workflow after catching an exception or if certain criteria aren't met in my If activities.


Solution

  • You can use the TerminateWorkflow activity to stop a workflow.