return createApp(doConfirm, false);
}
TrailWrapper createApp(boolean doConfirm, boolean doSkipList)
{
SRApp flow = new SRApp();
flow.add(new PromptFlow("doing NBEST"));
if (doConfirm) {
NBestConfirmerFlow confirmer = new NBestConfirmerFlow("yn.grxml");
if (doSkipList) {
confirmer.enableSkipList();
}
ConfirmationWrapper cw = new ConfirmationWrapper(new CityQuestion(true), confirmer);
flow.add(cw);
}
else {
CityQuestion quest = new CityQuestion(false);
flow.add(quest);
}
flow.add(new PromptFlow("I heard {$M.City}"));
TrailWrapper wrap1 = new TrailWrapper(flow);
return wrap1;
}