Assuming you can get hold of the resulting DRL text, a simple script<div>might detect rules where there is nothing between &quot;then&quot; and &quot;end&quot;.</div><div><br></div><div>Otherwise, following the techniques used in the Guvnor&#39;s validator,<br>
you can investigate the consequence text and use heuristics to</div><div>detect the bad ones.</div><div><br></div><div>-W<br><br><br><div class="gmail_quote">On 15 May 2012 18:28, Joe Ammann <span dir="ltr">&lt;<a href="mailto:joe@pyx.ch" target="_blank">joe@pyx.ch</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
I have an ongoing discussion with my users: They have been using several<br>
home-grown rule oriented applications for years. Almost all of these<br>
&quot;rule engines&quot; were built for one very specific reason, and the users<br>
have come accustomed to just specify a LHS of a rule. They never needed<br>
to specify a RHS, because the action of the rule was pre-determined by<br>
the application. So when the rule fired, it was clear what needed to be<br>
done in the application.<br>
<br>
Now want to merge all these &quot;rule engines&quot; onto Drools (5.4.0), and use<br>
the Guvnor BRL editor and DSLs to actually formulate them. Of course now<br>
Drools can not &quot;know&quot; what the RHS is supposed to be, since we have<br>
&quot;merged&quot; several applications. The users now need to select one of<br>
several predefined DSL statements as the RHS, but unfortunately they<br>
consistenly keep forgetting to put an RHS at all. Guvnor validates this<br>
successfully but of course the rules then fail to work.<br>
<br>
I have been thinking if there is any way in Guvnor or via some kind of<br>
Drools expert mechanism to say something like &quot;if a rule is in packaga<br>
a.b.c, it&#39;s RHS should always be &#39;foo&#39; unless specified otherwise&quot;. To<br>
be honest, I could not come up with a way to achieve this and think just<br>
need to educate my users better. But before doing that, I thought I&#39;d<br>
use the wisdom of this group :-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
CU, Joe<br>
<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></span></blockquote></div><br></div>