AnsweredAssumed Answered

HistoryService only shows historic user tasks, not other tasks. Is this a bug?

Question asked by jesper1 on Apr 29, 2016
Latest reply on May 2, 2016 by jesper1
Hello,

I am doing a query for tasks on the HistoryService. I have a simple test process that contains a user task and a service task (implemented in Java code, using a class that implements JavaDelegate).

When I query the tasks for a process, like this:

List<HistoricTaskInstance> taskInstances = historyService.createHistoricTaskInstanceQuery()
        .processInstanceId(processInstanceId).orderByTaskCreateTime().asc().list();
then I only get the user task and not the service task.

Is this what is to be expected, or is this a bug in Activiti? I expected it to return all tasks, not just user tasks.

Outcomes