This content has been marked as final.
Show 2 replies
-
1. Re: Getting the assignee from the last activity
swiderski.maciej May 7, 2010 7:40 AM (in response to newbeewan2)Hi,
one way to do that is to use event listener on event end for a task and then get assignee of that task and store is a process variable - lastAssignee.
HTH
Maciej
-
2. Re: Getting the assignee from the last activity
newbeewan2 May 7, 2010 9:12 AM (in response to swiderski.maciej)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