...
The JobScheduler's next_state (true), error_state (false) and define the default behavior of the job chain as described above.
XML commands such as add_order commands and modify_job can also be used to provide a limited control of work flow within a job chain (see How to configure the handling of exit codes by jobs and the JobScheduler <job_ chain_node.job_chain> Element reference). However, these commands are job-specific and will be applied every time the job is called, limiting the extent to which the job can be reused. For more information see:
- the How to configure the handling of exit codes by jobs article
- the JobScheduler <job_chain_node.job_chain> Element reference
Feature comparison
The implementation of return_codes is specified for a job chain node and is part of the job chain object. The implementation of of on_return_codes is therefore independent of the job specified for a node and can be used more flexibly than next_state, error_state and commands such as add_order.
Example: Starting an order and skipping nodes according to the return code returned by a job chain node
...