The diagram XML defines how a diagram and its processes are represented in BPMN format. This representation is used when exporting, importing, or integrating process models with external systems.
In Studio Modeler, diagrams are created and managed visually. Most users do not need to interact with diagram XML directly. However, it can be useful when troubleshooting, verifying the diagram for deployment or integration, or when integrating with third-party tools. For example, if a process fails to import, you can inspect the XML to verify that the diagram ID and name are correctly defined.
The XML structure reflects this design in a machine-readable format. .
A diagram is represented in BPMN XML within the <bpmn2:definitions> element. The following is an example:
<bpmn2:definitions id="model-1bf32338-2bc2-4af2-9496-e9a031e22142" name="requests-and-orders">
In this structure:
- The id attribute represents the unique identifier of the diagram, corresponding to the Diagram ID property in the UI
- The name attribute represents the diagram name, corresponding to the Diagram Name property in the UI