Package org.speakright.core.flows

Examples of org.speakright.core.flows.FlowList


   
    @Override
    public IFlow onYes() {
      if (M.getHaveVoted()) {
        String ptext = "You can only vote once per phone call.";
        return new FlowList(new PromptFlow("AlreadyVoted", ptext), App.BRANCH_MAIN_MENU);
      }
      recordVote();
     
      String ptext = "Your vote has been recorded.";
      return new FlowList(new PromptFlow("SayVoted", ptext), App.BRANCH_MAIN_MENU);
    }
View Full Code Here


     
      MyFlow flow = new MyFlow("e2");
      flow.m_shouldExecute = false;
      loop.add(flow);
     
      loop.add(new FlowList(new MyFlow("f"), "MainMenu"));
//      loop.setNumIterations(20); //avoid loop forever. must be after add sub-flows!
    }   
View Full Code Here

TOP

Related Classes of org.speakright.core.flows.FlowList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.