增加配置文件
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.lanyuanxiaoyao.flowable.test;
|
||||
|
||||
import com.lanyuanxiaoyao.flowable.core.manager.FlowableConfiguration;
|
||||
import com.lanyuanxiaoyao.flowable.core.manager.FlowableManager;
|
||||
import java.util.UUID;
|
||||
import lombok.SneakyThrows;
|
||||
@@ -10,7 +11,7 @@ import lombok.SneakyThrows;
|
||||
*/
|
||||
public class SimpleFlowableManager extends FlowableManager {
|
||||
public SimpleFlowableManager() {
|
||||
super(new InMemoryFlowableRepository(), () -> UUID.randomUUID().toString());
|
||||
super(FlowableConfiguration.builder().build(), new InMemoryFlowableRepository());
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
@@ -18,4 +19,9 @@ public class SimpleFlowableManager extends FlowableManager {
|
||||
protected <T> T createBean(String classpath) {
|
||||
return (T) Class.forName(classpath).newInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String createId() {
|
||||
return UUID.randomUUID().toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user