Delegation state of task's not saved in database

Description

Delegation state of task's not saved in database the following is test codes
task.setOwner("wuzh");
task.delegate("other");
taskSrv.saveTask(task);
System.out.println("delegate " + " assignee "+task.getAssignee() + " owner "+ task.getOwner()+" "
+ task.getDelegationState());
task.setDelegationState(DelegationState.RESOLVED);
taskSrv.saveTask(task);

tasks = taskSrv.createTaskQuery().list();

...print Delegation state of task's ,still show state PENDING

I guess delegation state of TaskEntry is not included in getPersistentState method
public Object getPersistentState() {
Map<String, Object> persistentState = new HashMap<String, Object>();
persistentState.put("assignee", this.assignee);
persistentState.put("owner", this.owner);
persistentState.put("name", this.name);
persistentState.put("priority", this.priority);
if (executionId!=null) {
persistentState.put("executionId", this.executionId);
}
if (createTime!=null) {
persistentState.put("createTime", this.createTime);
}
if(description != null) {
persistentState.put("description", this.description);
}
if(dueDate != null) {
persistentState.put("dueDate", this.dueDate);
}
if (parentTaskId!=null) {
persistentState.put("parentTaskId", this.parentTaskId);
}
return persistentState;
}

Thanks.

Environment

JDK 6
windows
Elipse

Assignee

Falko Menge (camunda)

Reporter

zhihui.wu

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure