mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
@@ -57,14 +57,14 @@ public class SwitchCondition extends Condition {
|
||||
String _targetId = target[0];
|
||||
String _targetTag = target[1];
|
||||
targetExecutor = targetList.stream().filter(executable -> {
|
||||
return (StrUtil.startWith(_targetId, TAG_PREFIX) && _targetTag.equals(executable.getTag()))
|
||||
return (StrUtil.startWith(_targetId, TAG_PREFIX) && ObjectUtil.equal(_targetTag,executable.getTag()))
|
||||
|| ((StrUtil.isEmpty(_targetId) || _targetId.equals(executable.getId()))
|
||||
&& (StrUtil.isEmpty(_targetTag) || _targetTag.equals(executable.getTag())));
|
||||
}).findFirst().orElse(null);
|
||||
}
|
||||
else {
|
||||
targetExecutor = targetList.stream()
|
||||
.filter(executable -> executable.getId().equals(targetId))
|
||||
.filter(executable -> ObjectUtil.equal(executable.getId(),targetId) )
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user