update - 修复获取流程列表按钮type字段为空问题

This commit is contained in:
yangqicheng 2024-05-07 17:27:41 +08:00
parent 613c34c992
commit 1bd1d6d75a

View File

@ -195,6 +195,7 @@ public final class BpmnMetaParserHelper {
buttonMetaInfo.setBtnKey(i.getAttributeValue(null, ELEMENT_ATTRIBUTE_KEY));
buttonMetaInfo.setBtnName(i.getAttributeValue(null, ELEMENT_ATTRIBUTE_NAME));
buttonMetaInfo.setChecked(Boolean.valueOf(i.getAttributeValue(null, ELEMENT_ATTRIBUTE_CHECKED)));
buttonMetaInfo.setType(i.getAttributeValue(null, ELEMENT_ATTRIBUTE_TYPE));
//如果order不是字符类型或者为空,设置默认值0
String order = i.getAttributeValue(null, ELEMENT_ATTRIBUTE_ORDER);
buttonMetaInfo.setOrder(org.apache.commons.lang3.StringUtils.isNumeric(order) ? Integer.parseInt(order) : 0);