mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
enhancement #IABK5C 校验 EL 表达式,获取校验失败原因
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user