A context-sensitive pre-evaluation analysis of a set of rules is performed
based on the circumstance or the current state of a rule clause directed
to an infrequently changing condition. A group of multiple-clause rules
are identified which each have a clause defining an infrequently changing
condition for evaluating a state of a resource. The current state of the
resource is monitored. If the identified group of multiple-clause rules,
which cannot evaluate as TRUE under the context of the current state the
resource, the identified group of multiple-clause rules are excluded from
consideration by the rules engine. The rules engine will then encounter
fewer rules to evaluate for a solution. The identified group of
multiple-clause rules is further analyzed in the context of the
infrequently changing condition for the current resource state. State
metrics that are defined by clauses of the identified multiple-clause
rules, those that cannot evaluate as TRUE, are identified. Those metrics
are then also excluded from consideration by the rules engine. Thus, the
rules engine will encounter fewer rules and/or event states that cannot
be evaluated to a solution. The context-sensitive pre-evaluation analysis
of the rules is performed out-of-band as the rules engine traverses the
rule.