Class SpringProcessEngineConfiguration

java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfiguration
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 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<ProcessEngine>> deploymentStrategies
    • running

      protected volatile boolean running
    • enginesBuild

      protected List<String> enginesBuild
    • lifeCycleMonitor

      protected final Object lifeCycleMonitor
  • Constructor Details

    • SpringProcessEngineConfiguration

      public SpringProcessEngineConfiguration()
  • Method Details

    • buildProcessEngine

      public ProcessEngine buildProcessEngine()
      Overrides:
      buildProcessEngine in class ProcessEngineConfigurationImpl
    • initBeans

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

      protected org.flowable.common.engine.impl.EngineConfigurator createDefaultEventRegistryEngineConfigurator()
      Overrides:
      createDefaultEventRegistryEngineConfigurator in class ProcessEngineConfigurationImpl
    • 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
    • initJpa

      public void initJpa()
      Overrides:
      initJpa in class ProcessEngineConfigurationImpl
    • autoDeployResources

      protected void autoDeployResources(ProcessEngine processEngine)
    • setDataSource

      public ProcessEngineConfiguration setDataSource(DataSource dataSource)
      Overrides:
      setDataSource in class ProcessEngineConfiguration
    • 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<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
    • getDeploymentStrategies

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

      public void setDeploymentStrategies(Collection<AutoDeploymentStrategy<ProcessEngine>> 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
    • 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