> ... But my requirement is that I want to run only one rule of highest priority. > Is there any mechanism of blocking activated rules and force them not to run?. > Buy using agenda command I am able to see all the activated but not yet fired rules. > Can I fire only one of these rules and block the other activated rules from running? >...
A common technique used in production rule systems is to solve this by modifying the rules to check for the absence of a special guard fact. When the first rule fires, one of its actions is to assert the guard fact, de-selecting and blocking the other rules. This has the advantage of being a more declarative approach -- making the control of the rule selection and firing part of the knowledge base. In my experience, rule salience should be used very conservatively. -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
