Class ApproveDocumentEvent
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.ApproveDocumentEvent
- All Implemented Interfaces:
DocumentEvent,RuleEvent
- Direct Known Subclasses:
BlanketApproveDocumentEvent
This class represents the approve event that is part of an eDoc in Kuali. This could be triggered when a user presses the approve
button for a given document enroute or it could happen when another piece of code calls the approve method in the document
service.
-
Field Summary
Fields inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
document -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApproveDocumentEvent(String eventType, String errorPathPrefix, Document document) Constructs a ApproveDocumentEvent, allowing the eventType to be passed in so that subclasses can specify a more accurate message.ApproveDocumentEvent(String errorPathPrefix, Document document) Constructs an ApproveDocumentEvent with the specified errorPathPrefix and documentApproveDocumentEvent(Document document) Constructs an ApproveDocumentEvent 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
-
ApproveDocumentEvent
Constructs an ApproveDocumentEvent with the specified errorPathPrefix and document- Parameters:
errorPathPrefix-document-
-
ApproveDocumentEvent
Constructs an ApproveDocumentEvent with the given document- Parameters:
document-
-
ApproveDocumentEvent
Constructs a ApproveDocumentEvent, allowing the eventType to be passed in so that subclasses can specify a more accurate message.- Parameters:
eventType-errorPathPrefix-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:
-