Class SpringTransactionContext

  • All Implemented Interfaces:
    org.camunda.bpm.engine.impl.cfg.TransactionContext

    public class SpringTransactionContext
    extends Object
    implements org.camunda.bpm.engine.impl.cfg.TransactionContext
    Author:
    Frederik Heremans, Joram Barrez
    • Field Detail

      • transactionManager

        protected org.springframework.transaction.PlatformTransactionManager transactionManager
      • commandContext

        protected org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext
      • lastTransactionState

        protected org.camunda.bpm.engine.impl.cfg.TransactionState lastTransactionState
    • Constructor Detail

      • SpringTransactionContext

        public SpringTransactionContext​(org.springframework.transaction.PlatformTransactionManager transactionManager,
                                        org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext)
    • Method Detail

      • commit

        public void commit()
        Specified by:
        commit in interface org.camunda.bpm.engine.impl.cfg.TransactionContext
      • rollback

        public void rollback()
        Specified by:
        rollback in interface org.camunda.bpm.engine.impl.cfg.TransactionContext
      • addTransactionListener

        public void addTransactionListener​(org.camunda.bpm.engine.impl.cfg.TransactionState transactionState,
                                           org.camunda.bpm.engine.impl.cfg.TransactionListener transactionListener)
        Specified by:
        addTransactionListener in interface org.camunda.bpm.engine.impl.cfg.TransactionContext
      • isTransactionActive

        public boolean isTransactionActive()
        Specified by:
        isTransactionActive in interface org.camunda.bpm.engine.impl.cfg.TransactionContext