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