HCL Workload Automation, Version 9.4

Scenario: Creating a job definition using a logical resource group

In this scenario, the target for the job is determined by several requirements defined as logical resources. A resource group has been created to include all the logical resources required for the job.

About this task

To create a job definition that does this, perform the following steps:


  1. In the Job Brokering Definition Console selectFile > New > Job brokering definition and create a new job definition named loggroupjob. The job definition opens at the Overview page with the job name assigned.
  2. Open the Application page and define the required information for the application that the job is to run.
  3. Open the Related Resources page and create a requirement for a logical resource, as follows:
    1. In the Resource Requirements pane, click Add. The Resource Requirement Details dialog box is displayed.
    2. In the ID field, specify a meaningful ID, in this example, loggroup.
  4. Open the Resources page and create a relationship to the resource requirement, as follows:
    1. Select the Advanced Requirements tab.
    2. In the Relationships pane, click Add. The Relationship Details dialog box is displayed.
    3. In the Type menu, select Associates with.
    4. In the Target menu, select the resource requirement that you created and click OK.
  5. Switch back to the Related Resources page and add the logical resource group as follows:
    1. In the Resource Group pane, click Add. The Resource Group Details dialog box is displayed.
    2. In the Group Name field, type the resource group name, as defined in the Dynamic Workload Console.
  6. Select File > Save to save the job definition file.


The JSDL file created for this scenario has the following syntax:
<jsdl:jobDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.abc.com/xmlns/prod/scheduling/1.0/jsdl JSDL.xsd" 
description="A job whose requirements are defined by a number of logical 
resources. " name="loggroupjob">
  <jsdl:application name="executable">
    <jsdle:executable path="/opt/myExecutable">
    <jsdl:relationship target="loggroup" type="AssociatesWith"/>
  <jsdl:relatedResources id="loggroup" type="LogicalResource">
    <jsdl:group name="logresgroup"/>