I am trying to retrieve Group Task List using REST call. But i am unable to retrieve full task list.
This is the REST GET call i used as mentioned in the Activiti user guide.
/activiti-rest/service/runtime/tasks?candidateGroup="management"
But It only retrieves 10 tasks.But actually it contains total 50 tasks.When i used Activiti Explorer, under Queued Management(50) all 50 tasks get listed.How do i retrieve total 50 group tasks using REST.
Object
data: Array[10]
order: "asc"
size: 10
sort: "id"
start: 0
total: 50
taskService.createTaskQuery().taskCandidateGroup("management").list();
If I use this I was able to get all 50 tasks but i want to do it using REST call.So please show me how to retrieve this?
public @ResponseBody List<String> getGroupTask() {
String group="management";
List<Task> taskList=taskService.createTaskQuery().taskCandidateGroup(group).list();
return taskList;
}
Also I try to use this approach but it gives me an error
HTTP Status 500 - Could not write JSON: lazy loading outside command context (through reference chain: java.util.ArrayList[0]->org.activiti.engine.impl.persistence.entity.TaskEntity["variableInstances"]); nested exception is org.codehaus.jackson.map.JsonMappingException: lazy loading outside command context (through reference chain: java.util.ArrayList[0]->org.activiti.engine.impl.persistence.entity.TaskEntity["variableInstances"])
So What is this