You are here: Working with Task Components > Defining Task Components > The Connection Ports for a Task Component

The Connection Ports for a Task Component

Task components have five ports, two incoming and three outgoing:

Port

Description

Resource Sink

An incoming connection port that allows this component to access data from one or more upstream components. If the task processes data, connect this port to the Resource Source port(s) of the Task, Resource, and/or Event components that supply the data.

Event Sink

An incoming connection port that causes this component to execute when the upstream component has successfully completed. This could be:

  • Firing of an upstream Event
  • Successful completion of processing by an upstream Task
  • Failure of an upstream Task

This port must be connected to one or more of:

  • The Event Source port of an Event component
  • The Event Source port of a Task component
  • The Task Failure port of a Task component

Note that every Task component must have an Event Sink input that traces back, eventually, to an Event component; otherwise the task never executes.

Resource Source

An outgoing connection port that makes data from this component available for use by one or more downstream components.

If the task supplies data, connect this port to the Resource Sink port(s) of the Task that receive the data.

In all cases, if the task fails there is no output at the Resource Source port.

Event Source

An outgoing connection port that allows this component to trigger one or more downstream components if this task’s execution completes successfully.

In all cases, if the task fails there is no output at the Event Source port.

If you want to trigger some action if the task completes successfully, connect this port to the Event Sink port(s) of the appropriate Task components.

Task Failure

An outgoing connection port that triggers one or more downstream components if this task’s execution fails.

If you want to trigger some action if the task fails, connect this port to the Event Sink port(s) of the Task components that handle the failure.