AMTrigger.Action

Syntax

%AMTrigger.Action%

Triggers supported

Database, File System, Process, Service, Window

Type

Text (options)

Description

Returns the specific action that activated the trigger. Return values vary depending on the type of trigger. The tables below describes the available actions for each type of trigger.

Database Trigger Actions

Name Description
Insert New data is inserted into the specified database table.
Delete Data is removed from the specified database table.
Update Data from the specified database table has changed.
Drop The specified database table is deleted.
Alter An alteration is made to the specified database table.

File System Trigger Actions

Name Description
File Added A file is added to the specified directory.
File Deleted A file is deleted from the specified directory.
File Renamed A specific file is renamed.
File Modified A specific file is modified. (that is, opened, changed and saved).
Folder Added A folder is added to the specified directory. This includes creation of a new folder or copying/moving an existing folder into the directory.
Folder Deleted A folder is deleted from the specified directory.
Folder Renamed A folder from the specified directory is renamed.
Folder Modified A folder from the specified directory is modified.
Too Many Files The total number of files exceeds the amount specified.
Too Many Folders The total number of folders exceeds the amount specified.
One File Too Big The size of a folder exceeds the amount specified (in KB).
Folder Too Big The total size of the folder exceeded the amount specified (in KB).

Process Trigger Actions

Name Description
Start Process start.
End Process end.
Hung Hung process (that is, no response from process).

Service Trigger Actions

Name Description
Start Service start.
Stop Service end.
Hung Hung service (that is, no response from service which usually occurs during a “starting” or “stopping” state).
Resume Service resume (that is, started after a paused state).
Pause Service pause.
Installed Installation of service.

Window Trigger Actions

Name Description
Open A specific window opens.
Closed The specified window closes.
Focused The specified window comes into focus (brought to the front of all other open windows).
Not Focused The specified window loses focus (placed behind other open windows).

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

This sample trigger displays the message "The action that took place to cause the task to trigger: %AMTrigger.Action%" in a dialog.

Copy
<AMSHOWDIALOG WINDOWTITLE="Trigger Return Value">The action that took place to cause the task to trigger: %AMTrigger.Action%</AMSHOWDIALOG>

Related Topics