I am using JBPM 5.4 and I can get the assigned tasks and candidate tasks for specific user.
I want to know how can i get the completed tasks for the user and his outputs
List<TaskSummary> tasks = taskSummaryResponseHandler.getResults();
finsihTask(taskId,"Mahmoud");
responseHandler.waitTillDone(1000);
System.out.println("looping on mahmoud tasks "+tasks.size());
for(TaskSummary taskSummary : tasks){
System.out.println("status is "+taskSummary.getStatus());
System.out.println("created by "+taskSummary.getCreatedBy());
System.out.println("created date "+taskSummary.getCreatedOn());
if("InProgress".equalsIgnoreCase(taskSummary.getStatus().name())){
System.out.println("user will finish task "+taskSummary.getName());
finsihTask(taskSummary.getId(), "Mahmoud");
}
if("Reserved".equalsIgnoreCase(taskSummary.getStatus().name())){
System.err.println("user will take task "+taskSummary.getName());
}
}