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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user