Class SingleUserReviewAction
java.lang.Object
org.dspace.xmlworkflow.state.actions.Action
org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
org.dspace.xmlworkflow.state.actions.processingaction.SingleUserReviewAction
Processing class of an action where a single user has
been assigned and they can either accept/reject the workflow item
or reject the task
- Author:
- Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
Field Summary
FieldsFields inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
claimedTaskService, itemService, REJECT_REASON, RETURN_TO_POOL, SUBMIT_APPROVE, SUBMIT_CANCEL, SUBMIT_EDIT_METADATA, SUBMIT_REJECT, xmlWorkflowService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(Context c, XmlWorkflowItem wfItem) Called when a workflow item becomes eligible for this Action.execute(Context c, XmlWorkflowItem wfi, Step step, jakarta.servlet.http.HttpServletRequest request) Called when the action is to be performed.Returns a list of options that the user can select at this action which results in the next step in the workflowprocessAccept(Context c, XmlWorkflowItem wfi) Accept the workflow item => last step in workflow so will be archived Info on step & reviewer will be added on metadata dc.description.provenance of resulting itemMethods inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
isAdvanced, isAuthorized, processRejectPageMethods inherited from class org.dspace.xmlworkflow.state.actions.Action
addApprovedProvenance, addErrorField, alertUsersOnActivation, getAdvancedInfo, getAdvancedOptions, getErrorFields, getParent, getProvenanceStartId, isOptionInParam, setParent
-
Field Details
-
OUTCOME_REJECT
public static final int OUTCOME_REJECT- See Also:
-
SUBMIT_DECLINE_TASK
- See Also:
-
-
Constructor Details
-
SingleUserReviewAction
public SingleUserReviewAction()
-
-
Method Details
-
activate
Description copied from class:ActionCalled when a workflow item becomes eligible for this Action. -
execute
public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, jakarta.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException, IOException, WorkflowException Description copied from class:ActionCalled when the action is to be performed.- Specified by:
executein classAction- Parameters:
c- current DSpace session.wfi- the item on which the action is to be performed.step- the workflow step in which the action is performed.request- the current client request.- Returns:
- the result of performing the action.
- Throws:
SQLException- passed through.AuthorizeException- passed through.IOException- passed through.WorkflowException- passed through.
-
processAccept
public ActionResult processAccept(Context c, XmlWorkflowItem wfi) throws SQLException, AuthorizeException Accept the workflow item => last step in workflow so will be archived Info on step & reviewer will be added on metadata dc.description.provenance of resulting item- Throws:
SQLExceptionAuthorizeException
-
getOptions
Description copied from class:ActionReturns a list of options that the user can select at this action which results in the next step in the workflow- Specified by:
getOptionsin classAction- Returns:
- A list of options of this action, resulting in the next step of the workflow
-