AnsweredAssumed Answered

History query returns incorrect result set

Question asked by frauke on Oct 15, 2010
Latest reply on Oct 25, 2010 by frauke
Hello everybody,

the query

List<HistoricProcessInstance> his =processEngine.getHistoryService()
                    .createHistoricProcessInstanceQuery()
                    .processInstanceId(((ExecutionEntity) execution).getProcessInstanceId())
                    .list();
returns a list of all history entries, instead of a single line as expected.
And the single result query throws an exception

HistoricProcessInstance his =processEngine.getHistoryService()
                    .createHistoricProcessInstanceQuery()
                    .processInstanceId(((ExecutionEntity) execution).getProcessInstanceId())
                    .singleResult();
When I inspect the database table, there is only one record with the expected process instance id.

Frauke

Outcomes