Another alternative would be to use an activation group, that way only one rule 
of that group will be able to fire.

Kris

  ----- Original Message ----- 
  From: Mauricio Salatino 
  To: Rules Users List 
  Sent: Wednesday, April 07, 2010 11:18 PM
  Subject: Re: [rules-users] Drools Flow: Skipping some LHS evaluations attime 
of insert


  you can insert a control object in the first rule that it's activated and 
fired and add another restriction to the rest of the rules, using that control 
object.

  Greetings


  On Wed, Apr 7, 2010 at 5:06 PM, madchen <[email protected]> wrote:


    Hi,

    According to my understanding of Drools Flow, when you insert an object into
    drools, it tries to match it against all the existing rules and every rule,
    for which the 'When' clause conditions are met, becomes activated.

    I was wondering if it was possible, that when an object is inserted into
    drools, drools stops trying to match that object against the rules once the
    first rule is activated. Or in other words, drools would go through the list
    of rules comparing the object with the 'When' clause conditions and then
    when it finds a rule that matches, it stops going through the rest of the
    rules for that object.

    Thanks!
    Kevin
    --
    View this message in context: 
http://n3.nabble.com/Drools-Flow-Skipping-some-LHS-evaluations-at-time-of-insert-tp704324p704324.html
    Sent from the Drools - User mailing list archive at Nabble.com.
    _______________________________________________
    rules-users mailing list
    [email protected]
    https://lists.jboss.org/mailman/listinfo/rules-users




  -- 
  - http://salaboy.wordpress.com
  - http://www.jbug.com.ar
  - Salatino "Salaboy" Mauricio -



------------------------------------------------------------------------------


  _______________________________________________
  rules-users mailing list
  [email protected]
  https://lists.jboss.org/mailman/listinfo/rules-users

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to