Error Handling

⌘K
  1. Home
  2. Docs
  3. Error Handling
  4. TerminateWorkflow

TerminateWorkflow

System.Activities.Statements.TerminateWorkflow

  • TerminateWorkflow activity is used to 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.

 Properties

      Misc

  • DisplayName (String) – To set a meaningful name according to the user.
  • Exception (InArgument<Exception>) – To throw an exception, followingis the syntax

                newException(“Throwing an exception because something went wrong”)

                                                                   OR

                newBusinessRuleException(“Throwing an exception because this transaction needs to be                     referred back to the business”)

  • Reason (InArgument<String>) – Define the reason for which the workflow can get terminated.