AnsweredAssumed Answered

Use TaskQuery with taskCandidateUser OR taskAssignee

Question asked by edufrazao on May 27, 2015
Latest reply on May 28, 2015 by edufrazao
Hi folks. I'm running Activiti 5.17.0, and I'm running a Query like:


List<Task> tasks = taskService.createTaskQuery()
            .taskCandidateUser("user")
            .or()
            .taskAssignee("user")
            .orderByTaskCreateTime()
            .desc()
            .list();


And… This did'n work. Only the tasks where the user is candidate, (where some user group is candidate) is returned.
If I remove the or() and .taskCandidateUser("user"), off course the tasks directly assigneed to the user is found.

My query is wrong?

Outcomes