Class ProcessEngineAutoConfiguration


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

    • 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