本文整理汇总了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;
}
示例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;
}