public class RequestsNode extends RequestActivationNode
ActionRequestValue
objects from a
RouteModule
.Modifier and Type | Class and Description |
---|---|
protected class |
RequestsNode.FinalApproverContext |
Modifier and Type | Field and Description |
---|---|
protected static String |
SUPPRESS_POLICY_ERRORS_KEY |
Constructor and Description |
---|
RequestsNode() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyPoliciesOnExit(List<ActionRequestValue> requestsGenerated,
RouteContext routeContext)
Applies policies that should get checked prior to transitioning out of this node.
|
protected void |
detectRunawayProcess(RouteContext routeContext,
int currentIteration) |
protected List<ActionRequestValue> |
generateRequests(RouteContext routeContext) |
protected Object |
getKey(RouteNodeInstance nodeInstance)
The method will get a key value which can be used for comparison
purposes.
|
List<ActionRequestValue> |
getNewActionRequests(RouteContext context) |
protected ParameterService |
getParameterService() |
protected RouteModule |
getRouteModule(RouteContext context)
Returns the RouteModule which should handle generating requests for this
RequestsNode.
|
protected boolean |
isPastFinalApprover(DocumentRouteHeaderValue document,
RouteNodeInstance nodeInstance)
Checks if the document has past the final approver node by walking
backward through the previous node instances.
|
protected void |
isPastFinalApprover(List previousNodeInstances,
RequestsNode.FinalApproverContext context,
Set revokedNodeInstanceIds) |
static boolean |
isSuppressingPolicyErrors(RouteContext routeContext) |
SimpleResult |
process(RouteContext routeContext,
RouteHelper routeHelper) |
protected boolean |
processCustom(RouteContext routeContext,
RouteHelper routeHelper)
Used by subclasses to replace the functioning of the process method.
|
static void |
setSuppressPolicyErrors(RouteContext routeContext) |
protected void |
verifyFinalApprovalRequest(DocumentRouteHeaderValue document,
List<ActionRequestValue> requests,
RouteNodeInstance nodeInstance,
RouteContext routeContext)
Verifies the state of the action requests when a final approval action is involved.
|
activateRequest, activateRequests, activateRequestsCustom, logProcessingMessage, saveActionRequest, saveDocument, shouldTransition
notify
protected static final String SUPPRESS_POLICY_ERRORS_KEY
public RequestsNode()
public final SimpleResult process(RouteContext routeContext, RouteHelper routeHelper) throws Exception
process
in interface SimpleNode
process
in class RequestActivationNode
Exception
protected List<ActionRequestValue> generateRequests(RouteContext routeContext) throws Exception
Exception
protected void applyPoliciesOnExit(List<ActionRequestValue> requestsGenerated, RouteContext routeContext)
requestsGenerated
- the requests generated on the current iteration of the route modulerouteContext
- the current route contextprotected boolean processCustom(RouteContext routeContext, RouteHelper routeHelper) throws Exception
process(RouteContext, RouteHelper)
should be skipped.Exception
protected void verifyFinalApprovalRequest(DocumentRouteHeaderValue document, List<ActionRequestValue> requests, RouteNodeInstance nodeInstance, RouteContext routeContext) throws RouteManagerException
RouteManagerException
public List<ActionRequestValue> getNewActionRequests(RouteContext context) throws Exception
Exception
protected RouteModule getRouteModule(RouteContext context) throws Exception
Exception
protected boolean isPastFinalApprover(DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance)
protected void isPastFinalApprover(List previousNodeInstances, RequestsNode.FinalApproverContext context, Set revokedNodeInstanceIds)
protected Object getKey(RouteNodeInstance nodeInstance)
protected void detectRunawayProcess(RouteContext routeContext, int currentIteration) throws NumberFormatException
NumberFormatException
public static boolean isSuppressingPolicyErrors(RouteContext routeContext)
public static void setSuppressPolicyErrors(RouteContext routeContext)
protected ParameterService getParameterService()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.