LiteFlow Rule Engine
Lightweight, fast, stable component-based rule engine — orchestrate AI Agents like ordinary components.
- Source repo
- dromara/liteflow
- Stars
- ★ 3.9k
- Last updated
- 2mo ago
- FARS reviewed
- Nov 08, 2026
- License
- Apache-2.0
- Primary language
- Java
- FA score
- 48/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Java developers needing to decouple complex business logic via rule-driven orchestration.
- Not a fit if
- Teams running JDK 8-17: the AI Agent module needs JDK 21+
- Teams needing English-first docs and community support
- Teams unwilling to learn a DSL and component model
- Maintenance
- Commits in the last 6 monthslast commit 2026-09-24+1.0 ★/day over 7 days
- Source review
- 48/100 · Major gaps
What does this agent do, and when should you use it?
LiteFlow is a modern rules engine framework that combines the best of orchestration and rules engines. It can be used for complex componentized business orchestration. DSL rules drive the whole complex business, enabling smooth refresh hot deployment and supporting embedding of multiple scripting language rules. Starting from v2.16.0, LiteFlow turns an AI Agent into a first-class citizen that can be orchestrated directly into your rules. With over 2000 test cases, it supports JDK 8 to 25, Spring Boot 2.X, 3.X, and the latest 4.X. Rules can be written in XML, JSON, or YML and loaded from various external sources.
LiteFlow parses DSL rule files (XML, JSON, YML) to orchestrate workflows using expressions like THEN, WHEN, IF, etc., enabling synchronous/asynchronous mixed orchestration. The engine executes component invocations, provides context isolation, component retry, and supports script nodes in Groovy, Java, Kotlin, JavaScript, QLExpress, Python, Lua, and Aviator. The AI Agent module (liteflow-react-agent) wraps a full ReAct Agent into a standard component, with multi-turn memory, Skills system, workspace tools, streaming output, and model switching via the model() method. The framework offers elegant hot refresh, so rule changes take effect instantly without restarting the application.
- Java developers needing to decouple complex business logic via rule-driven orchestration.
- Teams requiring dynamic rule updates without restarting in production environments.
- Organizations wanting to integrate AI Agents into existing business rules with orchestration flexibility.
- Developers who want to write rule nodes in multiple scripting languages like Groovy, Python, or JavaScript.
- Enterprise systems needing high performance and stability — LiteFlow is proven in core systems at major companies.
How do you install or deploy this agent?
Add the Maven dependency to your pom.xml:
<dependency>
<groupId>com.yomahub</groupId>
<artifactId>liteflow-spring-boot-starter</artifactId>
<version>2.17.0</version>
</dependency>For the AI Agent module, JDK 21+ is required; add the liteflow-react-agent dependency.
How do you use this agent?
- Define a component by implementing
NodeComponentand overridingprocess(). 2. Write a rule file (e.g., flow.xml) like<chain name="chain1"><then node="a,b,c"/></chain>. 3. Set the rule source in your config:liteflow.rule-source=flow.xml. 4. Execute the chain withFlowExecutor.execute("chain1", context). 5. For AI Agents, declare a component, implement required methods, switch models viamodel(), and orchestrate in rules.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Simple DSL with a short learning curve; supports complex orchestration patterns.
- Smooth hot refresh of rules without restarting your application.
- Multi-language scripting with seamless Java integration.
- AI Agent is a first-class citizen; multi-model support with one-line model switching.
- AI Agent module requires JDK 21+, which may be a constraint for older environments.
- Documentation and community are primarily in Chinese; English resources are limited.
- Requires learning curve for the DSL and component model, though docs are thorough.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| LiteFlow Rule Engine This agent | 48 · Major gaps | Library / SDKFree + model costs | ★ 3.9k | 2mo ago | Java | — |
| ReachAI Enterprise Agent Platform | 67 · Some gaps | Self-hosted serviceFree + model costs | ★ 1.1k | 3d ago | Java | OpenAI API |
| Atmosphere Real-Time JVM Agent Engine | 69 · Some gaps | CLIFree + model costs | ★ 3.8k | 9d ago | Java | OpenAI API · Claude API |
| LangChain4j | 52 · Major gaps | Library / SDKFree + model costs | ★ 13k | today | Java | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The evidence says the framework can run scripts, call Java instances and RPC, and orchestrate Agent tools, skills, and filesystem backends. The README explicitly says guarded local filesystem access is not a security sandbox and recommends hardened Docker or remote backends for untrusted execution, so least privilege and sensitive-data protections are only partly documented. The packet does not show per-action confirmation or a complete data-flow and credential-handling policy. AGENTS.md describes reverse-order rollback on failure but does not include implementation evidence here. The Apache license is traceable; publisher identity and maintenance responsibility remain unclear.
The README and guidance files describe orchestration, hot refresh, and broad capabilities, but their JDK and Agent runtime statements are not fully aligned: CLAUDE.md says the AgentScope runtime requires JDK 21+, while the README says the Agent modules were compiled and verified on JDK 17. Dependency availability is not established in the packet, and failure diagnostics are described only generally through component errors and step information. This static review does not penalize adjacent criteria for tests not being executed.
The README identifies complex business orchestration as a target scenario and gives sequential, parallel, conditional, nested, scripting, and Agent examples. It also states that local filesystem access is not a security sandbox and suggests alternatives for untrusted execution. The framework offers broad JDK, Spring, Solon, rule-source, and scripting choices, but Agent trigger conditions, onboarding thresholds, and cases where it is unsuitable are less developed, so full marks are not justified.
The packet provides module structure, configuration overview, official documentation entry points, DSL examples, and some JDK and Agent limitations; the LICENSE file is the full Apache-2.0 license. README and maintenance guidance lack enough version and support detail. AGENTS.md and CLAUDE.md are primarily contributor instructions and are not treated as evidence of Agent product behavior. Installation steps, FAQ, maintenance ownership, and update path are limited.
LiteFlow wraps an Agent as a rule component and gives sequential, parallel, and conditional-routing examples, showing a concrete way to connect AI orchestration with existing business rules. The materials support composable workflows as a framework output, but provide little concrete evidence about end-user output formats, cost controls, or benefits over simpler direct calls, so value and cost-benefit receive partial scores.
README claims can be traced to DSL examples and explicit limitations. AGENTS.md and CLAUDE.md add architectural, configuration, and test-organization detail, but they are contributor guidance and some version or environment statements differ. The supplied skill files are test resources and cannot establish production skill behavior. Descriptive claims are not treated as independently verified results.
- The README explicitly says local filesystem protection is not a security sandbox; assess and configure a hardened Docker or remote backend for untrusted Agents.
- The packet says scripts can call Java objects and make RPC calls; review script, tool, credential, and data-flow permissions before integration.
- The AgentScope JDK runtime requirement differs across the supplied materials; confirm compatibility for the modules you deploy.
FAQ
How does LiteFlow differ from traditional rule engines like Drools?
How do I integrate different AI models?
model() method in one line, supporting OpenAI, Claude, Gemini, and more, without changing other code.Does it work outside Spring Boot?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.