Terminate Workflow

Terminates the running workflow instance, raises the Completed event in the host, and reports error information. Once the workflow is terminated, it cannot be resumed. For more details please check https://docs.microsoft.com/en-us/visualstudio/workflow-designer/terminateworkflow-activity-designer?view=vs-2019

Terminate workflow Designer


Terminate Workflow Properties


  1. Display Name See Misc.
  2. Exception The exception that provoked the instance termination.
  3. Reason The reason for the workflow instance termination.


Terminate workflow

In this example, we extract all the "1 star" reviews for a product on Amazon. We use TerminateWorkflow when the product url selection is cancelled.