Specifying multiple dependencies

A job (or 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

Procedure

  1. Change to AND link mode by clicking the Insert LinkEvent - ’AND’ button.
  2. Click in the workspace where you want to insert the AND link.
  3. Change to job dependency mode by clicking the Insert Dependency button.
  4. Draw a dependency line from the AND link to the work item it triggers.
  5. Draw a dependency line from each work item that must precede the AND link to the AND link.
    Note:

    If you draw a second dependency line to any work item in the flow, an AND link is automatically created for you. Also, you can change an OR link into an AND link by double-clicking on the OR icon.

Specify that at least one dependency must be met

Procedure

  1. Change to OR link mode by clicking the Insert LinkEvent - ’OR’ button.
  2. Click in the workspace where you want to insert the OR link.
  3. Change to job dependency mode by clicking the Insert Dependency button.
  4. Draw a dependency line from the OR link to the work item it triggers.
  5. Draw a dependency line from each work item that must precede the OR link to the OR link.
  6. Consider specifying an exit condition for the flow: when you specify an OR link, it is possible for some predecessor jobs to the OR link to still be running when the remainder of the flow is finished.
    Tip:

    You can change an AND link into an OR link by double-clicking on the AND icon.