You might need to think about how the rules engine does it job. The first part is setting up the network to match your conditions, the second is then executing the consequences of those matched facts.<div><br></div><div>What your seeing here is the first part finding nulls. So you need to make sure that all your facts are fully populated if they are being checked in the conditions, or you need to add conditions that check for null. I think salience does not come into play until after the facts have been matched. <br>
<br><div class="gmail_quote">On Sat, Dec 5, 2009 at 6:55 PM, Torfox <span dir="ltr">&lt;<a href="mailto:bartosz.jankiewicz@gmail.com">bartosz.jankiewicz@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
The Params object is a fact of declared type. A basic iniotiation is<br>
performed in rule1, but the rule1 is not fired in the first place.<br>
<br>
adding another condition that checks policy.params != null in condition of<br>
rule 2 is not solving my problem that refers to rules ordering algorithm. I<br>
have hundreds of rules created in decision tables, so I wanted the result to<br>
be simple. I don&#39;t really care about efficiency, I just need to run the<br>
rules in the order given by salience attribute.<br>
<br>
Thanks,<br>
Bartosz<br>
<br>
<br>
I don&#39;t see the initialisation of fields modelGroup and region in the Params<br>
fact. They aren&#39;t int, but Integer, and so not zero by default.<br>
-W<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Sequential-mode-help-tp68511p68755.html" target="_blank">http://n3.nabble.com/Sequential-mode-help-tp68511p68755.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br></div>