Details
-
Bug
-
Resolution: Unresolved
-
Major
-
jBPM 5.3
Description
In a JPA persisted JBPM enviroment where Drools SessionInfo, ProcessInstanceInfo & WorkitemInfo are presisted along with JBPM HumanTask server tasks, JBPM is unable to complete a task in the processinstance when the WS-HumanTask-alike Mina client asks to do so in the human task server.
The problem here is that org.jbpm.process.workitem.wsht.WSHumanTaskHandler doesn't connect to JBPM human task server when JBPM starts, It does so only when a HumanTask WorkItem is created by the process, so, there's no listener for completedTask events when Human Task server notifies a completed task.
The obvious thing here should be to connect to the human task server before any JBPM process interaction occurs when Human Tasks are involved.