AnsweredAssumed Answered

Count with OR(), processVariableValueEquals and taskAssignee

Question asked by hybaken on Feb 2, 2015
Latest reply on Jul 12, 2016 by hybaken
Hello,
when I m using this filters on HistoricTaskInstanceQuery:
.or()
.processVariableValueEquals("VarTest", "test")
.taskAssignee("test")
.endOr();

and ask HistoricTaskInstanceQuery for count(), it returns incorrect number.
Seems some join in HistoricTaskInstance.xml is not correct. I tried to used the same select generated via api directly to database and it returns the rows with the same ACT_HI_TASKINST._ID.

Outcomes