Creating a task chain
You can chain your tasks in just any pattern. This example describes how to create a task chain that reloads the data in three different apps, but task chaining is also available for external program tasks and distribution tasks.
- Task 1 reloads app A, every hour.
- Task 2 reloads app B, daily.
- Task 3 reloads app C, if Task 1 and Task 2 is executed within 120 minutes.
Do the following:
-
Create a new reload task for app A:
-
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.
-
Click Create new in the action bar.
The Reload task edit page is displayed.
-
Type Task 1 in the Name field.
-
Click Select app in the App name field. In the dialog that opens double-click app A.
The dialog closes and the App name field displays app A.
- Leave the Execution properties as is.
-
Click Actions in the Triggers table heading and select Create new hourly trigger.
The trigger is added to the Triggers table and the start value for the trigger is set to 5 minutes from when it was created.
-
Click Apply.
Successfully added is displayed.
-
-
The next step is to create the reload task for app B:
-
Click Tasks in the selections panel to the left.
The Tasks overview is displayed.
-
Click Create new in the action bar.
The Reload task edit page is displayed.
-
Type Task 2 in the Name field.
-
Click Select app in the App name field. In the dialog that opens double-click app B.
The dialog closes and the App name field displays app B.
- Leave the Execution properties as is.
-
Click Actions in the Triggers table heading and select Create new daily trigger.
-
Double-click the trigger, set Time to start to 12:00 and click OK.
The dialog closes.
- Click Apply.
Successfully added is displayed.
-
-
The next step is to create the reload task for app C:
-
Click Tasks in the selections panel to the left.
The Tasks overview is displayed.
-
Click Create new in the action bar.
The Reload task edit page is displayed.
-
Type Task 3 in the Name field.
-
Click Select app in the App name field. In the dialog that opens double-click app C.
The dialog closes and the App name field displays app C.
- Leave the Execution properties as is.
-
Click Actions in the Triggers table heading and select Create new task event trigger.
The dialog Trigger - Start on other task opens.
- In the Trigger name field type, for example, My trigger.
- The trigger is Enabled by default.
- Set the Time constraint to 120 minutes.
- Click Add task; click the empty field that appears and then double-click Task 1 in the dialog that opens and keep Task successful in the drop-down.
- Click Add task; click the empty field that appears and then double-click Task 2 in the dialog that opens and keep Task successful in the drop-down.
-
Click OK.
The trigger dialog is closed.
- Click Apply.
Successfully added is displayed.
-
You now have created a task chain and the task is added to the task overview where you can click to view the task chain.