Hi folks. I wanna know if theres any way to collect all finished tasks of a process definition, not only User Tasks, but also script tasks, email tasks, etc.
Thank you Martin. It works. Code used: <code> List<HistoricActivityInstance> instances = historyService.createHistoricActivityInstanceQuery() .processInstanceId(processInstanceId) .list(); </code> Now i can display the process state on diagram