Search in sources :

Example 1 with SurveyQuestionDropdownEntryService

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));
}
Also used : SurveyQuestionService(org.finos.waltz.service.survey.SurveyQuestionService) AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) SurveyQuestionDropdownEntryService(org.finos.waltz.service.survey.SurveyQuestionDropdownEntryService) SurveyTemplateService(org.finos.waltz.service.survey.SurveyTemplateService)

Aggregations

SurveyQuestionDropdownEntryService (org.finos.waltz.service.survey.SurveyQuestionDropdownEntryService)1 SurveyQuestionService (org.finos.waltz.service.survey.SurveyQuestionService)1 SurveyTemplateService (org.finos.waltz.service.survey.SurveyTemplateService)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1