feature #I9DQDU 允许对不存在的组件增加全局参数

This commit is contained in:
everywhere.z
2024-04-09 14:53:57 +08:00
parent e3cfe56308
commit 59f67bc546
21 changed files with 76 additions and 71 deletions

View File

@@ -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());

View File

@@ -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;
}
}