Designing and Managing Behavior Models
-
Performing Actions Conditionally
(Action Router) - Creating an Action Router Rule - Defining a Rule Condition -
Defining a rule condition is one part of defining an Action Router rule. After defining the rule condition, you must define a rule action to complete the Action Router rule. For information on defining a rule action, see the section Defining a Rule Action.
Admin
menu, choose Action Router Rule List
.The Action Router Rule List window is displayed.
New
button in the Action Router Rule List window.The Action Router Rule Definition window is displayed.
Action Router Rule Definition Window
Click the thumbnail above to view full-sized image.
Name
field.
You write this rule condition using Perl. However, you need not write a complete Perl statement. You can assume the following context:
if (...) {
ruleAction;
}
All you must supply is the condition that would fit inside the parentheses. For
example, $OriginStateSev eq "Normal"
is a complete rule condition.
To help you write rule conditions, NerveCenter provides several aids:
For more information about these functions, see the section Functions for Use in Action Router Rule Conditions.
For further information about these lists, see the section Using Action Router's Object Lists.
Once you've finished building your rule condition, you must go to the Rule Action page and build a list of rule actions. For instructions on how to build this list, see the section Defining a Rule Action.
NerveCenter provides a number of functions that you can use in your Action Router rule conditions. The list below indicates what types of functions are available and where you can find detailed information about each function:
For reference information about these functions, see the section Variable-Binding Functions.
For reference information about these functions, see the section String-Matching Functions.
For reference information about this function, see the section in( ) Function.
If you are writing an Action Router rule condition and need to enter the name of an alarm, you do not need to:
Instead, you can select the name of the alarm from a list of alarms on the Rule Condition page. Selecting this name copies the name to the Rule Condition editing area, at the point of the cursor.
In addition to a list of alarms, the Rule Condition page provides lists of:
The steps below illustrate how you could enter the rule condition $AlarmName eq
`Authentication':
$AlarmName eq
using the editing area's pop-up help menu or your keyboard.
More
button on the Rule Condition page to expand the page.
Click the thumbnail above to view full-sized image.
Alarm
from the Condition Type
drop-down list.The list to the right of the drop-down list is populated with the names of all the alarms in the NerveCenter database.
Authentication
in the Alarms
list.
This action causes the text `Authentication'
to be added to the rule condition.
Save
button.Previous: Creating an Action Router Rule | Next: Defining a Rule Action |
Please send comments or corrections to Information Development | This file was last updated on 10 October © 2002 |