Finding historic tasks queried by same processVariables returns wrong count result

Description

Counting (historic) tasks by activiti queries using count method returns wrong number of tasks when using processVariableValueEquals with same keys and different values multiple times in an or clause. However, method list returns correct number of task instances. But using list().size() instead of count() will produce unnecessary overhead.
I'd like to find all tasks where a processvariable x of type string is in a set of given values for x. Something like processVariableValueIn(String variableName, List<String> values).

Environment

Windows 8.1 with postgres

Status

Assignee

Unassigned

Reporter

Antonio Rella

Labels

None

Components

Affects versions

Priority

Medium
Configure