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

At a glance

How it runs
Library / SDKFramework
Works with
Universal · cross-platform
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
JDK 8 or higherJDK 21+ for AI Agent moduleShell / CLINetwork access
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

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.

  1. Java developers needing to decouple complex business logic via rule-driven orchestration.
  2. Teams requiring dynamic rule updates without restarting in production environments.
  3. Organizations wanting to integrate AI Agents into existing business rules with orchestration flexibility.
  4. Developers who want to write rule nodes in multiple scripting languages like Groovy, Python, or JavaScript.
  5. 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?

  1. Define a component by implementing NodeComponent and overriding process(). 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 with FlowExecutor.execute("chain1", context). 5. For AI Agents, declare a component, implement required methods, switch models via model(), 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
48/ 100 5-point scale 2.4 / 5
Trust 12/29
Reliability 5/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

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.

Reliability5 / 14 · 1.8/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability4 / 8 · 2.5/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 26f79dcb85a3
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/liteflow.svg)](https://followagents.com/en/agents/liteflow)
<a href="https://followagents.com/en/agents/liteflow"><img src="https://followagents.com/badge/liteflow.svg" alt="FARS review"></a>

FAQ

How does LiteFlow differ from traditional rule engines like Drools?
LiteFlow focuses on orchestration rather than simple rule matching, using DSL to drive workflows, which suits component-based business orchestration better.
How do I integrate different AI models?
You can switch models via the model() method in one line, supporting OpenAI, Claude, Gemini, and more, without changing other code.
Does it work outside Spring Boot?
Yes, LiteFlow works with Spring, Spring Boot, or any Java framework.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts