Flowable Task Listener

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

That is very strange - it should set the assignee from the variable.

How do you mean? At that point the first task is completed and is removed. Or do you mean in the history task counterpart?