Skip to content

Repository files navigation

🧊 jeeflow

轻量 Java 工作流引擎——零框架依赖、DDD 充血模型、JDK 8 兼容。

统一门面 JeeflowFacade.flow(action, map) 一行接入;支持管理扩展(流程设计/历史/委托)、 assignee 变量解析与 flow.auto/flow.admin 系统代执行。完整契约见 文档站。

特性

  • 零框架依赖:不依赖 Spring、MyBatis、JPA、Servlet,仅 slf4j-api(provided)
  • DDD 充血模型:ProcessInstance 聚合根封装所有状态变更行为
  • SPI 可扩展:仓储 / JSON / 用户 / 事务 / 表达式 / ID 等可替换
  • JDK 8+:在 8~25 上均可运行
  • Spring Boot Starter:支持 Boot 2.x / 3.x / 4.x
  • 内置流程模式:开始、结束、任务、决策、分支、合并、子流程、自定义节点、会签

5 行跑起来

Configuration config = new Configuration();
ServiceContext.put("repository", new MemoryProcessRepository());
ServiceContext.put("json", new BuiltinJsonProvider());
JeeflowEngine engine = new JeeflowEngineImpl();
engine.configure(config);
ProcessInstance pi = engine.startProcessInstanceById(defineId, "张三", FlowData.create());

模块

模块 说明
jeeflow-core 引擎核心,98 KB,仅 slf4j-api
jeeflow-repository-jdbc 纯 JDBC 仓储实现(白名单防注入)
jeeflow-spring-boot-autoconfigure 自动装配 + m_* 查询解析器
jeeflow-spring-boot2-starter Boot 2.x Starter
jeeflow-spring-boot3-starter Boot 3.x Starter
jeeflow-spring-boot4-starter Boot 4.x Starter

SPI 接口

接口 必须 说明
IProcessRepository ✅ 聚合仓储 + 分页查询
IJsonProvider ✅ JSON 解析
IUserProvider 可选 用户信息(人名/部门)
ITransactionTemplate 可选 事务模板
IExpressionEvaluator 可选 表达式求值(决策节点用)
IIdGenerator 可选 ID 生成器

文档

License

Copyright © 2025-2026 mldong

Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.

About

轻量 Java 工作流引擎——零框架依赖、DDD 充血模型、JDK 8、17、21、25 兼容。

Topics

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages