fix: defaultFlowId由后端生成

This commit is contained in:
Lesan 2025-01-09 09:04:39 +08:00
parent 62aabc633c
commit fcbf1d0765
2 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,6 @@ public class BpmSimpleModelNodeVO {
@Schema(description = "路由分支组", example = "[]") @Schema(description = "路由分支组", example = "[]")
private List<RouteCondition> routerGroups; private List<RouteCondition> routerGroups;
// TODO @lesan这个目前前端是随机生成的可以后端来随机么
@Schema(description = "默认分支 ID", example = "Flow_xxx") @Schema(description = "默认分支 ID", example = "Flow_xxx")
private String defaultFlowId; // 仅用于路由分支节点 BpmSimpleModelNodeType.ROUTE_BRANCH_NODE private String defaultFlowId; // 仅用于路由分支节点 BpmSimpleModelNodeType.ROUTE_BRANCH_NODE

View File

@ -728,6 +728,7 @@ public class SimpleModelUtils {
exclusiveGateway.setId(node.getId()); exclusiveGateway.setId(node.getId());
// 设置默认的序列流条件 // 设置默认的序列流条件
node.setDefaultFlowId("Flow_" + IdUtil.fastUUID());
exclusiveGateway.setDefaultFlow(node.getDefaultFlowId()); exclusiveGateway.setDefaultFlow(node.getDefaultFlowId());
return exclusiveGateway; return exclusiveGateway;
} }