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

No save of processInstance in TaskInstanceEndCommand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • jBPM 3.2.x
    • jBPM 3.3.1 GA, jBPM 3.2.7
    • Runtime Engine
    • None
    • Low

      The TaskInstanceEndCommand does not save the processInstance.
      This means (among others) that the process logs will not be persisted to the database, since they are only stored upon a call to the save() method on the jBPM Context.

      The solution is simple, add

      jbpmContext.save(taskInstance.getProcessInstance());

      to the command.

      I haven't checked the other commands, but the bug can occur in other commands.

            marco.rietveld Marco Rietveld (Inactive)
            jbarrez Joram Barrez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: