Skip to content

Commit

Permalink
指定的条件节点不存在时,还能接着使用表达式计算
Browse files Browse the repository at this point in the history
  • Loading branch information
dudiao committed Aug 19, 2024
1 parent e41a345 commit 2a513f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ public Optional<ConditionNode> getConditionNode(FlowLongContext flowLongContext,
// 根据指定条件节点选择
String conditionNodeKey = FlowDataTransfer.get(FlowConstants.processSpecifyConditionNodeKey);
if (null != conditionNodeKey) {
return conditionNodes.stream().filter(t -> Objects.equals(t.getNodeKey(), conditionNodeKey)).findFirst();
Optional<ConditionNode> conditionNodeKeyOptional = conditionNodes.stream().filter(t -> Objects.equals(t.getNodeKey(), conditionNodeKey)).findFirst();
if (conditionNodeKeyOptional.isPresent()) {
return conditionNodeKeyOptional;
}
}

// 根据正则条件节点选择
Expand Down

0 comments on commit 2a513f8

Please sign in to comment.