<div><br></div>   This feature was developed by a community member. Looking at the code, it seems it only inherits the LHS, not the attributes.<div><br></div><div>    Edson<br><br><div class="gmail_quote">On Tue, Sep 25, 2012 at 2:12 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">Moreover, in many cases I&#39;d just not know what to write - not all the<br>
required details. In the case of &quot;extends&quot;: how are basic and extended<br>
rule related to each other w.r.t. salience? How do rule attributes in<br>
base and extension relate to each other? Conflicts?<br>
<span class="HOEnZb"><font color="#888888"><br>
-W<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 25/09/2012, Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt; wrote:<br>
&gt; Why isn&#39;t there just a small repository for the document(s)...<br>
&gt;<br>
&gt; On 24/09/2012, Mark Proctor &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 21 Sep 2012, at 06:29, Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; @dev: When will &quot;extends&quot; for rules be documented in the proper place?<br>
&gt;&gt; documentation pull requests are welcome. The docs are large, so we are<br>
&gt;&gt; not<br>
&gt;&gt; always aware of what is and is not documented well, or in the right<br>
&gt;&gt; place.<br>
&gt;&gt; If you notice something, best thing to do is submit a pull request.<br>
&gt;&gt; <a href="http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html" target="_blank">http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html</a><br>

&gt;&gt;<br>
&gt;&gt; Mark<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; @John: There is a feature doing just that:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; rule pre_conditions_for_rules<br>
&gt;&gt;&gt; when<br>
&gt;&gt;&gt;   condition0<br>
&gt;&gt;&gt; then end<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; rule &quot;Rule 1&quot; extends pre_conditions_for_rules<br>
&gt;&gt;&gt;   ruleflow-group &quot;work&quot;<br>
&gt;&gt;&gt; when<br>
&gt;&gt;&gt;  //...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -W<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 20/09/2012, John Dujon &lt;<a href="mailto:johndujon@gmail.com">johndujon@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am trying to make my rules more readable and wonder wether or not we<br>
&gt;&gt;&gt;&gt; can<br>
&gt;&gt;&gt;&gt; factorize rules for a particular ruleflow-group. As an example, I would<br>
&gt;&gt;&gt;&gt; like to convert this:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; // begin rules<br>
&gt;&gt;&gt;&gt; rule &quot;Rule 1&quot;<br>
&gt;&gt;&gt;&gt;     ruleflow-group &quot;work&quot;<br>
&gt;&gt;&gt;&gt; when<br>
&gt;&gt;&gt;&gt;  condition 0<br>
&gt;&gt;&gt;&gt;  condition1<br>
&gt;&gt;&gt;&gt; then<br>
&gt;&gt;&gt;&gt;  doSomething();<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; rule &quot;Rule 2&quot;<br>
&gt;&gt;&gt;&gt;     ruleflow-group &quot;work&quot;<br>
&gt;&gt;&gt;&gt; when<br>
&gt;&gt;&gt;&gt;  condition0<br>
&gt;&gt;&gt;&gt;  condition2<br>
&gt;&gt;&gt;&gt; then<br>
&gt;&gt;&gt;&gt;  doSomethingElse();<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; // end rules<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; to the following<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; // begin rules<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; pre_conditions_for_rules<br>
&gt;&gt;&gt;&gt;  ruleflow-group &quot;work&quot;<br>
&gt;&gt;&gt;&gt;  condition0<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; rule &quot;Rule 1&quot;<br>
&gt;&gt;&gt;&gt;     ruleflow-group &quot;work&quot;<br>
&gt;&gt;&gt;&gt; when<br>
&gt;&gt;&gt;&gt;  condition1<br>
&gt;&gt;&gt;&gt; then<br>
&gt;&gt;&gt;&gt;  doSomething();<br>
&gt;&gt;&gt;&gt; end<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; rule &quot;Rule 2&quot;<br>
&gt;&gt;&gt;&gt;     ruleflow-group &quot;work&quot;<br>
&gt;&gt;&gt;&gt; when<br>
&gt;&gt;&gt;&gt;  condition2<br>
&gt;&gt;&gt;&gt; then<br>
&gt;&gt;&gt;&gt;  doSomethingElse();<br>
&gt;&gt;&gt;&gt; end<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; // end rules<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thank you for your time. I apologize in advance if that does not make<br>
&gt;&gt;&gt;&gt; sense, as I am new to drools<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; John<br>
&gt;&gt;&gt;&gt;<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; _______________________________________________<br>
&gt;&gt; rules-dev mailing list<br>
&gt;&gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;&gt;<br>
&gt;<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>