1
0

增加配置文件

This commit is contained in:
2025-01-03 11:57:30 +08:00
parent 53ab0d731c
commit eff6d6be02
9 changed files with 99 additions and 27 deletions

View File

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