Designing and Managing Behavior Models
-
Defining Property Groups and Properties - Using the Node List Window - Using the Set Attribute Alarm Action -
There are two ways to change a node's property group using alarm-transition actions: using the Perl Subroutine action and using the Set Attribute action. For information on changing a node's property group using the Perl Subroutine action, see the section In a Perl Subroutine. Using a Perl Subroutine action to change a property group is appropriate when you want to use Perl to do something more complex than simply change the property group of the node associated with the trigger that causes the alarm transition (or the property group of any other node, for that matter). If the only action you would take from a Perl subroutine is to change a property group, you should use the Set Attribute action instead. This approach will save you the trouble of having to write and compile a Perl subroutine.
To add to an alarm transition a Set Attribute action that changes a node's property
group:
Transition Definition
dialog by double-clicking on the transition to which you want to add the Set Attribute action.
New Action
button.NerveCenter displays the new-action popup menu.
Set Attribute
action.NerveCenter displays the Set Attribute Action dialog.
Object Type
value set to Node
since you want to set an attribute of a node.
Name
value set to $NODE
.$NODE stands for the name of the node associated with the trigger that caused the alarm transition. However, you can change the value to the name of any node in the NerveCenter database if you know in advance the name of the node whose property group you want to change.
Property Group
from the Attribute
drop-down list.
Value
drop-down list.The property group you choose will become the new property group for the node you chose in step 5 whenever this alarm transition takes place.
OK
button in the Set Attribute Action dialog.The dialog is dismissed, and the newly defined action appears in the Actions list in the Transition Definition dialog.
OK
button in the Transition Definition dialog.
Save
button in the Alarm Definition window. Previous: Using the AssignPropertyGroup() Function | Next: Using OID to Property Group Mappings |
Please send comments or corrections to Information Development | This file was last updated on 10 October 2000 |