mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-13 11:14:38 +08:00
feature #I5CJHI 增加自定义Id生成器类
This commit is contained in:
@@ -56,9 +56,8 @@ public class LiteflowProperty {
|
||||
// 节点执行器class全名
|
||||
private String nodeExecutorClass;
|
||||
|
||||
|
||||
|
||||
|
||||
// requestId 生成器
|
||||
private String requestIdGeneratorClass;
|
||||
|
||||
//是否打印执行过程中的日志
|
||||
private boolean printExecutionLog;
|
||||
@@ -190,4 +189,12 @@ public class LiteflowProperty {
|
||||
public void setPrintExecutionLog(boolean printExecutionLog) {
|
||||
this.printExecutionLog = printExecutionLog;
|
||||
}
|
||||
|
||||
public String getRequestIdGeneratorClass() {
|
||||
return requestIdGeneratorClass;
|
||||
}
|
||||
|
||||
public void setRequestIdGeneratorClass(String requestIdGeneratorClass) {
|
||||
this.requestIdGeneratorClass = requestIdGeneratorClass;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.yomahub.liteflow.springboot.config;
|
||||
import com.yomahub.liteflow.property.LiteflowConfig;
|
||||
import com.yomahub.liteflow.springboot.LiteflowMonitorProperty;
|
||||
import com.yomahub.liteflow.springboot.LiteflowProperty;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -42,6 +41,7 @@ public class LiteflowPropertyAutoConfiguration {
|
||||
liteflowConfig.setZkNode(property.getZkNode());
|
||||
liteflowConfig.setPrintBanner(property.isPrintBanner());
|
||||
liteflowConfig.setNodeExecutorClass(property.getNodeExecutorClass());
|
||||
liteflowConfig.setRequestIdGeneratorClass(property.getRequestIdGeneratorClass());
|
||||
liteflowConfig.setMainExecutorWorks(property.getMainExecutorWorks());
|
||||
liteflowConfig.setMainExecutorClass(property.getMainExecutorClass());
|
||||
liteflowConfig.setPrintExecutionLog(property.isPrintExecutionLog());
|
||||
|
||||
Reference in New Issue
Block a user