Get username of the users of a group assignees alfresco

17 views
Skip to first unread message

Patrícia Sousa

unread,
Jun 26, 2016, 12:16:38 PM6/26/16
to Alfresco Technical Discussion
I'm trying to get the username of a group of assignees in a workflow creation.

For assignees I made this:

 

    ActivitiScriptNodeList assignees = (ActivitiScriptNodeList) execution.getVariable("bpm_assignees");
           
if(assignees == null) {
               
System.out.println("No assignees.");
           
} else {
               
for (ActivitiScriptNode personNode : assignees) {
                   
String username = (String) personNode.getProperties().get("cm:userName");
                    listAssignees
.add(username);
                   
System.out.println("Username: " + username);
               
}
           
}



But for groups, the ActivitScriptNodeList not works.

How can I do this for bpm_groupAssignees?
Reply all
Reply to author
Forward
0 new messages