cancel
Showing results for 
Search instead for 
Did you mean: 

Rest API 15.14.1 /query/tasks with candidateGroups error

grosserbetafan
Champ in-the-making
Champ in-the-making
I get {"errorMessage":"The server understands the content type of the request entity and the syntax of the request entity is correct but was unable to process the contained instructions","statusCode":422}
when I use candidateGroups in /query/tasks   (Rest API 15.14.1)

String baseURL = "http://localhost:8080/activiti-rest/service";
String a2 = baseURL + "/query/tasks";
HttpPost mypost = new HttpPost(a2);
mypost.addHeader("Content-type", "application/json");
JsonObject c = new JsonObject();
//c.addProperty("candidateGroup", "management");
//c.addProperty("candidateGroupIn", " [\"group1\",\"group2\"] "); // The server understands the content type of the request entity

c.addProperty("candidateGroups", " management");
   

Use Case: I want to have a task list  for a given  set of roles and a set of given variable conditions (on processInstanceVariables)
1 REPLY 1

grosserbetafan
Champ in-the-making
Champ in-the-making
I had a writing: mistake 15.16.1