1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
07a997246b 移除自动提交第一个节点 2024-12-25 23:59:32 +08:00
d4e6f6648d 简化包结构 2024-12-25 21:41:59 +08:00
3 changed files with 2 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
package com.lanyuanxiaoyao.flowable.repository.memory;
package com.lanyuanxiaoyao.flowable.repository;
import com.lanyuanxiaoyao.flowable.model.Flow;
import com.lanyuanxiaoyao.flowable.repository.FlowRepository;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;

View File

@@ -41,11 +41,6 @@ public class FlowService {
// 保存流程实例
flow = flowRepository.update(flow);
// 自动提交第一个节点
FlowContext context = flow.createContext();
flow.getCurrentNodeObject().onApprove(context);
flow = updateFlow(flow, context);
// 如果第一个节点是系统节点,自动执行审批
if (flow.getCurrentNodeObject() instanceof SystemFlowNode) {

View File

@@ -6,7 +6,7 @@ import com.lanyuanxiaoyao.flowable.node.LeaveRequestNode;
import com.lanyuanxiaoyao.flowable.node.LeaveSystemCheckNode;
import com.lanyuanxiaoyao.flowable.node.ManagerApprovalNode;
import com.lanyuanxiaoyao.flowable.repository.FlowRepository;
import com.lanyuanxiaoyao.flowable.repository.memory.MemoryFlowRepository;
import com.lanyuanxiaoyao.flowable.repository.MemoryFlowRepository;
import com.lanyuanxiaoyao.flowable.service.FlowService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;