Assign a group to a specific task

Hi, 

I am coding in BonitaStudio and want to assign a dynamic group to specific tasks.

I know I can use apiAccessor.processAPI.assignUserTask(taskId.toLong(), userId.toLong()) to assign a task to a user. 

But I would like to assign is to a group.

What API should I use or any Groovy script I can reference.

Please any suggestion, thank you.

Hi,

No, it is not possible. Tasks can only have one assignee from a candidate pool (cf actor mapping).
It is possible to dynamically refine the candidate pool using actor filters.

HTH
Romain