@Configuration @ConditionalOnProcessEngine @EnableConfigurationProperties(value={FlowableProperties.class,FlowableMailProperties.class,FlowableProcessProperties.class,FlowableAppProperties.class,FlowableIdmProperties.class}) @AutoConfigureAfter(value={FlowableJpaAutoConfiguration.class,AppEngineAutoConfiguration.class}) @AutoConfigureBefore(value=AppEngineServicesAutoConfiguration.class) @Import(value=FlowableJobConfiguration.class) public class ProcessEngineAutoConfiguration extends AbstractSpringEngineAutoConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessEngineAutoConfiguration.ProcessEngineAppConfiguration |
| Modifier and Type | Field and Description |
|---|---|
protected FlowableAppProperties |
appProperties |
protected FlowableIdmProperties |
idmProperties |
protected FlowableMailProperties |
mailProperties |
protected FlowableProcessProperties |
processProperties |
flowableProperties, logger, resourcePatternResolver| Constructor and Description |
|---|
ProcessEngineAutoConfiguration(FlowableProperties flowableProperties,
FlowableProcessProperties processProperties,
FlowableAppProperties appProperties,
FlowableIdmProperties idmProperties,
FlowableMailProperties mailProperties) |
| Modifier and Type | Method and Description |
|---|---|
org.flowable.spring.job.service.SpringAsyncHistoryExecutor |
asyncHistoryExecutor(org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> taskExecutor,
org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> processTaskExecutor,
org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> rejectedJobsHandler,
org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> processRejectedJobsHandler) |
org.flowable.spring.job.service.SpringAsyncExecutor |
processAsyncExecutor(org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> taskExecutor,
org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> processTaskExecutor,
org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> rejectedJobsHandler,
org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> processRejectedJobsHandler)
The Async Executor must not be shared between the engines.
|
SpringProcessEngineConfiguration |
springProcessEngineConfiguration(DataSource dataSource,
org.springframework.transaction.PlatformTransactionManager platformTransactionManager,
org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.impl.cfg.IdGenerator> processIdGenerator,
org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.impl.cfg.IdGenerator> globalIdGenerator,
org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncExecutorProvider,
org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider) |
configureSpringEngine, getIfAvailableconfigureEngine, defaultText, discoverDeploymentResources, getCustomMybatisMapperClasses, setResourcePatternResolverprotected final FlowableProcessProperties processProperties
protected final FlowableAppProperties appProperties
protected final FlowableIdmProperties idmProperties
protected final FlowableMailProperties mailProperties
public ProcessEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableProcessProperties processProperties, FlowableAppProperties appProperties, FlowableIdmProperties idmProperties, FlowableMailProperties mailProperties)
@Bean @ProcessAsync @ConfigurationProperties(prefix="flowable.process.async.executor") @ConditionalOnMissingBean(name="processAsyncExecutor") public org.flowable.spring.job.service.SpringAsyncExecutor processAsyncExecutor(org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> taskExecutor, @Process org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> processTaskExecutor, org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> rejectedJobsHandler, @Process org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> processRejectedJobsHandler)
@Bean @ProcessAsyncHistory @ConfigurationProperties(prefix="flowable.process.async-history.executor") @ConditionalOnMissingBean(name="asyncHistoryExecutor") @ConditionalOnProperty(prefix="flowable.process", name="async-history.enable") public org.flowable.spring.job.service.SpringAsyncHistoryExecutor asyncHistoryExecutor(org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> taskExecutor, @Process org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskExecutor> processTaskExecutor, org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> rejectedJobsHandler, @Process org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> processRejectedJobsHandler)
@Bean @ConditionalOnMissingBean public SpringProcessEngineConfiguration springProcessEngineConfiguration(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, @Process org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.impl.cfg.IdGenerator> processIdGenerator, org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.impl.cfg.IdGenerator> globalIdGenerator, @ProcessAsync org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncExecutorProvider, @ProcessAsyncHistory org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider) throws IOException
IOExceptionCopyright © 2018 Flowable. All rights reserved.