Question set object model

In the base configuration, the PolicyLine, PolicyPeriod, and PolicyLocation entities delegate to AnswerContainer. Consequently, each of these entities has an array to access the answers.

The PolicyLineAnswer, PeriodAnswer, and LocationAnswer entities delegate to PCAnswerDelegate.

The following illustration shows some of the relationships between these entities.



Answer container delegate

The AnswerContainer delegate has a number of methods and properties. Some of the methods are:

  • createAnswer – Creates an answer to the specified question.
  • getAnswer – Gets the answer to the specified question.
  • removeAnswer – Removes the answer to the specified question.
  • syncQuestions – Synchronizes answers that match the type, the AnswerContainer delegate, and the product. You can call this method before displaying question sets in a PCF file. There are several examples of using this method in the job wizards. For example, IssuanceWizard makes an indirect call to syncQuestions in the onEnter property in the Offering step.

The Answer Container Type of the question set specifies the entity that delegates to AnswerContainer. In Product Designer, for example, use the navigation pane to go to Question Sets > PA Pre-Qualification. In the question set’s home page, you can see that the Question Set Type is PreQual and that the PolicyPeriod entity delegates to AnswerContainer.