最近开始使用 Camunda BPMN 并立即感到需要为我的用例扩展扩展元素下的属性。
目前,Camunda 提供了足够好的 CamundaProperty,但不适用于我希望在 BPMN 中拥有特定属性标签并仅收集这些属性的用例。
例子:
<bpmn:extensionElements>
<demo:properties>
<demo:property name="entitlement" value="assign" />
<demo:property name="processProp" value="enabled" />
</demo:properties>
<camunda:properties>
<camunda:property name="entitlement" value="assign" />
<camunda:property name="processProp" value="enabled" />
</camunda:properties>
</bpmn:extensionElements>
我正在扩展BpmnModelElementInstanceImpl
类以实现相同的目的并在 xml 中注册我的演示标签。
但是流程引擎无法识别标签。
请指导我解决这个问题。