Class SpringProcessEngineConfiguration

  • All Implemented Interfaces:
    org.flowable.common.engine.impl.HasExpressionManagerEngineConfiguration, org.flowable.common.engine.impl.HasVariableServiceConfiguration, org.flowable.common.engine.impl.HasVariableTypes, org.flowable.common.engine.impl.ScriptingEngineAwareEngineConfiguration, SpringEngineConfiguration, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

    public class SpringProcessEngineConfiguration
    extends ProcessEngineConfigurationImpl
    implements SpringEngineConfiguration
    Author:
    Tom Baeyens, David Syer, Joram Barrez, Tiese Barrell
    • 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

      • SpringProcessEngineConfiguration

        public SpringProcessEngineConfiguration()
    • 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
      • createTransactionInterceptor

        public org.flowable.common.engine.impl.interceptor.CommandInterceptor createTransactionInterceptor()
        Specified by:
        createTransactionInterceptor 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​(ProcessEngine processEngine)
      • 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<ProcessEngine> 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
      • getPhase

        public int getPhase()
        Specified by:
        getPhase in interface org.springframework.context.Phased
        Specified by:
        getPhase in interface org.springframework.context.SmartLifecycle
        Specified by:
        getPhase in interface SpringEngineConfiguration