Class SpringTransactionInterceptor

java.lang.Object
org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
org.camunda.bpm.engine.spring.SpringTransactionInterceptor
All Implemented Interfaces:
CommandExecutor

public class SpringTransactionInterceptor extends CommandInterceptor
Author:
Dave Syer, Tom Baeyens
  • Field Details

    • transactionManager

      protected org.springframework.transaction.PlatformTransactionManager transactionManager
    • transactionPropagation

      protected int transactionPropagation
    • processEngineConfiguration

      protected ProcessEngineConfigurationImpl processEngineConfiguration
  • Constructor Details

    • SpringTransactionInterceptor

      @Deprecated public SpringTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager transactionManager, int transactionPropagation)
      Deprecated.
      use the SpringTransactionInterceptor(PlatformTransactionManager, int, ProcessEngineConfigurationImpl) constructor to ensure that when used with CockroachDB, concurrency conflicts that occur on transaction commit are detected and handled.
      This constructor doesn't pass an instance of the ProcessEngineConfigurationImpl class. As a result, if it is used with CockroachDB, concurrency conflicts that occur on transaction commit will not be handled by the process engine.
    • SpringTransactionInterceptor

      public SpringTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager transactionManager, int transactionPropagation, ProcessEngineConfigurationImpl processEngineConfiguration)
  • Method Details

    • execute

      public <T> T execute(Command<T> command)