update - 解决实例执行流程中,网关节点出口节点选择异常的问题

This commit is contained in:
wangli 2024-05-06 14:08:18 +08:00
parent 2eb5cf19c8
commit 1ebb217fa0

View File

@ -54,7 +54,7 @@ public class SequenceFlowForecasting extends AbstractForecast<SequenceFlow> {
if (sourceFlowElement instanceof Gateway) {
Gateway gateway = (Gateway) sourceFlowElement;
flowElements.stream()
.filter(i -> Objects.equals(i.getSourceRef(), gateway.getDefaultFlow()))
.filter(i -> Objects.equals(i.getId(), gateway.getDefaultFlow()))
.findAny().ifPresent(defaultFlows::add);
} else {
// 如果 conditionExpression 为空, 则认为是默认流