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

# Add Gateways to the Process

This tutorial demonstrates how to make a process more flexible using BPMN 2.0 exclusive gateways, routing execution based on dynamic conditions.

## Add two gateways

Open your process in the Camunda Modeler. Insert a gateway (diamond shape) between the start event and the service task. Position a second gateway after the user task. Adjust the sequence flows to connect these elements appropriately.

![Add gateways to the process](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-gateway1.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=f0dc4278dd15e4322d1a16c70fe0706c)

Name the new elements clearly:

![Name the gateways and flows](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-gateway2.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=bf104cfe18dde4007cb6d490ddb81c70)

## Configure the gateways

Select each outgoing sequence flow and configure its condition in the properties panel:

**`<1000 €` flow** — set Condition Type to *Expression* and enter `${amount<1000}`:

![Condition for the under-1000 flow](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-gateway3.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=c6e2bb341ca9f6671f0c827f478a09fd)

**`>=1000 €` flow** — `${amount>=1000}`:

![Condition for the >=1000 flow](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-gateway4.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=9259de6684b37d8a8dc16456112a7758)

**`Yes` flow** — `${approved}`:

![Condition for the Yes flow](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-gateway5.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=059320995619ade948eed0feb573fa8a)

**`No` flow** — `${!approved}`:

![Condition for the No flow](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-gateway6.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=9e3e83bc96fb0aee044847f9b6299b58)

These conditions use the [Unified Expression Language](https://docs.aseeflow.org/1.x/user-guide/process-engine/expression-language) to evaluate the gateway.

## Deploy the process

Use the deploy button in the Camunda Modeler to publish your updated process.

## Work on the task

Navigate to Tasklist at `http://localhost:8080/aseeflow/app/tasklist/` and authenticate with the demo credentials. Start a new instance and set variables via the generic form, using an amount ≥ 1000 to trigger the approval task.

![Start an instance with the generic form](https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/start-form-generic.png?fit=max\&auto=format\&n=nrz9o5m15i2WLCpp\&q=85\&s=7c8023037e218522393aad0facaaf783)

Complete the task by checking the *approved* checkbox. Test various scenarios, including rejecting payments and creating instances with amounts under 1000.

## Next step

Continue to [decision automation](https://docs.aseeflow.org/1.x/get-started/quick-start/decision-automation.md) to learn about adding business rules.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.