External Dependencies in Workflows

An external dependency in a Workflow is the representation of an external task that must end with s specific status for one or more tasks in the Workflow to start processing. This means that external dependencies are predecessors of one or more tasks within the Workflow. To differentiate external dependencies from the rest of the tasks in the Workflow, their task boxes have dotted lines.

After adding an external dependency and connecting it to its successor, you define the status that the external dependency must have for its successor to start running. There are two places where you can indicate the expected status of the external dependency:

You can define external dependencies in standard Workflows only.

This page includes the following:

Example

This example describes a simple scenario that illustrates the use of external dependencies:

To establish this dependency in WORKFLOW_B, you insert JOB_A1 as external dependency:

  1. Right-click anywhere on the Workflow editor and select Add Existing Object.
  2. On the dialog that opens up, select the object and activate the Insert as External Dependency checkbox at the bottom.
  3. The external task is displayed in the Workflow in the form of a dashed task box.
  4. Connect JOB_A1 to one o more tasks in the Workflow. In this example, it is connected to JOB_B1. JOB_A1 is the predecessor of JOB_B1. External tasks do not have predecessors:

    Screenshot showing WORKFLOW_A and WORKFLOW_B (without external dependency) as well as WORKFLOW_B with the external dependency.

  5. Select JOB_B1 and right-click to select Properties.
  6. Open the Time & Dependencies tab to configure the behavior of the dependency in this Workflow.

External Task Status

In the Process Monitoring perspective, while the Workflow is executing, JOB_A1 is displayed in different colors depending on its status:

If the external task blocks, the external dependency remains in a waiting status (blue). If you remove the block manually, the conditions of the external dependency are only fulfilled when the expected status in its properties is set either to ANY_OK_OR_UNBLOCKED or ENDED_OK_OR_UNBLOCKED. Otherwise, the external dependency remains in its waiting status.

Notes:

The status of an external task is retrieved through its execution data. No status is available in the following situations:

In either situation, your selection in the Check if the external task was activated with the same logical date as the workflow group does not show positive results and the Else action is applied.

External Dependency Status

The status of the external task is not the same as the status of the external dependency. An external dependency can only have one of the following status:

Best Practices

The system is designed to avoid overlapping situations. This means that an instance (an execution) of an external task is used in only one instance (execution) of the Workflow in which it is referred to as external dependency. Take this into account when configuring the period within which the external task must have ended with the desired status so that its successor in the Workflow can start. For more information about how to configure this period, see Execution Settings Section.

See also:

Designing Workflows (JOBP)