本文整理汇总了Java中org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo类的典型用法代码示例。如果您正苦于以下问题:Java KewAttributeDefinitionBo类的具体用法?Java KewAttributeDefinitionBo怎么用?Java KewAttributeDefinitionBo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
KewAttributeDefinitionBo类属于org.kuali.rice.kew.impl.type包,在下文中一共展示了KewAttributeDefinitionBo类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testKewTypeBoFullPersist
import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
@Test
public void testKewTypeBoFullPersist() {
KewTypeBoBuilder builder = new KewTypeBoBuilder("testType", "testNamespace").setServiceName("testService");
KewTypeBo kewTypeBo = builder.build();
for (int i=1; i<=3; i++) {
KewAttributeDefinitionBo attributeDefn = new KewAttributeDefinitionBo();
attributeDefn.setName("attrDef"+i);
attributeDefn.setDescription("this is a description of attrDef" + i);
attributeDefn.setComponentName("componentName" + i);
attributeDefn.setLabel("label" + i);
attributeDefn.setNamespace(kewTypeBo.getNamespace());
attributeDefn = dataObjectService.save(attributeDefn);
KewTypeAttributeBo typeAttribute = new KewTypeAttributeBo();
typeAttribute.setSequenceNumber(i);
typeAttribute.setAttributeDefinition(attributeDefn);
kewTypeBo.getAttributes().add(typeAttribute);
typeAttribute.setType(kewTypeBo);
}
dataObjectService.save(kewTypeBo);
}
示例2: testKewTypeBoFullPersist
import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
@Test
public void testKewTypeBoFullPersist() {
KewTypeBoBuilder builder = new KewTypeBoBuilder("testType", "testNamespace").setServiceName("testService");
KewTypeBo kewTypeBo = builder.build();
for (int i=1; i<=3; i++) {
KewAttributeDefinitionBo attributeDefn = new KewAttributeDefinitionBo();
attributeDefn.setName("attrDef"+i);
attributeDefn.setDescription("this is a description of attrDef" + i);
attributeDefn.setComponentName("componentName" + i);
attributeDefn.setLabel("label" + i);
attributeDefn.setNamespace(kewTypeBo.getNamespace());
boService.save(attributeDefn);
KewTypeAttributeBo typeAttribute = new KewTypeAttributeBo();
typeAttribute.setSequenceNumber(i);
typeAttribute.setAttributeDefinition(attributeDefn);
kewTypeBo.getAttributes().add(typeAttribute);
}
boService.save(kewTypeBo);
}
示例3: from
import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
public static PeopleFlowAttributeBo from(KewAttributeDefinition attributeDefinition, String id, PeopleFlowBo peopleFlow,
String value) {
if (null == attributeDefinition) {
return null;
}
PeopleFlowAttributeBo peopleFlowAttributeBo = new PeopleFlowAttributeBo();
peopleFlowAttributeBo.setId(id);
peopleFlowAttributeBo.setPeopleFlow(peopleFlow);
peopleFlowAttributeBo.setValue(value);
peopleFlowAttributeBo.setAttributeDefinition(KewAttributeDefinitionBo.from(attributeDefinition));
return peopleFlowAttributeBo;
}
示例4: setAttributeDefinition
import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
/**
* @see #getAttributeDefinitionId()
*/
public void setAttributeDefinition(KewAttributeDefinitionBo attributeDefinition) {
this.attributeDefinition = attributeDefinition;
}
示例5: getAttributeDefinition
import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
/**
* Returns a {@link KewAttributeDefinitionBo}
* @return {@link KewAttributeDefinitionBo}
*/
public KewAttributeDefinitionBo getAttributeDefinition() {
return attributeDefinition;
}