- Introduction
- Getting started
- Process modeling
- Process implementation
- Process operations
- Process monitoring
- Process optimization
- Reference information

Maestro user guide
Sequence flows
A sequence flow in BPMN shows the order in which flow elements—such as tasks, events, and gateways—are executed in a process.
In UiPath Maestro™, sequence flows are not just visual links—they orchestrate how work moves between agents, robots, and humans. When testing or executing a process, sequence flows guide the runtime engine on which task to activate next and under what conditions.
Use sequence flows to:
- Connect all executable elements (tasks, gateways, events).
- Control branching after decision points.
- Specify default or fallback paths.
- Attach conditional logic to determine routing at runtime.
Types of sequence flows
Maestro supports the following types of sequence flows:
| Type | Description |
|---|---|
| Unconditional | A flow with no conditions—always followed if reached. |
| Conditional | Contains an expression that must evaluate to true for the flow to be taken (typically after a gateway). |
| Default flow | The fallback flow from a gateway if no other conditions are met. Default flows are marked with a slash. |
Conditional expressions
Conditional sequence flows support simple or complex logic based on:
- Input variables
- Rule results (DMN)
- Runtime values passed through the process
For example, after an exclusive gateway:
-
Flow A:
amount > 10000amount > 10000 -
Flow B (default): No condition

Best practices in Maestro
- Connect every element with sequence flows—floating tasks or gateways break execution.
- Label conditional flows for clarity during testing or handoff.
- Use default flows with exclusive gateways to ensure predictable behavior.
- Modularize complex logic using sub-processes and keep branching shallow when possible.
Summary
Sequence flows are the backbone of process logic in Maestro. They control how tasks are routed, when agents act, and what conditions trigger each path. Proper use of sequence flows makes your process predictable, testable, and easier to monitor in production.