AnsweredAssumed Answered

get finished process instances which involved a  user

Question asked by fatma19 on May 19, 2017
Latest reply on May 20, 2017 by daisuke-yoshimoto

i am currently trying to get finished process Instances with  processDefinitionKey("courriersArrivés") and i want to check which process instances involved the user with id "ha".
when i type this 
System.out.println( historyService.createHistoricProcessInstanceQuery().processDefinitionKey("courriersArrivés").involvedUser("ha").finished().list().size());
i always got 0 :/ even i am sure that i have tasks whcih where assigned to "ha" because when the process is runnig ha recieve its tasks,but when it is finished i face this problem

So how to do that in activiti ? 

Thank's in advanced

Outcomes