|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.service.impl.PostProcessorServiceImpl
@Transactional public class PostProcessorServiceImpl
This class is the postProcessor for the Kuali application, and it is responsible for plumbing events up to documents using the built into the document methods for handling route status and other routing changes that take place asyncronously and potentially on a different server.
Field Summary | |
---|---|
private DateTimeService |
dateTimeService
|
private DocumentService |
documentService
|
private static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
PostProcessorServiceImpl()
|
Method Summary | |
---|---|
boolean |
afterProcess(AfterProcessEventDTO event)
This method first checks to see if the document can be retrieved by the DocumentService . |
boolean |
beforeProcess(BeforeProcessEventDTO event)
This method first checks to see if the document can be retrieved by the DocumentService . |
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. |
protected void |
establishGlobalVariables()
Establishes the UserSession if one does not already exist. |
Long[] |
getDocumentIdsToLock(DocumentLockingEventDTO event)
This method first checks to see if the document can be retrieved by the DocumentService . |
private void |
logAndRethrow(String changeType,
Exception e)
|
private void |
logOptimisticDetails(int depth,
Throwable t)
Logs further details of OptimisticLockExceptions, using the given depth value to limit recursion Just In Case |
void |
setDateTimeService(DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setDocumentService(DocumentService documentService)
Sets the documentService attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger LOG
private DocumentService documentService
private DateTimeService dateTimeService
Constructor Detail |
---|
public PostProcessorServiceImpl()
Method Detail |
---|
public boolean doRouteStatusChange(DocumentRouteStatusChangeDTO statusChangeEvent) throws RemoteException
PostProcessorRemote
doRouteStatusChange
in interface PostProcessorRemote
RemoteException
PostProcessorRemote.doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO)
public boolean doRouteLevelChange(DocumentRouteLevelChangeDTO levelChangeEvent) throws RemoteException
PostProcessorRemote
doRouteLevelChange
in interface PostProcessorRemote
RemoteException
PostProcessorRemote.doRouteLevelChange(org.kuali.rice.kew.dto.DocumentRouteLevelChangeDTO)
public boolean doDeleteRouteHeader(DeleteEventDTO event) throws RemoteException
PostProcessorRemote
doDeleteRouteHeader
in interface PostProcessorRemote
RemoteException
PostProcessorRemote.doDeleteRouteHeader(org.kuali.rice.kew.dto.DeleteEventDTO)
public boolean doActionTaken(ActionTakenEventDTO event) throws RemoteException
PostProcessorRemote
doActionTaken
in interface PostProcessorRemote
RemoteException
PostProcessorRemote.doActionTaken(org.kuali.rice.kew.dto.ActionTakenEventDTO)
public boolean afterProcess(AfterProcessEventDTO event) throws Exception
DocumentService
. If the document is
found the Document.afterWorkflowEngineProcess(boolean)
method will be invoked on it
afterProcess
in interface PostProcessorRemote
event
- - holder for data from the engine's process including whether the engine was successful or not
Exception
- A general Exception will put the document into Exception routingPostProcessorRemote.afterProcess(org.kuali.rice.kew.dto.AfterProcessEventDTO)
public boolean beforeProcess(BeforeProcessEventDTO event) throws Exception
DocumentService
. If the document is
found the Document.beforeWorkflowEngineProcess()
method will be invoked on it
beforeProcess
in interface PostProcessorRemote
event
- - holder for data from the engine's process
Exception
- A general Exception will put the document into Exception routingPostProcessorRemote.beforeProcess(org.kuali.rice.kew.dto.BeforeProcessEventDTO)
public Long[] getDocumentIdsToLock(DocumentLockingEventDTO event) throws Exception
DocumentService
. If the document is
found the Document.beforeWorkflowEngineProcess()
method will be invoked on it
getDocumentIdsToLock
in interface PostProcessorRemote
Exception
PostProcessorRemote.beforeProcess(org.kuali.rice.kew.dto.BeforeProcessEventDTO)
private void logAndRethrow(String changeType, Exception e) throws RuntimeException
RuntimeException
private void logOptimisticDetails(int depth, Throwable t)
depth
- t
- public final void setDocumentService(DocumentService documentService)
documentService
- The documentService to set.public final void setDateTimeService(DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.protected void establishGlobalVariables() throws WorkflowException
WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |