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 following tables describe 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 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 (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 specified amount. |
| Too Many Folders | The total number of folders exceeds the specified amount. |
| One File Too Big | The size of a folder exceeds the specified amount (in KB). |
| Folder Too Big | The total size of the folder exceeded the specified amount (in KB). |
Process Trigger Actions
| Name | Description |
|---|---|
| Start | Process start. |
| End | Process end. |
| Hung | Hung process (no response from process). |
Service Trigger Actions
| Name | Description |
|---|---|
| Start | Service start. |
| Stop | Service end. |
| Hung | Hung service (no response from service which usually occurs during a starting or stopping state). |
| Resume | Service resume (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.
The following displays the message The action that took place to cause the task to trigger: %AMTrigger.Action%:
Copy
<AMSHOWDIALOG WINDOWTITLE="Trigger Return Value">The action that took place to cause the task to trigger: %AMTrigger.Action%</AMSHOWDIALOG>