mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-23 19:08:09 +08:00
enhancement #I61EMZ 增加一个验证EL规则的api,供检查之用
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user