---
schema_version: "1"
id: fd98d9e7549b8f3f02167666f7bfaee274954f6b6162f8aaf4e9eb22eb314a45
title: Exit Workflow
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-general-exit-workflow.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-general-exit-workflow
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ef09308ba8d935f05e4de329a0a78f089e9c60dc083b04bc1b9b49d14f1ccca2
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Exit Workflow

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The _Exit Workflow_ action step allows you to end a Workflow in a controlled manner. Use it to end
the Workflow with precision at a certain point. This means that even if you have entered possible
retries in _Workflow Properties_ or in the _Workflow Wizard_ under _Workflow Exec Tries_ these will
be disregarded. As a result you can define exit points anywhere. This function is mainly required in
the RPA environment.

## Properties

The _Exit Workflow_ action step has precisely one property. This can be set either under Properties
or directly within the wizard:

**Exit severity**

This is where you define the status for the Workflow that you are ending. You can choose between OK
and Error. The default is Error.

- _Error:_ In this case the exit code 120 will be shown. In RPA Manager, for example in the Schedule
  Run Results_,_ this Workflow is shown as failed (red). In the Workflow Run Results in RPA Builder
  it will be noted that this involves a user exit.

- OK: In this case the exit code 500 will be shown. Unlike with the error status, here the Workflow
  is deemed to have ended successfully. In RPA Manager there will be a warning (yellow) shown for
  it. As in a normal case, there will be a check whether timers/checkpoints could not be measured.
  The Workflow Run Results in RPA Builder will be annotated accordingly.

For a description of exit codes, please see **Section Exit Codes**.

## Inbound Variables

The _Exit Workflow_ action step possesses no inbound variables.

## Outbound Variables

The _Exit Workflow_ action step possesses no outbound variables.

## Wizard

See [Properties](#properties).
