![]() |
The job of the CombiningStrategy
is to take the results of
the rules which were fired by the FiringStrategy
and to combine
them to form a reasonable result to the TriggerPoint
caller.
BRBeans provides several combining strategies to be used in applications:
ConstraintReturn
objects or java.lang.Boolean
objects.
An exception is thrown if this is not the case. ConstraintReturn
objects or java.lang.Boolean
objects.
An exception is thrown if this is not the case.ConstraintViolationException
containing
all failed ConstraintReturn
objects if any ConstraintReturns
contain
false. Otherwise just return a true ConstraintReturn
.Instances of these combining strategies are stored in static constants
defined in the CombiningStrategy
interface. You can use these
for setting the strategies on a TriggerPoint
. For example, the
following method call sets the combining strategy on TriggerPoint
tp
to be the Return First strategy:
tp.setCombiningStrategy(CombiningStrategy.RETURN_FIRST, TriggerPoint.ALL_RULES);
View PDF file... | |
To view a PDF file containing this article and related articles, click: | |
![]() | |