Assign User to Role in CR for use in CN
I am trying to get the user that completes a specific task in the ECR, assign them to a Role and propogate that to the ECN. Here is what I have thus far:
wt.inf.container.WTContainer cont = ((wt.inf.container.WTContained)primaryBusinessObject).getContainer();
wt.inf.team.ContainerTeam contTeam = wt.inf.team.ContainerTeamHelper.service.getContainerTeam( (wt.inf.team.ContainerTeamManaged)cont);
wt.org.WTPrincipal wtprincipal1 = wt.session.SessionMgr.getPrincipal();
chgmgmtldr = (wt.org.WTUser)wt.session.SessionMgr.getPrincipal();
wt.inf.team.ContainerTeamHelper.service.addMember(contTeam,crLeader,wtprincipal1);
Printing the values for these looks correct:
Container= Test Product
contTeam= Product Test Product
wtprincipal1= User
name = Administrator
inflated = true......etc
However, what gets assigned to Role crLeader is a value of ASSIGNEE. Not what I wanted. I would expect it would be the wtprincipal as shown. How can I get this assigned correctly and am I going down the correct path to get this user/role from the ECR to the ECN?
Thanks,
James

