[jboss-user] [jBPM] - Local human task service doesn't participate in a JTA transaction

Jboss fan99 do-not-reply at jboss.com
Sat Mar 9 17:54:01 EST 2013


Jboss fan99 [https://community.jboss.org/people/devinderpal] created the discussion

"Local human task service doesn't participate in a JTA transaction"

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

--------------------------------------------------------------
Our product release is end of the month and we just found out this bug. Will really appreciate any help in resolving it.

Using jBPM 5.2 with MySQL DB and JBoss 7.1.0

I have a stateless session bean method that runs in a transaction
public void doSomething()
{
     // blah blah
     humanTaskService.start( taskId, userId);
     humanTaskService.complete( taskId, userId, contentData);
      //blah blah
      throw NullPointerException
}

Now the above task is complete and not rolled back. I have attached persistence.xml used for my project.
Also the way I'm starting the local human task server is below:

TaskService humanTaskService = new TaskService(jbpmEmf, 
                                        SystemEventListenerFactory.getSystemEventListener());
                    humanTaskServiceSession = humanTaskService.createSession();
                    humanTaskServiceSession.setTransactionType("local-JTA");
                    SyncWSHumanTaskHandler humanTaskHandler = new SyncWSHumanTaskHandler(
                                        new LocalTaskService(humanTaskServiceSession), ksession);
                    humanTaskHandler.setLocal(true);
                    humanTaskHandler.connect();
                    ksession.getWorkItemManager().registerWorkItemHandler("Human Task", humanTaskHandler);

Please help.
--------------------------------------------------------------

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

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/20130309/c284bc2f/attachment.html 


More information about the jboss-user mailing list