Tutorial - Launching a Task Every Two Hours During Workday
In this exercise, we will define a recurring task that runs every two hours, limited to business hours – Monday through Friday from 9 a.m. to 5 p.m. We will also instruct Universal Controller not to run the task on holidays.
Also, if the task is still running two hours later when it is time to run the next task instance, the Controller will be instructed not to run the next instance.
Step 1 |
From the Automation Center navigation pane, select Triggers > Time Triggers. The Triggers list displays. |
---|---|
Step 2 |
Click the New button to display an empty Time Trigger Details. |
Step 3 |
In the Name field, enter stonebranch-timetrigger-02. |
Step 4 |
In the Description field, enter Run Every Two Hours During Business Hours Except Holidays. |
Step 5 |
In the Calendar field, select stonebranch-calendar-01 (created in the Launching a Task Every Monday Except Holidays tutorial). |
Step 6 |
In the Task(s) field, select stonebranch-timertask-01 (created in the Creating and Manually Launching a Simple Task tutorial). |
Step 7 |
Enable the Skip Trigger if Active field. This tells the Controller not to trigger the task if the previous instance of the task is still active. |
Step 8 |
In the Time Style field, select Time Interval and specify the following:
|
Step 9 |
Enable the Restrict Times field and specify the following:
|
Step 10 |
Specify that this trigger should run on weekdays only by selecting either:
|
Step 11 |
Enable the Special Restriction field and specify the following:
|
Step 12 |
Click the Save button. |
Step 13 |
Re-open stonebranch-timetrigger-02 and click the List Qualifying Times button. The Qualifying Times list displays the next scheduled 30 (by default) times when stonebranch-timetrigger-02 will launch stonebranch-timertask-01. |
For additional information, see: