Package com.flowable.spring.boot
Class ProcessEngineAutoConfiguration
java.lang.Object
com.flowable.spring.boot.AbstractEngineAutoConfiguration
com.flowable.spring.boot.AbstractSpringEngineAutoConfiguration
com.flowable.spring.boot.ProcessEngineAutoConfiguration
@Configuration(proxyBeanMethods=false) @ConditionalOnProcessEngine @EnableConfigurationProperties({FlowableProperties.class,FlowableAutoDeploymentProperties.class,FlowableMailProperties.class,FlowableHttpProperties.class,FlowableProcessProperties.class,FlowableAppProperties.class,FlowableIdmProperties.class,FlowableEventRegistryProperties.class,AsyncHistoryProperties.class}) @AutoConfigureAfter({FlowableJpaAutoConfiguration.class,AppEngineAutoConfiguration.class}) @AutoConfigureBefore(AppEngineServicesAutoConfiguration.class) public class ProcessEngineAutoConfiguration extends AbstractSpringEngineAutoConfiguration
Provides sane definitions for the various beans required to be productive with Flowable in Spring.
- Author:
- Josh Long, Filip Hrisafov, Javier Casal, Joram Barrez
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessEngineAutoConfiguration.ProcessEngineAppConfiguration
-
Field Summary
Fields Modifier and Type Field Description protected FlowableAppProperties
appProperties
protected AsyncHistoryProperties
asyncHistoryProperties
protected FlowableAutoDeploymentProperties
autoDeploymentProperties
protected FlowableEventRegistryProperties
eventProperties
protected FlowableHttpProperties
httpProperties
protected FlowableIdmProperties
idmProperties
protected FlowableMailProperties
mailProperties
protected FlowableProcessProperties
processProperties
Fields inherited from class com.flowable.spring.boot.AbstractEngineAutoConfiguration
flowableProperties, logger, resourcePatternResolver
-
Constructor Summary
Constructors Constructor Description ProcessEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableProcessProperties processProperties, FlowableAppProperties appProperties, FlowableIdmProperties idmProperties, FlowableEventRegistryProperties eventProperties, FlowableMailProperties mailProperties, FlowableHttpProperties httpProperties, FlowableAutoDeploymentProperties autoDeploymentProperties, AsyncHistoryProperties asyncHistoryProperties)
-
Method Summary
Modifier and Type Method 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.org.flowable.spring.SpringProcessEngineConfiguration
springProcessEngineConfiguration(javax.sql.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.springframework.core.task.AsyncListenableTaskExecutor> asyncTaskExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.api.async.AsyncTaskExecutor> processAsyncTaskExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.api.async.AsyncTaskExecutor> asyncHistoryAsyncTaskExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.flowable.common.spring.AutoDeploymentStrategy<org.flowable.engine.ProcessEngine>> processAutoDeploymentStrategies)
Methods inherited from class com.flowable.spring.boot.AbstractSpringEngineAutoConfiguration
configureSpringEngine, getIfAvailable
Methods inherited from class com.flowable.spring.boot.AbstractEngineAutoConfiguration
configureEngine, defaultIfNotNull, defaultText, discoverDeploymentResources, getCustomMybatisMapperClasses, setResourcePatternResolver
-
Field Details
-
Constructor Details
-
ProcessEngineAutoConfiguration
public ProcessEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableProcessProperties processProperties, FlowableAppProperties appProperties, FlowableIdmProperties idmProperties, FlowableEventRegistryProperties eventProperties, FlowableMailProperties mailProperties, FlowableHttpProperties httpProperties, FlowableAutoDeploymentProperties autoDeploymentProperties, AsyncHistoryProperties asyncHistoryProperties)
-
-
Method Details
-
processAsyncExecutor
@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)The Async Executor must not be shared between the engines. Therefore a dedicated one is always created. -
asyncHistoryExecutor
@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) -
springProcessEngineConfiguration
@Bean @ConditionalOnMissingBean public org.flowable.spring.SpringProcessEngineConfiguration springProcessEngineConfiguration(javax.sql.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, @Qualifier("applicationTaskExecutor") org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> asyncTaskExecutorProvider, @Process org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.api.async.AsyncTaskExecutor> processAsyncTaskExecutorProvider, @ProcessAsyncHistory org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider, @ProcessAsyncHistory org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.api.async.AsyncTaskExecutor> asyncHistoryAsyncTaskExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.flowable.common.spring.AutoDeploymentStrategy<org.flowable.engine.ProcessEngine>> processAutoDeploymentStrategies) throws java.io.IOException- Throws:
java.io.IOException
-