TerminateWorkflow Activity Designer
The TerminateWorkflow activity designer is used to create and configure a TerminateWorkflow activity.
The TerminateWorkflow Activity
The TerminateWorkflow activity terminates the execution of a workflow.
Using the TerminateWorkflow Activity Designer
The TerminateWorkflow activity designer can be found in the Runtime category of the Toolbox, which is accessed by clicking the Toolbox tab (Alternatively, select Toolbox from the View menu or CTRL+ALT+X.)
The TerminateWorkflow activity designer can be dragged from the Toolbox and dropped on to the Workflow Designer surface wherever activities are usually placed, such as inside a Sequence. This creates a TerminateWorkflow activity with a default DisplayName of TerminateWorkflow. The DisplayName can be edited in the header of the TerminateWorkflow activity designer or in the DisplayName box of the property grid.
The TerminateWorkflow Properties
The following table shows the TerminateWorkflow properties and describes how they are used in the designer. These properties can be edited in property grid and some of them can be edited on Workflow Designer surface.
Property Name | Required | Usage |
---|---|---|
DisplayName | False | The friendly name of the TerminateWorkflow activity. The default is TerminateWorkflow. Although the display name is not strictly required, it is a best practice to use a display name. |
Exception | False | The exception to throw when the workflow is terminated. Set this property in the property grid. |
Reason | False | The reason that explains why the workflow was terminated. Set this property in the property grid. |