Enable/Disable Task Action

Declaration

 <AMENABLETASK MANAGEDTASK="text" ENABLE="yes/no" PASSWORD="text">

See Also

Enable/Disable Task Action-Setting Properties, Stop Task Action, Trigger Task Action, Shut Down AutoMate Action

Description

Use this action to enable or disable a managed task.

Practical Usage

Often used to cause either the current task, or other task(s) not to execute while the current task is executing. To do this, the 'Disable Task' action could be used at the start of the task and the 'Enable Task' action could be placed at the end.

Parameters

General Tab

Action

yes/no, Optional Default Yes
MARKUP: ENABLE="NO"

 

Specifies the action to execute. The available options are:

 

Managed Task

Text, Required
MARKUP:
a) MANAGEDTASK="Talking Clock"
b) MANAGEDTASK="Foldername\Talking Clock" 

Specifies the name of the managed task affect. The task must exist in the current machine task list at runtime or the step will fail. Click the down arrow and select the desired task from the list that appears.

 

NOTE: Changing the task name or parent folder name later can break this linkage once created.

Password to use if the task is protected from being modified

Text, Optional
MARKUP: PASSWORD="mypassword" 

If the task had been protected from edits, specifies the password to access the task properties.

Notes

Custom Description

This action includes the Description tab for entering a custom step description.

More on setting custom step description

Standard Error Handling Options

This action also includes the standard Error Causes and On Error failure handling options/tabs.

More on Error Handling Options

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

<AMENABLETASK MANAGEDTASK="Test" MANAGEDTASKID="{CFB44AA0-B45A-4FC3-9235-5297A138B363}" />