Search FlexiRule docs

Recent
Pinned

Press Esc to close. Use arrow keys and Enter inside results. Searches are remembered locally.

FlexiRule Docs

Rule Builder Canvas & Layout Modes

Learn how to navigate the visual Rule Builder canvas and configure rules using Dialog Modal or Three-Panel Workspace View.

Improve this page

Rule Builder Canvas & Layout Modes#

The Rule Builder is FlexiRule’s visual workspace where you build and edit rules by arranging interactive nodes on an infinite canvas.

Rule Builder Canvas Overview
Rule Builder Canvas Overview

Video: Remove a node and reconnect the canvas#

Watch how the Rule Builder reconnects surrounding nodes when a node is removed from the flow.


Accessing the Rule Builder#

You can open the Rule Builder through three primary navigation paths:

  1. RuleFlow Workspace: Click the Rule Builder shortcut button .
  2. Rule Document: Open any Rule document and click Rule Builder in the top action bar.
  3. Awesomebar: Type Rule Builder in the Frappe search bar (Ctrl K or Cmd K) and select the page.

Interactive Layout Modes#

FlexiRule provides two distinct layout experiences to fit your workflow preferences. You can switch between them anytime via Preferences in the top action bar:

1. Three-Panel Workspace View#

The Workspace View organizes the entire rule designer into three side-by-side desktop panels:

  • Input / Schema Panel (Left): Browse live schema data from the target document, child table fields, linked records, and available context variables (@doc, @vars, @session, @parent, @loop). Click any field token to copy or insert it into your configuration.
  • Visual Canvas (Center): The main interactive flowchart where nodes are rendered, dragged, connected, and rearranged.
  • Configuration & Output Panel (Right): Displays the configuration form for the currently selected node, validation error notices, and test execution results.

2. Dialog Modal View#

The Dialog View maximizes your visual canvas space. Clicking any node opens a focused Rule Configuration Modal containing three organized tabs:

  1. Input / Schema: Inspect available variables, parent fields, and child table scopes.
  2. Action Settings: Configure the action inputs, operation modes, and field mappings.
  3. Output / Schema: View return values, set variable outputs (@vars), and inspect schema contracts.

Moving and Zooming#

  • Pan: Click and drag any empty space on the canvas to move around.
  • Zoom: Scroll your mouse wheel, or use the zoom controls (+ / - / fit view) in the lower canvas toolbar.

Top Menu Action Bar#

The top bar provides essential rule management shortcuts:

ActionIconShortcutDescription
UndoCtrl ZRevert the last visual or configuration change.
RedoCtrl YRe-apply reverted changes.
SaveCtrl SSave the rule configuration and canvas structure to the database.
DebugAlt DOpen the live simulation debugger to test against real document records.
Toggle Active—Enable or disable rule execution in production.
Auto LayoutAlt LAutomatically clean up and align node positions and connector lines.
Shortcuts?View keyboard shortcuts quick reference overlay.
Copy / PasteCtrl CCopy selected nodes to duplicate within the canvas or across rules.
PreferencesAlt PToggle between Dialog Modal mode and Workspace Three-Panel mode.

Layout direction#

The canvas can be organized Left to Right or Top to Bottom according to the saved RuleFlow Settings preference.

Top-to-bottom layout example
Top-to-bottom layout example

Rule Builder dark theme
Rule Builder dark theme


Working with Canvas Nodes#

Every step in your rule flow is represented by a visual node card:

  • Start Node : Root node created automatically when a rule is initialized. Holds trigger event definitions and optional trigger conditions.

  • Action Nodes: Colored cards with feature icons representing specific operations (Check , Set Value , Query Records , Notify , Update Record , etc.).

  • Branch Handles & Connectors: Output handles (e.g. True green port and False red port on Check nodes) connecting to downstream actions.

  • Node Selection & Reordering: Click any node to open its properties panel. Drag nodes to reposition them smoothly across the infinite canvas.

  • Deleting Nodes: Select a node and press Delete or Backspace, or click Delete in its property drawer. Connecting lines automatically reconnect surrounding nodes.


Visual Execution Path Highlighting#

During testing or when reviewing execution logs, the canvas dynamically highlights execution paths:

  • Green Highlight: Successfully executed nodes and active branches.
  • Dimmed Gray: Skipped branches and non-executed nodes.
  • Red Highlight: Nodes that encountered errors or stopped the flow.

Debug View Return Result
Debug View Return Result

Last updated Oct 14, 2026