TaskQuery API does not support OR conditions at the moment.
It would be very helpful if we could use this condition to build more complex queries for example
all tasks which a user is candidate user or member of a candidate group.
At the moment this has to be executed in two separate queries or we have to use native queries.
Two different queries get complicated if we work with pagination and sorting.
Related forum post with example of Activiti API: https://forum.camunda.org/t/java-query-api-or-and-endor-clause/1785/2