Cisco Cisco Workload Automation 6.3 User Guide
265
Variables
Variables Interface
Event Owner
Action Name
Action Owner
User-Defined Variables
You can define your own variables to use as command parameters or in action message text.
By using the same user-defined variable in multiple job and action definitions, you can update all the jobs and actions by
just updating the variable you created.
just updating the variable you created.
Public Variables
You can declare any user-defined variable as public. Any CWA user can refer to a public variable. For example, you could
use public variables to refer to key employees by their title. For example, if you had a public variable named
use public variables to refer to key employees by their title. For example, if you had a public variable named
Payroll
Manager
which refers to the name of the Payroll Manager, you would update the variable definition when a new
employee takes that position, and all instances of
Payroll Manager
would be updated.
Dependencies Variables
You can use variables as dependencies to prevent jobs from running until their value qualifies. Variable dependencies are
defined as a part of a job or job group definition. In the definition, you specify the value a variable must have before the
job or job group can run. You can change variables manually to satisfy dependencies or they can change automatically
when a job event or system event triggers a variable action. Thus, you can use variables to trigger the start of a job based
on any system or job event.
defined as a part of a job or job group definition. In the definition, you specify the value a variable must have before the
job or job group can run. You can change variables manually to satisfy dependencies or they can change automatically
when a job event or system event triggers a variable action. Thus, you can use variables to trigger the start of a job based
on any system or job event.
For example, assume Job A needs to run 100 times, and when it runs, it saves a file. Job A also increments a variable
from 1 to 10. When the variable reaches 10, Job B starts, resets the variable to 1, and transfers the files created by Job
A to another location, freeing up disk space. CWA repeats this process 10 times until Job A has run 100 times.
from 1 to 10. When the variable reaches 10, Job B starts, resets the variable to 1, and transfers the files created by Job
A to another location, freeing up disk space. CWA repeats this process 10 times until Job A has run 100 times.
Variables Interface
These topics describe the Variables interface: