mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-23 02:49:58 +08:00
feat #I6O2YE sql 外置存储支持多脚本混合调用
This commit is contained in:
@@ -6,8 +6,7 @@ public enum ScriptTypeEnum {
|
||||
QLEXPRESS("qlexpress", "qlexpress"),
|
||||
JS("javascript", "js"),
|
||||
PYTHON("python", "python"),
|
||||
LUA("luaj", "lua")
|
||||
;
|
||||
LUA("luaj", "lua");
|
||||
private String engineName;
|
||||
|
||||
private String displayName;
|
||||
@@ -41,4 +40,19 @@ public enum ScriptTypeEnum {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验脚本类型是否合法
|
||||
*
|
||||
* @param scriptType 脚本类型
|
||||
* @return true:合法,false:不合法
|
||||
*/
|
||||
public static boolean checkScriptType(String scriptType) {
|
||||
for (ScriptTypeEnum e : ScriptTypeEnum.values()) {
|
||||
if (e.getDisplayName().equals(scriptType)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user