0 Replies Latest reply on Nov 15, 2006 11:06 AM by Shanmuga Sundaram Nagarajan

    what no-loop signifies in rule language?

    Shanmuga Sundaram Nagarajan Newbie


      Hi,

      I want to know,
      what no-loop signifies in rule language?
      When it will be useful?

      In examples of "HelloWorld", even If I change no-loop is to false,
      there is no effect.

      package com.pyramis.gett

      import com.pyramis.gett.HelloWorldExample;
      import com.pyramis.gett.Message;

      rule "Hello World"
      when
      m : Message( status == Message.HELLO, message : message )
      then
      System.out.println( message );
      m.setMessage( "Goodbye cruel world" );
      m.setStatus( Message.GOODBYE );
      modify( m );
      end

      rule "GoodBye"
      no-loop true
      when
      m : Message( status == Message.GOODBYE, message : message )
      then
      System.out.println( message );
      m.setMessage( message );
      end

      can any body some example where no-loop will help us?

      Advance Thanks,
      Shan.