Hi, Im trying to get the historic user tasks assignee but I can not do it. Im using the following method to list all the activities in a specific process:
historyService.createHistoricActivityInstanceQuery()
but when I get the ‘getAssignee’ method it comes null or void.
Is there any way to do that?
HistoryService historyService = processEngine.getHistoryService();
List<HistoricActivityInstance> activities =
historyService
.createHistoricActivityInstanceQuery()
.processInstanceId(processId)
.orderByHistoricActivityInstanceStartTime()
.asc()
.list();
for (HistoricActivityInstance activity : activities) {
Actividad oActividad = new Actividad();
oActividad.setId(activity.getAssignee());
oActividad.setNombre(activity.getActivityName());
}
Thanks.