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:
-
Select the node rule in the Style Rules pane and click Edit > Create Style Rule.
-
In the Conditions page, specify the condition
status equals Unavailable
. -
Click Finish.
-
In the Style Rules pane, rename the new rule to
node[status=Unavailable]
. -
With the
node[status=Unavailable]
rule selected, set thecriticalAlarms
parameter value to 1. -
Press Enter.
-
-
Select the node rule in the Style Rules pane and click Edit > Create Style Rule.
-
In the Conditions page, specify the condition
major exists and not null
. -
Click Finish.
-
In the Style Rules pane, rename the new rule to
node[major]
. -
With the
node[major]
rule selected, right-click the fieldmajorAlarms
in the Styling Customizer. -
Click Enter an Expression.
-
Delete the current value and specify
@major
. -
Press Enter.
-
-
Select the node rule in the Style Rules pane and click Edit > Create Style Rule.
-
In the Conditions page, specify the condition
minor exists and not null
. -
Click Finish.
-
In the Style Rules pane, rename the new rule to
node[minor]
. -
With the
node[minor]
rule selected, right-click the fieldminorAlarms
in the Styling Customizer, -
Click Enter an Expression.
-
Delete the current value and specify
@minor
. -
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: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 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.
-
Watch the diagram change.