Hello,
I am using historyService.createHistoricProcessInstanceQuery().includeProcessVariables()…..list() to create reports from historical process executions data. However, with more historic process executions, the createHistoricProcessInstanceQuery doesn't return not all the results.
In org.activiti.engine.impl.persistence.entity.HistoricProcessInstanceEntityManager I found:
// setting max results, limit to 20000 results for performance reasons
historicProcessInstanceQuery.setMaxResults(20000);
historicProcessInstanceQuery.setFirstResult(0);
Does it mean, that using includeProcessVariables() is not recommended for historic queries? Should I first get all HistoricProcessInstance and then retrieve historic variables?
Thanks.