cancel
Showing results for 
Search instead for 
Did you mean: 

Problem transaction with scriptTask

nandoztx
Champ in-the-making
Champ in-the-making
Hi,

When i start a scriptTask, he opens a transaction in database and only finish when the scriptTask is finalized.
The problem is that i am using a service (@Service), that open a new transaction when you make a query in the database.
How do i use the same transaction? Avoiding to open a new transaction? Is there any setting to make this?

Sorry my english  Smiley Surprisedops:
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Please read the user guide first, enough stuff in there to get you started on getting a grasp on how activiti handles transactions:

http://activiti.org/userguide/index.html#N104AB
http://activiti.org/userguide/index.html#configurationRoot

nandoztx
Champ in-the-making
Champ in-the-making
Please read the user guide first, enough stuff in there to get you started on getting a grasp on how activiti handles transactions:

http://activiti.org/userguide/index.html#N104AB
http://activiti.org/userguide/index.html#configurationRoot

Thank's for help!
This post have a good solution for my problem (use only one transaction with activiti and serviceTask)?
http://forums.activiti.org/en/viewtopic.php?f=4&t=4646