Variables in Rule Processor application fields


To use simple variables in the Rule Processor application fields, enter the variable name in the field prefixed with an ampersand (&).

On the Variable Dependencies panel, you do not have to prefix the variable name with an ampersand for simple variables.

To use compound variables, enter the variable name in the field prefixed with an ampersand and an exclamation mark (&!). On the Variable Dependencies panel, you must still prefix the variable name with an ampersand and exclamation mark (&!) for compound variables.

The only exception to these two rules is for the Action: Set Variable action specification panel. On this panel, you do not need to use the special characters for either simple or compound variables because any value entered in this field is treated as a variable.

Setting variables

The action specification panel Action: Set Variable (see following figure) can be used for all Rule event types and on the panel, you can perform the following actions:

  • Set one or more variables
  • Increase or decrease a variable’s numerical value

    To increase or decrease the numerical value, specify +n or -n, where n is a number.

  • Use variable substringing


 BMC Software  -------- Action: Set Variables - MSG  -------------- BMC AMI OpsA
 COMMAND ===>                                                 TGT  --- AOAO     
        Rule-set === RULIMS00             Rule-id  === AUTHIMS1                 

 Variable-Name                      Variable-Value(functions/equations allowed)
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
 _________________________________  ___________________________________________
                                                                               
 Press END to return to AV with changes or CANCEL to cancel changes

To set simple variables, enter the variable name in the first field and the value in the second field.

Information
Example
Variable Name                       Variable Value                          
 1) DAYOFWEEK________________________ = MONDAY___________

As a result, the SHARED variable DAYOFWEEK has a value of MONDAY.

For a variable with more than one node, separate the node names with an extra period:

Variable Name                       Variable Value                          
1) ABC&JOBNAME..&DAY.________________ = PRINTIT__________

As a result, if JOBNAME is a variable with a value of MVSJOB and DAY is a variable with a value of SUN, the resulting SHARED variable named ABCMVSJOB.SUN has a value of PRINTIT.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Ops Automation 8.4