Hello,
Query for Tasks with task variable name/value and ‘like’ condition always returns empty
request.setIncludeProcessVariables(true); request.setIncludeTaskLocalVariables(true); QueryVariable user = new QueryVariable(); user.setName("taskUsers"); user.setValue("%|" + assignee + "|%"); user.setOperation(QueryVariable.QueryVariableOperation.LIKE.getFriendlyName()); user.setType("string"); request.setTaskVariables(Collections.singletonList(user));
I’ve tried it both with TaskQueryRequest and HistoricTaskInstanceQueryRequest.
In Admin UI I see task variables which should definitely match.
Thanks,
–MG