Question
Getting the user assigned to the role and setting an attribute value
Hi All,
OK...I've been pouring over the java docs but since I'm still learning this java nonsense, it's quite confusing to me.
In an expression robot, I need a way to extract who the user is assigned to a specified role (AUTHOR for example).
I believe this is what I need but I'm not sure:
wt.team.Team team = (wt.team.Team) ( (wt.workflow.engine.WfProcess) self.getObject() ).getTeamId().getObject();
java.util.Enumeration principal = team.getPrincipalTarget(wt.project.Role.toRole("AUTHOR"));
So in this case, the value of "principal" is the user who is the author in this workflow right?
Mike -
