|
@@ -1,6 +1,7 @@
|
|
|
package com.aizuda.boot.config;
|
|
|
|
|
|
import com.aizuda.bpm.engine.FlowLongScheduler;
|
|
|
+import com.aizuda.bpm.engine.core.FlowCreator;
|
|
|
import org.springframework.scheduling.annotation.SchedulingConfigurer;
|
|
|
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
|
|
|
import org.springframework.scheduling.support.CronTrigger;
|
|
@@ -12,4 +13,10 @@ public class BpmScheduler extends FlowLongScheduler implements SchedulingConfigu
|
|
|
taskRegistrar.addTriggerTask(this::remind, triggerContext ->
|
|
|
new CronTrigger(getRemindParam().getCron()).nextExecution(triggerContext));
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public FlowCreator getAutoFlowCreator() {
|
|
|
+ // 这里业务系统,可以根据实际情况配置默认审批创建人
|
|
|
+ return FlowCreator.ADMIN;
|
|
|
+ }
|
|
|
}
|