taskService.createTaskQuery().or().taskUnassigned().taskAssigned(name).endOr().list();
I was just testing the functioning of or(). But it is behaving weird when I try to run above statement it gives me all the task which are assigned to some name and all the unassigned tasks.
But when I try to run the below command it doent give me the desired result. Can someone help me on this.And how should I include AND and OR in the taskQuery
taskService.createTaskQuery().or().taskUnassigned().taskCandidateGroupIn(roles).endOr().list();