mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-20 06:48:09 +08:00
feature #I9DQDU 允许对不存在的组件增加全局参数
This commit is contained in:
@@ -36,7 +36,7 @@ public class LiteflowAutoConfiguration {
|
||||
liteflowConfig.setPeriod(liteflowMonitorProperty.getPeriod());
|
||||
liteflowConfig.setWhenMaxWorkers(property.getWhenMaxWorkers());
|
||||
liteflowConfig.setWhenQueueLimit(property.getWhenQueueLimit());
|
||||
liteflowConfig.setParseOnStart(property.isParseOnStart());
|
||||
liteflowConfig.setParseMode(property.getParseMode());
|
||||
liteflowConfig.setEnable(property.isEnable());
|
||||
liteflowConfig.setSupportMultipleType(property.isSupportMultipleType());
|
||||
liteflowConfig.setRetryCount(property.getRetryCount());
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.yomahub.liteflow.solon.config;
|
||||
|
||||
import com.yomahub.liteflow.enums.ParseModeEnum;
|
||||
import org.noear.solon.annotation.Configuration;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
|
||||
@@ -44,9 +45,8 @@ public class LiteflowProperty {
|
||||
// 异步线程池最大队列数量
|
||||
private int whenQueueLimit;
|
||||
|
||||
// 是否在启动时解析规则文件
|
||||
// 这个参数主要给编码式注册元数据的场景用的,结合FlowBus.addNode一起用
|
||||
private boolean parseOnStart;
|
||||
// 解析模式,一共有三种,具体看其定义
|
||||
private ParseModeEnum parseMode;
|
||||
|
||||
// 这个属性为true,则支持多种不同的类型的配置
|
||||
// 但是要注意,不能将主流程和子流程分配在不同类型配置文件中
|
||||
@@ -132,14 +132,6 @@ public class LiteflowProperty {
|
||||
this.whenQueueLimit = whenQueueLimit;
|
||||
}
|
||||
|
||||
public boolean isParseOnStart() {
|
||||
return parseOnStart;
|
||||
}
|
||||
|
||||
public void setParseOnStart(boolean parseOnStart) {
|
||||
this.parseOnStart = parseOnStart;
|
||||
}
|
||||
|
||||
public boolean isSupportMultipleType() {
|
||||
return supportMultipleType;
|
||||
}
|
||||
@@ -251,4 +243,12 @@ public class LiteflowProperty {
|
||||
public void setFallbackCmpEnable(Boolean fallbackCmpEnable) {
|
||||
this.fallbackCmpEnable = fallbackCmpEnable;
|
||||
}
|
||||
|
||||
public ParseModeEnum getParseMode() {
|
||||
return parseMode;
|
||||
}
|
||||
|
||||
public void setParseMode(ParseModeEnum parseMode) {
|
||||
this.parseMode = parseMode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user