mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-23 22:38:10 +08:00
FlowExecutor增加LiteflowConfig的构造方法
This commit is contained in:
@@ -60,6 +60,13 @@ public class FlowExecutor {
|
|||||||
|
|
||||||
private LiteflowConfig liteflowConfig;
|
private LiteflowConfig liteflowConfig;
|
||||||
|
|
||||||
|
public FlowExecutor() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public FlowExecutor(LiteflowConfig liteflowConfig){
|
||||||
|
this.liteflowConfig = liteflowConfig;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FlowExecutor的初始化化方式,主要用于parse规则文件
|
* FlowExecutor的初始化化方式,主要用于parse规则文件
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -34,9 +34,7 @@ public class LiteflowMainAutoConfiguration {
|
|||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public FlowExecutor flowExecutor(LiteflowConfig liteflowConfig) {
|
public FlowExecutor flowExecutor(LiteflowConfig liteflowConfig) {
|
||||||
FlowExecutor flowExecutor = new FlowExecutor();
|
return new FlowExecutor(liteflowConfig);
|
||||||
flowExecutor.setLiteflowConfig(liteflowConfig);
|
|
||||||
return flowExecutor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|||||||
Reference in New Issue
Block a user