fix: defaultFlowId由后端生成
This commit is contained in:
parent
62aabc633c
commit
fcbf1d0765
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue