Learn how to implement conditional branching in your processes using exclusive gateways to create dynamic, decision-driven workflows.
Business processes often require making decisions based on data and conditions. FlowX.AI’s exclusive gateway nodes allow you to create branching paths in your process flow, directing the execution based on specific conditions and business rules.
Exclusive Gateway Visualization
An exclusive gateway (also known as an XOR gateway) creates conditional branches in your process flow. It directs the process token to exactly one of the outgoing paths based on evaluated conditions. Think of it as an “if-then-else” decision point in your process.
Complete reference for exclusive gateway configuration
Learn more about implementing decision logic
Process Flow with Exclusive Gateway
Exclusive gateways function as decision points in your process:
true
determines which path is takentrue
Best practice is to always provide a default path to ensure your process doesn’t get stuck if none of the specified conditions are met.
Create or Open a Process Definition
Add Basic Flow Elements
The decision conditions will evaluate data that’s already in your process context, so make sure any required data is collected or calculated before reaching the gateway.
Add the Decision Gateway
You must connect all outgoing paths from the exclusive gateway before configuring the decision conditions.
Create Outgoing Paths
Example of Gateway Condition Configuration
Configure Decision Conditions
Conditions are evaluated in the order they appear in the Designer. The first condition that evaluates to true
determines the path taken, so order matters!
Add Converging Gateway (Optional)
If your branches need to converge back to a single flow:
A converging exclusive gateway doesn’t require conditions since it’s merely joining paths rather than splitting them.
Complete the Process Flow
Here are some example condition expressions for different decision scenarios:
Numeric Comparisons
String Comparisons
Boolean logic
Date Comparisons
When implementing decision logic:
The simplest decision pattern with two outcomes - a condition is either met or not met
Multiple conditions evaluated in sequence, with one path chosen based on the first match
Branching based on approval status, typically with approve/reject/review paths
Evaluation of multiple criteria to determine if a process can proceed
After implementing decision logic in your process, you can:
Learn how to create parallel process branches with parallel gateways