Thanks Wolfgang for adding completeness to my response.<div><br></div><div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>


<br><br><div class="gmail_quote">On Tue, Oct 30, 2012 at 11:07 AM, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

See below.<br>
<div class="im"><br>
On 30/10/2012, Esteban Aliverti &lt;<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>&gt; wrote:<br>
&gt; For simple validation rules the main benefit of using drools is the<br>
&gt; decoupling of your business logic from your application. Another benefit is<br>
&gt; the power of DRL language. For example, implementing the &#39;exists&#39;,<br>
&gt; &#39;collect&#39;, &#39;accumulate&#39;, &#39;from&#39; etc. behavior in plain java is not a<br>
&gt; trivial task.<br>
<br>
</div>This enumeration omits the most important feature available in a rule&#39;s<br>
condition: the dynamic creations of all Cartesian products of facts<br>
matching the constraints. Example:<br>
<br>
   $p: Person( age &gt;= 60 )<br>
   Car( owner == $p )<br>
<br>
This finds all cars owned by persons over 60, which relieves you from the task<br>
of writing loops to determine all matching combinations, which can become quite<br>
cumbersome with increasing complexity.<br>
<div class="im"><br>
&gt; In Drools you already have all that power and you can create<br>
&gt; really complex rules with just a few lines of DRL.<br>
&gt; For more complex scenarios, you can use Drools for:<br>
&gt;<br>
</div>&gt;    - make inference (impossible to do in java without implementing some<br>
&gt;    kind of inference engine).<br>
&gt;    - use temporal patterns in your rules.<br>
&gt;    - Use TMS<br>
&gt;    - more...<br>
<br>
There is the option of creating a domain specific language on top<br>
of DRL, which is one way of making your business logic intellegible<br>
to non-programmers, so that they can at least understand what&#39;s<br>
going on.<br>
<span class="HOEnZb"><font color="#888888"><br>
-W<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
&gt;<br>
&gt; Best Regards,<br>
&gt;<br>
&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
&gt;<br>
&gt; Esteban Aliverti<br>
&gt; - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
&gt;<br>
&gt;<br>
&gt; On Tue, Oct 30, 2012 at 9:43 AM, cheikh dhib &lt;<a href="mailto:dhib.cheikh@gmail.com">dhib.cheikh@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt; This is what i think (has to be confirmed from specialist)<br>
&gt;&gt;<br>
&gt;&gt; Every thing you do in Drools you can do it as well in Java. But if you<br>
&gt;&gt; have a modification on your java code, you have to modify, then compile<br>
&gt;&gt; and deploy. contrary to the Drl rules which are interpreted, so after<br>
&gt;&gt; modification you don&#39;t need to do any thing just save your modification.<br>
&gt;&gt; So in the case of drools you have some flexibility which means that the<br>
&gt;&gt; rules can be managed directly by the decider and not the developer.<br>
&gt;&gt;<br>
&gt;&gt; regards,<br>
&gt;&gt; Cheikh<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Le 29/10/2012 23:57, kina06 a écrit :<br>
&gt;&gt; &gt; Please don&#39;t ignore this question as routine, did google and read<br>
&gt;&gt; posting,<br>
&gt;&gt; &gt; didn&#39;t get satisfying answer, hope you guys can help.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I have seen some drool rules in our company, I know drools provide<br>
&gt;&gt; &gt; declarative rules, easy to modify etc etc, but I see it does need some<br>
&gt;&gt; &gt; programming knowledge, so why not put all your rule logic into Java<br>
&gt;&gt; &gt; code,<br>
&gt;&gt; &gt; what is drools doing different can&#39;t be implemented in Java a separate<br>
&gt;&gt; &gt; package (like your logic package). Except losing flexibility of modify<br>
&gt;&gt; &gt; code/logic in text file I don&#39;t  see much benefit.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please help me understand, whats the major benefit of drools rules that<br>
&gt;&gt; &gt; can&#39;t be done in Java with same set of concise code.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; View this message in context:<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/Drool-rules-vs-java-code-effiency-tp4020549.html" target="_blank">http://drools.46999.n3.nabble.com/Drool-rules-vs-java-code-effiency-tp4020549.html</a><br>
&gt;&gt; &gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&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;&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;&gt;<br>
&gt;<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>
</div></div></blockquote></div><br></div>