Idle Condition

Description

Monitors for the absence of user interaction (i.e. no mouse or keyboard input) within the time period specified and evaluates as TRUE when the condition is met. The Idle condition can be used in the following manners:

Practical Usage

Occasionally, workflows are better run when the computer is not in use. The Idle condition can be configured for such scenarios. It can launch a task/workflow when no keyboard or mouse input intervenes within the specified period of time (i.e. the system is idle).

NOTE: Some computers may become locked or a screensaver may appear (which automatically locks a computer) when the system is idle for a specific time period. In such cases, tasks containing steps that interact with the desktop (i.e. Move mouse, Send Keystrokes or Close window activity) will fail if a workstation is in a locked or logged off state. Make sure that the Logon parameters of such tasks are set to unlock the workstation when it is locked or log onto the workstation when a user is logged out.

 

Related Topics  

Parameters

General

Property

Type

Description

Launch task when machine has been idle for

Yes/No

If set to YES, specifies that users with proper rights are not required to access the folder being monitored (set to YES by default).

NOTE: Setting this parameter to YES disables all other available parameters.

Measure

Options

If set to YES, specifies that the default user entered in the Default Task Agent Properties of the agent where the monitored folder resides will be used (set to NO by default).

NOTE: Setting this parameter to YES disables all other available parameters.

Behavior

The Behavior tab properties dictate how the system should react upon the occurrence of a condition. These properties are significant in determining whether the AutoMate Condition should act as a trigger object (used to fire off workflow execution), wait object (used to suspend workflow execution) or conditional (decision making) object.

More on condition behavior

Additional Notes

AMTrigger

When the Idle condition is used to trigger workflow execution, it automatically creates an AMTrigger dataset which can be used much like the datasets created by the SQL Query and E-Mail actions. The fields that AMTrigger generates can be used to determine properties of the object that caused the workflow to launch, such as the type of trigger, when the trigger was activated and what system event or condition took place to activate the trigger. Along with a collection of global AMTrigger fields that are created and populated by every instance of AMTrigger, a unique set of AMTrigger fields exclusive to each AutoMate trigger are created as well.

To view AMTrigger values exclusive to the Idle condition, see AMTrigger - Idle.

AMCondition

When the Idle condition is used in the middle of a workflow as wait or conditional object, it automatically creates an AMCondition dataset. Similar to AMTrigger, the fields that AMCondition generates can be used to determine properties of the object that caused the condition to activate. Along with a collection of global AMCondition fields that are created and populated by every instance of AMCondition, a unique set of AMCondition fields exclusive to each AutoMate condition are created as well.

To view AMCondition values exclusive to the Idle condition, see AMCondition - Idle.

NOTE: A full list of AMTrigger and AMCondition fields exclusive to each trigger/condition can be viewed from Expression Builder by expanding the Objects folder and selecting the desired object from either the Triggers or Conditions folder.