[jboss-user] [jBPM] - Getting the assignee from the last activity
C. Mourad Jaber
do-not-reply at jboss.com
Fri May 7 09:12:59 EDT 2010
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100507/98055ad9/attachment-0001.html
More information about the jboss-user
mailing list