Class 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 Detail

      • 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
      • running

        protected volatile boolean running
      • enginesBuild

        protected List<String> enginesBuild
      • lifeCycleMonitor

        protected final Object lifeCycleMonitor
    • Constructor Detail

      • SpringDmnEngineConfiguration

        public SpringDmnEngineConfiguration()
    • Method Detail

      • 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
      • initTransactionContextFactory

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

        protected void autoDeployResources​(DmnEngine dmnEngine)
      • 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
      • 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
      • 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