0 Replies Latest reply on Mar 1, 2011 8:40 AM by odelyaholiday

    why to fire all rules in a thread?

    odelyaholiday

      Hi!

       

      I saw in the Emergency Demo application:

       

       

       new Thread(new Runnable()       {
      
      
                  public void run() {
                      ksession.fireUntilHalt();
                  }
              }).start();
      
      

       

       

      That the session firing the rules is running in a different thread.

       

      what is the reason?

       

      why not simply to write:

       

      ksession.fireAllRules()?