![]() |
|
The two types of rules are:
Base rules are the most common type of rule used, and are triggered
with the TriggerPoint.trigger
method.
There are a number of kinds of base rules:
com.ibm.websphere.brb.ConstraintReturn
,
which can be returned by a constraint-type rule. A ConstraintReturn
object
contains a boolean value so that if it is false, it can contain information
that can be used to produce an external message explaining what constraint
was not met.On the surface, classifier rules are much like base rules, however
they differ in that they can be used to determine the ways in which variables
are classified by a business. Classifier rules are triggered with the TriggerPoint.triggerClassifier
method.
A classifier rule is used to compute a classification for a particular business situation. The classification returned is required to be a String. For instance, a bank customer may be classified into Gold, Silver, and Bronze categories based on their spending history or the amount of money they have in their account. For more information on the kind of support that BRBeans has for this type of rule, refer to Situational Trigger Point - an example.
Related concepts... | |
What is a business rule? | |
BRBeans development and maintenance roles | |
Why externalize rules? | |
Situational Trigger Point - an example | |
View PDF file... | |
To view a PDF file containing this article and related articles, click: | |
![]() | |
![]() |
![]() |