Commit ab36f5bedc162386067ea0cd19bb238f2019129d
1 parent
6906f79a
【代码优化】工作流:进一步完善 SimpleModelUtils、BpmnModelUtils 的注释,提升可读性!
Showing
1 changed file
with
7 additions
and
6 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/SimpleModelUtils.java
| @@ -211,8 +211,9 @@ public class SimpleModelUtils { | @@ -211,8 +211,9 @@ public class SimpleModelUtils { | ||
| 211 | } | 211 | } |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | - // 4. 如果是并行分支,包容分支,由于是程序创建的聚合网关,需要手工创建聚合网关和下一个节点的连线 | ||
| 215 | - if (nodeType == BpmSimpleModelNodeType.PARALLEL_BRANCH_NODE || nodeType == BpmSimpleModelNodeType.INCLUSIVE_BRANCH_NODE ) { | 214 | + // 4. 如果是并行分支、包容分支,由于是程序创建的聚合网关,需要手工创建聚合网关和下一个节点的连线 |
| 215 | + if (nodeType == BpmSimpleModelNodeType.PARALLEL_BRANCH_NODE | ||
| 216 | + || nodeType == BpmSimpleModelNodeType.INCLUSIVE_BRANCH_NODE ) { | ||
| 216 | String nextNodeId = isValidNode(childNode) ? childNode.getId() : targetNodeId; | 217 | String nextNodeId = isValidNode(childNode) ? childNode.getId() : targetNodeId; |
| 217 | SequenceFlow sequenceFlow = buildBpmnSequenceFlow(branchEndNodeId, nextNodeId); | 218 | SequenceFlow sequenceFlow = buildBpmnSequenceFlow(branchEndNodeId, nextNodeId); |
| 218 | process.addFlowElement(sequenceFlow); | 219 | process.addFlowElement(sequenceFlow); |
| @@ -548,10 +549,6 @@ public class SimpleModelUtils { | @@ -548,10 +549,6 @@ public class SimpleModelUtils { | ||
| 548 | 549 | ||
| 549 | } | 550 | } |
| 550 | 551 | ||
| 551 | - public static String buildGatewayJoinId(String id) { | ||
| 552 | - return id + "_join"; | ||
| 553 | - } | ||
| 554 | - | ||
| 555 | public static class ConditionNodeConvert implements NodeConvert { | 552 | public static class ConditionNodeConvert implements NodeConvert { |
| 556 | 553 | ||
| 557 | @Override | 554 | @Override |
| @@ -607,4 +604,8 @@ public class SimpleModelUtils { | @@ -607,4 +604,8 @@ public class SimpleModelUtils { | ||
| 607 | 604 | ||
| 608 | } | 605 | } |
| 609 | 606 | ||
| 607 | + private static String buildGatewayJoinId(String id) { | ||
| 608 | + return id + "_join"; | ||
| 609 | + } | ||
| 610 | + | ||
| 610 | } | 611 | } |