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"><<a href="mailto:frank.vanhoenshoven@agserv.eu">frank.vanhoenshoven@agserv.eu</a>></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 "decision" 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">><br>
> Oh my, aren't we a wee bit too dogmatic? I've certainly been known as<br>
> being<br>
> a stickler to style and best practice and what not, but in this particular<br>
> case I'd use a single rule and offload the earth-shaking decision between<br>
> 'Y' and 'N' into a function:<br>
><br>
> rule x<br>
> when<br>
> samplefact1( $status: status, state == "CA" )<br>
> then<br>
> fact0.setField1( yn( $status) );<br>
> end<br>
><br>
> Cheers<br>
> -W<br>
</div>> _______________________________________________<br>
> rules-users mailing list<br>
> rules-users@.jboss<br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><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>