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).
Windows 8.1 with postgres