Cisco Cisco Workload Automation 6.3 User Guide

Page of 412
187
 
Jobs and Job Groups
Job Procedures
Note: If your job has more than one dependency (file, job, variable or time), all dependencies must be satisfied for the 
job to run. It is possible for a dependency’s state to change from satisfied to unsatisfied. If this occurs, the job will only 
run when all dependencies have been satisfied at the same time.
Adding a Variable Dependency
You can make a job depend on the value of a user-defined variable. For example, Job A should only run when the variable
 
RunVar is equal to ten. For more information on variables, see 
To add a variable dependency to a job:
1.
From the Navigator pane, select Definitions>Jobs to display the Jobs pane. 
2.
Double-click the job or job group that you want to edit. 
3.
Click the Dependencies tab from the Job Definition dialog.
4.
Click Add and select Add Variable Dependency from the drop-down menu to display the Variable Dependency 
Definition
 dialog.
5.
If you are creating an intermaster dependency, select from the Master drop-down list a master to manage the 
variable dependency. Leave the default field selection, if you are not creating an intermaster dependency.
6.
In the Variable Name field, choose a variable from the drop-down menu that the job or job group will depend on.
7.
In the Operator field, select from the drop-down list an operator to make the appropriate comparison to the value 
of the variable.
8.
When text strings are used in comparison, “lower” letters of the alphabet are of greater value than “higher” letters. 
For example, Z > A. If the first letters of the string match, succeeding letters are used for comparison. For example, 
AZ > AA. The operation works similar to sorting strings in ascending order. Upper versus lower case is not 
considered (i.e., a=A, b=B, etc.).
9.
In the Variable Value field, enter the value of the variable required for the dependency to be met. You can also select 
from a list of systemjobuser-defined and public variables to which the variable should be compared. For 
example, suppose you are using a variable dependency to repeat a job a specific number of times, and this amount 
changes periodically. You can define how many times to repeat the job by changing its variable value instead of 
changing its job definition.
Adding Parameters to a Command 
You can specify command parameters that are appended to the command when the command is run. Consult the author 
of the script or program or refer to documentation about the command you are running for specific information on the 
type of command parameters you can pass to it.
You can enter fixed parameters, or you can use system, job, public, and user variables using the Variables button. At 
runtime, the current variable values will be used.
Note: Command parameters must be added to a job definition through the Command Parameters field on the of the 
Job Definition dialog. CWA will not recognize any parameters appended to a command in the Command field. For more 
information about the Command Parameters field or the Command field, see 
.
To add a parameter to a command:
1.
From the Navigator pane, select Definitions>Jobs to display the Jobs pane. 
2.
Double-click the job you want to edit to open its Job Definition dialog. 
3.
Click the Program tab.