[jboss-user] [jBPM Development] New message: "Re: jBPM4 History/Log implementation."
Arul Kalai
do-not-reply at jboss.com
Thu Feb 25 04:52:04 EST 2010
User development,
A new message was posted in the thread "jBPM4 History/Log implementation.":
http://community.jboss.org/message/528392#528392
Author : Arul Kalai
Profile : http://community.jboss.org/people/Kalairajan
Message:
--------------------------------------------------------------
Bug !!!
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++;
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528392#528392
More information about the jboss-user
mailing list