Class ScoreEvaluationAction


  • public class ScoreEvaluationAction
    extends ProcessingAction
    Processing class for the score evaluation action This action will allow multiple users to rate a certain item if the mean of this score is higher then the minimum score the item will be sent to the next action/step else it will be rejected
    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)
    • Constructor Detail

      • ScoreEvaluationAction

        public ScoreEvaluationAction()
    • Method Detail

      • activate

        public void activate​(Context c,
                             XmlWorkflowItem wf)
        Description copied from class: Action
        Called when a workflow item becomes eligible for this Action.
        Specified by:
        activate in class Action
        Parameters:
        c - current DSpace session.
        wf - the eligible item.
      • getOptions

        public List<String> getOptions()
        Description copied from class: Action
        Returns a list of options that the user can select at this action which results in the next step in the workflow
        Specified by:
        getOptions in class Action
        Returns:
        A list of options of this action, resulting in the next step of the workflow
      • getMinimumAcceptanceScore

        public int getMinimumAcceptanceScore()
      • setMinimumAcceptanceScore

        public void setMinimumAcceptanceScore​(int minimumAcceptanceScore)