[Enterprise Extensions only]
  Next topic

Finding strategy

The job of the FindingStrategy is to access the datastore and return those rules which meet the search criteria specified. There are two FindingStrategy classes provided by BRBeans:

Both of these strategies perform a case-sensitive search for Rules marked ready that match the given search criteria. Results are ordered by precedence from highest to lowest (the first rule in the array has the numerically smallest precedence, the next rule has the next smallest precedence, etc.). If no rules are found, then an empty array is returned. The former strategy only returns classifier rules (classifier=true) and the latter only returns non-classifier rules (classifier=false).

These default strategies are used automatically by the TriggerPoint. There is no need to call setFindingStrategy to use these strategies. Instances of these two default finding strategies are stored in static constants defined on the FindingStrategy interface.

  Next topic