AMTrigger.TaskLate

Syntax:

%AMTrigger.TaskLate%

Category:

Schedule

Type:

Boolean

Description:

Indicates to the task whether the schedule trigger launched past it's next launch date/time. This can occur if the computer was turned off or the Automate Task Service was not running when the task was initially scheduled to run. If the task was late, the value returned is 1. Otherwise, it will be 0.

Example:

Description: If/Else statement that sends the administrator message stating that task ran on time or ran late depending on AMTrigger.TaskLate value returned.

 

<AMIF EXPRESSION="%AMTrigger.TaskLate% = 1">

   <AMEMAIL ACTIVITY=send FROM=

<AMELSE />

   <AMEMAIL ACTIVITY="send" FROM="Dev@myCompany.com" TO="Admin@myCompany.com" SUBJECT="Task Ran On Time" BODY="Scheduled task ran on time." />

</AMIF>

 

See Also:


AMTrigger.AML |  AMTrigger.TaskName | AMTrigger.Trigger | AMTrigger.TriggeredDateTime | AMTrigger.TriggeredOn | AMTrigger.WasLocked | AMTrigger.WasLoggedOff