enhancement #IABK5C 校验 EL 表达式,获取校验失败原因

This commit is contained in:
gaibu
2024-07-09 10:39:18 +08:00
parent ccb4109ed7
commit 3bbef46a5d

View File

@@ -257,6 +257,17 @@ public class LiteFlowChainELBuilder {
return Boolean.FALSE;
}
/**
* EL表达式校验此方法校验失败会抛出异常
*
* @param elStr EL表达式
*/
public static void validateThrowEx(String elStr) {
// 移除注释
elStr = ElRegexUtil.removeComments(elStr);
LiteFlowChainELBuilder.createChain().setEL(elStr);
}
public void build() {
this.chain.setRouteItem(this.route);
this.chain.setConditionList(this.conditionList);