-
Type:
Feature Request
-
Resolution: Unresolved
-
Priority:
L3 - Default
-
None
-
Affects Version/s: None
-
Component/s: bpmn model api
-
None
If the root element of the XML uses a prefixed namespace for example
<bpmn2:definitions /> newly created elements by modelINstance.newInstance() doesn't reuse the namespace prefix and
add a local namespace uri to the element like
<endEvent id="endEvent" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"/>
AT:
- prefixes of root elements are correctly recognized and handled
- there should be tests for different namespace/prefix scenarios
Note:
- fix will probably involve org.camunda.bpm.model.xml.impl.util.XmlQName#determinePrefixAndNamespaceUri