20.2.4 Adding a Workflow Connection

Add a workflow connection by right-clicking on an activity and selecting Create Connection.

At least two activities must be present on the workflow to add a workflow connection. You can only add a connection if the workflow is in development. You cannot add a connection if the workflow is active. For more information, see About Workflow Versions.

To add a new connection to a workflow activity:

  1. Right-click on the activity and select Create Connection.
    You can also click the menu at the right bottom corner of the activity in the Diagram Builder and select Create Connection.
  2. Enter the connection Name.
    The name displays in the workflow tree and in the workflow diagram builder. The connection name does not need to be unique for the workflow.
  3. In the Connection properties, specify the connection type:
    • Normal - The default connection type.
    • Error - Indicates a target activity for a specific error code. If an error occurs and there is no Error connection, the workflow goes into a Faulted state.
    • Timeout - Only available if there is a Due On specified for the activity the connection comes from.
  4. Fill in the connection parameters:
    1. (Error only) Sequence - Specify the sequence. The sequence determines the order that APEX evaluates error connections in at runtime.
    2. From - Select the target activity the connection leads from.
    3. To - Select the target activity the connection leads to.
    4. (Error only) Operator - Select the condition expression.
    5. (Error only) Value - The SQL error code. For example, -01043 for NO_DATA_FOUND.
  5. Click Show Messages to view and fix errors.
    The Show Messages icon indicates whether there are any workflow modeling or workflow configuration errors. When you click the icon, APEX displays the list of errors. You can click on an individual error to focus on that activity in the workflow. Note that you cannot save the workflow until you address any errors.
  6. Click Save to save your changes.