Cisco Cisco Workload Automation 6.3 User Guide

Page of 78
58
 
Creating Variable Dependencies
Creating a Repeating Job and Associating a Job Event
6.
Click OK at the Effective Date dialog.
Note: When you click OK at this dialog, the job group enters the production schedule, but nothing will run because there 
are no jobs associated with the job group yet. Since you can manually add the job group to the schedule later, clicking 
Cancel at this dialog is also acceptable.
Creating a Repeating Job and Associating a Job Event
To create a repeating job and associate a job event:
1.
In the Jobs pane, select the job group Gather Orders
 and click the Add Job button or right-click in the Jobs pane 
and choose Add Job from the context menu to display the Job Definition dialog.
2.
In the Job Name field, enter Gather_ Report.
3.
In the Command field, enter the full path to the Gather
 batch file. 
4.
Click the Schedule tab. 
5.
In the Repeats section, select the Run new occurrence every option. Click in the minutes field and enter 2
 (or use 
the up and down arrows) and click in the up to ___ times field and enter 5
6.
Click OK.
7.
Click OK in the Effective Date dialog.
8.
If the Gather Report job is not visible in the Jobs pane, expand the Gather Orders job group by clicking the expand 
icon to its left. 
The Gather Report job will run every two minutes for a total of five times, activating the Event Action Gather job 
event each time. Set Gather Var is tied to Event Action Gather and will increment by each time Gather Report 
runs. When Set Gather Var
 reaches 3, it will have fulfilled the conditions necessary to set off the next job, which we 
will define as Order Reports in 
 explains in general terms the interdependence of Gather Report (Job A), Set Gather Var (a 
user-defined variable), and Order Reports (Job B).
9.
Right-click Gather Report
 and from the context menu select Edit Job/Group.
10.
Click the Job Events tab. 
11.
Click Insert to display the Select Job Event dialog.
12.
Select the Event Action Gather
 event.
13.
Click OK. The job event displays in the Events field.
14.
Click OK to close the Job Definition dialog.
15.
Click OK
 to confirm the Effective Date dialog.
Every time the Gather Report job completes normally, the variable Gather Orders will be incremented by 1.
Creating a Job Dependent on the Gather Orders Variable
To create a job dependent on the Gather Orders variable:
1.
Select the job group Gather Orders and click the Add Job button or right-click and select Add Job from the context 
menu to display the Job Definition dialog.