Hello,
I am trying to fetch tasks that have state either “claimed” or “created” with the following code:
var tasks = historyService.createHistoricTaskInstanceQuery().or().taskState("claimed").taskState("created").endOr().list();
but it doesn’t work.
I’ve checked the sql query and it’s not correct.
However, when I put two different parameters it works, e.g.
historyService.createHistoricTaskInstanceQuery().or().taskState("claimed").taskAssignee("ed").list();
How can I achieve the first case?