The element <diagramEditor> is the top-level element. All following diagram configuration elements are wrapped by this element. In order to automatically populate a diagram with nodes, the initial diagram nodes must be given via the slaveNode attribute.
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
acceptedChildren | optional | IDREFS | A list of nodes, which can be added to the diagram as top-level elements. | |
id | required | any | A unique ID, to which can be referenced in this document. | |
instantiationPoint | optional | String | Is currently not evaluated. | |
packageable | required | String | Formula assigning the element to the engineering object | |
router | required | String | ID of the router, who is described in the following | |
slaveNodes | optional | String | Formula,which returns a list of depending objects | |
title | required | String | Label of the diagram, when a new diagram is defined | |
version | required | String | Any version number |
Allowed sub-elements | Quantity |
---|---|
action | any |
command | any |
connection | any |
editRequestHandler | any |
node | at least 1 |
paletteEntry | any |
reference | any |
router | at least 1 |
To configure an overlay, the tag < editRequestHandler xsi:type="formui:formui-handler" /> is used to access the schema of the formui name space. To be able to use the schema of this name space, it must be introduced with the <diagramEditor> tag.
The following example code shows in bold letters, how the name space is extended by the schema for displaying Form-UIs in overlay tooltips.
<diagramEditor
xmlns="http://www.mind8.com/Diagram"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:formui="http://www.mind8.com/Diagram/Formui"
id="Diagram"
version="0.9"
title="Thermodynamic_Diagram"
packageable="=isInstanceOf('Thermodynamic_ModularSystem.Thermodynamic')"
instantiationPoint="=this" router="BendpointConnectionMode1"
acceptedChildren="AbstractThermodynamicComponent">
...
</diagramEditor>
This is the configuration of the Planning_Diagram of the BodyshellWork model.
<diagramEditor
xmlns:formui="http://www.mind8.com/Diagram/Formui"
xmlns="http://www.mind8.com/Diagram"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
id="Diagram"
version="0.9"
title="Planning_Diagram"
packageable="=isInstanceOf('BodyShellWork_Architecture.LevelComponents.Plant')"
instantiationPoint="=this"
router="BendpointShortestPathRouterWithDistance"
acceptedChildren="SafetyCircuit Control">
...
</diagramEditor>