[rules-users] Rule refiring issue !

Michael Anstis michael.anstis at gmail.com
Thu Jul 12 05:35:00 EDT 2012


So you're saying a knowledge base consisting of only the following causes
rule 1 to re-fire?

rule "rule1"
agenda-group "1"
salience 0
    when
      $a : Account()
           $h : HashMap(!(this["Aggregate_Balance"]<=50000))
    then
          setFocus("2");
end

Is it *re-firing* or firing for each fact you insert that matches?


On 12 July 2012 10:23, abhinay_agarwal <abhinay_agarwal at infosys.com> wrote:

> m still working on it..but those rules will not change anything on which
> rule
> "1" depends..
>
> for the time being you can ignore that rule "2" has a setFocus.Consider the
> rule "2" as
>
> rule "rule2"
>
> agenda-group "1"
> salience -1
>     when
>
>            $c : Customer()
>     then
>            $c.setName("Abhinay")
> end
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Rule-refiring-issue-tp4018618p4018628.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120712/3da66d43/attachment.html 


More information about the rules-users mailing list