# Exclusive Gateway

The **Exclusive Gateway** is used to create **conditional process flows** within a business process.\
It directs the execution flow to **exactly one outgoing path**, based on the evaluation of defined conditions.

Exclusive Gateways are typically used to model **decision points**, where only one outcome can be selected at runtime.

***

### Purpose

The **Exclusive Gateway** evaluates conditions on its outgoing paths and routes the process flow to **only one path whose condition evaluates to true**.

Key characteristics:

* Only one outgoing sequence flow is taken
* Conditions are evaluated sequentially
* If multiple conditions are true, only the first valid path is selected
* A default path can be defined using **Otherwise**

Outgoing flows are represented as **arrow links (`→`)**, connecting the Exclusive Gateway to subsequent activities or events.

***

### Exclusive Gateway Configuration Overview

The Exclusive Gateway configuration panel consists of **two main tabs**:

1. **General**
2. **Gateway**

***

### General Tab

The **General** tab contains basic information about the gateway, such as:

* Gateway name (title)
* Gateway ID

These properties are used to identify the gateway within the process diagram.

> **Important**\
> Always click **Save Panel** to persist any configuration changes.

***

### Gateway Tab

The **Gateway** tab is used for configuring condition‑based routing.\
Conditions themselves are defined **on each outgoing link**, not directly on the gateway node.

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FRHaeoijbVPhCSy7FaV7Q%2Fimage.png?alt=media&#x26;token=235c8585-ff26-472a-9930-17936a8bd510" alt=""><figcaption></figcaption></figure>

***

### Configuring Conditions on Outgoing Links

When outgoing paths are created from an **Exclusive Gateway** (or an Inclusive Gateway), each link must be configured with condition logic.

#### Steps to Configure Link Conditions

1. Double‑click on an outgoing link (`→`) from the Exclusive Gateway
2. The **Gateway Parameter Panel** opens

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FGukBY4lhfzr1eOqxRTjD%2Fimage.png?alt=media&#x26;token=ef946457-839d-406c-a41f-eca0072365b8" alt=""><figcaption></figcaption></figure>

***

### Gateway Parameter Properties

| Property  | Mandatory | Description                                             |
| --------- | --------- | ------------------------------------------------------- |
| Otherwise | No        | Defines the **default path** when no conditions match   |
| Label     | No        | Name of the path (e.g. *Approve*, *Reject*)             |
| Condition | Yes       | Expression used to determine whether this path is taken |

***

### Defining Conditions using Formula Editor

Click the **Condition** button in the Gateway Parameter panel to open the **Formula Editor**.

In the Formula Editor, users can:

* Create new expressions
* Modify existing expressions
* Reference Business Object data and process parameters

The condition returns **true or false**, controlling whether the corresponding path is selected.

For more details, see the **Formula Editor** documentation.

***

### Usage Guidelines

* Use Exclusive Gateway when **only one path must be selected**
* Ensure conditions are **mutually exclusive**
* Always define an **Otherwise** path to avoid dead‑ends
* Clearly label outgoing paths for readability
* Avoid complex logic directly on gateways—use Business Objects and formulas instead

***

### Summary

The **Exclusive Gateway** is the primary mechanism for modeling **conditional, single‑path decision logic** in a process.

Key points:

* Routes execution to only one path
* Conditions are evaluated on outgoing links
* Supports default routing using **Otherwise**
* Uses Formula Editor for condition logic
* Essential for modeling approval, validation, and decision scenarios

Correct use of Exclusive Gateways ensures **clear, deterministic, and predictable process behavior** within ONEWEB Process Designer.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onewebstack.com/designer-reference/process-designer/process-designer-component/gateway/exclusive-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
