Here is a codesandbox that shows my problem:
When I try to load a diagram which contains the following:
<bpmn2:extensionElements>
<pp:element config="%7B%22name%22%3A%22test%22%2C%22trigger%22%3A%22%22%2C%22buttonText%22%3A%22%22%2C%22action%22%3A%22%22%2C%22field%22%3A%22%22%2C%22section%22%3A%22%22%7D" />
</bpmn2:extensionElements>
then diagram renders with:
<bpmn2:extensionElements />
This can be seen in sandbox by clicking “get xml”.
This only happens when I initialize diagram with Moddle Extensions:
this.modeler = new BpmnModeler({
container: "#bpmnview",
keyboard: {
bindTo: window
},
additionalModules: [customControls],
moddleExtensions: {
propertyPanel: propertyPanelExtension
}
});
If I remove moddleExtensions
from initializer, then diagram loads correctly.