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
i have already mention "ha" as a candidate in groupe "Bureau d'ordre",and this is how i assigned th task
taskService.addCandidateGroup(
taskService.createTaskQuery().processInstanceId(processInstance.getId()).list().get(0).getId(),
"Bureau d'ordre");
You should use TaskService.addCandidateUser, not TaskService.addCandidateGroup.
If you use only TaskService.addCandidateGroup, act_hi_identitylink has only a groupId.
If you use TaskService.addCandidateGroup, act_hi_identitylink has a userId and you can use involvedUser option.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.