<br>   Hi Barry,<br><br>   I will look into that. Did you opened a JIRA? Which dialect are you using, java or mvel?<br><br>   Edson<br><br><div class="gmail_quote">2010/4/7 Barry Kaplan <span dir="ltr">&lt;<a href="mailto:groups1@memelet.com">groups1@memelet.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
** warning: This is a rant, but it just might save you some head scratching<br>
if you run into these issues **<br>
<br>
I really hate writing rules. Not, well not rules, but rules in the DRL<br>
language. There are so many edge conditions that fail silently. Here just<br>
two from today:<br>
<br>
...<br>
then<br>
   retract(f1) // some comment<br>
   retract(f2)<br>
end<br>
<br>
In the above retract(f2) will not be invoke. No message about any problems<br>
-- it just doesn&#39;t happen. Remove the comment and f2 is retracted.<br>
<br>
And, where &#39;ksession&#39; is a global<br>
<br>
...<br>
then<br>
   update(ksession.getFactHandle(f1), new MyF1(10, 10))<br>
end<br>
<br>
In this one the constructor used for MyF1 does not exists. No message, just<br>
silent failure. Change the rule to:<br>
<br>
...<br>
then<br>
   MyF1 fi_new = MyF1(10, 10)<br>
   update(ksession.getFactHandle(f1), f1_new)<br>
end<br>
<br>
And now the error message about the missing constructor is produced.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n3.nabble.com/drl-s-and-silent-failures-tp704973p704973.html" target="_blank">http://n3.nabble.com/drl-s-and-silent-failures-tp704973p704973.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><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>