Class RouteDocumentEvent
java.lang.Object
org.kuali.rice.krad.rules.rule.event.RuleEventBase
org.kuali.rice.krad.rules.rule.event.DocumentEventBase
org.kuali.rice.krad.rules.rule.event.RouteDocumentEvent
- All Implemented Interfaces:
DocumentEvent,RuleEvent
This class represents the route event that is part of an eDoc in Kuali. This could be triggered when a user presses the route
button for a given document or it could happen when another piece of code calls the route method in the document service.
-
Field Summary
Fields inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
document -
Constructor Summary
ConstructorsConstructorDescriptionRouteDocumentEvent(String errorPathPrefix, Document document) Constructs a RouteDocumentEvent with the specified errorPathPrefix and documentRouteDocumentEvent(Document document) Constructs a RouteDocumentEvent with the given document -
Method Summary
Modifier and TypeMethodDescriptionThis will return a list of events that are spawned from this event.Class<? extends BusinessRule> Returns the interface that classes must implement to receive this event.booleaninvokeRuleMethod(BusinessRule rule) Invokes the event handling method on the rule object.Methods inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
getDocument, getDocumentId, validateMethods inherited from class org.kuali.rice.krad.rules.rule.event.RuleEventBase
addFact, getDescription, getErrorPathPrefix, getFacts, getName, getRuleMethodName, setFacts, setName, setRuleMethodName, toStringMethods 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
getDescription, getErrorPathPrefix, getFacts, getName, getRuleMethodName
-
Constructor Details
-
RouteDocumentEvent
Constructs a RouteDocumentEvent with the specified errorPathPrefix and document- Parameters:
errorPathPrefix-document-
-
RouteDocumentEvent
Constructs a RouteDocumentEvent with the given document- Parameters:
document-
-
-
Method Details
-
getRuleInterfaceClass
Description copied from interface:RuleEventReturns the interface that classes must implement to receive this event.- Returns:
- rule interface
- See Also:
-
invokeRuleMethod
Description copied from interface:RuleEventInvokes the event handling method on the rule object.- Parameters:
rule- business rule- Returns:
- true if the rule matches
- See Also:
-
generateEvents
Description copied from interface:RuleEventThis will return a list of events that are spawned from this event.- Specified by:
generateEventsin interfaceRuleEvent- Overrides:
generateEventsin classRuleEventBase- Returns:
- list of events
- See Also:
-