Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3673

Rehydrated JBPM workitems don't get completed when JBPM's human task server completes a task

    XMLWordPrintable

Details

    • Hide

      Just connect to the human task server on WSHumanTaskHandler registration into the KnowledgeSession ( Maybe modifying WorkItemHandler's interface for initialization support? )

      Show
      Just connect to the human task server on WSHumanTaskHandler registration into the KnowledgeSession ( Maybe modifying WorkItemHandler's interface for initialization support? )

    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.

      Attachments

        Activity

          People

            salaboy@gmail.com Mauricio Salatino (Inactive)
            argaldo_jira Alberto Rodriguez (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: