[jboss-user] [jBPM Users] - Re: EventListener questions
sebastian.s
do-not-reply at jboss.com
Tue Nov 3 09:18:46 EST 2009
This works for me. Note that I am using the process engine built by the default configuration which is stored in a static field in Configuration.
| public class ApprovalListener implements EventListener {
|
| private static final long serialVersionUID = 1L;
|
| @Override
| public void notify(EventListenerExecution execution) throws Exception {
| ProcessEngine processEngine = Configuration.getProcessEngine();
| HistoryService historyService = processEngine.getHistoryService();
| HistoryTask task = HistoryService.createHistoryTaskQuery().executionId(execution.getId()).uniqueResult();
|
| // now I can retrieve the information I wanted ..
| task.getAssignee()
| task.getCreateTime()
| ..
| }
|
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263700#4263700
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263700
More information about the jboss-user
mailing list