Class CompleteAction

java.lang.Object
org.kuali.rice.kew.actions.ActionTakenEvent
org.kuali.rice.kew.actions.CompleteAction

public class CompleteAction extends ActionTakenEvent
CompleteAction records and process a complete 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)
  • Constructor Details

    • CompleteAction

      public CompleteAction(DocumentRouteHeaderValue rh, org.kuali.rice.kim.api.identity.principal.PrincipalContract principal)
      Parameters:
      rh - RouteHeader for the document upon which the action is taken.
      principal - User taking the action.
    • CompleteAction

      public CompleteAction(DocumentRouteHeaderValue rh, org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, String annotation)
      Parameters:
      rh - RouteHeader for the document upon which the action is taken.
      principal - User taking the action.
      annotation - User comment on the action taken
  • Method Details

    • 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 requests)
      Overrides:
      isActionCompatibleRequest in class ActionTakenEvent
    • recordAction

      public void recordAction() throws org.kuali.rice.kew.api.exception.InvalidActionTakenException
      Records the complete 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:
      org.kuali.rice.kew.api.exception.InvalidActionTakenException
      org.kuali.rice.kew.api.exception.ResourceUnavailableException