Adding decorations for alarm severities

You can customize nodes represented by symbols to show changes in the objects in your diagram, for example changes in the status of network nodes. A symbol gives you scope for complex representations and allows you to modify the styling dynamically at run time.
To add decorations to the nodes:
  1. Select the node rule in the Style Rules pane and click Edit > Create Style Rule.
    1. In the Conditions page, specify the condition status equals Unavailable .
    2. Click Finish.
    3. In the Style Rules pane, rename the new rule to node[status=Unavailable] .
    4. With the node[status=Unavailable] rule selected, set the criticalAlarms parameter value to 1.
    5. Press Enter.
  2. Select the node rule in the Style Rules pane and click Edit > Create Style Rule.
    1. In the Conditions page, specify the condition major exists and not null .
    2. Click Finish.
    3. In the Style Rules pane, rename the new rule to node[major] .
    4. With the node[major] rule selected, right-click the field majorAlarms in the Styling Customizer.
    5. Click Enter an Expression.
    6. Delete the current value and specify @major .
    7. Press Enter.
  3. Select the node rule in the Style Rules pane and click Edit > Create Style Rule.
    1. In the Conditions page, specify the condition minor exists and not null .
    2. Click Finish.
    3. In the Style Rules pane, rename the new rule to node[minor] .
    4. With the node[minor] rule selected, right-click the field minorAlarms in the Styling Customizer,
    5. Click Enter an Expression.
    6. Delete the current value and specify @minor .
    7. Press Enter.
      As you add rules, the diagram changes to reflect the current status of the network.
      The resulting diagram looks like the following figure:
      diada_network1bis19.png
      Network diagram with alarm decorations
  4. Save the network diagram and keep it open to use in the next section.
If your diagram is connected to network data that changes dynamically, the icons reflect the availability of nodes and any alarm recorded on each node.
To test this behavior:
  1. Double-click a node to display its data properties.
  2. Change the alarm or status value.
  3. Watch the diagram change.