[jboss-user] [jBPM] - JBPM Workflow colliding with Task Service

vchmakov do-not-reply at jboss.com
Fri Mar 23 11:30:58 EDT 2012


vchmakov [https://community.jboss.org/people/vchmakov] created the discussion

"JBPM Workflow colliding with Task Service"

To view the discussion, visit: https://community.jboss.org/message/725969#725969

--------------------------------------------------------------
Hi,
 
As recommended in JBPM/Drools documentation to support my workflow/Drools operations I’m exposing a singleton service object. The workload on the JBPM/Drools engine is very lite at the moment and therefore I create one session and serialize all commands receiving them  via the message queue. Everything seems to be working fine. Now, when the Task Server (MINA implementation) is completing tasks and resuming suspended workflows they inevitably collide with the execution of the main trunk. It is not a problem to make my service singleton thread-safe, however I’m also exposing a transactional context including one-per-transaction instance of the Entity Manager which obviously should be different for the Task Completion thread. Besides I have no control over the transactional context of the Task Server and therefore unable to prepare the data and services for processing of the command. 
Here come the questions:
* Is there a solution for the issue?
* Is there an issue at all or I’m overlooking/misunderstanding something?
* What is the best practices for programming such sort of operations in JBPM?
* Has anyone been dealing with such kind of problems working with JBPM?
 
I do not mind looking through the sources of the JBPM/Drools which I do all the time when debugging, but if possible I’d like to hear from the gurus.
 
Any advice is highly appreciated. 
 
Thanks,
 
Vlad
 
1. P.S.: the current version I’m working with is 5.1.2, however, my tests show the same results working with 5.2.0. Besides, I’m working with modified version of the 5.1.2 Human Tasks code, where I implement JTA-style transactions, which is now standard in 5.2.0.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/725969#725969]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120323/54ae1d1b/attachment-0001.html 


More information about the jboss-user mailing list