Class SpringDmnEngineConfiguration

java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfiguration
org.flowable.dmn.engine.DmnEngineConfiguration
org.flowable.dmn.spring.SpringDmnEngineConfiguration
All Implemented Interfaces:
org.flowable.common.engine.impl.HasExpressionManagerEngineConfiguration, SpringEngineConfiguration, org.flowable.dmn.api.DmnEngineConfigurationApi, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class SpringDmnEngineConfiguration extends DmnEngineConfiguration implements SpringEngineConfiguration
Author:
Tijs Rademakers, David Syer, Joram Barrez
  • Field Details

    • transactionManager

      protected org.springframework.transaction.PlatformTransactionManager transactionManager
    • deploymentName

      protected String deploymentName
    • deploymentResources

      protected org.springframework.core.io.Resource[] deploymentResources
    • deploymentMode

      protected String deploymentMode
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • transactionSynchronizationAdapterOrder

      protected Integer transactionSynchronizationAdapterOrder
    • deploymentStrategies

      protected Collection<AutoDeploymentStrategy<DmnEngine>> deploymentStrategies
    • running

      protected volatile boolean running
    • enginesBuild

      protected List<String> enginesBuild
    • lifeCycleMonitor

      protected final Object lifeCycleMonitor
  • Constructor Details

    • SpringDmnEngineConfiguration

      public SpringDmnEngineConfiguration()
  • Method Details

    • buildDmnEngine

      public DmnEngine buildDmnEngine()
      Overrides:
      buildDmnEngine in class DmnEngineConfiguration
    • initBeans

      public void initBeans()
      Overrides:
      initBeans in class org.flowable.common.engine.impl.AbstractEngineConfiguration
    • setTransactionSynchronizationAdapterOrder

      public void setTransactionSynchronizationAdapterOrder(Integer transactionSynchronizationAdapterOrder)
    • initDefaultCommandConfig

      public void initDefaultCommandConfig()
      Overrides:
      initDefaultCommandConfig in class org.flowable.common.engine.impl.AbstractEngineConfiguration
    • createTransactionInterceptor

      public org.flowable.common.engine.impl.interceptor.CommandInterceptor createTransactionInterceptor()
      Overrides:
      createTransactionInterceptor in class DmnEngineConfiguration
    • initTransactionContextFactory

      public void initTransactionContextFactory()
      Overrides:
      initTransactionContextFactory in class org.flowable.common.engine.impl.AbstractEngineConfiguration
    • autoDeployResources

      protected void autoDeployResources(DmnEngine dmnEngine)
    • setDataSource

      public DmnEngineConfiguration setDataSource(DataSource dataSource)
      Overrides:
      setDataSource in class DmnEngineConfiguration
    • getTransactionManager

      public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
      Specified by:
      getTransactionManager in interface SpringEngineConfiguration
    • setTransactionManager

      public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
      Specified by:
      setTransactionManager in interface SpringEngineConfiguration
    • getDeploymentName

      public String getDeploymentName()
      Specified by:
      getDeploymentName in interface SpringEngineConfiguration
    • setDeploymentName

      public void setDeploymentName(String deploymentName)
      Specified by:
      setDeploymentName in interface SpringEngineConfiguration
    • getDeploymentResources

      public org.springframework.core.io.Resource[] getDeploymentResources()
      Specified by:
      getDeploymentResources in interface SpringEngineConfiguration
    • setDeploymentResources

      public void setDeploymentResources(org.springframework.core.io.Resource[] deploymentResources)
      Specified by:
      setDeploymentResources in interface SpringEngineConfiguration
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
      Specified by:
      getApplicationContext in interface SpringEngineConfiguration
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Specified by:
      setApplicationContext in interface SpringEngineConfiguration
      Throws:
      org.springframework.beans.BeansException
    • getDeploymentMode

      public String getDeploymentMode()
      Specified by:
      getDeploymentMode in interface SpringEngineConfiguration
    • setDeploymentMode

      public void setDeploymentMode(String deploymentMode)
      Specified by:
      setDeploymentMode in interface SpringEngineConfiguration
    • getAutoDeploymentStrategy

      protected AutoDeploymentStrategy<DmnEngine> getAutoDeploymentStrategy(String mode)
      Gets the AutoDeploymentStrategy for the provided mode. This method may be overridden to implement custom deployment strategies if required, but implementors should take care not to return null.
      Parameters:
      mode - the mode to get the strategy for
      Returns:
      the deployment strategy to use for the mode. Never null
    • getDeploymentStrategies

      public Collection<AutoDeploymentStrategy<DmnEngine>> getDeploymentStrategies()
    • setDeploymentStrategies

      public void setDeploymentStrategies(Collection<AutoDeploymentStrategy<DmnEngine>> deploymentStrategies)
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle