[jboss-user] [jBPM] - Getting the last actor of the completed task
Maciej Swiderski
do-not-reply at jboss.com
Tue May 4 12:18:31 EDT 2010
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"Getting the last actor of the completed task"
To view the discussion, visit: http://community.jboss.org/message/541133#541133
--------------------------------------------------------------
Hi,
in general you can do it using TaskService and TaskQuery, as follows:
List<Task> tasks = taskService.createTaskQuery().
processInstanceId(processInstance.getId()).activityName("activityName").list();
You can use as well orderByDesc or Asc to sort the result.
HTH
Maciej
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/541133#541133]
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/20100504/8fadfa36/attachment.html
More information about the jboss-user
mailing list