Hum thanks, it works !
...
public void notify(EventListenerExecution execution) throws Exception {
TaskService taskService = processEngine.getTaskService();
Task task = taskService.createTaskQuery().processInstanceId(execution.getProcessInstance().getId()).uniqueResult();
if(task != null){
execution.createVariable("lastAssignee", task.getAssignee());
}
}
...
I don't know if it will work every time, is there an other possibility to get the current task ?
Regards