Question
Issues after populating a role programatically
I have a need to send an email out to a list of selected roles. A user selects one or more values from a multivalued attribute on the change object. This get's read in and stored in an arraylist. I then have a method that takes a role and populates another role with the members of the fromRole.
This works great from the perspective that I can see that the team instance has been updated with the new people in the role, but when I add that role to the recipient of an email robot, the users are not emailed. If assign the role to an assigned activity, they do get the assigned activity.
Below is the method that I'm using to copy the participants from one role to another. Any idea why the email robot would work differently?
staticsetRoleParticipants(ObjectReference self, String toRole, String fromRole){
tryparticipants = team.getPrincipalTarget(from_role);
(participants.hasMoreElements()){TeamHelper.
service}
(WTException e) {e.printStackTrace();
}
}

