review: 代码审查
This commit is contained in:
parent
29a902f37e
commit
642e72ae7a
|
@ -808,6 +808,7 @@ public class BpmnModelUtils {
|
|||
// 查找满足条件的 SequenceFlow 路径
|
||||
Gateway gateway = (Gateway) currentElement;
|
||||
Collection<SequenceFlow> matchSequenceFlows;
|
||||
// 流程首次发起时,variables值一定为空,会导致条件表达式解析错误导致预测节点缺失
|
||||
if (null == variables){
|
||||
matchSequenceFlows = CollUtil.filterNew(gateway.getOutgoingFlows(),
|
||||
flow -> ObjUtil.notEqual(gateway.getDefaultFlow(), flow.getId()));
|
||||
|
|
|
@ -809,6 +809,7 @@ public class SimpleModelUtils {
|
|||
if (nodeType == BpmSimpleModelNodeTypeEnum.CONDITION_BRANCH_NODE) {
|
||||
// 查找满足条件的 BpmSimpleModelNodeVO 节点
|
||||
BpmSimpleModelNodeVO matchConditionNode;
|
||||
// 流程首次发起时,variables值一定为空,会导致条件表达式解析错误导致预测节点缺失
|
||||
if(null == variables) {
|
||||
matchConditionNode = CollUtil.findOne(currentNode.getConditionNodes(),
|
||||
conditionNode -> !BooleanUtil.isTrue(conditionNode.getConditionSetting().getDefaultFlow()));
|
||||
|
@ -830,6 +831,7 @@ public class SimpleModelUtils {
|
|||
if (nodeType == BpmSimpleModelNodeTypeEnum.INCLUSIVE_BRANCH_NODE) {
|
||||
// 查找满足条件的 BpmSimpleModelNodeVO 节点
|
||||
Collection<BpmSimpleModelNodeVO> matchConditionNodes;
|
||||
// 流程首次发起时,variables值一定为空,会导致条件表达式解析错误导致预测节点缺失
|
||||
if (null == variables) {
|
||||
matchConditionNodes = CollUtil.filterNew(currentNode.getConditionNodes(),
|
||||
conditionNode -> !BooleanUtil.isTrue(conditionNode.getConditionSetting().getDefaultFlow()));
|
||||
|
|
Loading…
Reference in New Issue