Class ChoiceAnswerSaver

java.lang.Object
ch.tocco.nice2.optional.evaluation.impl.flow.AbstractAnswerSaver
ch.tocco.nice2.optional.evaluation.impl.flow.ChoiceAnswerSaver
All Implemented Interfaces:
AnswerSaver

@Component public class ChoiceAnswerSaver extends AbstractAnswerSaver
  • Constructor Details

  • Method Details

    • saveAnswer

      public void saveAnswer(Entity evaluationPartyAssignment, Entity question, List<String> answerKeys)
    • mapToAnswerList

      public List<String> mapToAnswerList(Object answer)
      Description copied from interface: AnswerSaver
      The legacy widget always sends the answer as List (also for text and single choice answer). This method maps the REST answer format to the legacy format used by the AnswerSaver itself