Using variables in Workload Broker jobs
This section explains how to define and use variables in jobs for additional flexibility.
Dynamic workload broker supports the use of variables in jobs for additional flexibility. You can assign values to the variables or leave them blank, so that you can define the value when the job is submitted.
When you define jobs that will be processed through dynamic scheduling, you can include variables that can be used at run time to assign a value or override the variables defined in the JSDL job definition.
You define the variables
in the Task String section of the HCL Workload Automation job,
as described in the following example:
jobName -var var1Name=var1Value,…,varNName=varNValue
To
define variables in the HCL Workload Automation job,
perform the following steps:
- Create a JSDL job definition using the Job Brokering Definition Console.
- Define the variables for the job. For example, you can define the memory variable to specify the amount of memory required for the job to run.
- Move to the Resources tab, Hardware Requirements section and type the name of the variable in the Exact value field in the Physical Memory section. When the job is submitted, the value assigned to the memory variable defines the amount of physical memory.
- Save the job definition in the Job Repository database.
- Create a job to be submitted in HCL Workload Automation.
This job contains the reference to the job in HCL Workload Automation created
in step 1. Define the HCL Workload Automation job
as follows:
- In the Dynamic Workload Console, from the navigation bar, click .
- Select New > Job Definition > Cloud > Workload Broker.
- In the General tab, in the Workstation field specify the workload broker workstation.
- In the Task tab, in the Workload Broker job name field specify the name of the JSDL job definition you created in step 1.
- Add the HCL Workload Automation job to a job stream.
- Submit or schedule the HCL Workload Automation job using either the Dynamic Workload Console or conman.
- After any existing dependencies are resolved, the master domain manager submits the HCL Workload Automation job to HCL Workload Automation via the workload broker workstation.
- The workload broker workstation identifies the job definition to be submitted based on the information on the Task String section of the HCL Workload Automation job. It also creates an alias which contains the association with the job.
- The job definition is submitted to HCL Workload Automation with the value specified for the memory variable.
- Dynamic workload broker manages and monitors the whole job lifecycle.
- Dynamic workload broker returns status information on the job to the workload broker workstation, which communicates it to the Master Domain Manager. The job status is mapped to the HCL Workload Automation status as described in Status mapping between Dynamic workload broker and HCL Workload Automation.