Did I just heard Wolfgang complaining about being too dogmatic??? After all maybe the Mayans were right :)<br clear="all">By the way, Vadlam,  did you try using a template rule in Guvnor?<div> <br>Best Regards,<br><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>

<br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>


<br><br><div class="gmail_quote">On Fri, Jan 27, 2012 at 10:10 AM, 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Wolfgang,<br>
<br>
Can I push you for a clarification on this statement?<br>
<br>
Imho, any of the following reasons is good enough to put a &quot;decision&quot; in<br>
rules<br>
    A- The decision logic is likely to be subject to change<br>
    B- The decision logic is too complex to implement in a procedural way<br>
    C- The decision logic is making sense to business users. (i.e.<br>
non-technical logic)<br>
<br>
In this case, option B is opviously way off. But one can only guess<br>
regarding A and C.<br>
<br>
Regards,<br>
Frank<br>
<br>
<br>
laune wrote<br>
<div class="im">&gt;<br>
&gt; Oh my, aren&#39;t we a wee bit too dogmatic? I&#39;ve certainly been known as<br>
&gt; being<br>
&gt; a stickler to style and best practice and what not, but in this particular<br>
&gt; case I&#39;d use a single rule and offload the earth-shaking decision between<br>
&gt; &#39;Y&#39; and &#39;N&#39; into a function:<br>
&gt;<br>
&gt; rule x<br>
&gt; when<br>
&gt;    samplefact1( $status: status, state == &quot;CA&quot; )<br>
&gt; then<br>
&gt;    fact0.setField1(  yn( $status)  );<br>
&gt; end<br>
&gt;<br>
&gt; Cheers<br>
&gt; -W<br>
</div>&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; rules-users@.jboss<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>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/setting-different-value-in-consequence-RHS-part-based-on-a-conditional-check-tp3690826p3692750.html" target="_blank">http://drools.46999.n3.nabble.com/setting-different-value-in-consequence-RHS-part-based-on-a-conditional-check-tp3690826p3692750.html</a><br>


</font></span><div class="HOEnZb"><div class="h5">Sent from the Drools: User forum 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>
</div></div></blockquote></div><br></div>