|
|
@ -3,7 +3,10 @@ package com.ruoyi.flowable.config; |
|
|
|
import org.flowable.engine.impl.db.DbIdGenerator; |
|
|
|
import org.flowable.spring.SpringProcessEngineConfiguration; |
|
|
|
import org.flowable.spring.boot.EngineConfigurationConfigurer; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.core.task.AsyncListenableTaskExecutor; |
|
|
|
import org.springframework.core.task.SimpleAsyncTaskExecutor; |
|
|
|
|
|
|
|
/** |
|
|
|
* 流程id生成处理 |
|
|
@ -12,6 +15,12 @@ import org.springframework.context.annotation.Configuration; |
|
|
|
*/ |
|
|
|
@Configuration |
|
|
|
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> { |
|
|
|
|
|
|
|
@Bean |
|
|
|
public AsyncListenableTaskExecutor applicationTaskExecutor() { |
|
|
|
return new SimpleAsyncTaskExecutor(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void configure(SpringProcessEngineConfiguration engineConfiguration) { |
|
|
|
engineConfiguration.setActivityFontName("宋体"); |
|
|
@ -20,4 +29,4 @@ public class FlowableConfig implements EngineConfigurationConfigurer<SpringProce |
|
|
|
engineConfiguration.setIdGenerator(new DbIdGenerator()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|