Passing job properties from one job to another in the same job stream instance
The job properties that you can export from one dynamic job to a successive job
in the same job stream instance depend on the job type you are defining. To add a job property
within another successor job definition, to have it resolved locally on the agent at run time, use
the following
syntax:
${job:<JOB_NAME>.<property_name>}
where
<JOB_NAME> is the name value or alias name value of the job from which you are
exporting the property values and <property_name> is the property that you are
referring to. The <property_name> value is case insensitive.Only some job types can pass property values
to other successor jobs. The following types of job can export variables:
- IBM InfoSphere DataStage jobs
- Table 1 shows the list of properties that you can pass from one IBM InfoSphere DataStage job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use. For more information about IBM InfoSphere DataStage jobs, see Scheduling Applications with HCL Workload Automation.
- Shadow jobs
- Table 2 shows the list of properties that you can pass from one shadow job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- OSLC jobs
- Table 3 shows the list of properties that you can pass from one OSLC job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- IBM WebSphere MQ jobs
- Table 4 shows the list of properties that you can pass from one IBM WebSphere MQ job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- IBM Sterling Connect:Direct jobs
- Table 5 shows the list of properties that you can pass from one IBM Sterling Connect:Direct job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Salesforce jobs
- Table 6 shows the list of properties that you can pass from one Salesforce job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- SAP BusinessObjects BI jobs
- Table 7 shows the list of properties that you can pass from one SAP BusinessObjects BI job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Oracle E-Business Suite jobs
- Table 8 shows the list of properties that you can pass from one Oracle E-Business Suite job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- File transfer jobs
- Table 9 shows
the list of properties that you can pass from one file transfer job
to another and indicates the mapping between the Extra information properties
of the job and the properties that you can use.
Since you can use wildcards to specify a partial name condition, you can transfer more than one file within the same job, and you have one full set of properties for each transferred file.
- Hadoop Map Reduce jobs
- Table 10 shows the list of properties that you can pass from one Hadoop Map Reduce job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Hadoop Distributed File System jobs
- Table 11 shows the list of properties that you can pass from one Hadoop Distributed File System job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- IBM BigInsights jobs
- Table 12 shows the list of properties that you can pass from one IBM BigInsights Application job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- JSR 352 Java Batch jobs
- Table 13 shows the list of properties that you can pass from one IBM BigInsights Application job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- MQTT jobs
- Table 14 shows the list of properties that you can pass from one MQTT job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Apache Oozie jobs
- Table 15 shows the list of properties that you can pass from one Apache Oozie job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Cloudant jobs
- Table 16 shows the list of properties that you can pass from one Cloudant job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- OpenWhisk jobs
- Table 17 shows the list of properties that you can pass from one OpenWhisk job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Job Management jobs
- Table 18 shows the list of properties that you can pass from one Job Management job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Job Stream Submission jobs
- Table 19 shows the list of properties that you can pass from one Job Stream Submission job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Database jobs
- Table 20 shows the list of properties that you can pass from one database job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Apache Spark jobs
- Table 21 shows the list of properties that you can pass from one database job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Amazon EC2 jobs
- Table 22 shows the list of properties that you can pass from one database job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- IBM SoftLayer jobs
- Table 23 shows the list of properties that you can pass from one database job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
- Microsoft Azure jobs
- Table 24 shows the list of properties that you can pass from one database job to another and indicates the mapping between the Extra information properties of the job and the properties that you can use.
Example
The following example demonstrates how specifying variables in different formats allows for
variables to have different values because they are resolved at different times. It also
demonstrates how variables can be passed from job to job in a job stream instance. The
WIN92MAS_REW#VP_JS_141800058 job stream contains JOBA
and JOBB jobs. The JOBB executable job references the
following properties of the JOBA shadow job:
- ScheduledTime
- dJobNAme
- dJobStreamName
- dJobStreamWorkstation
SCHEDULE WIN92MAS_REW#VP_JS_141800058
:
WIN92MAS_REW#JOBA
TASK
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:dshadow=
"http://www.ibm.com/xmlns/prod/scheduling/1.0/dshadow" xmlns:
jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl">
<jsdl:application name="distributedShadowJob">
<dshadow:DistributedShadowJob>
<dshadow:JobStream>VPJS_141800058</dshadow:JobStream>
<dshadow:Workstation>nc125133</dshadow:Workstation>
<dshadow:Job>VP_JOBMON_141800058</dshadow:Job>
<dshadow:matching>
<dshadow:previous/>
</dshadow:matching>
</dshadow:DistributedShadowJob>
</jsdl:application>
</jsdl:jobDefinition>
DESCRIPTION "Sample Job Definition for DISTRIBUTED environment"
RECOVERY STOP
NC125133#JOBB
TASK
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:XMLSchema=
"http://www.w3.org/2001/XMLSchema" xmlns:jsdl="http://www.ibm.com/xmlns/
prod/scheduling/1.0/jsdl" xmlns:
jsdle="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdle"
XMLSchema:text="resolveVariableTable" name="executable">
<jsdl:application name="executable">
<jsdle:executable>
<jsdle:script>
echo ScheduledTime:${job:JOBA.ScheduledTime}
echo JobName:${job:JOBA.dJobName}
echo JobStreamName:${job:JOBA.dJobStreamName}
echo JobStreamWorkstation:${job:JOBA.dJobStreamWorkstation}
</jsdle:script>
</jsdle:executable>
</jsdl:application>
</jsdl:jobDefinition>
DESCRIPTION "Added by composer."
RECOVERY STOP
FOLLOWS JOBA
END
HCL Workload Automation uses the IBM InfoSphere DataStage jobs properties as is. The IBM InfoSphere DataStage jobs Extra Information property values depend on the locale of the workstation where the IBM InfoSphere DataStage is installed. Table 1 shows the IBM InfoSphere DataStage job Extra Information property values for a workstation with the locale set to en_US.
IBM InfoSphere DataStage Job properties that can be passed in another job definition | IBM InfoSphere DataStage job Extra Information properties |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shadow job properties that can be passed in another job definition | Shadow job Extra Information properties |
---|---|
|
|
|
|
|
|
|
|
OSLC job properties that can be passed to another job | OSLC job Extra Information properties |
---|---|
|
|
IBM WebSphere MQ properties that can be passed in another job definition | IBM WebSphere MQ job Extra Information properties |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IBM Sterling Connect:Direct properties that can be passed in another job definition | IBM Sterling Connect:Direct job Extra Information properties |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Salesforce properties that can be passed in another job definition | Salesforce job Extra Information properties |
---|---|
|
|
|
|
|
|
|
|
|
|
SAP BusinessObjects BI properties that can be passed in another job definition | SAP BusinessObjects BI job Extra Information properties |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Oracle E-Business Suite properties that can be passed in another job definition | Oracle E-Business Suite job Extra Information properties |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
For the file number counter, the properties that can be passed in another job definition (a set of properties for each transferred file) | For the file number counter, the job Extra Information properties (a set of properties for each transferred file) |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Only one value for each job. |
Hadoop Map Reduce job properties that can be passed to another job | Label |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Hadoop Distributed File System job properties that can be passed to another job | Label |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note: The ${job:<JOB_NAME>.RemoteFile} and ${job:<JOB_NAME>.LocalFile} properties
apply to all actions in the Hadoop Distributed File System job.
The remaining properties apply to the Wait for a file action
only.
IBM BigInsights job properties that can be passed to another job | Label |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSR 352 Java Batch job properties that can be passed to another job | Label |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following variables are exported for each step of the job: | |
|
|
|
|
MQTT job properties that can be passed to another job | Label |
---|---|
|
|
Apache Oozie job properties that can be passed to another job | Label |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cloudant job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.size} | Database Size |
${job:<JOB_NAME>.document} | Document ID |
${job:<JOB_NAME>.rev} | Document Revision |
${job:<JOB_NAME>.source} | Source Database |
${job:<JOB_NAME>.target} | Target Database |
${job:<JOB_NAME>.replication_id} | Replication ID |
${job:<JOB_NAME>.attachName} | Attachment Name |
OpenWhisk job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.actionName} | Action Name |
${job:<JOB_NAME>.triggerName} | trigger Name |
${job:<JOB_NAME>.namespace} | Namespace |
${job:<JOB_NAME>.operationType} | Operation Type |
${job:<JOB_NAME>.parameters} | Parameters |
${job:<JOB_NAME>.success} | Success |
${job:<JOB_NAME>.status} | Status |
${job:<JOB_NAME>.activationId} | Activation ID |
Job Management job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>. jobName} | jobname |
${job:<JOB_NAME>. jobstreamId} | jobstreamid |
${job:<JOB_NAME>.workstation} | workstation |
${job:<JOB_NAME>.user} | userName |
${job:<JOB_NAME>.url} | Url |
Job Stream Submission job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.Url} | Url |
${job:<JOB_NAME>.workstation} | Workstation |
${job:<JOB_NAME>. jobstreamname} | Job Stream Name |
${job:<JOB_NAME>.datetime} | Earliest Start DateTime |
${job:<JOB_NAME>.variabletablename} | Variable Table Name |
${job:<JOB_NAME>.variablelistValues} | Variable Table Values {"key1":value1,"key2":value2,...} |
Database job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.NumberOfRows} | Number of rows |
Apache Spark job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.sparkmaster} | Master URL |
Amazon EC2 job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.instancename} | Instance name |
${job:<JOB_NAME>.action} | Action |
${job:<JOB_NAME>.region} | Region |
${job:<JOB_NAME>.imagename} | AMI name |
${job:<JOB_NAME>.instanceIp} | Instance IP address |
IBM SoftLayer job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.action} | Action |
${job:<JOB_NAME>.username} | User name |
${job:<JOB_NAME>.virtualServerName} | Virtual server name |
${job:<JOB_NAME>.hostname} | Virtual server hostname |
${job:<JOB_NAME>.virtualServerId} | Virtual server identifier |
Microsoft Azure job properties that can be passed to another job | Label |
---|---|
${job:<JOB_NAME>.virtualmachinename} | Virtual machine name |
${job:<JOB_NAME>.action} | Action |
${job:<JOB_NAME>.client} | Client |
${job:<JOB_NAME>.imagename} | Image name |