How to get GroupIds from Group name in a Script Task

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

How to get GroupIds from Group name in a Script Task

Hi all,

I'm struggling to build a groupIds List from the groups names.

I'm trying to use a MultiInstance Sub-Process to Review/Approve a document. The user will choose in a form which groups should review the document, so if I understood correctly I need to create a List with the groupsIds selected (like ["25","35,"45",...] and input this list in the "Collection (Multi Instance)" field of the sub-process properties. 

So, how can I get the GroupsId from the Groups names? Or is there any other approach? I'm trying to create this list in a Service Task using Groovy. Any help?