# Flowable Transaction has no effect

**URL:** <https://forum.flowable.org/t/flowable-transaction-has-no-effect/3904>\
**Category:** Flowable Engine\
**Created:** [May 17, 2019, 6:19am UTC](https://forum.flowable.org/t/flowable-transaction-has-no-effect/3904 "2019-05-17T06:19:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ironbo](https://avatars.discourse-cdn.com/v4/letter/i/97f17d/32.png) [@ironbo](https://forum.flowable.org/u/ironbo)\
**Post date:** [May 17, 2019, 6:19am UTC](https://forum.flowable.org/t/flowable-transaction-has-no-effect/3904/1 "2019-05-17T06:19:02Z")

</div>

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!

```java
 <bean id="processEngineConfiguration"
          class="org.flowable.spring.SpringProcessEngineConfiguration">
        <property name="dataSource" ref="masterDataSource"/>
        <property name="databaseSchemaUpdate" value="true"/>
        <property name="deploymentMode" value="single-resource"/>
        <property name="asyncExecutorActivate" value="false"/>
        <property name="customPreCommandInterceptors" >
            <list>
                <ref bean="taskValidateCommandInterceptor"/>
            </list>
        </property>
        <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>
    <bean id="processEngine" class="org.flowable.spring.ProcessEngineFactoryBean">
        <property name="processEngineConfiguration" ref="processEngineConfiguration" />
    </bean>
 <bean id="masterTransactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
        <property name="sessionFactory" ref="sessionFactory"/>
</bean>

```

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [June 10, 2019, 2:52pm UTC](https://forum.flowable.org/t/flowable-transaction-has-no-effect/3904/2 "2019-06-10T14:52:31Z")

</div>

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`

Cheers,  
Filip
