public class RequestActivationNode extends RequestActivationNodeBase
Constructor and Description |
---|
RequestActivationNode() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
activateRequest(RouteContext context,
ActionRequestValue actionRequest,
RouteNodeInstance nodeInstance,
List<ActionItem> generatedActionItems) |
boolean |
activateRequests(RouteContext context,
DocumentRouteHeaderValue document,
RouteNodeInstance nodeInstance)
Activates the action requests that are pending at this routelevel of the
document.
|
protected boolean |
activateRequestsCustom(RouteContext context,
List<ActionRequestValue> requests,
List<ActionItem> generatedActionItems,
DocumentRouteHeaderValue document,
RouteNodeInstance nodeInstance) |
protected void |
logProcessingMessage(ActionRequestValue request) |
SimpleResult |
process(RouteContext routeContext,
RouteHelper routeHelper) |
protected ActionRequestValue |
saveActionRequest(RouteContext context,
ActionRequestValue actionRequest) |
protected DocumentRouteHeaderValue |
saveDocument(RouteContext context,
DocumentRouteHeaderValue document) |
protected boolean |
shouldTransition(DocumentRouteHeaderValue document,
RouteNodeInstance nodeInstance)
Returns true if this node has completed it's work and should transition to the next node.
|
notify
public RequestActivationNode()
public SimpleResult process(RouteContext routeContext, RouteHelper routeHelper) throws Exception
Exception
protected boolean shouldTransition(DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance)
This implementation will return true if there are no remaining pending approve or complete action requests at the given node instance. Subclasses can override this method to customize the behavior of how this determination is made.
document
- the document the is being processednodeInstance
- the current node instance that is being processedpublic boolean activateRequests(RouteContext context, DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance) throws WorkflowException
FYI and acknowledgment requests do not cause the processing to stop. Only action requests for approval or completion cause the processing to stop and then only for route level with a serialized activation policy. Only requests at the current document's current route level are activated. Inactive requests at a lower level cause a routing exception.
Exception routing and adhoc routing are processed slightly differently.
ResourceUnavailableException
WorkflowException
protected boolean activateRequestsCustom(RouteContext context, List<ActionRequestValue> requests, List<ActionItem> generatedActionItems, DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance) throws WorkflowException
WorkflowException
protected boolean activateRequest(RouteContext context, ActionRequestValue actionRequest, RouteNodeInstance nodeInstance, List<ActionItem> generatedActionItems)
protected ActionRequestValue saveActionRequest(RouteContext context, ActionRequestValue actionRequest)
protected DocumentRouteHeaderValue saveDocument(RouteContext context, DocumentRouteHeaderValue document)
protected void logProcessingMessage(ActionRequestValue request)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.