Class 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
  • Field Details

  • Constructor Details

  • 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