[
https://jira.jboss.org/jira/browse/JBPM-2835?page=com.atlassian.jira.plug...
]
Huisheng Xu updated JBPM-2835:
------------------------------
Attachment: JBPM-2835.patch
Here is the patch and testcase. Just use Arul's codes, add a line in the
HistoryTaskDetail
HistroyDetail not saved in database.
------------------------------------
Key: JBPM-2835
URL:
https://jira.jboss.org/jira/browse/JBPM-2835
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.4
Reporter: Arul Kalai
Assignee: Huisheng Xu
Fix For: jBPM 4.4
Attachments: JBPM-2835.patch
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++;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira