Package org.kuali.rice.kew.actions
Class ClearFYIAction
java.lang.Object
org.kuali.rice.kew.actions.ActionTakenEvent
org.kuali.rice.kew.actions.ClearFYIAction
ClearFYIAction deactivates the user requests.
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. Any requests related to this user
are deactivated.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
annotation, DEFAULT_ANNOTATION, DEFAULT_QUEUE_DOCUMENT_AFTER_ACTION, DEFAULT_RUN_POSTPROCESSOR_LOGIC, routeHeader -
Constructor Summary
ConstructorsConstructorDescriptionClearFYIAction(DocumentRouteHeaderValue rh, org.kuali.rice.kim.api.identity.principal.PrincipalContract principal) ClearFYIAction(DocumentRouteHeaderValue rh, org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, String annotation) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActionCompatibleRequest(List requests) voidProcesses the clear FYI 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 userMethod to check if the Action is currently valid on the given documentvalidateActionRules(List<ActionRequestValue> actionRequests) Methods inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
filterActionRequestsByCode, findDelegatorForActionRequests, generateAcknowledgementsToPreviousActionTakers, getActionPerformedCode, getActionRequestService, getActionTakenCode, getDocumentId, getGroupIdsForPrincipal, getPrincipal, getRouteHeader, invokePostProcessor, isActionValid, isPolicySet, isPolicySet, isRunPostProcessorLogic, notifyActionTaken, notifyAfterActionTaken, notifyStatusChange, performAction, queueDocumentProcessing, saveActionTaken, saveActionTaken, saveActionTaken, saveActionTaken, setActionTakenCode, setRouteHeader, updateSearchableAttributesIfPossible
-
Constructor Details
-
ClearFYIAction
public ClearFYIAction(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.
-
ClearFYIAction
public ClearFYIAction(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
Method to check if the Action is currently valid on the given document- Specified by:
validateActionRulesin classActionTakenEvent- Returns:
- returns an error message to give system better identifier for problem
-
validateActionRules
- Specified by:
validateActionRulesin classActionTakenEvent
-
isActionCompatibleRequest
- Overrides:
isActionCompatibleRequestin classActionTakenEvent
-
recordAction
public void recordAction() throws org.kuali.rice.kew.api.exception.InvalidActionTakenExceptionProcesses the clear FYI 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- Specified by:
recordActionin classActionTakenEvent- Throws:
org.kuali.rice.kew.api.exception.InvalidActionTakenExceptionorg.kuali.rice.kew.api.exception.ResourceUnavailableException
-