Commit fcbf1d0765968b7d40b0642ff1fb496bf6d86153
1 parent
62aabc63
fix: defaultFlowId由后端生成
Showing
2 changed files
with
1 additions
and
1 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/simple/BpmSimpleModelNodeVO.java
| @@ -119,7 +119,6 @@ public class BpmSimpleModelNodeVO { | @@ -119,7 +119,6 @@ public class BpmSimpleModelNodeVO { | ||
| 119 | @Schema(description = "路由分支组", example = "[]") | 119 | @Schema(description = "路由分支组", example = "[]") |
| 120 | private List<RouteCondition> routerGroups; | 120 | private List<RouteCondition> routerGroups; |
| 121 | 121 | ||
| 122 | - // TODO @lesan:这个目前前端是随机生成的。可以后端来随机么? | ||
| 123 | @Schema(description = "默认分支 ID", example = "Flow_xxx") | 122 | @Schema(description = "默认分支 ID", example = "Flow_xxx") |
| 124 | private String defaultFlowId; // 仅用于路由分支节点 BpmSimpleModelNodeType.ROUTE_BRANCH_NODE | 123 | private String defaultFlowId; // 仅用于路由分支节点 BpmSimpleModelNodeType.ROUTE_BRANCH_NODE |
| 125 | 124 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/SimpleModelUtils.java
| @@ -728,6 +728,7 @@ public class SimpleModelUtils { | @@ -728,6 +728,7 @@ public class SimpleModelUtils { | ||
| 728 | exclusiveGateway.setId(node.getId()); | 728 | exclusiveGateway.setId(node.getId()); |
| 729 | 729 | ||
| 730 | // 设置默认的序列流(条件) | 730 | // 设置默认的序列流(条件) |
| 731 | + node.setDefaultFlowId("Flow_" + IdUtil.fastUUID()); | ||
| 731 | exclusiveGateway.setDefaultFlow(node.getDefaultFlowId()); | 732 | exclusiveGateway.setDefaultFlow(node.getDefaultFlowId()); |
| 732 | return exclusiveGateway; | 733 | return exclusiveGateway; |
| 733 | } | 734 | } |