Package org.kuali.rice.kew.postprocessor
Class DefaultPostProcessor
java.lang.Object
org.kuali.rice.kew.postprocessor.DefaultPostProcessor
- All Implemented Interfaces:
PostProcessor
A simple default implementation of the PostProcessor which can be used
as a superclass for post processor which don't want to implement all
the methods on the interface. Simply returns a "true"
ProcessDocReport for all events exception for deletion.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterActionTaken(org.kuali.rice.kew.api.action.ActionType performed, ActionTakenEvent event) Executed after an action is taken against the document.afterProcess(AfterProcessEvent event) Executed after processing by the workflow engine has completed.beforeProcess(BeforeProcessEvent event) Executed prior to processing by the workflow engine.doActionTaken(ActionTakenEvent event) Executed whenever an action is taken against the document.doDeleteRouteHeader(DeleteEvent event) Executed whenever a deletion of the document is required.doRouteLevelChange(DocumentRouteLevelChange levelChangeEvent) Executed whenever the document transitions from one node to another.doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) Executed whenever the status of the document changes.getDocumentIdsToLock(DocumentLockingEvent lockingEvent) Executed prior to document locking in the workflow engine.
-
Constructor Details
-
DefaultPostProcessor
public DefaultPostProcessor()
-
-
Method Details
-
doRouteStatusChange
public ProcessDocReport doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) throws Exception Description copied from interface:PostProcessorExecuted whenever the status of the document changes.- Specified by:
doRouteStatusChangein interfacePostProcessor- Returns:
- ProcessDocReport indicating if the status change succeeded
- Throws:
Exception
-
doRouteLevelChange
public ProcessDocReport doRouteLevelChange(DocumentRouteLevelChange levelChangeEvent) throws Exception Description copied from interface:PostProcessorExecuted whenever the document transitions from one node to another.- Specified by:
doRouteLevelChangein interfacePostProcessor- Returns:
- ProcessDocReport indicating if the node transition succeeded
- Throws:
Exception
-
doDeleteRouteHeader
Description copied from interface:PostProcessorExecuted whenever a deletion of the document is required.- Specified by:
doDeleteRouteHeaderin interfacePostProcessor- Returns:
- ProcessDocReport indicating if the deletion should be permitted to occur or not
- Throws:
Exception
-
doActionTaken
Description copied from interface:PostProcessorExecuted whenever an action is taken against the document.- Specified by:
doActionTakenin interfacePostProcessor- Returns:
- ProcessDocReport indicating whether or not the action should succeed
- Throws:
Exception
-
afterActionTaken
public ProcessDocReport afterActionTaken(org.kuali.rice.kew.api.action.ActionType performed, ActionTakenEvent event) throws Exception Description copied from interface:PostProcessorExecuted after an action is taken against the document.- Specified by:
afterActionTakenin interfacePostProcessor- Returns:
- ProcessDocReport indicating whether or not the action was successful
- Throws:
Exception
-
beforeProcess
Description copied from interface:PostProcessorExecuted prior to processing by the workflow engine.- Specified by:
beforeProcessin interfacePostProcessor- Returns:
- ProcessDocReport indicating whether or not the document processing should be allowed to proceed
- Throws:
Exception
-
afterProcess
Description copied from interface:PostProcessorExecuted after processing by the workflow engine has completed.- Specified by:
afterProcessin interfacePostProcessor- Returns:
- ProcessDocReport indicating whether or not the document was successfully processed
- Throws:
Exception
-
getDocumentIdsToLock
Description copied from interface:PostProcessorExecuted prior to document locking in the workflow engine. This method returns a List of document ids to lock prior to execution of the document in the workflow engine. If the engine processing is going to result in updates to any other documents, they should be locked at the beginning of the engine processing transaction. This method facilitates that.Note that, by default, the id of the document that is being processed by the engine is always locked. So there is no need to return that document id in the list of document ids to lock.
- Specified by:
getDocumentIdsToLockin interfacePostProcessor- Returns:
- a List of document ids to lock prior to execution of the workflow engine
- Throws:
Exception
-