Amen. Extensive use of Rule Salience and/or Rule Priority indicates a procedural problem that should be solved with Java, not with a rulebased problem. As Tim has suggested, the use of Goal-oriented programming should be considered wherein a rule is considered only if that is the particular goal. Although it's rather cryptic, CLIPS has a goal-oriented monkey and banana example. JEOPS also has a goal-oriented MAB example. I thought that we "used" to have one in Jess, but I can't seem to find it right now or I would include it. Maybe Ernest has one hidden away somewhere? :-)
Anyway, using goals is a time-tested manner of solving problems in rulebased systems. tim finin wrote: > > ... 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] > -------------------------------------------------------------------- -- SDG jco --------------------------------- James C. Owen Senior KE Knowledgebased Systems Corporation 6314 Kelly Circle Garland, TX 75044 972.530.2895 -------------------------------------------------------------------- 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] --------------------------------------------------------------------
