AnsweredAssumed Answered

List Tasks a user has completed?

Question asked by roadtripryan on Mar 11, 2014
Latest reply on Mar 17, 2014 by jbarrez
I can't quite figure this out. I have a process that a user completes a task on via:

Claimed: taskService.claim(tasks.get(0).getId(), username);
Completed: taskService.complete(taskId);

I have history level at full, so expected to be able to do:

historyService.createHistoricTaskInstanceQuery()
                                                        .taskAssignee(username)
                                                        .orderByTaskId().desc()
                                                    .list();

To get the last tasks a user has completed. This comes up empty, and in looking at ACT_HI_TASKINT, I am not sure how it relates back to the original task.

Can someone point me in the right direction? I assume I can get the last tasks a user has completed somehow?

Outcomes