This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: How to get tasks based on a Process ID in jBPM5.3swiderski.maciej Jan 11, 2013 6:49 AM (in response to aadav86)A dedicated method for this was added 5.4: getTasksByStatusByProcessId If you cannot upgrade to 5.4 then probably the only way is to use deprecated query method on taskClient as a workaround. HTH 
- 
        2. Re: How to get tasks based on a Process ID in jBPM5.3roxy1987 Jan 11, 2013 9:50 AM (in response to aadav86)1 of 1 people found this helpfulYou 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(); }
- 
        3. Re: How to get tasks based on a Process ID in jBPM5.3aadav86 Jan 11, 2013 9:52 AM (in response to swiderski.maciej)Maciej Swiderski wrote: A dedicated method for this was added 5.4: getTasksByStatusByProcessId If you cannot upgrade to 5.4 then probably the only way is to use deprecated query method on taskClient as a workaround. HTH Thank you Maciejs.. Aadav 
- 
        4. Re: How to get tasks based on a Process ID in jBPM5.3aadav86 Jan 11, 2013 10:19 AM (in response to roxy1987)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 
 
     
    