|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.brb.implementor.RuleOR
Combination rule comprised of two or more constraint-type rules which are all fired and their results or'd together. The dependent rules may return either ConstaintReturn or java.lang.Boolean. Note that the algorithm does not short-circuit evaluation when the first true result is encountered. All dependent rules are triggered regardless of the results.
When triggering a dependent rule, if more than one rule is found with the same name, then all rules with that name will be triggered and their results will be ored together.
Field Summary | |
---|---|
protected java.lang.String[] |
dependentRules
|
Constructor Summary | |
---|---|
RuleOR()
Parameterless constructor for RuleOR. |
Method Summary | |
---|---|
java.lang.Object |
fire(TriggerPoint tp,
java.lang.Object target,
IRuleCopy rule,
java.lang.Object[] parms)
Fires all dependent rules, or'ing the ConstraintReturn results together. |
java.lang.String |
getDescription()
The programmer's description of what the algorithm does. |
void |
init(java.lang.Object[] parms,
java.lang.String[] dependentRules,
java.lang.String userDefinedData,
IRuleCopy rule)
Initializes with persistent parameters used by this rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String[] dependentRules
Constructor Detail |
public RuleOR()
Method Detail |
public java.lang.Object fire(TriggerPoint tp, java.lang.Object target, IRuleCopy rule, java.lang.Object[] parms) throws BusinessRuleBeansException
When triggering a dependent rule, if more than one rule is found with the same name, then all rules with that name will be triggered and their results will be ored together.
fire
in interface RuleImplementor
tp
- the trigger point which is firing this rule implementor.target
- the target object of the trigger pointrule
- the rule that the implementor is running on behalf of
BusinessRuleBeansException
public java.lang.String getDescription()
getDescription
in interface RuleImplementor
public void init(java.lang.Object[] parms, java.lang.String[] dependentRules, java.lang.String userDefinedData, IRuleCopy rule) throws BusinessRuleBeansException
init
in interface RuleImplementor
parms
- the parameters needed to initialize this RuleImplementordependentRules
- the names of the dependent rules to this rule; if there are none,
null is passeduserDefinedData
- userDefinedData property from the Rulerule
- the Rule on whose behalf the rule implementor is running
BusinessRuleBeansException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |