Admin Job Chains
Job chains can be viewed and managed from within the Jobs tab.
Job Chain Listing
Existing job chains can be viewed by clicking the View Chaining link in the navigation bar below the tabs. You may optionally filter by selecting one or more source jobs to see which jobs are chained from those selected jobs. All or None links at the top of the selector allow you to easily make multiple selections or deselections. The selector title will indicate how many options are chosen at a given time. Click Reload to refresh the results table.
Clicking the link Chain Jobs links in the table will bring you to the Job Chain edit screen.
To create a new Job Chain, click the New Job Chain link in the top left of the results table, or New Job Chain in the navigation bar from any place underneath the Jobs tab.
Adding or Updating a Job Chain
When adding or updating a job chain, a source and target job must be selected, along with at least one trigger state.
The source job indicates the job whose completion will trigger the target job to be run.
The trigger states indicate which source job termination states will trigger the target job run. Default trigger states are selected when creating a new chain since they are the commonly used options, but they may be changed to whatever is required.
A schedule is optional and can be specified to restrict which times the target job may be spawned - if the source job terminates at a time that doesn't match the schedule, the target job will not be created.
When Conditional is selected as a trigger state, you must specify one or more conditions. In addition, only one of the Completed and Conditional state may be selected. See the Conditional Chaining Configuration below for more details on saving Conditional triggers.
Note: The question mark icon that appears next to the form title indicates inline help. Click on the icon to see help related to the current page.
Conditional Chaining Configuration
As of Release 1.4, conditional chaining is supported. Conditional triggers are similar to the Completed triggers, in that they only fire when a job successfully completes. The conditional state, however, let's you indicate various output conditions which determine if the chain is triggered.
If you select the Conditional Trigger state, the Result Conditions area will be revealed below the state selector. In this section, you must specify at least one condition which is used to determine if the chain will fire. Each condition must be matched for the chain to be triggered. See Job chains for complete details on how conditional chaining works.
Each condition has the following fields, all of which are mandatory when presented: Variable Name, Operator, and Value. Note that the Value field is not shown for the Exists/Not Exists operators, and supports multiple values for the In/Not In operators.
To add an extra condition, click the Add Condition link above the Save button. To remove an unwanted condition, click the Remove Condition link to the right of that condition.
When using In/Not In operators, you may specify one or more values. To add a value, click the Add Value link to the right of the value field. To remove an unwanted value, click the Remove link right next to that value.
Always ensure you click the Save button to confirm your changes and validate your conditions.
Once you've completed your desired changes, click the Save button at the bottom of the form or the button in the left navigation area. You will either receive a save confirmation message as below, or a validation error message.