use of org.finos.waltz.service.survey.SurveyQuestionDropdownEntryService in project waltz by khartec.
the class SurveyBuilder method main.
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
SurveyTemplateService surveyTemplateService = ctx.getBean(SurveyTemplateService.class);
SurveyQuestionService surveyQuestionService = ctx.getBean(SurveyQuestionService.class);
SurveyQuestionDropdownEntryService surveyQuestionDropdownEntryService = ctx.getBean(SurveyQuestionDropdownEntryService.class);
long templateId = storeTemplate(surveyTemplateService);
storeQuestions(surveyQuestionService, surveyQuestionDropdownEntryService, mkAllQs.apply(templateId));
}
Aggregations