Skip to main content

Triggers

Overview

Triggers enable you to execute your IntelliAppZ based on specific criteria. You can run IntelliAppZ on an ad-hoc basis, but you can also configure a particular trigger to pre-plan your executions.

Trigger Types

IntelliAppZ supports the following types of Triggers:

Trigger TypeDescription
EmailTriggers IntelliAppZ execution when a new email arrives on the specified email box and matches the specified criteria
File SystemTriggers IntelliAppZ execution when a specified file event(s) occur under the specified folder(s)
TimeTriggers IntelliAppZ execution at a particular time based on specified schedule criteria

Creating a Trigger

  • Open AppZ Box from Windows Tray.

  • Choose the IntelliAppZ you want to associate with the Trigger, and click the vertical ellipses.

  • Click on the Triggers option to open the Triggers dialog. You can view the list of Triggers configured for IntelliAppZ.

  • Click on the New button from the Action Panel.

  • Select the Trigger Type you want to create in the New Trigger dialog and click on Create

Trigger Details

  • Type in the Name of the Trigger to identify it easily
  • Provide a brief description of this Trigger for your future reference
  • Select the Run app as service checkbox if you want to run your app in the background when the trigger event is triggered.
  • Fill in the trigger criteria based on the type selected: Email Trigger Criteria | File System Trigger Criteria | Time Trigger Criteria

Email Trigger Criteria

You can specify the email trigger criteria using the following fields.

FieldDescription
Server TypeSpecify the email server type. Available Options: POP3 or IMAP
Server HostSpecify the email server hostname or URL
PortSpecify the email server listening port number
Email AddressSpecify the login email account
PasswordSpecify the login email app password.
Allow Untrusted CertificateCheck this box if you want to allow untrusted certificates for email
Require SSLCheck this box if the email server utilizes SSL for communication
Incoming Email Filter OptionsYou can specify a filter on the following email fields.
  • Sender: filter emails based on the sender email account
  • Subject Contains: filter emails if the subject field contains the specified text
  • Sent Since: filter emails based on the date received starting from provided value
  • Sent Before: filter emails based on the date received before provided value
Message Polling IntervalSpecify the time interval in minutes to check emails on the Server.

Filesystem Trigger Criteria

You can specify the filesystem trigger criteria using the following fields.

FieldDescription
Folder To MonitorSpecify the folder to monitor. You can either specify the local filesystem path or the network path.
For example: C:\MyMonitorFolder or \\file-server\MyMonitorFolder
Ensure that the monitored folder has the appropriate permissions.
FilterYou can specify the wildcard filter if you want to trigger based on certain file types only.
For example, specifying *.pdf here would trigger only when a PDF file is either Created/Modified/Deleted/Renamed under monitored folder(s)
Include SubfoldersCheck this box if you want to monitor all the nested folders under the specified Folder To Monitor
Events To MonitorCheck the required events to monitor. You have the following options:
  • Created: Check this if you want to activate the Trigger whenever you create, copy, or move a file inside a specified monitor folder(s)
  • Modified: Check this if you want to activate the Trigger whenever a file inside a specified monitor folder(s) gets modified
  • Deleted: Check this if you want to activate the Trigger whenever a file gets deleted inside a monitored folder(s)
  • Renamed: Check this if you want to activate the Trigger whenever a file gets renamed inside a monitored folder(s)
  • Folder Permissions

    For a file system trigger to work, the monitored folder should have at least the following three permissions for the user monitoring

    • read,
    • read & execute
    • list folder contents.

    info
    • The User here refers to the Windows User of the system under which the IntelliAppZ Host Service is configured to run. By default, this would be System Account.
    • Locate the permissions by right-clicking on the trigger folder and choosing the properties. In the properties dialog, go to the Security tab. Provide the appropriate permission to the User.

    Time Trigger Criteria

    You can specify the time trigger criteria using the following fields.

    Schedule Types

    Schedule TypeDescription
    DailyUse this schedule type to trigger the IntelliAppZ execution on one or more specified schedule(s) daily
    Specific DatesUse this schedule type to trigger the IntelliAppZ execution on one or more specified schedule(s) on all the date(s) specified
    WeeklyUse this schedule type to trigger the IntelliAppZ on one or more specified schedule(s) on all the selected day(s) of the week
    MonthlyUse this schedule type to trigger the IntelliAppZ on one or more specified schedule(s) on all the selected day(s) of the week within the specified month(s)
    RecurringUse this schedule type to trigger the IntelliAppZ repeatedly on the specified time interval

    Edit Settings

    When you execute IntelliAppZ manually by clicking on Run button inside AppZ Box, it will execute the AppZ utilizing the By default, the IntelliAppZ execution jobs created by Trigger uses the App Settings configured inside AppZ Box. It might be necessary that those settings might need to be altered for Trigger based execution. If you want to change those settings only for this Trigger based execution, you can do that by clicking the Edit Settings button.

    note

    Each Trigger configured for an IntelliAppZ will hold the settings corresponding to that Trigger. It will inherit the settings from the App Settings configured inside AppZ Box by default.

    The Edit Settings UI is extended from App Settings to allow multiple options to users. Click on the vertical ellipses available at each row, which provides you with options available for users.

    OptionDescription
    Clear ValueClears the value set previously and allows you to reset a new value.
    Inherit from App SettingsInforms the app to take the value of the setting from the App Settings during the execution of the AppZ
    Bind Trigger ParameterBind the appropriate trigger parameter to the settings. The trigger parameters differ based on the type of Trigger. For more information: Binding Email Trigger Parameters
    Binding File System Trigger Parameters

    Specify the Log Level for the IntelliAppZ getting executed on this Trigger.

    Binding Email Trigger Parameters

    Email Trigger provides runtime parameters that specify the trigger event details. These details would be necessary for IntelliAppZ to handle its tasks. You can bind these runtime parameters to the corresponding input arguments of the IntelliAppZ. Here is the list of runtime parameters provided by Email Trigger.

    NameTypeDescription
    $Email_MessageSystem.Net.MailMessageThe email message received that triggered this IntelliAppZ. You can access details such as sender, subject, received date, body text, attachments, and any other information from this parameter.

    Binding File System Trigger Parameters

    File System Trigger provides runtime parameters that specify the trigger event details. These details would be necessary for IntelliAppZ to handle its tasks. You can bind these runtime parameters to the corresponding input arguments of the IntelliAppZ.

    Here is the list of runtime parameters provided by File System Trigger.

    NameTypeDescription
    $File_EventTypeSystem.IO.WatcherChangeTypesSpecifies the type of file event that triggered this IntelliAppZ execution. It can be one of the following values
    • Created(1): The file was created
    • Changed(4): The file was modified
    • Deleted(2): The file was deleted
    • Renamed(8): The file was renamed
    $File_NameSystem.StringSpecifies the Name of the file along with the file extension
    $File_PathSystem.StringSpecifies the full path, including the folder and file name with extension
    $File_FolderPathSystem.StringSpecifies the folder path where the file resides
    $File_ExtensionSystem.StringSpecifies the extension of the file
    $File_LengthSystem.Int64Specifies the size of the file
    $File_CreationTimeSystem.DateTimeSpecifies the creation date and time of the file
    $File_LastWriteTimeSystem.DateTimeSpecifies the modified date and time of the file
    $File_LastAccessTimeSystem.DateTimeSpecifies the last accessed date and time of the file
    $File_IsReadOnlySystem.BooleanSpecifies whether the file is read-only or not. A value of true indicates the file is read-only.
    note

    $File_CreationTime, $File_LastWriteTime, and $File_LastAccessTime store their DateTime values in UTC Standard format.

    tip

    Converting from UTC: To convert UTC to a specified Timezone, use the TimeZoneInfo.ConvertTimeFromUtc static method.

    tip

    Converting to UTC: To convert from other Timezone to UTC, use TimeZoneInfo.ConvertTimeToUtc static method.

    note

    You can create the TimeZoneInfo with the help of TimeZoneInfo.FindSystemTimeZoneById method where we need to specify the name of the Timezone we want, like India Standard Time, etc.

    Updating a Trigger

    • Open AppZ Box from Windows Tray.

    • Choose any of the IntelliAppZ and click on the vertical ellipses.

    • Click on the Triggers option to open the Triggers dialog. You can view the list of Triggers configured for IntelliAppZ.

    • Select the Trigger to be modified from the triggers list

    • Click on the Edit button from the Action Panel.

    • Update the details

    • Click on Ok

    Deleting a Trigger

    • Open AppZ Box from Windows Tray.

    • Choose any of the IntelliAppZ and click on the vertical ellipses.

    • Click on the Triggers option to open the Triggers dialog. You can view the list of Triggers configured for IntelliAppZ.

    • Select the Trigger to be modified from the triggers list

    • Click on Delete button from the Action Panel.

    Disabling a Trigger

    • Open AppZ Box from Windows Tray.

    • Choose any of the IntelliAppZ and click on the vertical ellipses.

    • Click on the Triggers option to open the Triggers dialog. You can view the list of Triggers configured for IntelliAppZ.

    • Select the Trigger to be modified from the triggers list

    • Select from Context-Menu > Disable option

    info

    You can always re-enable the disabled Trigger by checking on Enable option.