mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
feature #IASS9Z 新的java脚本插件,支持java8~java17的所有语法特性
This commit is contained in:
@@ -98,6 +98,9 @@ public class LiteflowProperty {
|
||||
//是否检查节点存在
|
||||
private boolean checkNodeExists;
|
||||
|
||||
//脚本特殊设置选项
|
||||
private Map<String, String> scriptSetting;
|
||||
|
||||
public boolean isEnableMonitorFile() {
|
||||
return enableMonitorFile;
|
||||
}
|
||||
@@ -325,4 +328,12 @@ public class LiteflowProperty {
|
||||
public void setCheckNodeExists(boolean checkNodeExists) {
|
||||
this.checkNodeExists = checkNodeExists;
|
||||
}
|
||||
|
||||
public Map<String, String> getScriptSetting() {
|
||||
return scriptSetting;
|
||||
}
|
||||
|
||||
public void setScriptSetting(Map<String, String> scriptSetting) {
|
||||
this.scriptSetting = scriptSetting;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ public class LiteflowPropertyAutoConfiguration {
|
||||
liteflowConfig.setQueueLimit(liteflowMonitorProperty.getQueueLimit());
|
||||
liteflowConfig.setDelay(liteflowMonitorProperty.getDelay());
|
||||
liteflowConfig.setPeriod(liteflowMonitorProperty.getPeriod());
|
||||
liteflowConfig.setScriptSetting(property.getScriptSetting());
|
||||
return liteflowConfig;
|
||||
}
|
||||
|
||||
|
||||
@@ -214,6 +214,12 @@
|
||||
"description": "Custom thread pool implement for parallel-loop executor.",
|
||||
"sourceType": "com.yomahub.liteflow.springboot.LiteflowProperty",
|
||||
"defaultValue": "com.yomahub.liteflow.thread.LiteFlowDefaultParallelLoopExecutorBuilder"
|
||||
},
|
||||
{
|
||||
"name": "liteflow.scriptSetting",
|
||||
"type": "java.util.Map",
|
||||
"description": "script special settings.",
|
||||
"sourceType": "com.yomahub.liteflow.springboot.LiteflowProperty"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user