Home > Cloud Cruiser 3 > Administering > Running jobs > Job arguments

Job arguments

Table of contents
No headers

Job arguments are run-time variables passed to a job from the command line or the Job Maintenance page. Arguments are passed as name-value pairs and can be referenced from anywhere in the job XML file.

Example: to pass job arguments named usageYMD and count, you could run a job with the following command:

# ccjob -f demodata usageYMD=20110227 count=10000

To reference an argument’s value within the job, use the syntax ${param.<argumentName>}. Continuing the previous example:

<batch:job id="demodata" parent="ccjob">
  <batch:step id="genCCR">
    <batch:tasklet>
      <bean class="com.cloudcruiser.ccrgenerator.batch.CCRecordGeneratorTasklet">
        <property name="count" value="${param.count}"/>
        <property name="output" ref="generatedFile"/>
        <property name="usageYMD" value="${param.usageYMD}"/>
      </bean>
    </batch:tasklet>
  </batch:step>
</batch:job>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP