Search FlexiRule docs

Recent
Pinned

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

FlexiRule Docs

Getting Started

Discover how FlexiRule turns business policies into visual, testable rules for Frappe and ERPNext, then build and test your first rule.

Improve this page

Getting Started#

Turn a business rule into a flow you can understand, test, and maintain.

FlexiRule helps you express business policies as visual rules in Frappe and ERPNext. Instead of spreading every changing policy across scripts and hooks, you can bring supported decisions and actions into a rule flow that your team can inspect, test, and maintain.

You do not need to learn every action or setting before you start. Follow the path below to understand the basics, then build a small rule on a development or test site.

Your learning path#

Choose your starting point#

  • New to FlexiRule? Start with What is FlexiRule?, then follow the learning path.
  • Ready to try it? Open the Quick Start and build a small rule in a safe development or test environment.
  • Unsure whether it fits your use case? Read Do I need FlexiRule? before designing your solution.
  • Confused by values or execution context? Review Core Concepts while working through the builder.

Keep exploring#

Your first exercise#

Choose a simple business policy—for example, checking whether a document meets a threshold before taking a follow-up action.

  1. Start in a development or test site. Avoid experimenting with a live business process.
  2. Build the smallest useful flow. Add only the trigger, condition, and action needed for the example.
  3. Test both outcomes. Use one example that satisfies the condition and another that does not, and inspect the execution result.
  4. Review before activation. Confirm the target DocType, trigger, conditions, actions, and expected side effects before enabling the rule.

The goal is not to build a complicated automation on your first try. It is to learn how a rule is configured, how its path is evaluated, and how to verify that the result matches your intent.

A useful boundary: FlexiRule is a visual business-logic layer, not a replacement for every Frappe feature or custom app. Use it for supported business policies that benefit from being visible and maintainable; use custom development when the requirement needs capabilities or integrations outside the available actions.

What is FlexiRule? Learn what FlexiRule does, the problems it solves, and how it fits into Frappe and ERPNext. How FlexiRule Works Follow the lifecycle of a visual rule, from its trigger and conditions through actions, data, and execution results. Why should I use FlexiRule? Understand how visible, testable business rules can improve change management and operational clarity in Frappe and ERPNext. Do I need FlexiRule? Decide whether a requirement belongs in FlexiRule, a standard Frappe feature, or custom application code. Does ERPNext need FlexiRule? A balanced guide on when standard ERPNext features are sufficient versus when FlexiRule becomes necessary. Build Your First Rule Learn the complete rule-building workflow, from defining a business outcome to testing and activating a visual rule. Key Capabilities Explore the core capabilities of FlexiRule and how they support configurable business automation. Core Concepts Learn the essential FlexiRule concepts: rules, triggers, actions, execution context, Smart Values, conditions, and lifecycle. High-level Architecture A deep dive into the subsystems and architectural philosophy powering FlexiRule. Why is FlexiRule better than hard-coded customizations? A separation-of-concerns approach showing how FlexiRule complements custom development by isolating business policies from application code. How does FlexiRule achieve high performance? An in-depth look at the architectural decisions that ensure FlexiRule remains fast and scalable in production environments. Quick Start Guide Create, test, and review a first visual rule in Frappe or ERPNext.