本文整理汇总了Java中org.activiti.engine.form.FormProperty.getId方法的典型用法代码示例。如果您正苦于以下问题:Java FormProperty.getId方法的具体用法?Java FormProperty.getId怎么用?Java FormProperty.getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.engine.form.FormProperty
的用法示例。
在下文中一共展示了FormProperty.getId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convertFormData
import org.activiti.engine.form.FormProperty; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private List<FormAttribute> convertFormData(FormData formData) {
List<FormAttribute> props = new ArrayList<FormAttribute>();
for (FormProperty formProperty : formData.getFormProperties()) {
FormAttribute fa = new FormAttribute(formProperty.getId(), formProperty.getName(), formProperty.getValue(),
formProperty.getType().getName());
fa.setDatePattern(Objects.toString(formProperty.getType().getInformation("datePattern")));
fa.setItems((Map<String, String>) formProperty.getType().getInformation("values"));
fa.setReadable(formProperty.isReadable());
fa.setWriteable(formProperty.isWritable());
fa.setRequired(formProperty.isRequired());
props.add(fa);
}
return props;
}
示例2: FormPropertyVo
import org.activiti.engine.form.FormProperty; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public FormPropertyVo(FormProperty formProperty) {
this.id = formProperty.getId();
this.name = formProperty.getName();
this.value = formProperty.getValue();
this.type = formProperty.getType().getName();
this.datePattern = StringUtils.toString(formProperty.getType().getInformation("datePattern"));
this.setItems(((Map<String, String>) formProperty.getType().getInformation("values")));
this.readable = formProperty.isReadable();
this.writeable = formProperty.isWritable();
this.required = formProperty.isRequired();
}
示例3: getTaskVariables
import org.activiti.engine.form.FormProperty; //导入方法依赖的package包/类
@Override
public Map<String, Object> getTaskVariables(List<FormProperty> formProperties, Map<String, String> formData) {
Map<String, Object> map = new HashMap<>();
for (FormProperty formProperty : formProperties) {
String id = formProperty.getId();
if (!StrUtil.isEmpty(formData.get(id))) {
map.put(id, this.getVariable(formProperty, formData.get(id)));
}
}
return map;
}
示例4: getPropertyLabel
import org.activiti.engine.form.FormProperty; //导入方法依赖的package包/类
public String getPropertyLabel(FormProperty formProperty) {
if(formProperty.getName() != null) {
return formProperty.getName();
} else {
return formProperty.getId();
}
}