Package org.flowable.spring.boot
Class ProcessEngineAutoConfiguration
- java.lang.Object
-
- org.flowable.spring.boot.AbstractEngineAutoConfiguration
-
- org.flowable.spring.boot.AbstractSpringEngineAutoConfiguration
-
- org.flowable.spring.boot.ProcessEngineAutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnProcessEngine @EnableConfigurationProperties({FlowableAutoDeploymentProperties.class,FlowableProperties.class,FlowableMailProperties.class,FlowableHttpProperties.class,FlowableProcessProperties.class,FlowableAppProperties.class,FlowableIdmProperties.class,FlowableEventRegistryProperties.class}) @AutoConfigureAfter(value={FlowableJpaAutoConfiguration.class,AppEngineAutoConfiguration.class}, name="org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration") @AutoConfigureBefore(AppEngineServicesAutoConfiguration.class) @Import(FlowableJobConfiguration.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 classProcessEngineAutoConfiguration.ProcessEngineAppConfiguration
-
Field Summary
Fields Modifier and Type Field Description protected FlowableAppPropertiesappPropertiesprotected FlowableAutoDeploymentPropertiesautoDeploymentPropertiesprotected FlowableEventRegistryPropertieseventPropertiesprotected FlowableHttpPropertieshttpPropertiesprotected FlowableIdmPropertiesidmPropertiesprotected FlowableMailPropertiesmailPropertiesprotected FlowableProcessPropertiesprocessProperties-
Fields inherited from class org.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.flowable.spring.job.service.SpringAsyncHistoryExecutorasyncHistoryExecutor(org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration executorConfiguration, 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.SpringAsyncExecutorprocessAsyncExecutor(org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration executorConfiguration, 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.job.service.impl.asyncexecutor.AsyncJobExecutorConfigurationprocessAsyncExecutorConfiguration()org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfigurationprocessAsyncHistoryExecutorConfiguration()SpringProcessEngineConfigurationspringProcessEngineConfiguration(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, 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> applicationTaskExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> taskExecutor, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> processTaskExecutor, org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.api.async.AsyncTaskExecutor> asyncTaskInvokerTaskExecutor, org.springframework.beans.factory.ObjectProvider<org.flowable.http.common.api.client.FlowableHttpClient> flowableHttpClient, org.springframework.beans.factory.ObjectProvider<List<org.flowable.common.spring.AutoDeploymentStrategy<ProcessEngine>>> processEngineAutoDeploymentStrategies)-
Methods inherited from class org.flowable.spring.boot.AbstractSpringEngineAutoConfiguration
configureSpringEngine, getIfAvailable
-
Methods inherited from class org.flowable.spring.boot.AbstractEngineAutoConfiguration
configureEngine, defaultIfNotNull, defaultText, discoverDeploymentResources, getCustomMybatisMapperClasses, setResourcePatternResolver
-
-
-
-
Field Detail
-
processProperties
protected final FlowableProcessProperties processProperties
-
appProperties
protected final FlowableAppProperties appProperties
-
idmProperties
protected final FlowableIdmProperties idmProperties
-
eventProperties
protected final FlowableEventRegistryProperties eventProperties
-
mailProperties
protected final FlowableMailProperties mailProperties
-
httpProperties
protected final FlowableHttpProperties httpProperties
-
autoDeploymentProperties
protected final FlowableAutoDeploymentProperties autoDeploymentProperties
-
-
Constructor Detail
-
ProcessEngineAutoConfiguration
public ProcessEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableProcessProperties processProperties, FlowableAppProperties appProperties, FlowableIdmProperties idmProperties, FlowableEventRegistryProperties eventProperties, FlowableMailProperties mailProperties, FlowableHttpProperties httpProperties, FlowableAutoDeploymentProperties autoDeploymentProperties)
-
-
Method Detail
-
processAsyncExecutorConfiguration
@Bean @ProcessAsync @ConfigurationProperties(prefix="flowable.process.async.executor") public org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration processAsyncExecutorConfiguration()
-
processAsyncExecutor
@Bean @ProcessAsync @ConditionalOnMissingBean(name="processAsyncExecutor") public org.flowable.spring.job.service.SpringAsyncExecutor processAsyncExecutor(@ProcessAsync org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration executorConfiguration, 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.
-
processAsyncHistoryExecutorConfiguration
@Bean @ProcessAsyncHistory @ConfigurationProperties(prefix="flowable.process.async-history.executor") @ConditionalOnProperty(prefix="flowable.process", name="async-history.enable") public org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration processAsyncHistoryExecutorConfiguration()
-
asyncHistoryExecutor
@Bean @ProcessAsyncHistory @ConditionalOnMissingBean(name="asyncHistoryExecutor") @ConditionalOnProperty(prefix="flowable.process", name="async-history.enable") public org.flowable.spring.job.service.SpringAsyncHistoryExecutor asyncHistoryExecutor(@ProcessAsyncHistory org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration executorConfiguration, 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 SpringProcessEngineConfiguration springProcessEngineConfiguration(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, @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> applicationTaskExecutorProvider, @ProcessAsyncHistory org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> taskExecutor, @Process org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> processTaskExecutor, @Qualifier("flowableAsyncTaskInvokerTaskExecutor") org.springframework.beans.factory.ObjectProvider<org.flowable.common.engine.api.async.AsyncTaskExecutor> asyncTaskInvokerTaskExecutor, org.springframework.beans.factory.ObjectProvider<org.flowable.http.common.api.client.FlowableHttpClient> flowableHttpClient, org.springframework.beans.factory.ObjectProvider<List<org.flowable.common.spring.AutoDeploymentStrategy<ProcessEngine>>> processEngineAutoDeploymentStrategies) throws IOException
- Throws:
IOException
-
-