[jboss-user] [jBPM] - Re: Too many problems

hua zhong do-not-reply at jboss.com
Tue Jun 5 15:58:26 EDT 2012


hua zhong [https://community.jboss.org/people/ghuazh] created the discussion

"Re: Too many problems"

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

--------------------------------------------------------------
I try to use LocalHumanTaskService,
WorkHandler handler = new WorkHandler(ksession ,LocalHumanTaskService.getTaskService(ksession));
        ksession.getWorkItemManager().registerWorkItemHandler("Human Task", handler);
        if (params.isEmpty()) {
            return ksession.startProcess(processId);
        } else {
            return ksession.startProcess(processId, params);
        }
but I got new exception:
Cannot find named query UnescalatedDeadlines...
but in the Taskorm.xml, it has!
I think the reason is that service needs use only one persistence-unit.

After that, I combinated the human task persistence and processinstance. It solved.

It is very strange!
--------------------------------------------------------------

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

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/20120605/257ecc00/attachment.html 


More information about the jboss-user mailing list