maestro
latest
false
  • Overview
    • Introduction to UiPath Maestro™
    • Requirements
    • Example scenarios
  • Process modeling
  • BPMN
  • Process implementation
  • Process operations
  • Process monitoring
  • Process optimization
  • Reference information
UiPath logo, featuring letters U and I in white

Maestro user guide

Last updated Jun 24, 2025

Gateways and flow logic

Gateways control how a process branches and merges during execution. Although gateways influence the flow, they do not perform any action by themselves. They evaluate conditions, synchronize branches, or create parallel paths. This section explains how to use gateways effectively in BPMN models, even when conditional logic is handled externally or execution support is partial.

Exclusive gateway

The exclusive gateway allows only one outgoing path to be followed, based on mutually exclusive conditions.

In Maestro, you can mark a path as the default using the default attribute on the <exclusiveGateway> element.


Modeling use case: Routing based on status (e.g., approved, rejected, needs clarification).

  • Use one outgoing flow per condition.
  • Define a default path for cases where no conditions match.
Note: Label each flow clearly. Avoid ambiguous conditions.

Inclusive gateway

The inclusive gateway can activate one or more outgoing paths, depending on which conditions evaluate as true. It merges incoming paths only after all active branches complete.



Modeling use case: Optional parallel activities (e.g., notify customer and log request, if applicable)

  1. Model a merge gateway to join paths.
  2. Use with care—merging inclusive branches can create confusion if conditions overlap.

Parallel gateway

The parallel gateway activates all outgoing paths simultaneously. When used to merge, it waits for all incoming paths to complete.



Modeling use case: Executing independent tasks in parallel, such as sending confirmation and generating a report.
  • No conditions are evaluated—flow is unconditional.
  • Use for modeling concurrency or synchronization.
Important: Always use a parallel gateway to join branches that were split in parallel.

Event-based gateway

The event-based gateway waits for one of several events to occur. The first triggered event determines the path taken. This gateway must be followed immediately by catching intermediate events or receive tasks.



Modeling use case: Waiting for a customer response or timeout.

  • Only one outgoing path is followed.
  • All other events become invalid once one is triggered.
Important: Event gateways represent uncertainty. Use only when the process must react to external input.

Gateway merging

When paths branch out from a gateway, a corresponding merge is often required.

Gateway typeMerge required?Merge type
ExclusiveOptionalExclusive
InclusiveRequiredInclusive
ParallelRequiredParallel
Important: For clarity, always model merge points explicitly—even if only one path is expected to continue.

Modeling tips

  • Always label gateway conditions for business readability.
  • Avoid complex nested gateways when possible. Consider sub-processes for encapsulating logic.
  • Default flows should be clearly defined to avoid ambiguous behavior.
  • Do not mix gateway types during merge (e.g., merging parallel branches with an exclusive gateway).

For more details about the BPMN elements supported in Maestro, see BPMN support.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2025 UiPath. All rights reserved.