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.
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#
- Why use FlexiRule? — understand the practical benefits of making business policies visible and testable.
- Key capabilities — see the main capabilities available for building rule flows.
- FlexiRule and custom code — understand how visual rules and application code complement one another.
- Architecture overview — explore how the main parts of FlexiRule fit together.
Your first exercise#
Choose a simple business policy—for example, checking whether a document meets a threshold before taking a follow-up action.
- Start in a development or test site. Avoid experimenting with a live business process.
- Build the smallest useful flow. Add only the trigger, condition, and action needed for the example.
- Test both outcomes. Use one example that satisfies the condition and another that does not, and inspect the execution result.
- 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.