public class ExceptionRoutingServiceImpl extends Object implements WorkflowDocumentExceptionRoutingService
Constructor and Description |
---|
ExceptionRoutingServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected DocumentRouteHeaderValue |
activateExceptionRequests(RouteContext routeContext,
List<ActionRequestValue> exceptionRequests,
String exceptionMessage,
boolean invokePostProcessor)
End IU Customization
|
protected Throwable |
determineActualCause(Throwable throwable,
int depth) |
protected RouteContext |
establishRouteContext(DocumentRouteHeaderValue document,
Throwable throwable) |
protected List<ActionRequestValue> |
generateExceptionGroupRequests(RouteContext routeContext) |
protected List<ActionRequestValue> |
generateKimExceptionRequests(RouteContext routeContext) |
protected void |
notifyStatusChange(DocumentRouteHeaderValue routeHeader,
String newStatusCode,
String oldStatusCode) |
DocumentRouteHeaderValue |
placeInExceptionRouting(String errorMessage,
PersistedMessageBO persistedMessage,
String documentId) |
protected DocumentRouteHeaderValue |
placeInExceptionRouting(String errorMessage,
RouteNodeInstance nodeInstance,
PersistedMessageBO persistedMessage,
RouteContext routeContext,
DocumentRouteHeaderValue document,
boolean invokePostProcessor) |
DocumentRouteHeaderValue |
placeInExceptionRouting(Throwable throwable,
PersistedMessageBO persistedMessage,
String documentId) |
protected DocumentRouteHeaderValue |
placeInExceptionRouting(Throwable throwable,
PersistedMessageBO persistedMessage,
String documentId,
boolean invokePostProcessor) |
void |
placeInExceptionRoutingLastDitchEffort(Throwable throwable,
PersistedMessageBO persistedMessage,
String documentId)
In our case here, our last ditch effort to put the document into exception routing will try to do so without invoking
the Post Processor for do route status change to "Exception" status.
|
protected void |
processExceptionRequest(ActionRequestValue actionRequest)
Processes a single exception request, ensuring that it's force action flag is set to true and it's node instance is set to null.
|
protected void |
processExceptionRequests(List<ActionRequestValue> exceptionRequests)
Takes the given list of Action Requests and ensures their attributes are set properly for exception
routing requests.
|
protected void |
setExceptionAnnotations(List<ActionRequestValue> actionRequests,
String exceptionMessage)
Sets the exception message as the annotation on the top-level Action Requests
|
public ExceptionRoutingServiceImpl()
public DocumentRouteHeaderValue placeInExceptionRouting(String errorMessage, PersistedMessageBO persistedMessage, String documentId) throws Exception
placeInExceptionRouting
in interface WorkflowDocumentExceptionRoutingService
Exception
public DocumentRouteHeaderValue placeInExceptionRouting(Throwable throwable, PersistedMessageBO persistedMessage, String documentId) throws Exception
placeInExceptionRouting
in interface WorkflowDocumentExceptionRoutingService
Exception
public void placeInExceptionRoutingLastDitchEffort(Throwable throwable, PersistedMessageBO persistedMessage, String documentId) throws Exception
placeInExceptionRoutingLastDitchEffort
in interface WorkflowDocumentExceptionRoutingService
Exception
protected DocumentRouteHeaderValue placeInExceptionRouting(Throwable throwable, PersistedMessageBO persistedMessage, String documentId, boolean invokePostProcessor) throws Exception
Exception
protected DocumentRouteHeaderValue placeInExceptionRouting(String errorMessage, RouteNodeInstance nodeInstance, PersistedMessageBO persistedMessage, RouteContext routeContext, DocumentRouteHeaderValue document, boolean invokePostProcessor) throws Exception
Exception
protected void notifyStatusChange(DocumentRouteHeaderValue routeHeader, String newStatusCode, String oldStatusCode) throws InvalidActionTakenException
InvalidActionTakenException
protected List<ActionRequestValue> generateExceptionGroupRequests(RouteContext routeContext)
protected List<ActionRequestValue> generateKimExceptionRequests(RouteContext routeContext) throws Exception
Exception
protected void processExceptionRequests(List<ActionRequestValue> exceptionRequests)
protected void processExceptionRequest(ActionRequestValue actionRequest)
protected DocumentRouteHeaderValue activateExceptionRequests(RouteContext routeContext, List<ActionRequestValue> exceptionRequests, String exceptionMessage, boolean invokePostProcessor) throws Exception
routeContext
- exceptionRequests
- exceptionMessage
- Exception
protected void setExceptionAnnotations(List<ActionRequestValue> actionRequests, String exceptionMessage)
protected Throwable determineActualCause(Throwable throwable, int depth)
protected RouteContext establishRouteContext(DocumentRouteHeaderValue document, Throwable throwable)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.