cancel
Showing results for 
Search instead for 
Did you mean: 

Service Task transaction with database

fernando-sc
Champ in-the-making
Champ in-the-making
Hi,

I'm using a serviceTask to make some rules in my process.
The problem is that I'm trying to do a query on my database (hibernate), I realized that when my serviceTask starts, the activiti opens a transaction and only closes when it is finalized.
I wanted to enjoy the transaction already opened to make the query.

It is possible to do this?

Thanks Smiley Wink
11 REPLIES 11

fernando-sc
Champ in-the-making
Champ in-the-making
You got it wrong, the problem still continues, but now, he is injecting the Spring correctly Smiley Surprisedops:

jbarrez
Star Contributor
Star Contributor
Okay, I understood

now working correctly with the Spring

As that it worked now. I'll reopen the issue and check the new code.