Task Monitor Task

Task Monitor Task

Overview

The Task Monitor task monitors another task or tasks for one or more specific statuses.

When setting up a Task Monitor task, you can monitor:

  • All tasks

  • Specific task

  • Task type, such as a Windows task

  • Group of tasks based on the name, such as all tasks whose name contains the string DEV

You also can monitor for any combination of task statuses.

For example, you can monitor for:

  • All tasks with a status of RESOURCE WAIT or UNDELIVERABLE

  • All Windows tasks in a FAILED status

  • All tasks whose name contains REPORT that have a status of SUCCESS.

For Task Monitors within a workflow, you can also specify a Time Scope, or window of time, during which the event being monitored for must be satisfied.

Built-In Variables

The following built-in variables can be used in a Task Monitor task to pass data where appropriate:

Processing Flow for Task Monitors

The processing on a Task Monitor may differ depending on which of the following methods was used to launch it:

  • Launched by a workflow

  • Launched by a Task Monitor trigger

  • Launched manually or by another trigger

Each method is described in detail below.
 

Note

Any changes made to a Task Monitor task are not recognized by its respective Triggers until those Triggers are disabled and re-enabled.

Launching a Task Monitor Task Within a Workflow

Within a Workflow, the Task Monitor task launches like any other task in the Workflow; that is, whenever the Workflow conditions warrant it. The Task Monitor runs until one of the conditions described below occurs:

  • When the conditions specified in the Task Monitor are met, the Task Monitor goes to a status of SUCCESS.

  • When the time window specified in the Task Monitor passes and the conditions in the Task Monitor are not met, the Task Monitor goes to a status of FAILED. If the time window is entirely in the past and Universal Controller does not locate the required event in the Activity table when the Task Monitor launches, the Task Monitor goes immediately to a FAILED status.

  • If no time window is specified in the Task Monitor and the Task Monitor conditions are not met, the Task Monitor task continues running.

  • A user can manually force finish the Task Monitor task.

The following diagram illustrates how a Task Monitor might go to SUCCESS and FAILED status within a workflow.

Launching a Task Monitor Task Using a Task Monitor Trigger

The Task Monitor task launches when the user enables the Task Monitor trigger. Each time the conditions in the Task Monitor task are satisfied, the tasks specified in the trigger are launched. This process continues until a user disables the associated Task Monitor trigger.

The following diagram shows an example of how you might set up a task monitoring scheme using the Task Monitor task and Task Monitor trigger.