mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-13 11:14:38 +08:00
enhancement #I5QMDZ 把Zk存储的支持拆出来作为插件解耦合
This commit is contained in:
@@ -15,8 +15,8 @@ public class LiteflowProperty {
|
||||
//流程定义资源地址
|
||||
private String ruleSource;
|
||||
|
||||
//zk配置的node节点地址
|
||||
private String zkNode;
|
||||
//流程资源扩展数据
|
||||
private String ruleSourceExtData;
|
||||
|
||||
//slot的数量
|
||||
private int slotSize;
|
||||
@@ -137,14 +137,6 @@ public class LiteflowProperty {
|
||||
this.retryCount = retryCount;
|
||||
}
|
||||
|
||||
public String getZkNode() {
|
||||
return zkNode;
|
||||
}
|
||||
|
||||
public void setZkNode(String zkNode) {
|
||||
this.zkNode = zkNode;
|
||||
}
|
||||
|
||||
public boolean isPrintBanner() {
|
||||
return printBanner;
|
||||
}
|
||||
@@ -208,4 +200,12 @@ public class LiteflowProperty {
|
||||
public void setSubstituteCmpClass(String substituteCmpClass) {
|
||||
this.substituteCmpClass = substituteCmpClass;
|
||||
}
|
||||
|
||||
public String getRuleSourceExtData() {
|
||||
return ruleSourceExtData;
|
||||
}
|
||||
|
||||
public void setRuleSourceExtData(String ruleSourceExtData) {
|
||||
this.ruleSourceExtData = ruleSourceExtData;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ public class LiteflowPropertyAutoConfiguration {
|
||||
public LiteflowConfig liteflowConfig(LiteflowProperty property, LiteflowMonitorProperty liteflowMonitorProperty){
|
||||
LiteflowConfig liteflowConfig = new LiteflowConfig();
|
||||
liteflowConfig.setRuleSource(property.getRuleSource());
|
||||
liteflowConfig.setRuleSourceExtData(property.getRuleSourceExtData());
|
||||
liteflowConfig.setSlotSize(property.getSlotSize());
|
||||
liteflowConfig.setThreadExecutorClass(property.getThreadExecutorClass());
|
||||
liteflowConfig.setWhenMaxWaitSeconds(property.getWhenMaxWaitSeconds());
|
||||
@@ -38,7 +39,6 @@ public class LiteflowPropertyAutoConfiguration {
|
||||
liteflowConfig.setEnable(property.isEnable());
|
||||
liteflowConfig.setSupportMultipleType(property.isSupportMultipleType());
|
||||
liteflowConfig.setRetryCount(property.getRetryCount());
|
||||
liteflowConfig.setZkNode(property.getZkNode());
|
||||
liteflowConfig.setPrintBanner(property.isPrintBanner());
|
||||
liteflowConfig.setNodeExecutorClass(property.getNodeExecutorClass());
|
||||
liteflowConfig.setRequestIdGeneratorClass(property.getRequestIdGeneratorClass());
|
||||
|
||||
Reference in New Issue
Block a user