org.kuali.rice.kew.engine.node
Class RequestActivationNode

java.lang.Object
  extended by org.kuali.rice.kew.engine.node.RequestActivationNodeBase
      extended by org.kuali.rice.kew.engine.node.RequestActivationNode
All Implemented Interfaces:
Node, SimpleNode
Direct Known Subclasses:
FYIByNetworkId, FYIByUniversityId, InitialNode, RequestsNode

public class RequestActivationNode
extends RequestActivationNodeBase

A node which will activate any requests on it, returning true when there are no more requests which require activation.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
RequestActivationNode()
           
 
Method Summary
protected  boolean activateRequest(RouteContext context, ActionRequestValue actionRequest, RouteNodeInstance nodeInstance, List 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  void saveActionRequest(RouteContext context, ActionRequestValue actionRequest)
           
protected  void saveDocument(RouteContext context, DocumentRouteHeaderValue document)
           
 boolean shouldTransition(DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance)
           
 
Methods inherited from class org.kuali.rice.kew.engine.node.RequestActivationNodeBase
notify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestActivationNode

public RequestActivationNode()
Method Detail

process

public SimpleResult process(RouteContext routeContext,
                            RouteHelper routeHelper)
                     throws Exception
Throws:
Exception

shouldTransition

public boolean shouldTransition(DocumentRouteHeaderValue document,
                                RouteNodeInstance nodeInstance)

activateRequests

public boolean activateRequests(RouteContext context,
                                DocumentRouteHeaderValue document,
                                RouteNodeInstance nodeInstance)
                         throws WorkflowException
Activates the action requests that are pending at this routelevel of the document. The requests are processed by priority and then request ID. It is implicit in the access that the requests are activated according to the route level above all.

FYI and acknowledement 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 or priority-parallel 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.

Returns:
true if the any approval actions were activated.
Throws:
WorkflowException

activateRequestsCustom

protected boolean activateRequestsCustom(RouteContext context,
                                         List<ActionRequestValue> requests,
                                         List<ActionItem> generatedActionItems,
                                         DocumentRouteHeaderValue document,
                                         RouteNodeInstance nodeInstance)
                                  throws WorkflowException
Throws:
WorkflowException

activateRequest

protected boolean activateRequest(RouteContext context,
                                  ActionRequestValue actionRequest,
                                  RouteNodeInstance nodeInstance,
                                  List generatedActionItems)

saveActionRequest

protected void saveActionRequest(RouteContext context,
                                 ActionRequestValue actionRequest)

saveDocument

protected void saveDocument(RouteContext context,
                            DocumentRouteHeaderValue document)

logProcessingMessage

protected void logProcessingMessage(ActionRequestValue request)


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.