Designing and Managing Behavior Models - Performing Actions Conditionally
(Action Router)
- Creating an Action Router Rule - Defining a Rule Condition -
Previous: Creating an Action Router Rule     Next: Defining a Rule Action

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.

 
  To define a rule condition:

  1. From the client's Admin menu, choose Action Router Rule List.

    The Action Router Rule List window is displayed.

  2. Select the New button in the Action Router Rule List window.

    The Action Router Rule Definition window is displayed.

    Action Router Rule Definition Window

    ruleComposition2.gif

    Click the thumbnail above to view full-sized image.

  3. Enter a unique name for your Action Router rule in the Name field.
  4. Write your rule condition in the Rule Condition text area.

    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:

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.

Functions for Use in Action Router Rule Conditions

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:

Using Action Router's Object Lists

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':

  1. In the Rule Condition editing area enter the text $AlarmName eq using the editing area's pop-up help menu or your keyboard.
  2. Select the More button on the Rule Condition page to expand the page.

    Expanded Rule Condition Page

    ruleComposition3.gif

    Click the thumbnail above to view full-sized image.

  3. Select 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.

  4. Double-click Authentication in the Alarms list.

    This action causes the text `Authentication' to be added to the rule condition.

  5. After you've defined your rule's action, select the 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