Class RuleEventBase
java.lang.Object
org.kuali.rice.krad.rules.rule.event.RuleEventBase
- All Implemented Interfaces:
RuleEvent
- Direct Known Subclasses:
DocumentEventBase
Created by nigupta on 4/28/2014.
-
Constructor Summary
ConstructorsConstructorDescriptionRuleEventBase(String description, String errorPathPrefix) As a general rule, business rule classes should not change the original object. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis will return a list of events that are spawned from this event.final StringA description of the event.getFacts()The map that holds the data that to be validated.getName()the name of this eventThe method name of the rule class to invoke.voidvoidvoidsetRuleMethodName(String name) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.rules.rule.event.RuleEvent
getRuleInterfaceClass, invokeRuleMethod, validate
-
Constructor Details
-
RuleEventBase
As a general rule, business rule classes should not change the original object. This constructor was created so that PreRulesCheckEvent, a UI level rule checker, can make changes.- Parameters:
description-errorPathPrefix-
-
-
Method Details
-
addFact
-
getName
the name of this event -
setName
- See Also:
-
getDescription
Description copied from interface:RuleEventA description of the event.- Specified by:
getDescriptionin interfaceRuleEvent- Returns:
- a description of this event
-
getErrorPathPrefix
- Specified by:
getErrorPathPrefixin interfaceRuleEvent- Returns:
- the error path prefix for this event
-
toString
-
getFacts
The map that holds the data that to be validated. -
setFacts
- See Also:
-
getRuleMethodName
The method name of the rule class to invoke.If the rule method name is specified, then that business rule method is invoked to apply custom rules, else the default method is invoked.
- Specified by:
getRuleMethodNamein interfaceRuleEvent- Returns:
- the name of the method
-
setRuleMethodName
- See Also:
-
generateEvents
Description copied from interface:RuleEventThis will return a list of events that are spawned from this event.- Specified by:
generateEventsin interfaceRuleEvent- Returns:
- list of events
- See Also:
-