enhancement #I61EMZ 增加一个验证EL规则的api,供检查之用

This commit is contained in:
everywhere.z
2022-11-30 17:33:34 +08:00
parent fa0bb7e664
commit 6bd329ab8b
6 changed files with 115 additions and 24 deletions

View File

@@ -177,9 +177,9 @@ public class LiteFlowChainELBuilder {
* @param elStr EL表达式
* @return true 校验成功 false 校验失败
*/
public Boolean validate(String elStr) {
public static boolean validate(String elStr) {
try {
this.setEL(elStr);
LiteFlowChainELBuilder.createChain().setEL(elStr);
return Boolean.TRUE;
} catch (ELParseException e) {
LOG.error(e.getMessage());