update - BPMN 协议转换中,自定义按钮支持
This commit is contained in:
parent
5c1dd8b9f8
commit
8f46401cb9
@ -313,6 +313,12 @@ public final class BpmnJsonConverterUtil {
|
||||
disabledAttribute.setName(ELEMENT_ATTRIBUTE_DISABLED);
|
||||
disabledAttribute.setValue(String.valueOf(i.getDisabled()));
|
||||
button.addAttribute(disabledAttribute);
|
||||
|
||||
ExtensionAttribute typeAttribute = new ExtensionAttribute();
|
||||
typeAttribute.setName(ELEMENT_ATTRIBUTE_TYPE);
|
||||
typeAttribute.setValue(StringUtils.hasText(i.getType()) ? i.getType() : "SYSTEM");
|
||||
button.addAttribute(typeAttribute);
|
||||
|
||||
initiator.addChildElement(button);
|
||||
});
|
||||
buttonConfigElement.addChildElement(initiator);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user