org.kuali.rice.kew.postprocessor
Class DefaultPostProcessorRemote

java.lang.Object
  extended by org.kuali.rice.kew.postprocessor.DefaultPostProcessorRemote
All Implemented Interfaces:
PostProcessorRemote
Direct Known Subclasses:
EDocLitePostProcessor

public class DefaultPostProcessorRemote
extends Object
implements PostProcessorRemote


Constructor Summary
DefaultPostProcessorRemote()
           
 
Method Summary
 boolean afterProcess(AfterProcessEventDTO event)
          The document has just completed processing by the Workflow engine.
 boolean beforeProcess(BeforeProcessEventDTO event)
          The document is about to be processed by the Workflow engine.
 boolean doActionTaken(ActionTakenEventDTO event)
          KEW is signaling that the document has had an action taken on it by a user
 boolean doDeleteRouteHeader(DeleteEventDTO event)
          KEW is signaling that the document should be deleted.
 boolean doRouteLevelChange(DocumentRouteLevelChangeDTO levelChangeEvent)
          The document has changed route level.
 boolean doRouteStatusChange(DocumentRouteStatusChangeDTO statusChangeEvent)
          The document has changed route status.
 String[] getDocumentIdsToLock(DocumentLockingEventDTO event)
          Executed prior to document locking in the workflow engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPostProcessorRemote

public DefaultPostProcessorRemote()
Method Detail

doRouteStatusChange

public boolean doRouteStatusChange(DocumentRouteStatusChangeDTO statusChangeEvent)
                            throws RemoteException
Description copied from interface: PostProcessorRemote
The document has changed route status. The docEvent contains the information about the change. This method should do what ever is appropriate for various route status changes to a document. The method should return true if the change is correct and all application actions as a result of the change are successful. It should return false if the application considers this an incorrect change. The method can throw a ResourceUnavailableException in order to requeue the document and try again later.

Specified by:
doRouteStatusChange in interface PostProcessorRemote
Returns:
true if the status change is correct and application actions are successful later if this exception is thrown
Throws:
RemoteException
See Also:
DocumentRouteStatusChange

doRouteLevelChange

public boolean doRouteLevelChange(DocumentRouteLevelChangeDTO levelChangeEvent)
                           throws RemoteException
Description copied from interface: PostProcessorRemote
The document has changed route level. The docEvent contains the information about the change. This method should do what ever is appropriate for various route level changes to a document. The method should return true if the change is correct and all application actions as a result of the change are successful. It should return false if the application considers this an incorrect change. The method can throw a ResourceUnavailableException in order to requeue the document and try again later.

Specified by:
doRouteLevelChange in interface PostProcessorRemote
Returns:
true if the status change is correct and application actions are successful
Throws:
RemoteException
See Also:
DocumentRouteLevelChangeDTO

doDeleteRouteHeader

public boolean doDeleteRouteHeader(DeleteEventDTO event)
                            throws RemoteException
Description copied from interface: PostProcessorRemote
KEW is signaling that the document should be deleted. The application can reject this by returning false. If an Exception is thrown the docuemnt will go to exception routing. If a ResourceUnavailableException is thrown, the doc will be requeued and will try again later to delete the document.

Specified by:
doDeleteRouteHeader in interface PostProcessorRemote
Returns:
Throws:
RemoteException

doActionTaken

public boolean doActionTaken(ActionTakenEventDTO event)
                      throws RemoteException
Description copied from interface: PostProcessorRemote
KEW is signaling that the document has had an action taken on it by a user

Specified by:
doActionTaken in interface PostProcessorRemote
Returns:
Throws:
RemoteException

beforeProcess

public boolean beforeProcess(BeforeProcessEventDTO event)
                      throws Exception
Description copied from interface: PostProcessorRemote
The document is about to be processed by the Workflow engine.

Specified by:
beforeProcess in interface PostProcessorRemote
Parameters:
event - - holder for data from the engine's process
Returns:
true if the method is successful, false otherwise
Throws:
Exception - A general Exception will put the document into Exception routing

afterProcess

public boolean afterProcess(AfterProcessEventDTO event)
                     throws Exception
Description copied from interface: PostProcessorRemote
The document has just completed processing by the Workflow engine.

Specified by:
afterProcess in interface PostProcessorRemote
Parameters:
event - - holder for data from the engine's process including whether the engine was successful or not
Returns:
true if the method is successful, false otherwise
Throws:
Exception - A general Exception will put the document into Exception routing

getDocumentIdsToLock

public String[] getDocumentIdsToLock(DocumentLockingEventDTO event)
                              throws Exception
Description copied from interface: PostProcessorRemote
Executed prior to document locking in the workflow engine. This method returns an array 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 array of document ids to lock.

Specified by:
getDocumentIdsToLock in interface PostProcessorRemote
Returns:
an array of document ids to lock prior to execution of the workflow engine
Throws:
Exception


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.