Package org.camunda.bpm.engine.spring
Class SpringTransactionInterceptor
- java.lang.Object
-
- org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
-
- org.camunda.bpm.engine.spring.SpringTransactionInterceptor
-
- All Implemented Interfaces:
org.camunda.bpm.engine.impl.interceptor.CommandExecutor
public class SpringTransactionInterceptor extends org.camunda.bpm.engine.impl.interceptor.CommandInterceptor- Author:
- Dave Syer, Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImplprocessEngineConfigurationprotected org.springframework.transaction.PlatformTransactionManagertransactionManagerprotected inttransactionPropagation
-
Constructor Summary
Constructors Constructor Description SpringTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager transactionManager, int transactionPropagation)Deprecated.use theSpringTransactionInterceptor(PlatformTransactionManager, int, ProcessEngineConfigurationImpl)constructor to ensure that when used with CockroachDB, concurrency conflicts that occur on transaction commit are detected and handled.SpringTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager transactionManager, int transactionPropagation, org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Texecute(org.camunda.bpm.engine.impl.interceptor.Command<T> command)
-
-
-
Field Detail
-
transactionManager
protected org.springframework.transaction.PlatformTransactionManager transactionManager
-
transactionPropagation
protected int transactionPropagation
-
processEngineConfiguration
protected org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration
-
-
Constructor Detail
-
SpringTransactionInterceptor
@Deprecated public SpringTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager transactionManager, int transactionPropagation)
Deprecated.use theSpringTransactionInterceptor(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 theProcessEngineConfigurationImplclass. 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, org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
-