- 浏览: 120593 次
- 性别:
- 来自: 武汉
最新评论
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 1012Introduction Procedure base ... -
How to shorten display time for the inline message in Windchill 10.0
2012-09-03 00:24 1220标题 How to shorten display ... -
How to perform SaveAs on WTPart using API in Windchill PDMLink 10.0
2012-04-05 18:38 1555标题 How to perform SaveAs ... -
Manual Installation Steps For Archive Client Installation on Red Hat Linux 4.0
2012-03-31 19:18 1002On Red hat Linus 4.0 (64-Bit), ... -
Windchill单点登录方案
2012-03-31 00:20 3162Windchill SSO 单点登录 可下载附件查看。 ... -
如何在Windchill PDMLink 9.1设定多个Background Method Server去执行特定的工作流
2012-03-31 00:17 2687标题 如何在Windchill PDMLink 9.1 ... -
通过IE8访问Windchill PDMLink 10.0,出现警告提示"Windchill 只支持标准模式下的浏览器".
2012-03-31 00:15 3071标题 通过IE8访问Windchill PDMLink ... -
JSP Authentication with the Method Server
2012-02-07 20:31 3092During development for a cus ... -
Solution for searching the latest revision object
2012-02-01 11:44 1039// Implement your query ... -
Solution for search object with IBA Attribute
2012-02-01 11:39 1498QuerySpec qs = new Quer ... -
Required Ports for Windchill
2011-10-29 18:53 1076Windchill utilizes multiple por ... -
[WIP] How to see the document creator full name instead of the login name in DTI
2011-09-07 14:23 873标题 [WIP] How to see the doc ... -
Windchill Project Daily Build
2011-08-26 22:54 707下载软件: ant svnant sliksvn htt ... -
How to set schedule for Synchronization from Replica to Master?
2011-08-23 10:17 1107To do this, please follow these ... -
How to Disallow Anonymous Access to Aphelion LDAP?
2011-06-12 17:34 1669Description This TPI add ... -
MethodServer Exits Prematurely With the Error *com.ptc.windchill.upgrade.history
2011-06-11 23:39 2922Description ---------------- ... -
从Aphelion迁移至WindchillDS
2011-06-11 23:00 948假设: 1. Aphelion ... -
How to Configure Windchill with Active Directory
2011-06-09 22:28 3799说明 This article describe ... -
Taking the Windchill System Offline
2011-06-09 22:20 1216Description This documen ... -
浅谈基于Info*Engine的Windchill系统集成应用
2011-06-09 21:04 3517...
相关推荐
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 Foundation技术详解 #### 一、引言 《Microsoft Press Windows Workflow Foundation Step by Step(解密版)》是一本详细介绍Windows Workflow Foundation (WF) 技术的专业书籍。本书由Kenn ...
《TMS.Scripter.WorkFlow.Diagram:Delphi中的工作流图设计工具》 TMS.Scripter.WorkFlow.Diagram是一款专为Delphi开发者设计的工作流图组件,它为应用程序提供了强大的图形化工作流设计能力。这款组件是7z压缩格式...
Windows.Graphics.Printing.Workflow.Native
microsoft.office.workflow.tasks.dll
Workflow.VisualBasic.Targets
Aspose.Workflow是一个无图形用户界面的.Net控件,该控件提供了一个功能强大的工作流引擎以及一整套符合业界标准的工作流对象。为了更好的管理工作流信息,Aspose.Workflow的内核是依循WFMC标准来构建的并且在构建...
Print.Workflow.Source
Wrox.Professional.Windows.Workflow.Foundation.Mar.2007.eBook-BBL.rar
Sams.Presenting.Windows.Workflow.Foundation.Sep.2005.eBook-DDU
This practical guide shows you how to build your own software tools for customizing the GitHub workflow. Each hands-on chapter is a compelling story that walks you through the tradeoffs and ...
Windows.Graphics.Printing.Workflow