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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Adding Team Template in the workflow

surajakumar
1-Visitor

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

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]
Announcements


Top Tags