Genpact Cora Knowledge Center

Support

Abort an Open Workflow Instance

V10.6

Overview

As a workflow developer, you may sometimes need to abort an open and idle workflow instance, and it's child workflows. Until now this was done with custom stored procedures developed by the developers, but now this functionality is available out-of-the-box. Having this functionality out-of-the-box, you can avoid addition of custom code.

Procedure

To abort an open workflow instance, you need to run a built-in command.

  1. In the Administration site, open the workflow.
  2. In the workflow, add a Built-in Command activity.
    For details, see this article.
  3. In the Built-in Command Activity properties window, select the following:
    • Category: Process Operations
    • Commands: Abort process
  4. Click Next.
  5. Add Abort process input parameters:
    • workflowInstanceId: Workflow Id of the process to be aborted.
  6. Click Finish.