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

HistroyDetail not saved in database.

XMLWordPrintable

      JBPM version : 4.4-SNAPSHOT

      org.jbpm.pvm.internal.history.model.HistoryTaskImpl

      Newly created HistoryDetail is not added to the collection of the HistoryTaskImpl(Highlighted).

      public void updated(TaskImpl task) {
      if ( (assignee==null && task.getAssignee()!=null)

      (assignee!=null) && (!assignee.equals(task.getAssignee()))
      ) { addDetail(new HistoryTaskAssignmentImpl(assignee, task.getAssignee())); this.assignee = task.getAssignee(); }

      if (priority!=task.getPriority())

      { addDetail(new HistoryPriorityUpdateImpl(priority, task.getPriority())); this.priority = task.getPriority(); }

      if ( (duedate==null && task.getDuedate()!=null)

      (duedate!=null) && (!duedate.equals(task.getDuedate()))
      ) { addDetail(new HistoryTaskDuedateUpdateImpl(duedate, task.getDuedate())); this.duedate = task.getDuedate(); }

      }

      // details //////////////////////////////////////////////////////////////////

      public void addDetail(HistoryDetailImpl detail)

      { detail.setHistoryTask(this, nextDetailIndex); details.add(detail); nextDetailIndex++; }

              rebody HuiSheng Xu (Inactive)
              kalairajan_jira Arul Kalai (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: