Introduction

A number of Arguments and Environment Variables for jobs are provided from the Default Job Resource. The Job Resource carries frequently used settings.

The Default Job Resource is available for download

The Job Resource can be assigned any workflow or job, for details see JS7 - Job Resources

The Default Job Resource is not included with JS7 and is not updated/overwritten when updating JS7 products. The Job Resource is an example for frequently used settings.

Users are free to add individual settings to their needs.

Job Resource: Default

The Job Resource includes

  • Arguments for use with Java jobs,
  • Environment Variables for use with Shell jobs.

Both Arguments and Environment Variables hold the same values and are used depending on the job type for which the Job Resource is used.


CategoryArgumentEnvironment VariableDescriptionDefault Value
Controllerjs7ControllerIdJS7_CONTROLLER_IDIdentification of a Controller as specified during initial operation.n/a





Inventoryjs7JobNameJS7_JOB_NAMEThe name of the job as specified with the workflow configuration.

js7OrderIdJS7_ORDER_IDThe order identification as returned when creating an order.

js7WorkflowNameJS7_WORKFLOW_NAMEThe name of the workflow.

js7WorkflowLabelJS7_WORKFLOW_LABELThe label assigned the workflow instruction for the job. Consider that the same job can be used a number of times in a workflow and that its assignment to an instruction is additionally specified by a label.

js7WorkflowPositionJS7_WORKFLOW_POSITIONThe indicator for the position of the order in the current workflow.





Run-timejs7JobExecutionCountJS7_JOB_EXECUTION_COUNTA numeric indicator for the number of times a job is executed for a particular order. With the first execution of a job the value will start with 1 and will be incremented, for example, if a job is repeated due to a Retry Instruction or if an order is resumed by user intervention repeating the job in the workflow. The value is incremented for each execution of a job independently of the fact that this job might occur a number of times in different nodes of a workflow.





Scheduled Datejs7ScheduledDateJS7_SCHEDULED_DATE

The date for which an order was originally scheduled. The date format includes yyyy, MM, dd, HH, mm, ss and the time zone offset, e.g. 2020-12-03 09:13:59+0100

Scheduled Date

js7ScheduledYearJS7_SCHEDULED_YEARThe year of the scheduled date padded to 4 digits, e.g. 2020, 2021, 2022 etc.Year of Scheduled Date

js7ScheduledMonthJS7_SCHEDULED_MONTHThe month of the scheduled date padded to 2 digits, e.g. 01, ..., 12Month of Scheduled Date

js7ScheduledDayJS7_SCHEDULED_DAYThe day of the scheduled date padded to 2 digits, e.g. 01, ..., 31Day of Scheduled Date

js7ScheduledHourJS7_SCHEDULED_HOURThe hour of the scheduled date padded to 2 digits, e.g. 00, ..., 24Hour of Scheduled Date

js7ScheduledMinuteJS7_SCHEDULED_MINUTEThe minute of the scheduled date padded to 2 digits, e.g. 01, ..., 59Minute of Scheduled Date

js7ScheduledSecondJS7_SCHEDULED_SECONDThe second of the scheduled date padded to 2 digits, e.g. 01, ..., 59Second of Scheduled Date





Job Start Datejs7JobStartDateJS7_JOBSTART_DATEThe date at which the job was started. The date format includes yyyy, MM, dd, HH, mm, ss and the time zone offset, e.g. 2020-12-03 09:13:59+0100Start Date of the task for a shell job or Start Date of the processing of an order by a JVM job

js7JobStartYearJS7_JOBSTART_YEARThe year of the job start date padded to 2 digits, e.g. 2020, 2021, 2022 etc.Year of Job Start Date

js7JobStartMonthJS7_JOBSTART_MONTHThe month of the job start date padded to 2 digits, e.g. 01, ..., 12Month of Job Start Date

js7JobStartDayJS7_JOBSTART_DAYThe day of the job start date padded to 2 digits, e.g. 01, ..., 31Day of Job Start Date

js7JobStartHourJS7_JOBSTART_HOURThe hour of the job start date padded to 2 digits, e.g. 00, ..., 24Hour of Job Start Date

js7JobStartMinuteJS7_JOBSTART_MINUTEThe minute of the job start date padded to 2 digits, e.g. 01, ..., 59Minute of Job Start Date

js7JobStartSecondJS7_JOBSTART_SECONDThe second of the job start date padded to 2 digits, e.g. 01, ..., 59Second of Job Start Date

js7JobStartEpochMilliJS7_JOBSTART_EPOCHMILLIThe number of milliseconds since January 1st 1970 UTC until the job start dateEpoch milliseconds for Job Start Date


Explanation:

  • Note that the Scheduled Date is available only for orders that have been scheduled for a start time. 
    • This applies to scheduled orders created by JS7 - Schedules.
    • This also applies to Ad Hoc orders created from the JS7 - Workflows that are assigned a start time
    • This does not apply to Ad Hoc orders that are created for immediate start.
  • The above list of Arguments and Environment variable is an extract. The full list is available when downloading the Default Job Resource.

Further Resources


  • No labels