Triggers
You use triggers to determine when tasks are to be executed. There are two types of triggers:
- Scheduled triggers
- Task event triggers
Scheduled triggers
With a scheduled trigger, you can schedule the number of task executions to be performed and the execution frequency. The number of task executions ranges from one to infinity, and the frequency ranges from hourly to monthly. You can apply scheduled triggers to reload tasks, preload tasks, and user sync tasks.
Example:
You want to create a scheduled trigger for a user sync task. The trigger is to be activated once every month.
Do the following:
-
Open the QMC: https://<QPS server name>/qmc
-
Select Tasks on the QMC start page or from the Start drop-down menu to display the overview.
-
Select the user sync task that you want to create a trigger for and click Edit.
-
Under Associated items, select Triggers.
-
Click Create associated trigger.
The Trigger - Start on schedule window is opened.
-
Fill in the trigger name and the start time and date.
-
For Schedule, select Monthly.
-
Select a date for the trigger and clear any other date selection.
Information noteTo ensure that a trigger is repeated every month, you should not select a date later than the 28th. -
If needed, set the end date and time. By default, there is no end date.
Task event triggers
With a task event trigger you set one or more conditions for when the trigger is activated. To create a condition, you select a task and the status of that task, either task successful or task failed. If that condition is met, as well as any other additional conditions, the trigger activates a reload of the app. Task event triggers can only be applied to reload tasks and preload tasks.
Example:
You have two apps that are closely related, and to make sure that the apps are in sync, the second app is only to reload if the first app has the status task successful.
Do the following:
-
Open the QMC: https://<QPS server name>/qmc
-
Select Tasks on the QMC start page or from the Start drop-down menu to display the overview.
-
Select the task that you want to create a trigger for and click Edit.
-
In the Triggers heading bar, click Actions.
A popup is displayed with different trigger options.
-
Select Create new task event trigger.
The Trigger - Start on task event window is opened.
-
Fill in the trigger name and the time constraint.
-
Click Add task.
-
Click the Task field and select the task that the trigger is dependent on.
-
Select the status for the task, in this case Task successful.
The trigger will only be activated if the task has the status Task successful.
-
Click OK.
The new trigger is added to the triggers list.
-
Click Apply.