cancel
Showing results for 
Search instead for 
Did you mean: 

How transactions work in Activiti

birju
Champ in-the-making
Champ in-the-making
looking at someone legacy code.

If transaction is configured into a config file

  <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="dataSource" />
  </bean>

And one of the APIs has following code

def insertUser(user:User) = {
  val user = identityService.newUser(user.id.toString)
  identityService.saveUser(user)

}


identityService.newUser and identityService.saveUser both will run into separate transactions right? This is a code bug if that's true. If so what's the best way to combine multiple acticiti calls into a single transaction?
1 REPLY 1