Previous Topic: Search Order for Action TablesNext Topic: Evaluating Process Events


Evaluating Resource State Change Events

For an action to be taken in response to a resource state change event, the following values must be set:

For example, if the value of the ACTION_DESIRED column of an action table is READY and the desired state of a resource is RUNNING, then the action is not eligible for execution. However, if the desired state of the resource equals the value of the ACTION_DESIRED column, then the action is eligible for execution and its score is incremented by the weight assigned to the ACTION_DESIRED column, which is 16. If the value of the ACTION_DESIRED column is null or blank, then the action is eligible for execution regardless of the desired state of the resource; however, no increment is added to the score. The same evaluation is carried out for all four weighted columns listed in the table on the following page.

Note: Actions are selected based on their score. The action with the highest score is the one executed in response to the resource state change event.

The least specific action of all possible actions sets the value of all four columns listed below to null or blank. The score assigned to this type of action is zero. The most specific action of all possible actions sets the value of all four columns to a non-null, non-blank value. The score assigned to this type of action is 29 or 30, depending on whether the value of the NAME column or the value of the TYPE column matched the value of the ACTION_RES_TYPE column. Only one of these columns can match the ACTION_RES_TYPE column, not both.

Following is a list of the action table columns for state change events and their corresponding weights:

Column

Weight

ACTION_DESIRED

16

ACTION_MODE

8

ACTION_RES_TABLE

4

ACTION_RES_TYPE

1 or 2

As mentioned above, the ACTION_RES_TYPE column is evaluated once against the NAME column and once against the TYPE column to see if a match occurs. If the value of the NAME column matches the value of the ACTION_RES_TYPE column, then a value of 2 is added to the action score. The TYPE column is an optional column in the resource definition. If it is present and if its value matches that of the ACTION_RES_TYPE column, then a value of 1 is added to the action score.