Hi,

I have the following code, which is not working as I expected.

rule "New AlertFacade"
    salience 1140
        when
            $af : AlertFacade();
        then
            System.out.println($af.getProperties());    
end


In the java code:
   while (!isFireAllRules)
   {
     session.insert(alertFacade);
     ....
   }
   session.fireAllRules();


But I am seeing the rule "New AlertFacade" is fired everytime I inserted the
fact.  Shouldn't it wait until fireAllRules() be called? Am I missing something
here?

Thanks,
Jin

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

Reply via email to