mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-13 03:11:10 +08:00
enhancement #ID13E8 优化execute2RespWithEL方法,去除每次检查规则的逻辑
This commit is contained in:
@@ -335,14 +335,6 @@ public class FlowExecutor {
|
||||
// 规范化 el 表达式
|
||||
String normalizedEl = ElRegexUtil.normalize(elStr);
|
||||
|
||||
// 校验 EL 是否正常
|
||||
ValidationResp validationResp = LiteFlowChainELBuilder.validateWithEx(normalizedEl);
|
||||
|
||||
if (!validationResp.isSuccess()) {
|
||||
// 实际封装的是 ELParseException 类型
|
||||
return LiteflowResponse.newMainResponse(validationResp.getCause());
|
||||
}
|
||||
|
||||
// 计算 EL MD5 值,并检查对应的 chain 是否已加载到内存中
|
||||
String elMd5 = MD5.create().digestHex(normalizedEl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user