[Yandex Cloud documentation](../../../../index.md) > [Yandex Serverless Integrations](../../../index.md) > [Step-by-step guides](../../index.md) > Workflows > [Workflow step constructor](index.md) > Configuring an error transition rule

# Configuring an error transition rule

For each [integration step](../../../concepts/workflows/yawl/index.md#integration-steps) in your workflow, you can configure [error transition rules](../../../concepts/workflows/yawl/index.md#catchrule) to handle errors encountered during that step. The rules will apply one by one after the retry policy.

To configure an error transition rule for a workflow integration step, do the following:

{% list tabs %}

- Management console {#console}

  1. When [creating](../workflow/create-constructor.md) a new workflow or [editing](../workflow/update.md) an existing one, in the management console, under **Create workflow** / **Edit workflow**, select `Constructor`.
  1. In the bottom-right corner of the [integration step](../../../concepts/workflows/yawl/index.md#integration-steps) section, click ![pencil](../../../../_assets/serverless-integrations/circle-plus-fill-red.svg).
  1. Under **Transition rule for errors**:

      1. In the **Errors** field, select the errors that will, or will not, trigger the transition to the next workflow step.

          For detailed information about possible errors, see [this section](../../../concepts/workflows/execution.md#errors).
      1. In the **Error selection mode** field, select:

          * `INCLUDE`: To transition to the next workflow step on errors listed in the **Errors** field.
          * `EXCLUDE`: To transition to the next workflow step on any errors except those listed in the **Errors** field.
      1. In the **Error template** field, specify a [jq template](../../../concepts/workflows/templating.md) to filter the step outputs added into the workflow state. Note that the jq template defined for this step on the **Output** tab will not apply.

  1. To add a new step for error transition, drag the step from the **Integration steps** or **Control steps** section to the area marked with the dotted line, which was automatically added to the workflow when you created this error transition rule.

{% endlist %}

## See also {#see-also}

* [Creating a workflow using the constructor](../workflow/create-constructor.md)
* [Updating a workflow](../workflow/update.md)