External Dependencies in Workflows

An external dependency in a Workflow is the representation of an external task that must end with a 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.

For information about how to add external dependencies to a Workflow, see Adding Tasks to a Workflow.

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. Do one of the following:

    • Right-click anywhere on the Workflow editor and select Add Existing Object.

      On the dialog that opens up, search for JOB_A1 and select it. Then activate the Insert as External Dependency checkbox at the bottom.

    • Open the Explorer (Process Assembly) and the Workflow in two separate browser windows.

      1. In the Explorer window, search for JOB_A1 and use the drag and drop function to insert it in the Workflow.
      2. Right-click JOB_A1 and select Convert to External Dependency from the context-menu.
  2. JOB_A1 is displayed as external task in the Workflow. It has a dashed task box.
  3. 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.

  4. Select JOB_B1 and right-click to select Properties.
  5. Open the Time & Dependencies tab to configure how the task should behave depending on the status of the external dependency.

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:

Workflows (JOBP)