Package org.flowable.spring.boot.cmmn
Class CmmnEngineAutoConfiguration
- java.lang.Object
-
- org.flowable.spring.boot.AbstractEngineAutoConfiguration
-
- org.flowable.spring.boot.AbstractSpringEngineAutoConfiguration
-
- org.flowable.spring.boot.cmmn.CmmnEngineAutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnCmmnEngine @EnableConfigurationProperties({FlowableProperties.class,FlowableMailProperties.class,FlowableAutoDeploymentProperties.class,FlowableIdmProperties.class,FlowableEventRegistryProperties.class,FlowableCmmnProperties.class,FlowableAppProperties.class,FlowableHttpProperties.class}) @AutoConfigureAfter(value={AppEngineAutoConfiguration.class,ProcessEngineAutoConfiguration.class}, name="org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration") @AutoConfigureBefore({AppEngineServicesAutoConfiguration.class,ProcessEngineServicesAutoConfiguration.class}) @Import(FlowableJobConfiguration.class) public class CmmnEngineAutoConfiguration extends AbstractSpringEngineAutoConfiguration
EnableAutoConfigurationfor the CMMN engine- Author:
- Filip Hrisafov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCmmnEngineAutoConfiguration.CmmnEngineAppConfigurationstatic classCmmnEngineAutoConfiguration.CmmnEngineProcessConfiguration
-
Field Summary
Fields Modifier and Type Field Description protected FlowableAutoDeploymentPropertiesautoDeploymentPropertiesprotected FlowableCmmnPropertiescmmnPropertiesprotected FlowableEventRegistryPropertieseventPropertiesprotected FlowableHttpPropertieshttpPropertiesprotected FlowableIdmPropertiesidmPropertiesprotected FlowableMailPropertiesmailProperties-
Fields inherited from class org.flowable.spring.boot.AbstractEngineAutoConfiguration
flowableProperties, logger, resourcePatternResolver
-
-
Constructor Summary
Constructors Constructor Description CmmnEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableCmmnProperties cmmnProperties, 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.SpringAsyncExecutorcmmnAsyncExecutor(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> cmmnRejectedJobsHandler)The Async Executor must not be shared between the engines.org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfigurationcmmnAsyncExecutorConfiguration()org.flowable.cmmn.spring.SpringCmmnEngineConfigurationcmmnEngineConfiguration(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.job.service.impl.asyncexecutor.AsyncExecutor> asyncExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> taskExecutor, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> cmmnTaskExecutor, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> applicationTaskExecutorProvider, 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<org.flowable.cmmn.engine.CmmnEngine>>> cmmnAutoDeploymentStrategies)-
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
-
cmmnProperties
protected final FlowableCmmnProperties cmmnProperties
-
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
-
CmmnEngineAutoConfiguration
public CmmnEngineAutoConfiguration(FlowableProperties flowableProperties, FlowableCmmnProperties cmmnProperties, FlowableIdmProperties idmProperties, FlowableEventRegistryProperties eventProperties, FlowableMailProperties mailProperties, FlowableHttpProperties httpProperties, FlowableAutoDeploymentProperties autoDeploymentProperties)
-
-
Method Detail
-
cmmnAsyncExecutorConfiguration
@Bean @Cmmn @ConfigurationProperties(prefix="flowable.cmmn.async.executor") public org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration cmmnAsyncExecutorConfiguration()
-
cmmnAsyncExecutor
@Bean @Cmmn @ConditionalOnMissingBean(name="cmmnAsyncExecutor") public org.flowable.spring.job.service.SpringAsyncExecutor cmmnAsyncExecutor(@Cmmn org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration executorConfiguration, org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> rejectedJobsHandler, @Cmmn org.springframework.beans.factory.ObjectProvider<org.flowable.spring.job.service.SpringRejectedJobsHandler> cmmnRejectedJobsHandler)
The Async Executor must not be shared between the engines. Therefore a dedicated one is always created.
-
cmmnEngineConfiguration
@Bean @ConditionalOnMissingBean public org.flowable.cmmn.spring.SpringCmmnEngineConfiguration cmmnEngineConfiguration(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, @Cmmn org.springframework.beans.factory.ObjectProvider<org.flowable.job.service.impl.asyncexecutor.AsyncExecutor> asyncExecutorProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> taskExecutor, @Cmmn org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> cmmnTaskExecutor, @Qualifier("applicationTaskExecutor") org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.AsyncListenableTaskExecutor> applicationTaskExecutorProvider, @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<org.flowable.cmmn.engine.CmmnEngine>>> cmmnAutoDeploymentStrategies) throws IOException
- Throws:
IOException
-
-