JBoss Community

Re: Problem in JPAWorkItemManager when completing a task

created by Juan Gago in jBPM - View the full discussion

I am using org.jbpm.task.service.TaskClient, and it works fine. The TaskServer receives the message and set task status to completed (updates database), but the problem occurs in org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.GetCompletedTaskResponseHandler.execute(Task task) method. It tries to execute session.getWorkItemManager().completeWorkItem(workItemId, results), but fails because the EntityManager connection is closed.

 

Are you implementing a TaskClient? I don't understand how you can open the EntityManager connection in the TaskClient.

 

Thanks for your answer

Reply to this message by going to Community

Start a new discussion in jBPM at Community