Re: How to get the Candidate group of a given task in activit?
In the Activiti API, taskService.getIdentityLinksForTask(taskId) will return the IdentityLinks associated with the given task.
This can do that!
As for you did not return anything, you should check one thing :
In Activiti's tables, the data that exist in act_id_user and act_id_group must be associated by act_id_membership. Only in this way, the method can return data. Studying these tables is very important.