mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-02-03 12:14:57 +08:00
【代码优化】工作流:进一步完善 SimpleModelUtils、BpmnModelUtils 的注释,提升可读性!
This commit is contained in:
parent
6906f79a0e
commit
ab36f5bedc
@ -211,8 +211,9 @@ public class SimpleModelUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. 如果是并行分支,包容分支,由于是程序创建的聚合网关,需要手工创建聚合网关和下一个节点的连线
|
// 4. 如果是并行分支、包容分支,由于是程序创建的聚合网关,需要手工创建聚合网关和下一个节点的连线
|
||||||
if (nodeType == BpmSimpleModelNodeType.PARALLEL_BRANCH_NODE || nodeType == BpmSimpleModelNodeType.INCLUSIVE_BRANCH_NODE ) {
|
if (nodeType == BpmSimpleModelNodeType.PARALLEL_BRANCH_NODE
|
||||||
|
|| nodeType == BpmSimpleModelNodeType.INCLUSIVE_BRANCH_NODE ) {
|
||||||
String nextNodeId = isValidNode(childNode) ? childNode.getId() : targetNodeId;
|
String nextNodeId = isValidNode(childNode) ? childNode.getId() : targetNodeId;
|
||||||
SequenceFlow sequenceFlow = buildBpmnSequenceFlow(branchEndNodeId, nextNodeId);
|
SequenceFlow sequenceFlow = buildBpmnSequenceFlow(branchEndNodeId, nextNodeId);
|
||||||
process.addFlowElement(sequenceFlow);
|
process.addFlowElement(sequenceFlow);
|
||||||
@ -548,10 +549,6 @@ public class SimpleModelUtils {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String buildGatewayJoinId(String id) {
|
|
||||||
return id + "_join";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class ConditionNodeConvert implements NodeConvert {
|
public static class ConditionNodeConvert implements NodeConvert {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -607,4 +604,8 @@ public class SimpleModelUtils {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String buildGatewayJoinId(String id) {
|
||||||
|
return id + "_join";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user