IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Create monitor models > Defining the visual model > Preparing SVG diagrams
Adding the namespace definition
Each shape to be annotated within the Scalable Vector Graphics (SVG) diagram must be tagged with a special indicator that makes it visible to Business Monitor. Because an SVG diagram is simply an XML document, this tagging is accomplished by declaring an XML namespace specific to Business Monitor and then creating an ID attribute associated with that namespace for each shape to be dynamically updated in dashboard spaces.
The namespace must match targetNamespace in the XML schema for the monitor model (see the Monitor XML schema definition (monitor.xsd)). The SVG files that are created when you export business measures from WebSphere Business Modeler use the letters "mm" (for "monitor model") as the short form (or prefix) for this namespace. The prefix is then used throughout the SVG document to identify the information that is specific to Business Monitor.
To declare the namespace:
Procedure
- In a text editor, add the following attribute to the root SVG element (the <svg> element): xmlns:mm
- Add the following value for the attribute: http://www.ibm.com/xmlns/prod/websphere/monitoring/6.1.0/mm.
Results
The final result must be in the root SVG element and will take this form:<svg xmlns:mm="http://www.ibm.com/xmlns/prod/websphere/monitoring/6.1.0/mm" ...