- 浏览: 117624 次
- 性别:
- 来自: 武汉
最新评论
The code can be used directly in the workflow.
Notice the red string which should be fixed.
wt.inf.container.WTContainer c =
wt.inf.container.WTContainerHelper.getContainer((wt.inf.container.WTContained)primaryBusinessObject);
wt.inf.container.WTContainerRef ref = wt.inf.container.WTContainerRef.newWTContainerRef(c);
wt.team.TeamTemplate team = wt.team.TeamHelper.service.getTeamTemplate(ref,"CostAnalysisReport team
");
java.util.HashMap map = (java.util.HashMap)team.getRolePrincipalMap();
wt.project.Role r = wt.project.Role.toRole("REVIEWER
");
wt.team.Team ateam = (wt.team.Team)(((wt.team.TeamManaged)self.getObject()).getTeamId().getObject());
java.util.List l = (java.util.List)map.get(r);
for(int i=0;i<l.size();i++){
wt.org.WTPrincipalReference rf = (wt.org.WTPrincipalReference)l.get(i);
Object obj = rf.getObject();
if (obj instanceof wt.org.WTGroup){
java.util.Enumeration en = ((wt.org.WTGroup)obj).members();
while(en.hasMoreElements()){
wt.org.WTUser user = (wt.org.WTUser)en.nextElement();
wt.team.TeamHelper.service.addRolePrincipalMap(r,user,ateam);
}
}else{
wt.team.TeamHelper.service.addRolePrincipalMap(r,(wt.org.WTUser)obj,ateam);
}
}
ateam = (wt.team.Team)wt.fc.PersistenceHelper.manager.refresh(ateam);
ateam = (wt.team.Team)wt.fc.PersistenceHelper.manager.save(ateam);
wt.team.TeamReference tt = wt.team.TeamReference.newTeamReference(ateam);
wt.team.TeamHelper.service.augmentRoles((wt.lifecycle.LifeCycleManaged)primaryBusinessObject,tt);
发表评论
-
How to deactivate a user in Windchill?
2012-10-17 22:09 965Introduction Procedure base ... -
How to shorten display time for the inline message in Windchill 10.0
2012-09-03 00:24 1166标题 How to shorten display ... -
How to perform SaveAs on WTPart using API in Windchill PDMLink 10.0
2012-04-05 18:38 1526标题 How to perform SaveAs ... -
Manual Installation Steps For Archive Client Installation on Red Hat Linux 4.0
2012-03-31 19:18 967On Red hat Linus 4.0 (64-Bit), ... -
Windchill单点登录方案
2012-03-31 00:20 2999Windchill SSO 单点登录 可下载附件查看。 ... -
如何在Windchill PDMLink 9.1设定多个Background Method Server去执行特定的工作流
2012-03-31 00:17 2650标题 如何在Windchill PDMLink 9.1 ... -
通过IE8访问Windchill PDMLink 10.0,出现警告提示"Windchill 只支持标准模式下的浏览器".
2012-03-31 00:15 3030标题 通过IE8访问Windchill PDMLink ... -
JSP Authentication with the Method Server
2012-02-07 20:31 3051During development for a cus ... -
Solution for searching the latest revision object
2012-02-01 11:44 1001// Implement your query ... -
Solution for search object with IBA Attribute
2012-02-01 11:39 1460QuerySpec qs = new Quer ... -
Required Ports for Windchill
2011-10-29 18:53 1043Windchill utilizes multiple por ... -
[WIP] How to see the document creator full name instead of the login name in DTI
2011-09-07 14:23 845标题 [WIP] How to see the doc ... -
Windchill Project Daily Build
2011-08-26 22:54 677下载软件: ant svnant sliksvn htt ... -
How to set schedule for Synchronization from Replica to Master?
2011-08-23 10:17 1063To do this, please follow these ... -
How to Disallow Anonymous Access to Aphelion LDAP?
2011-06-12 17:34 1639Description This TPI add ... -
MethodServer Exits Prematurely With the Error *com.ptc.windchill.upgrade.history
2011-06-11 23:39 2887Description ---------------- ... -
从Aphelion迁移至WindchillDS
2011-06-11 23:00 915假设: 1. Aphelion ... -
How to Configure Windchill with Active Directory
2011-06-09 22:28 3770说明 This article describe ... -
Taking the Windchill System Offline
2011-06-09 22:20 1175Description This documen ... -
浅谈基于Info*Engine的Windchill系统集成应用
2011-06-09 21:04 3474...
相关推荐
OptimaJet.Workflow.Core程序集 OptimaJet.Workflow.Core程序集
下载后保存的名字必须为workflow.part1.rar、workflow.part2.rar、workflow.part3.rar workflow.part1.rar的下载地址:http://download.csdn.net/source/624487 workflow.part2.rar的下载地址:...
下载后保存的名字必须为workflow.part1.rar、workflow.part2.rar、workflow.part3.rar workflow.part1.rar的下载地址:http://download.csdn.net/source/624487 workflow.part2.rar的下载地址:...
下载后保存的名字必须为workflow.part1.rar、workflow.part2.rar、workflow.part3.rar workflow.part1.rar的下载地址:http://download.csdn.net/source/624487 workflow.part2.rar的下载地址:...
介绍windows workflow的技术知识,英文解密版
Wrox.Professional.Workflow.in.SharePoint.2010.Real.World.Business.Workflow.Solutions.2012
Packtpub.Microsoft.Windows.Workflow.Foundation.4.0.Cookbook.Sep.2010.rar
Pro.WF.Windows.Workflow.in.NET.4.0一书配套代码 高级编程
Windows.Graphics.Printing.Workflow.Native
Packt.Microsoft.Windows.Workflow.Foundation.4.0.Cookbook
Wrox.Professional.Microsoft.SharePoint.2007.Workflow.Programming.Sep.2008
An Overview of Workflow Management:From Process Modeling to Workflow Automation Infrastructure
microsoft.office.workflow.tasks.dll
Aspose.Workflow是一个无图形用户界面的.Net控件,该控件提供了一个功能强大的工作流引擎以及一整套符合业界标准的工作流对象。为了更好的管理工作流信息,Aspose.Workflow的内核是依循WFMC标准来构建的并且在构建...
Print.Workflow.Source
Wrox.Professional.Windows.Workflow.Foundation.Mar.2007.eBook-BBL.rar
Workflow.VisualBasic.Targets
Microsoft.Press.Microsoft.Windows.Workflow.Foundation.Step.by.Step.Mar.2007
Sams.Presenting.Windows.Workflow.Foundation.Sep.2005.eBook-DDU