当前位置: 首页>>代码示例>>Java>>正文


Java TestDocContent类代码示例

本文整理汇总了Java中org.kuali.rice.kew.routemodule.TestDocContent的典型用法代码示例。如果您正苦于以下问题:Java TestDocContent类的具体用法?Java TestDocContent怎么用?Java TestDocContent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TestDocContent类属于org.kuali.rice.kew.routemodule包,在下文中一共展示了TestDocContent类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateDocContent

import org.kuali.rice.kew.routemodule.TestDocContent; //导入依赖的package包/类
private TestDocContent generateDocContent() {
	TestDocContent docContent = new TestDocContent();
	List<TestRouteLevel> routeLevels = new ArrayList<TestRouteLevel>();
	TestRouteLevel routeLevel1 = new TestRouteLevel();
	routeLevels.add(routeLevel1);
	docContent.setRouteLevels(routeLevels);
	routeLevel1.setPriority(1);
	List<TestResponsibility> responsibilities = new ArrayList<TestResponsibility>();
	routeLevel1.setResponsibilities(responsibilities);
	TestResponsibility responsibility1 = new TestResponsibility();
	responsibility1.setActionRequested(KewApiConstants.ACTION_REQUEST_APPROVE_REQ);
	responsibility1.setPriority(1);
	TestRecipient recipient1 = new TestRecipient();
	recipient1.setId(getPrincipalIdForName("rkirkend"));
	recipient1.setType(RecipientType.PRINCIPAL.getCode());
	responsibility1.setRecipient(recipient1);
	responsibilities.add(responsibility1);
	return docContent;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:RoleServiceTest.java

示例2: generateDocContent

import org.kuali.rice.kew.routemodule.TestDocContent; //导入依赖的package包/类
private TestDocContent generateDocContent() {
	TestDocContent docContent = new TestDocContent();
	List routeLevels = new ArrayList();
	TestRouteLevel routeLevel1 = new TestRouteLevel();
	routeLevels.add(routeLevel1);
	docContent.setRouteLevels(routeLevels);
	routeLevel1.setPriority(1);
	List responsibilities = new ArrayList();
	routeLevel1.setResponsibilities(responsibilities);
	TestResponsibility responsibility1 = new TestResponsibility();
	responsibility1.setActionRequested(KewApiConstants.ACTION_REQUEST_APPROVE_REQ);
	responsibility1.setPriority(1);
	TestRecipient recipient1 = new TestRecipient();
	recipient1.setId(getPrincipalIdForName("rkirkend"));
	recipient1.setType(RecipientType.PRINCIPAL.getCode());
	responsibility1.setRecipient(recipient1);
	responsibilities.add(responsibility1);
	return docContent;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:20,代码来源:RoleServiceTest.java


注:本文中的org.kuali.rice.kew.routemodule.TestDocContent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。