Skip to main content
Version: v6.0.0

New Trigger

Trigger

Trigger, based on Process or Group, creates and manages a Task with custom configured running frequency and rules. Trigger types include: (1) Time Trigger; (2) Start Trigger; (3) Mail Trigger; (4) API interface Trigger.

Click "new" for the first time.

When there are Trigger on the page, the left side is the list of Trigger, and the right side is the details of a single Trigger.

Note: in the Trigger, you can set whether or not the Process or Group "runs in Clone".

New Time Trigger

Time Trigger refers to setting the trigger time of Process and running the specified Process or Group at the specified time.

Basic steps for creating a new Time Trigger:

  1. Enter the name of the Time Trigger (it cannot be changed after the initial save).

  2. Select Process. Support the selection of Local Process, Commander Process or Group.

  3. Run a custom expression once a week, once a month, or by cron.

  4. Set the start time, which refers to the planned start date.

  5. Set the end time, single choice: (1) never end; (2) Specify a time, that is, select an end date.

The details are as follows.

cycle operation

Create a new Time Trigger, as shown in the following figure.

Specify the time. The value range is any time from "00:00" to "23:59".

Repeat execution. The value range by hour is once every "0 ~ 59th" minute of "1,2,4,6,8,12" hours; The value range by minute is once every "1, 5, 10, 15 and 30" minutes.

everyday

When the execution frequency is "Daily", the execution rule is a single option: (1) specify the time; (2) To repeat execution, you need to set rules for repeated execution.

When you select repeat, an example is shown below.

weekly

When the execution frequency is "weekly", the execution rule is to select any one or more days from "Monday" to "Sunday", and set the specified time or repeated execution rules. An example is as follows.

When you select repeat, an example is shown below.

monthly

When the execution frequency is "monthly", you can select any one or more months from "January" to "December", and then specify any one or more days from "1" to "31" of each month. You can also specify the "last day of the current month" for intelligent matching, and finally select the specified time or repeat execution.

When you select repeat, an example is shown below.

When you select "last day of the month", an example is as follows.

Single run

When you select "single run", you only need to select a start time (mm / DD / yyyy - H / min). The example is as follows.

Custom cron expression

Custom cron expression refers to the rule execution plan based on the cron expression.

Among them, cron expression can be expressed by clicking "? On the page Use the question mark icon to view the description.

About cron expressions

The structure of cron expression is "time sharing day month week", and spaces are used to separate different information fields. For example, "5 * 1 * *" means "the fifth minute, the first day of every hour, the first day of every month and every week", that is, "the fifth minute of the first day of every month and every week".

Note: "second" and "year" are not included.

The allowed values and special symbols of cron expression are as follows:

fieldAllowable valueAllowed special characters
MinutesInteger from 0 to 59* And/
HoursInteger from 0 to 23* And/
Date (dayofmonth)Integer from 1 to 31 (the number of days corresponding to the month shall be considered)*And/
MonthInteger from 1 to 12* And/
DayOfWeekInteger from 0 to 6* And/

The special symbols allowed are as follows:

Symbolexplain
/Indicates that the trigger starts at the start time, and then triggers every fixed time. For example, using 5 / 20 in the minutes field means that it is triggered from the 5th minute, every 20 minutes, and at 5, 25, 45 and other time points.
|Represents any value that matches the field. If * is used in the minutes field, it means that an event will be triggered every minute

Note: special symbols such as "L, W" and "?, #" are not supported.

New Start Trigger

Start Trigger refers to triggering the operation of the specified Process or Group the next time the Attended client starts.

When creating a new one, select "Start Trigger", and the page is as shown in the following figure.

Matters needing attention:

When there are multiple Start Trigger, only one can be started. If necessary, the Start Trigger can select a Group, which contains multiple Process.

New Mail Trigger

Mail Trigger refers to monitoring the mail recipient server. When the newly received mail meets the mail matching rules, it will automatically trigger the operation of the specified Process or Group.

When creating a new one, select "Mail Trigger", and the page is as shown in the following figure.

Basic steps for creating a new Mail Trigger:

  1. Enter the name of the Mail Trigger (it cannot be changed after the initial save).

  2. Select Process. Support the selection of Local Process, Commander Process or Group.

  3. Select the receiving mailbox to listen to. If there is no receiving mailbox in the drop-down list box, you can click the "mailbox management" button on the right to add it.

  4. Set mail matching rules.

The details are as follows.

Mailbox Management

When adding a mailbox, you need to select the mail server recipient protocol type and encryption type, enter the recipient server address, port, mailbox account number, password (authorization code), and set the mail detection interval (1 ~ 9999 minutes). Click "test recipient server connection" to check whether it can be connected normally. After the connection is successful, the mailbox information can be saved.

Matching rules

The matching rules of the Mail Trigger include five sub matching rules: sender address, CC address, email subject, email body, and attachment. Each sub matching rule can select or (representing that any one of the matching conditions is met) and carry out combined matching.

Sub matching rules can create multiple rules, and the rules can be selected or combined (representing that multiple conditions need to be met at the same time).

Matching criteria include: include, exclude, equal to, not equal to, start equal, start not equal, end equal, end not equal, Regular Expression, empty, not empty.

New API interface Trigger

API interface Trigger means that when the third-party program on the Device installed with the Laiye Automation Worker calls the API interface, it automatically triggers the operation of the specified Process or Group.

Create a new API interface Trigger, enter a name and select a Process. The following URL address, HTTP request method and HTTP request Parameter All are generated automatically and cannot be edited manually. When the third-party program of the local Device is called, the URL address and HTTP request Parameter can be copied directly.

When creating a new one, select "Mail Trigger", and the page is as shown in the following figure.

Open Trigger status

Whether the Trigger is turned on is controlled by the sliding switch. As shown in the figure below.

Query Trigger

Real time query can be performed through the name of Trigger, the type of Trigger and the status of Trigger.

The status of Trigger is divided into expired, closed and opened. "Expired" means that the current time has exceeded the "end time" of the Trigger.

Delete Trigger

When the Trigger is in "off" status, click "delete" to delete it directly. When the Trigger is in the "on" state, it cannot be edited or deleted.

Clone settings

Whether the Process or Group specified by the Trigger is enabled for Clone operation. When the sliding switch of Clone operation is in the "on" state, when the Trigger triggers the operation of Process or Group, it will run through the "Clone operation" mode, which will not affect the user's operation on the current desktop.