org.kuali.rice.kew.actions
Class ApproveAction
java.lang.Object
org.kuali.rice.kew.actions.ActionTakenEvent
org.kuali.rice.kew.actions.ApproveAction
public class ApproveAction
- extends ActionTakenEvent
The ApproveAction records and processes an approve action.
The routeheader is first checked to make sure the action is valid for the document.
Next the user is checked to make sure he/she has not taken a previous action on this
document at the actions responsibility or below. The action is recorded.
Any requests related to this user are deactivated.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Field Summary |
private static org.apache.log4j.Logger |
LOG
|
Methods inherited from class org.kuali.rice.kew.actions.ActionTakenEvent |
filterActionRequestsByCode, findDelegatorForActionRequests, getActionPerformedCode, getActionRequestService, getActionTakenCode, getGroupIdsForPrincipal, getPrincipal, getRouteHeader, getRouteHeaderId, 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 |
LOG
private static final org.apache.log4j.Logger LOG
ApproveAction
public ApproveAction(DocumentRouteHeaderValue routeHeader,
KimPrincipal principal)
- Parameters:
routeHeader
- RouteHeader for the document upon which the action is taken.principal
- User taking the action.
ApproveAction
public ApproveAction(DocumentRouteHeaderValue routeHeader,
KimPrincipal principal,
String annotation)
- Parameters:
routeHeader
- RouteHeader for the document upon which the action is taken.principal
- User taking the action.annotation
- User comment on the action taken
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
isActionCompatibleRequest
public boolean isActionCompatibleRequest(List<ActionRequestValue> requests)
- Overrides:
isActionCompatibleRequest
in class ActionTakenEvent
recordAction
public void recordAction()
throws InvalidActionTakenException
- Records the approve action.
- Checks to make sure the document status allows the action.
- Checks that the user has not taken a previous action.
- Deactivates the pending requests for this user
- Records the action
- Specified by:
recordAction
in class ActionTakenEvent
- Throws:
InvalidActionTakenException
ResourceUnavailableException
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.