org.kuali.rice.kew.actions
Class RouteDocumentAction

java.lang.Object
  extended by org.kuali.rice.kew.actions.ActionTakenEvent
      extended by org.kuali.rice.kew.actions.RouteDocumentAction

public class RouteDocumentAction
extends ActionTakenEvent

Action that puts the document in routing.

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

Field Summary
private static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
annotation, routeHeader
 
Constructor Summary
RouteDocumentAction(DocumentRouteHeaderValue rh, PrincipalContract principal)
           
RouteDocumentAction(DocumentRouteHeaderValue rh, PrincipalContract principal, String annotation)
           
 
Method Summary
 String getActionPerformedCode()
          Code of the action performed by the user Method may be overriden is action performed will be different than action taken
 void recordAction()
          Record the routing action.
 String validateActionRules()
          Placeholder for validation rules for each action
 String validateActionRules(List<ActionRequestValue> actionRequests)
           
 
Methods inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
filterActionRequestsByCode, findDelegatorForActionRequests, getActionRequestService, getActionTakenCode, getDocumentId, getGroupIdsForPrincipal, getPrincipal, getRouteHeader, isActionCompatibleRequest, isActionValid, isRunPostProcessorLogic, notifyActionTaken, notifyStatusChange, performAction, performDeferredAction, queueDocumentProcessing, saveActionTaken, saveActionTaken, saveActionTaken, saveActionTaken, setActionTakenCode, setQueueDocumentAfterAction, setRouteHeader, updateSearchableAttributesIfPossible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG
Constructor Detail

RouteDocumentAction

public RouteDocumentAction(DocumentRouteHeaderValue rh,
                           PrincipalContract principal)

RouteDocumentAction

public RouteDocumentAction(DocumentRouteHeaderValue rh,
                           PrincipalContract principal,
                           String annotation)
Method Detail

getActionPerformedCode

public String getActionPerformedCode()
Description copied from class: ActionTakenEvent
Code of the action performed by the user Method may be overriden is action performed will be different than action taken

Overrides:
getActionPerformedCode in class ActionTakenEvent
Returns:

validateActionRules

public String validateActionRules()
Description copied from class: ActionTakenEvent
Placeholder for validation rules for each action

Specified by:
validateActionRules in class ActionTakenEvent
Returns:
error message string of specific error message

validateActionRules

public String validateActionRules(List<ActionRequestValue> actionRequests)
Specified by:
validateActionRules in class ActionTakenEvent

recordAction

public void recordAction()
                  throws InvalidActionTakenException
Record the routing action. To route a document, it must be in the proper state. Previous requests and actions have no bearing on the outcome of this action, unless the

Specified by:
recordAction in class ActionTakenEvent
Throws:
InvalidActionTakenException


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