1 Reply Latest reply on Aug 3, 2006 4:21 PM by panihill

    Is it possible to fire a single rule from a rule table ?

    Venkatraman ganesan Newbie

      Hi,

      Is it possible to fire a single rule from a set of rules?
      What is the significance of name column in the table. How to use it to filter a rule?
      What exactly is agenda filter for ? can I use it to filter a set of rules?

        • 1. Re: Is it possible to fire a single rule from a rule table ?
          panihill Newbie

          I am assuming you are talking about firing one rule from a package, not firing a rule one time when fact could make it fire many times.

          I don't have a great answer for you, but in the past I have handled this sort of thing by using some sort of marker. Set some field of the marker and assert with your other facts.

          Then append to the WHEN of your rule, preferably at the top, a test against your marker. This way, the rule will only fire if the marker is there and the value is correct.

          when
          $mark : RuleMarker( marker == "xyz" )

          This is also how some people hack a rules engine to work ? badly - like a process engine.

          The other answer is to remove the other rules from your rulebase. Probably not the solution, but you should slim down your rule sets when possible ? for performance reasons.

          Mike