C. Mourad Jaber [
http://community.jboss.org/people/newbeewan2] replied to the discussion
"Getting the assignee from the last activity"
To view the discussion, visit:
http://community.jboss.org/message/541806#541806
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/541806#541806]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]