It&#39;s really worthwhile to add a DRL compile run before you let the verifier do its work. <br>-W<br><br><br><div class="gmail_quote">On 16 March 2011 10:02, FrankVhh <span dir="ltr">&lt;<a href="mailto:frank.vanhoenshoven@agserv.eu">frank.vanhoenshoven@agserv.eu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Toni and Wolfgang,<br>
<br>
Thanks for your replies.<br>
<br>
First, to clarify my self, with &quot;duplicate rules&quot;, I actually meant &quot;rules<br>
that are exactlly the same, but with other names&quot;. Moreover, I inserted the<br>
verification just before rule execution, and execution runs fine. So, there<br>
shouldn&#39;t be a compile error.<br>
<br>
Removing the &quot;then&quot; part of a rule does not make any difference. It still<br>
runs, but doesn&#39;t return any notes/warnings/errors in the ruleset.<br>
<br>
Toni, I am not using one of the &quot;M&quot; versions. Drools verifier is version<br>
5.1.0.<br>
<br>
As a general remark, I definitely agree that &quot;gap analysis&quot; often comes up<br>
with some very unuseful information. I usually call those uncovered areas,<br>
&quot;women with beards&quot; or &quot;experienced juniors&quot;. However, there always might be<br>
valuable information in there. Besides, the question whether this<br>
information is valuable or not, doesn&#39;t matter, it just doesn&#39;t show and it<br>
should.<br>
<br>
Regards,<br>
Frank<br>
<br>
<br>
Toni Rikkola-2 wrote:<br>
&gt;<br>
&gt; Yes it can often be ignored and we need some configuration to silence the<br>
&gt; unwanted warnings. The current way is best for use cases like the decision<br>
&gt; table verification in Guvnor.<br>
&gt;<br>
&gt; Age is a good example. Person&#39;s age can&#39;t be less than 0 or more than 120.<br>
&gt; The top number is difficult. 120 is pretty safe, but usually you should be<br>
&gt; suspicious from ~90.<br>
&gt; So in the configurations you could set:<br>
&gt; Person.age 0-90 =&gt; check that they are covered<br>
&gt; Person.age 90-120 =&gt; check them, but make a notification<br>
&gt;<br>
&gt; You can of course do this today with custom verification rules. Just use a<br>
&gt; clean verifier base and add your own verifier rules.<br>
&gt;<br>
&gt; Toni<br>
&gt;<br>
&gt; On Mar 15, 2011, at 12:39 PM, Wolfgang Laun wrote:<br>
&gt;<br>
&gt;&gt; 2011/3/15 Toni Rikkola &amp;<a href="mailto:lt%3Btoni.rikkola@gmail.com">lt;toni.rikkola@gmail.com</a>&amp;gt;<br>
&gt;&gt;<br>
&gt;&gt; The verifier can actually find some gaps from rule sets. For example<br>
&gt;&gt; uncovered checks for number values.<br>
&gt;&gt; If you have<br>
&gt;&gt; Person( age &lt;18 )<br>
&gt;&gt; it gives a warning that you might want to cover Person( age &gt;= 18 ).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I&#39;d say that such a warning may not be very useful because<br>
&gt;&gt;    - in many cases you may not be interested in the &quot;other&quot; values at<br>
&gt;&gt; all,<br>
&gt;&gt;    - in some cases 18, 19,... is handled with Person( age &lt; 50 ) with low<br>
&gt;&gt; salience (not recommended!),<br>
&gt;&gt;    - in many (other) cases you use a (low salience) &quot;catch all&quot; rule to<br>
&gt;&gt; handle facts not selected by 1st order rules,<br>
&gt;&gt;<br>
&gt;&gt; Moreover, I&#39;m thinking of using additional rules with Verifier, with one<br>
&gt;&gt; of the primary targets being &quot;magic numbers&quot;.<br>
&gt;&gt;<br>
&gt;&gt; But Verifier is a fine achievement, and the confiugration is here to get<br>
&gt;&gt; you what you want!<br>
&gt;&gt;<br>
&gt;&gt; -W<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Toni Rikkola<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-verifier-tp2681002p2686028.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-verifier-tp2681002p2686028.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>