Package org.kuali.rice.kew.engine.node
Class RequestsNode
java.lang.Object
org.kuali.rice.kew.engine.node.RequestActivationNodeBase
org.kuali.rice.kew.engine.node.RequestActivationNode
org.kuali.rice.kew.engine.node.RequestsNode
- All Implemented Interfaces:
Node,SimpleNode
- Direct Known Subclasses:
RoleNode
A node which generates
ActionRequestValue objects from a
RouteModule.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyPoliciesOnExit(List<ActionRequestValue> requestsGenerated, RouteContext routeContext) Applies policies that should get checked prior to transitioning out of this node.protected voiddetectRunawayProcess(RouteContext routeContext, int currentIteration) protected List<ActionRequestValue>generateRequests(RouteContext routeContext) protected ObjectgetKey(RouteNodeInstance nodeInstance) The method will get a key value which can be used for comparison purposes.getNewActionRequests(RouteContext context) protected ParameterServiceprotected RouteModulegetRouteModule(RouteContext context) Returns the RouteModule which should handle generating requests for this RequestsNode.protected voidisPastFinalApprover(List previousNodeInstances, RequestsNode.FinalApproverContext context, Set revokedNodeInstanceIds) protected booleanisPastFinalApprover(DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance) Checks if the document has past the final approver node by walking backward through the previous node instances.static booleanisSuppressingPolicyErrors(RouteContext routeContext) final SimpleResultprocess(RouteContext routeContext, RouteHelper routeHelper) protected booleanprocessCustom(RouteContext routeContext, RouteHelper routeHelper) Used by subclasses to replace the functioning of the process method.static voidsetSuppressPolicyErrors(RouteContext routeContext) protected voidverifyFinalApprovalRequest(DocumentRouteHeaderValue document, List<ActionRequestValue> requests, RouteNodeInstance nodeInstance, RouteContext routeContext) Verifies the state of the action requests when a final approval action is involved.Methods inherited from class org.kuali.rice.kew.engine.node.RequestActivationNode
activateRequest, activateRequests, activateRequestsCustom, logProcessingMessage, saveActionRequest, saveDocument, shouldTransitionMethods inherited from class org.kuali.rice.kew.engine.node.RequestActivationNodeBase
notify
-
Field Details
-
SUPPRESS_POLICY_ERRORS_KEY
- See Also:
-
-
Constructor Details
-
RequestsNode
public RequestsNode()
-
-
Method Details
-
process
public final SimpleResult process(RouteContext routeContext, RouteHelper routeHelper) throws Exception - Specified by:
processin interfaceSimpleNode- Overrides:
processin classRequestActivationNode- Throws:
Exception
-
generateRequests
- Throws:
Exception
-
applyPoliciesOnExit
protected void applyPoliciesOnExit(List<ActionRequestValue> requestsGenerated, RouteContext routeContext) Applies policies that should get checked prior to transitioning out of this node. The default implementation of this method checks the "mandatory" policy.- Parameters:
requestsGenerated- the requests generated on the current iteration of the route modulerouteContext- the current route context
-
processCustom
protected boolean processCustom(RouteContext routeContext, RouteHelper routeHelper) throws Exception Used by subclasses to replace the functioning of the process method.- Returns:
- true if custom processing was performed and the base implementation
in
process(RouteContext, RouteHelper)should be skipped. - Throws:
Exception
-
verifyFinalApprovalRequest
protected void verifyFinalApprovalRequest(DocumentRouteHeaderValue document, List<ActionRequestValue> requests, RouteNodeInstance nodeInstance, RouteContext routeContext) throws RouteManagerException Verifies the state of the action requests when a final approval action is involved. Throws a RouteManagerException if actions were not generated correctly.- Throws:
RouteManagerException
-
getNewActionRequests
- Throws:
Exception
-
getRouteModule
Returns the RouteModule which should handle generating requests for this RequestsNode.- Throws:
Exception
-
isPastFinalApprover
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. Ignores any previous nodes that have been "revoked". -
isPastFinalApprover
protected void isPastFinalApprover(List previousNodeInstances, RequestsNode.FinalApproverContext context, Set revokedNodeInstanceIds) -
getKey
The method will get a key value which can be used for comparison purposes. If the node instance has a primary key value, it will be returned. However, if the node instance has not been saved to the database (i.e. during a simulation) this method will return the node instance passed in. -
detectRunawayProcess
protected void detectRunawayProcess(RouteContext routeContext, int currentIteration) throws NumberFormatException - Throws:
NumberFormatException
-
isSuppressingPolicyErrors
-
setSuppressPolicyErrors
-
getParameterService
-