Hello,
I use a TaskListener to change the assignee of the task at create event.
the assignement works but after going to the next task the assignement of the previous task is lost and going to the original assignement value.
TaskListener
public void notify(DelegateTask delegateTask) {
// TODO get dynamicly the first validator for the owner.
delegateTask.setAssignee((String) delegateTask.getVariable("assignee"));
//task.setAssignee((String) delegateTask.getVariable("assignee"));
delegateTask.setVariable("assignee", delegateTask.getAssignee());
// Assign the owner of the task
delegateTask.setOwner((String) delegateTask.getVariable("owner"));
}
In addition , the changing of the owner is not taked at all