Tutorial - Force Finishing, Force Finish-Cancelling, and Cancelling a Task

In this exercise, we will force finish, force finish/cancel, and cancel tasks within a workflow from three areas:

  • Workflow Monitor
  • Activity Monitor
  • Task Instances list

You can run any of these three commands from any of these three areas. For stand-alone tasks, you can run these commands only from the Activity Monitor and Task Instances list.

Note

You can force finish, force finish/cancel, and cancel any task in Running status, but you only can force finish a task in Waiting status. See Manually Running and Controlling Tasks for a complete list of task statuses for each command.

 

Step 1

From the Automation Center navigation pane, select Tasks > Workflow Tasks. The Workflow Tasks list displays.

Step 2

Create a Workflow with an Agent-based task, such as a File Monitor task, that can be Force Finished, Force Finish / Cancelled, and Cancelled. (See the Creating a Simple Workflow tutorial for help on creating the Workflow.)

Step 3

Click Launch Task to run the Workflow.

Step 4

Force Finish a task from the Workflow Monitor:

  1. From the Automation Center navigation pane, select Task Instances > Task Instances to display the Activity Monitor which displays, by default, a list of Active Task Instances.
  2. Open the running Workflow and click the View Workflow button to display its Workflow Monitor.
  3. Right-click a Waiting task and, from the list of Commands on the pop-up menu, click Force Finish. The status of the task changes from Waiting to Finished, and all successor task instances waiting for successful completion of this task instance will start.
     

Step 5

Force Finish/Cancel a task from the Activity Monitor:

  1. Return to the Activity Monitor.
  2. Right-click a Simple Workflow task that is in the Running status and, on the Action menu, click Force Finish/Cancel. The status of the task changes from Running to Finished, and all successor task instances waiting for successful completion of this task instance will start.
     

Step 6

Cancel a task from the Task Instances list:

  1. From the Automation Center navigation pane, select Task Instances > Task Instances to display the Task Instances list.
  2. Right-click a Simple Workflow task in the Running status and, on the Action menu, click Cancel. The status of the task changes from Running to Cancelled, and all successor task instances waiting for successful completion of this task will remain in the Waiting status. The status of Simple Workflow changes from Running to Running/Problems.
     



For additional information, see: