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?