mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 13:39:01 +08:00
feat(pigx-flow-biz): 增加触发器异常终止处理,确保在事务外安全终止流程
- 在 TriggerServiceTask 中重构异常处理逻辑,将直接终止流程改为抛出特定异常 - 在 TaskServiceImpl 中增加触发器异常终止处理,确保在事务外安全终止流程 - 优化任务参数设置逻辑,提前获取 processInstanceId 确保终止流程可用 - 统一流程终止状态管理,使用 NodeStatusEnum.YZZ 表示已终止状态 - 调整代码格式,提高可读性和一致性 feat(pigx-flow-api): 扩展节点状态枚举 - 在 NodeStatusEnum 中新增 YZZ(9, "已终止") 状态,用于标识流程异常终止情况
This commit is contained in:
1 parent
cd2ec46f82
commit
96361c21ec
3 files changed
+71
-21
No files matched your search
+9
-3
@@ -25,7 +25,7 @@ public enum NodeStatusEnum {
|
||||
* </p>
|
||||
*/
|
||||
WKS(0, "未开始"),
|
||||
|
||||
|
||||
/**
|
||||
* 进行中
|
||||
* <p>
|
||||
@@ -34,7 +34,7 @@ public enum NodeStatusEnum {
|
||||
* </p>
|
||||
*/
|
||||
JXZ(1, "进行中"),
|
||||
|
||||
|
||||
/**
|
||||
* 已结束
|
||||
* <p>
|
||||
@@ -42,7 +42,13 @@ public enum NodeStatusEnum {
|
||||
* 包括正常完成、跳过、驳回等所有结束状态。
|
||||
* </p>
|
||||
*/
|
||||
YJS(2, "已结束");
|
||||
YJS(2, "已结束"),
|
||||
|
||||
|
||||
/**
|
||||
* 已终止
|
||||
*/
|
||||
YZZ(9, "已终止");
|
||||
|
||||
/**
|
||||
* 状态编码
|
||||
|
||||
Reference in new issue
Block a user