Configure an answer container that triggers underwriting issues

About this task

Question sets can be used for several different purposes, one of which is raising underwriting issues. If you are configuring a question set to raise underwriting issues, you must perform some additional steps.

Procedure

  1. In the autoRaiseIssuesForQuestions method in QuestionIssueAutoRaiser class, get all available question sets for all the instances of the new answer container type.
  2. For each instance of the new answer container type, call the following function:
    raiseIssuesForQuestionSets(entity.getAvailableQuestionSets(instance), instance, context)
    For example, to trigger underwriting issues for an account level answer container where there is only one instance of account in a given context (job):
      raiseIssuesForQuestionSets(getAvailableAccountQuestionSets(account), account, context)

    In this example, account is an instance of type Account.

    In situations where there are multiple instances of the answer container type in a given context, the function needs to raise issues for each instance. For example, when triggering underwriting issues on a policy line question set:

      for (line in period.Lines) {
        raiseIssuesForQuestionSets(product.getAvailableQuestionSets(line), line, context)  
    }

    For guidance, examine the functions for handling period, line, and location questions sets in QuestionIssueAutoRaiser.gs. For more information about how to configure answers to raise underwriting issues, see Incorrect answers.