[jboss-user] [jBPM] - Re: How to get tasks based on a Process ID in jBPM5.3
Aadav N
do-not-reply at jboss.com
Fri Jan 11 10:19:59 EST 2013
Aadav N [https://community.jboss.org/people/aadav86] created the discussion
"Re: How to get tasks based on a Process ID in jBPM5.3"
To view the discussion, visit: https://community.jboss.org/message/790443#790443
--------------------------------------------------------------
> roxy1987 wrote:
>
> You can connect using a TaskClient and get the tasks using the method suggested above :
>
>
> //Connect with the Human Task handler using the task client
> //Create a list of status of the tasks you are interested in.
> statusList.add(Status.Completed);
> statusList.add(Status.Reserved);
> statusList.add(Status.Ready);
>
>
>
> client.getTasksByStatusByProcessId(processInstanceId,statusList, "en-UK", responseHandler);
> List<TaskSummary> taskSummaryList = responseHandler.getResults();
> *for*(TaskSummary taskSummary : taskSummaryList)
> {
> //retrieve the details
> taskSummary.getId();
> taskSummary.getName();
> taskSummary.getCreatedOn();
> taskSummary.getActualOwner();
> taskSummary.getStatus();
> }
>
Thank you roxy1987
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/790443#790443]
Start a new discussion in jBPM at Community
[https://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/20130111/7a6d3037/attachment.html
More information about the jboss-user
mailing list