Flowable Transaction has no effect

In my project ,i use SpringProcessEngineConfiguration to init my engine,and use org.springframework.orm.hibernate4.HibernateTransactionManager as a Transaction tool,but it has no effect when I throw new RuntimeException manually ,what is strange is that my own data has been roll back,just the data that has been inserted by the engine didn’t roll back ,it confused me a few days.

Thank you very much for this awesome support!

 <bean id="processEngineConfiguration"
        <property name="dataSource" ref="masterDataSource"/>
        <property name="databaseSchemaUpdate" value="true"/>
        <property name="deploymentMode" value="single-resource"/>
        <property name="asyncExecutorActivate" value="false"/>
        <property name="customPreCommandInterceptors" >
                <ref bean="taskValidateCommandInterceptor"/>
        <property name="activityFontName" value="宋体"/>
        <property name="labelFontName" value="宋体"/>
        <property name="annotationFontName" value="宋体"/>
        <property name="processDiagramGenerator" ref="jlpayProcessDiagramGenetator"/>
        <property name="transactionManager" ref="masterTransactionManager"/>
        <property name="disableIdmEngine" value="true"/>
        <property name="idBlockSize" value="10"/>
    <bean id="processEngine" class="org.flowable.spring.ProcessEngineFactoryBean">
        <property name="processEngineConfiguration" ref="processEngineConfiguration" />
 <bean id="masterTransactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
        <property name="sessionFactory" ref="sessionFactory"/>

Hey @ironbo,

The HibernateTransactionManager should not make any difference to Flowable and it is weird that the data is not rollbacked.

Is it possible for you to provide us with a small reproducible example that we can look into?

Some reasons why you can see this:

  1. You are using TransactionTemplate with TransactionTemplate.PROPAGATION_REQUIRES_NEW somewhere
  2. You are manually executing some commands via the ManagementService or CommandExecutor with a custom CommandConfig with TransactionPropagation.REQUIRES_NEW