- Use wt.inf.team.ContainerTeamHelper.addMember with Apply-Service webject
<%@page language="java"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<%@page import="java.util.*" %>
<%@page import="wt.util.WTException" %>
<%@page import="wt.fc.ObjectReference" %>
<%@page import="wt.fc.WTReference" %>
<%@page import="wt.fc.ReferenceFactory" %>
<%@page import="wt.team.*" %>
<%@page import="java.io.Externalizable" %>
<%@page import="com.infoengine.object.factory.Group" %>
<%@page import="com.infoengine.object.factory.Element" %>
<%@page import="com.infoengine.object.factory.Att"%>
<ie:webject name="Get-Properties" type="MGT">
<ie:param name="ATTRIBUTE" data="wt.federation.ie.VMName"/>
<ie:param name="GROUP_OUT" data="properties"/>
</ie:webject>
<% String usr="enduser"; %>
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])"/>
<ie:param name="WHERE" data="name=<%=usr%>"/>
<ie:param name="TYPE" data="wt.org.WTUser" />
<ie:param name="ATTRIBUTE" data="*"/>
<ie:param name="GROUP_OUT" data="WTPrincipal" />
</ie:webject>
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])"/>
<ie:param name="type" data="wt.inf.team.ContainerTeam"/>
<ie:param name="ATTRIBUTE" data="name"/>
<ie:param name="WHERE" data="name='Project - CustomT'"/>
<ie:param name="GROUP_OUT" data="team_gp"/>
</ie:webject>
<% Group team_gp = (Group) getGroup( "team_gp" );
wt.project.Role target_role = wt.project.Role.toRole("PROJECT MANAGER");
Enumeration elems = team_gp.getElements();
while (elems.hasMoreElements())
{
// here, adding the element role to the group team_gp
Element elem=(Element) elems.nextElement();
elem.addAtt(new Att("role",target_role));
} %>
<ie:webject name="Apply-Service" type="OBJ">
<ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])"/>
<ie:param name="SERVICE" data="wt.inf.team.ContainerTeamHelper"/>
<ie:param name="GROUP_IN" data="team_gp"/>
<ie:param name="METHOD" data="addMember"/>
<ie:param name="ARG" data="wt.inf.team.ContainerTeam=obid"/>
<ie:param name="ARG" data="wt.project.Role=role"/>
<ie:param name="ARG" data="wt.org.WTPrincipal='$(WTPrincipal[0]obid[0])'"/>
<ie:param name="GROUP_OUT" data="tempmembers"/>
</ie:webject>
|
相关推荐
Practical-Guide-to-Principal-Component-Methods-in-R是一本很好的讲解PCA等多元统计分析实战的书;作者也开发很多相关的R语言package。这本书原理和实践都有一定的涉及,并且对如何解读结果也有很好的总结。是大...
### Fast Principal Component Extraction Using Givens Rotations #### 摘要与背景 本文献介绍了一种基于Givens旋转的快速主成分提取方法。该方法改进了正交投影逼近和子空间跟踪(Orthogonal Projection ...
Asif Abbasi has worked in the industry for over 15 years, in a variety of roles starting from engineering solutions to selling solutions and everything in between. Asif is currently working with SAS a...
《多元分析II实践指南:R中的主成分方法》是一本专为学生和研究人员设计的数据挖掘实用教程,专注于主成分分析。作者Alboukadel Kassambara旨在提供一个既不过于理论化也不过分复杂的多变量分析指南。...
A project model is a means to reduce the communications overhead in a project. As shown by [Brooks, 1995], increasing the number of project participants increases the communication in the project ...
主成分分析(Principal Components Analysis,简称PCA)是一种广泛应用于多个领域的统计技术,包括但不限于人脸识别与图像压缩等高维数据处理场景。本教程旨在帮助读者理解PCA的基本概念及其应用场景。 PCA是一种...
Includes a detailed description of how to effectively extend or write hardware emulators using undocumented features of the configuration engine and emulator components Who is this book for? This ...
- **Reinforcement Learning:** Focuses on how agents can take actions in an environment to maximize some notion of cumulative reward. #### 6. **Practical Considerations** - **Overfitting and ...
"A principal odor map unifies diverse tasks in olfactory perception" 本文讨论了olfactory perception(嗅觉感知)领域中的重要问题,即如何将分子结构映射到嗅觉感知中。作者提出了一种基于图形神经网络...
- **A Simple Tracker:** Basic algorithms for tracking objects in video sequences. - **Motion Models:** Techniques for modeling the motion of objects, including Kalman filtering. - **Kalman Filtering:*...
主成分分析(Principal Components Analysis,简称PCA)是一种广泛应用于多个领域的统计技术,包括但不限于人脸识别与图像压缩等高维数据处理场景。PCA的主要目标是寻找数据中的模式,并通过降维的方式来简化这些...
- **例句**:She had to stay in bed with a bad cold. 41. **两件行李** _two pieces of baggage_ - **解释**:携带的两个行李物品。 - **例句**:He checked in two pieces of baggage for the flight. 42. *...
Probabilistic Reasoning in Multiagent Systems: A Graphical Models Approach by Yang Xiang ISBN:0521813085 Cambridge University Press © 2002 (294 pages) This book investigates the opportunities in...
or a business analyst looking for an introduction to predictive modeling using SAS Enterprise Miner, you'll be able to develop predictive models quickly and effectively using the theory and examples ...
- **Conditional Independence:** Concepts related to conditional independence are crucial for understanding how variables in a system are related to each other given certain conditions. ##### 13. **...