> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Handling decisions in the flow

> To add business decisions in the flow and use them to pick between a flow branch or another, we can use exclusive gateways.

<Frame>
  ![Exclusive Gateway](https://s3.eu-west-1.amazonaws.com/docx.flowx.ai/building-blocks/node/gateway_exclusive.png#center)
</Frame>

![](https://s3.eu-west-1.amazonaws.com/docx.flowx.ai/release40/xclsv_mapf.png)

### Steps for creating a flow with exclusive branches

To create flow with exclusive branches:

<Steps>
  <Step>
    Open **FlowX Designer** and go to the **Definitions** tab.
  </Step>

  <Step>
    Click on the **New process** button, using the **breadcrumbs** from the top-right corner.
  </Step>

  <Step>
    Add a **start node** and an **exclusive gateway node**.
  </Step>

  <Step>
    Add two different **task nodes** and link them after the **exclusive** **gateway node**.
  </Step>

  <Step>
    Add a new **exclusive gateway** to merge the two flow branches back into one branch.
  </Step>

  <Step>
    Add a **new rule** to a node to add a **business decision**:

    <Info>
      For [business rules](../../building-blocks/actions/business-rule-action/business-rule-action), you need to check certain values from the process and pick an outgoing node in case the condition is met. The gateway node must be connected to the next nodes before configuring the rule.
    </Info>

    * select a **scripting language** from the dropdown, for example `MVEL` and input your condition:

    * `input.get("application.client.creditScore") >= 700` ← proceed to node for premium credit card request

    * `input.get("application.client.creditScore") < 700` ← proceed to node for standard credit card request
  </Step>

  <Step>
    Add a **closing exclusive gateway** to continue the flow.
  </Step>

  <Step>
    Add and **end node**.
  </Step>
</Steps>

<Frame>
  ![](https://s3.eu-west-1.amazonaws.com/docx.flowx.ai/release40/mapf_gateway_condition.png)
</Frame>

<Card title="Exclusive Gateway Node" href="../../building-blocks/node/exclusive-gateway-node" />
