Specify multiple dependencies

A job, job array, or subflow can have dependencies on other jobs, job arrays, subflows, files, or dates and times. You can define these dependencies so that all of them must be met before the job can run, or you can define these dependencies so that only one of them needs to be met before the job can run.

Specify that all dependencies must be met

Use the AND link event to specify that all dependencies must be met.

Procedure

  1. Within a flow in Flow Editor, click the Insert LinkEvent - ’AND’ icon.
  2. Click the workspace in the location where you want to insert the AND event.

    The AND icon is inserted in your flow definition.

  3. Change to job dependency mode by clicking the Insert Dependency button.
  4. Draw a dependency line from the AND event to the work item that it triggers.
  5. Draw a dependency line from each work item that must precede the AND event to the AND event.
    Note: If you draw a second dependency line to any work item in the flow, an AND event is automatically created for you. Also, you can change an OR event into an AND event by double-clicking the OR event.

Example

The following flow definition illustrates a flow where J1, J2, and J3 must all be complete before J4 starts.The dependency arrows for J1, J2, and J3 connect to the AND link event for J4.

Specify that at least one dependency must be met

Use the OR link event to specify that at least one dependency must be met.

Procedure

  1. Within a flow in Flow Editor, click the Insert LinkEvent - ’OR’ icon.
  2. Click the workspace in the location where you want to insert the OR event.

    The OR icon is inserted in your flow definition.

  3. Change to job dependency mode by clicking the Insert Dependency button.
  4. Draw a dependency line from the OR event to the work item that it triggers.
  5. Draw a dependency line from each work item that must precede the OR event to the OR event.
    Note: You can change an AND event into an OR event by double-clicking the AND event.

Example

The following flow definition illustrates a flow where only one of J1, J2, or J3 needs to be complete before J4 starts.The dependency arrows for J1, J2, and J3 connect to the OR link event for J4.