Suppose we have three applications A,B,C. Application B should run when application A completes and C should run when application B completes. Is it necessary to provide any trigger time to Application B, C?

Document ID : KB000016507
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Suppose we have three applications A,B,C. Application B should run when application A completes and C should run when application B completes. Is it necessary to provide any trigger time to Application B, C?

Environment:
CA Workload Automation DE (dSeries)
Answer:

It is not necessary to provide any trigger time to Application B and C.

You can use the execTrigger function to trigger the Event that run Application B and C.

Example:
In Application A:
1. Define the following JavaScript script

execTrigger('SCHEDMASTER.APPL_B');

2. Add a Link job as the last job in Application A.

3. In the Link job, specify the script defined in (1) as the JavaScript script to run at run time.

Repeat the steps 1-3 in Application B;
1. Define the following JavaScript script

execTrigger('SCHEDMASTER.APPL_C');

2. Add a Link job as the last job in Application B.

3. In the Link job, specify the script defined in (1) as the JavaScript script to run at run time.

The execTrigger function will trigger the Event that run Application B and C. Application B will run right after A completes and Application C will run right after B completes.

where;
SCHEDMASTER.APPL_B – indicates Application B Event name
SCHEDMASTER.APPL_C – indicates Application C Event name