Show TOC

Procedure documentationCreating Job Chains with Sequential Jobs Locate this document in the navigation structure

 

Job chains with sequential jobs are known as jobs with multiple steps in SAP terminology. The main advantage over the core CCMS functionality is that steps can be skipped or restarted based on the final status of a step using Status Handlers. Job chains have two levels of status handlers, on the step level and on the job chain level.

  • When no status handler is found on the step level, the status handler on the job chain level is used.

  • When there is none on the job chain level either, then the default behavior is used.

The default behavior for job chains is the following:

  • When a step has reached status Completed the following step is started or, when this is the final step the chain status is set to Completed.

  • When a step has reached status Error the job chain status is set to status Error.

  • When a step has been canceled the job chain status is set to Error.

Recommendation Recommendation

It is better to keep the amount of steps in a job chain to a minimum for performance reasons as each step requires an additional job.

End of the recommendation.

Procedure

  1. Choose   Definitions → Job Chains   in the Navigation bar.

  2. Choose New from the context menu.

  3. Choose the Job Definition tab and fill in a name for the job chain.

  4. On the Job Chain tab, choose the name of the job chain.

  5. Choose Add Step from the context menu, notice that a new step with the caption Step 1 has been added.

  6. Choose Add Job from the context menu of Step 1.

  7. Enter the part of the job definition name into the Job Definition field.

  8. Choose the desired job definition out of the list of available job definitions.

  9. Under Scheduling, add a parameter value for Queue.

  10. Perform actions 5 to 10 of this procedure for each required step.

  11. Choose Save and Close.