The firing strategy takes the rules which were found by the FindingStrategy
,
(possibly modified by the FilteringStrategy
), fires them each
in order, and returns an array containing the results of each rule.
A single default FiringStrategy
is provided by BRBeans, as
all types of rules are fired in the same way. This implementation takes each
rule in order and performs the following steps:
- Determines what firing parameters to pass to the rule. If there are no
firing parameters specified for this rule, uses the firing parameters passed
on the
TriggerPoint
call. Otherwise uses the firing parameters
specified in the rule in place of the parameters passed on the TriggerPoint
call.
- Calls the fire method on the rule, passing the firing parameters
from the first step.
Unexpected exceptions result in an BusinessRuleBeansException
being thrown that contains the original exception.