AnsweredAssumed Answered

Seems to be a bug in HistoricProcessInstanceQuery

Question asked by mutcha on Jan 27, 2014
If I create
HistoricProcessInstanceQuery
with
variableValueEquals(Object)
modifier and I have historic process instances where more than one variable has value which fullfill the variableValueEquals restriction, then:

I got different results in:
query.count

query.list


So the
query.list
returns different number of instances than
qyery.count
.

If I call query.list() I got redundant entries, It seems that in
HistoricProcessInstance.xml
the
selectHistoricProcessInstancesByQueryCriteria

must have "distinct" keyword, which is not present there currently.

After I added this keyword I got results expected by me and I do not get redundant entries any more.
Please verify if it is correct what I'm writing and if it is a bug or a feature?

Kind Regards.

Outcomes