Using the Designer > Using More Designer Features > 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.

  1. Select the node rule in the Style Rules tree and choose Edit>Create Style Rule. In the Conditions page, specify the condition status equals Unavailable. Click Finish. In the Style Rules tree, rename the new rule to node[status=Unavailable].
  2. With the node[status=Unavailable] rule selected, set the criticalAlarms parameter value to 1. Press Enter.
  3. Select the node rule in the Style Rules tree and choose Edit>Create Style Rule. In the Conditions page, specify the condition major exists and not null. Click Finish. In the Style Rules tree, rename the new rule to node[major].
  4. With the node[major] rule selected, right-click the field majorAlarms in the Styling Customizer, choose Enter an Expression, delete the current value, and specify @major. Press Enter.
  5. Select the node rule in the Style Rules tree and choose Edit>Create Style Rule. In the Conditions page, specify the condition minor exists and not null. Click Finish. In the Style Rules tree, rename the new rule to node[minor].
  6. With the node[minor] rule selected, right-click the field minorAlarms in the Styling Customizer, choose Enter an Expression, delete the current value, and specify @minor. Press Enter.

As you add rules, you see the diagram change to reflect the current status of the network.

The resulting diagram should look like Figure 3.17:

images/diada_network1bis.png

Figure 3.17 Network Diagram with Alarm Decorations

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 will reflect the availability of nodes and any alarm recorded on each node. To test this behavior, double-click a node to display its data properties, change the alarm or status value and watch the diagram change.