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
@ConditionalOnProcessEngine
@EnableConfigurationProperties({FlowableAutoDeploymentProperties.class,FlowableProperties.class,FlowableMailProperties.class,FlowableHttpProperties.class,FlowableProcessProperties.class,FlowableAppProperties.class,FlowableIdmProperties.class,FlowableEventRegistryProperties.class})
@AutoConfiguration(after={FlowableJpaAutoConfiguration.class,AppEngineAutoConfiguration.class,org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration.class},
before=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 ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FlowableAppPropertiesprotected final FlowableAutoDeploymentPropertiesprotected final FlowableEventRegistryPropertiesprotected final FlowableHttpPropertiesprotected final FlowableIdmPropertiesprotected final FlowableMailPropertiesprotected final FlowableProcessPropertiesFields inherited from class org.flowable.spring.boot.AbstractEngineAutoConfiguration
flowableProperties, logger, resourcePatternResolver -
Constructor Summary
ConstructorsConstructorDescriptionProcessEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableProcessProperties processProperties, FlowableAppProperties appProperties, FlowableIdmProperties idmProperties, FlowableEventRegistryProperties eventProperties, FlowableMailProperties mailProperties, FlowableHttpProperties httpProperties, FlowableAutoDeploymentProperties autoDeploymentProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.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.AsyncJobExecutorConfigurationorg.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfigurationspringProcessEngineConfiguration(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.AsyncTaskExecutor> applicationTaskExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncTaskExecutor> taskExecutor, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncTaskExecutor> 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<org.flowable.common.spring.AutoDeploymentStrategy<ProcessEngine>> processEngineAutoDeploymentStrategies) Methods inherited from class org.flowable.spring.boot.AbstractSpringEngineAutoConfiguration
configureSpringEngine, getIfAvailableMethods inherited from class org.flowable.spring.boot.AbstractEngineAutoConfiguration
configureEngine, defaultText, discoverDeploymentResources, getCustomMybatisMapperClasses, setResourcePatternResolver
-
Field Details
-
processProperties
-
appProperties
-
idmProperties
-
eventProperties
-
mailProperties
-
httpProperties
-
autoDeploymentProperties
-
-
Constructor Details
-
ProcessEngineAutoConfiguration
public ProcessEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableProcessProperties processProperties, FlowableAppProperties appProperties, FlowableIdmProperties idmProperties, FlowableEventRegistryProperties eventProperties, FlowableMailProperties mailProperties, FlowableHttpProperties httpProperties, FlowableAutoDeploymentProperties autoDeploymentProperties)
-
-
Method Details
-
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.AsyncTaskExecutor> applicationTaskExecutorProvider, @ProcessAsyncHistory org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncHistoryExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncTaskExecutor> taskExecutor, @Process org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncTaskExecutor> 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<org.flowable.common.spring.AutoDeploymentStrategy<ProcessEngine>> processEngineAutoDeploymentStrategies) throws IOException - Throws:
IOException
-