Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Node properties include the list of default arguments that are available from the respective job node:



  • The use case for node arguments includes using the same job a number of times in a given workflow with different parameter sets.
    • Assume that the job requires the same parameter names to be used.
    • However, for each occurrence of the job in a workflow different parameter values should be used.
  • In this situation node arguments can be introduced that specify variables with the same name but with different values for each occurrence of a job in the workflow.
    • Names of node arguments should not interfere with order variables as otherwise the node argument values will be overwritten by order variable values.
    • For shell jobs node arguments have to be mapped to environment variables similarly to order variables. 
    • For JVM jobs node arguments are available from Java objects exposed to the job implementation.

Error Handling

The Job Instruction provides capabilities to track job errors. The Job Instruction 

...

  • A job can be added to a JS7 - Try / Catch Instruction block to execute follow-up jobs from a Catch block in case of job failure.
  • A job can be added to a JS7 - Retry Instruction block to retry execution of one or more jobs in case that a specific job fails.
  • A job can be added to a JS7 - If Instruction to check the job's return code or return values and to decide about further processing such as failing or finishing the underlying order or continuing with a different set of jobs in the workflow. This particularly applies in a situation when a job terminates with a non-zero return code that is not considered an error but e.g. an informational warning or in a situation when return codes are used to control workflow execution, e.g. indicating by specific return codes that successor jobs should be skipped. The If Instruction is the perfect means to handle this situation.

How to create references of the same job in a workflow

The references of the same job in a workflow means that using the same job in the workflow multiple times. For example, if the same job needs to be executed in a workflow two times then it can be referenced twice in a workflow. Such an operation can be handled by creating different Labels on the job. As the labels assign a name to the workflow node that is assigned the job. A job can be resued using multiple label names and the label name is unique across the workflow.

For example, The workflow contains 1 job named job1. Then use the name of the job as job1 only and assign different labels to different nodes. As in the example, the names of the node used are job1 and job1-copy. Now any changes applied to job job1 will be applied to both the nodes in the workflow as both the labels point to the same job name.

Image Added