[jboss-user] [jBPM] - Re: Notification and Escalation using API

Demian Calcaprina do-not-reply at jboss.com
Fri Apr 13 14:48:33 EDT 2012

Demian Calcaprina [https://community.jboss.org/people/calca] created the discussion

"Re: Notification and Escalation using API"

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

Hi Hardik, sorry for the late response.

The problem is related to the LocalTaskService, which ends up having an entity manager. The escalation is executed (using a new entity manager, the task is reasigned, but when in line 145 you get the task, you get an outdate one (which is in entity manager cache I imagine).
If you add this line before line 145,
localTaskService = new LocalTaskService(taskService);
it will create a new entity manager and the test will run ok!

I know the jbpm team is looking at this issue and probably get a better solution.



Reply to this message by going to Community

Start a new discussion in jBPM at Community

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

More information about the jboss-user mailing list