Skip to content

Commit 793548f

Browse files
authored
Merge pull request #128 from codingapi/dev
Dev
2 parents b722f31 + 6816d53 commit 793548f

23 files changed

Lines changed: 1207 additions & 1009 deletions

docs/architecture/flow-engine-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- groupId: com.codingapi.flow
88
- artifactId: flow-engine-example
9-
- version: 0.0.26
9+
- version: 0.0.28
1010
- packaging: jar
1111

1212
## 关联关系

docs/architecture/flow-engine-framework.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Flow Engine 核心工作流引擎框架,提供流程定义、节点执行、
66

77
- groupId: com.codingapi.flow
88
- artifactId: flow-engine-framework
9-
- version: 0.0.26
9+
- version: 0.0.28
1010
- packaging: jar
1111

1212
## 关联关系
@@ -36,7 +36,7 @@ Flow Engine 核心工作流引擎框架,提供流程定义、节点执行、
3636
| org.apache.groovy:groovy-xml | 4.0.29 | Groovy XML 处理 |
3737
| commons-io:commons-io | 2.17.0 | IO 工具库 |
3838
| org.apache.commons:commons-lang3 | 3.20.0 | 字符串/对象工具 |
39-
| com.codingapi.springboot:springboot-starter | 3.4.40 | 基础框架(用户体系、持久化、序列化) |
39+
| com.codingapi.springboot:springboot-starter | 3.4.42 | 基础框架(用户体系、持久化、序列化) |
4040
| org.springframework.boot:spring-boot | 3.5.9 | Spring Boot 核心 |
4141
| com.fasterxml.jackson.core:jackson-databind | 2.19.4 | JSON 序列化 |
4242
| org.projectlombok:lombok | 1.18.42 | 编译期代码生成(optional) |
@@ -48,7 +48,7 @@ com.codingapi.flow/
4848
├── action/ # 动作模块 — 定义流程操作行为
4949
│ ├── IFlowAction.java # 动作接口:type/enable/generateRecords/run
5050
│ ├── BaseAction.java # 动作基类
51-
│ ├── ActionType.java # 动作类型枚举(9 种:SAVE/PASS/REJECT/RETURN
51+
│ ├── ActionType.java # 动作类型枚举(8 种:SAVE/PASS/REJECT/ADD_AUDIT/DELEGATE/RETURN/TRANSFER/CUSTOM
5252
│ ├── ActionDisplay.java # 动作展示控制
5353
│ ├── actions/ # 具体动作实现
5454
│ │ ├── PassAction.java
@@ -129,7 +129,7 @@ com.codingapi.flow/
129129
│ ├── IDisplayNode.java # 展示节点接口
130130
│ ├── BaseFlowNode.java # 节点基类
131131
│ ├── BaseAuditNode.java # 审批节点基类
132-
│ ├── NodeType.java # 18 种节点类型枚举
132+
│ ├── NodeType.java # 19 种节点类型枚举
133133
│ ├── factory/
134134
│ │ └── NodeFactory.java # 节点工厂
135135
│ ├── helper/
@@ -264,7 +264,6 @@ com.codingapi.flow/
264264
├── Workflow.java # 流程定义领域模型
265265
├── WorkflowVersion.java # 流程版本
266266
├── WorkflowBuilder.java # 流程构建器
267-
├── WorkflowRuntime.java # 运行时快照
268267
└── runtime/
269268
└── WorkflowRuntime.java # 运行时配置
270269
```
@@ -281,7 +280,7 @@ com.codingapi.flow/
281280

282281
`IFlowNode` 定义了节点的完整生命周期:`handle()` 驱动流转递归,`isFinish()` 判断完成,`generateCurrentRecords()` 生成待办记录,`filterBranches()` 处理条件分支。`NodeFactory` 负责根据 `NodeType` 枚举创建节点实例。
283282

284-
支持 18 种节点类型,覆盖审批、条件/包容/并行网关、延迟、抄送、子流程、触发器等 BPMN 2.0 标准结构。
283+
支持 19 种节点类型,覆盖审批、条件/包容/并行网关、延迟、抄送、子流程、触发器等 BPMN 2.0 标准结构。
285284

286285
关键类:`com.codingapi.flow.node.IFlowNode``com.codingapi.flow.node.NodeType``com.codingapi.flow.node.factory.NodeFactory`
287286

docs/architecture/flow-engine-starter-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ REST API 层,提供流程引擎的 HTTP 接口。包含流程定义管理(
66

77
- groupId: com.codingapi.flow
88
- artifactId: flow-engine-starter-api
9-
- version: 0.0.26
9+
- version: 0.0.28
1010
- packaging: jar
1111

1212
## 关联关系

docs/architecture/flow-engine-starter-infra.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- groupId: com.codingapi.flow
88
- artifactId: flow-engine-starter-infra
9-
- version: 0.0.26
9+
- version: 0.0.28
1010
- packaging: jar
1111

1212
## 关联关系
@@ -32,7 +32,7 @@
3232

3333
| 依赖 | 版本 | 用途 |
3434
|------|------|------|
35-
| com.codingapi.springboot:springboot-starter-data-fast | 3.4.40 | 数据层快速开发框架 |
35+
| com.codingapi.springboot:springboot-starter-data-fast | 3.4.42 | 数据层快速开发框架 |
3636
| org.springframework.boot:spring-boot-starter-data-jpa | 3.5.9 | JPA 持久化 |
3737
| org.springframework.boot:spring-boot-starter-web | 3.5.9 | Web 支持 |
3838
| com.h2database:h2 | 2.3.232 | 嵌入式数据库(runtime) |

docs/architecture/flow-engine-starter-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- groupId: com.codingapi.flow
88
- artifactId: flow-engine-starter-query
9-
- version: 0.0.26
9+
- version: 0.0.28
1010
- packaging: jar
1111

1212
## 关联关系

docs/architecture/flow-engine-starter.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Spring Boot 自动配置入口模块,聚合所有子模块并完成运行时
66

77
- groupId: com.codingapi.flow
88
- artifactId: flow-engine-starter
9-
- version: 0.0.26
9+
- version: 0.0.28
1010
- packaging: jar
1111

1212
## 关联关系
@@ -60,7 +60,7 @@ com.codingapi.flow/
6060
| `WorkflowService` | 工作流定义服务(注入 3 个仓储) |
6161
| `FlowService` | 流程运行服务(注入 RepositoryHolderContext 单例) |
6262
| `GatewayContextRegister` | 将 FlowOperatorGateway 绑定到 GatewayContext 单例 |
63-
| `FlowScriptContextRegister` | 将 Spring ApplicationContext 包装为 IBeanFactory 绑定到 FlowScriptContext 单例 |
63+
| `FlowScriptContextRegister` | 将 Spring ApplicationContext、FlowOperatorGateway、FlowRecordRepository 包装为 IBeanFactory 绑定到 FlowScriptContext 单例 |
6464
| `RepositoryHolderContextRegister` | 将服务和仓储绑定到 RepositoryHolderContext 单例 |
6565
| `FlowDelayTaskRunner` | 应用启动时启动延迟任务调度器,关闭时销毁 |
6666

@@ -71,7 +71,7 @@ com.codingapi.flow/
7171
三个注册器均实现 `InitializingBean`,在 Bean 初始化完成后将 Spring 管理的 Bean 注入 framework 层的全局单例,解决非 Spring 管理的领域对象(如反序列化恢复的 Workflow)需要访问 Spring Bean 的场景。
7272

7373
- `GatewayContextRegister` — 操作者网关注册
74-
- `FlowScriptContextRegister` — 脚本运行时的 Bean 工厂注册(支持 Groovy 脚本中通过 `IBeanFactory` 获取 Spring Bean)
74+
- `FlowScriptContextRegister` — 脚本运行时的 Bean 工厂注册(支持 Groovy 脚本中通过 `IBeanFactory` 获取 Spring Bean,同时提供 `getRecordById``getOperatorById``findOperatorsByIds` 等便捷方法
7575
- `RepositoryHolderContextRegister` — 仓储和服务持有者注册
7676

7777
关键类:`com.codingapi.flow.register.*`

docs/components/FlowScriptContext.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

docs/components/GatewayContext.md

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)