Class LogDocumentActionAction

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

public class LogDocumentActionAction extends ActionTakenEvent
Simply records an action taken with an annotation.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • LogDocumentActionAction

      public LogDocumentActionAction(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.
    • LogDocumentActionAction

      public LogDocumentActionAction(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
    • recordAction

      public void recordAction() throws org.kuali.rice.kew.api.exception.InvalidActionTakenException
      Records the non-routed document action. - Checks to make sure the document status allows the action. Records the action.
      Specified by:
      recordAction in class ActionTakenEvent
      Throws:
      org.kuali.rice.kew.api.exception.InvalidActionTakenException
    • validateActionRules

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