cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Adding Team Template in the workflow

surajakumar
1-Newbie

Adding Team Template in the workflow

Dear All,

I have added the Variable'' Wt.team.TeamTemplate''in the'Assign the product team' activity in the Product Workflow. So that Product manager will get a assignment to select the team which is readily available in the team template.

But after completing the 'Assign the product team' task , the team of that productis not getting updated. It is showing that The roles in the teams are empty.Is there any other variable to assign the team to the workflow at any time?

Thanks in Advance.

Regards

S.Rajakumar

1 REPLY 1
dwilliams
6-Contributor
(To:surajakumar)

You will probably have to use an expression to re-team the object. You could use code similar to below in a "complete" activity transition or in an expression robot after the completion of the task.

wt.change2.WTChangeIssue cO = (wt.change2.WTChangeIssue) primaryBusinessObject;

String teamTeamplateName= team.getName();

Vector v=wt.team.TeamHelper.service.findTeamTemplates(cO.getContainerReference ());
for (int i=0; i<v.size();i++)<br/>{
wt.team.TeamTemplateReference tt=(wt.team.TeamTemplateReference)v.get(i);
if (tt.getName().equals(teamTeamplateName))
{
wt.team.TeamHelper.service.reteam(cO,tt);
}
}

Hope this helps,
Dax Williams
Business Administrator, Windchill
Lifetime Products, Inc.
-<">mailto:->

[cid:image001.jpg@01C9A3EE.E4900F00]
Top Tags