<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"><<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>></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'd just not know what to write - not all the<br>
required details. In the case of "extends": 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 <<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>> wrote:<br>
> Why isn't there just a small repository for the document(s)...<br>
><br>
> On 24/09/2012, Mark Proctor <<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>> wrote:<br>
>><br>
>> On 21 Sep 2012, at 06:29, Wolfgang Laun <<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>> wrote:<br>
>><br>
>>> @dev: When will "extends" for rules be documented in the proper place?<br>
>> documentation pull requests are welcome. The docs are large, so we are<br>
>> not<br>
>> always aware of what is and is not documented well, or in the right<br>
>> place.<br>
>> If you notice something, best thing to do is submit a pull request.<br>
>> <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>
>><br>
>> Mark<br>
>>><br>
>>> @John: There is a feature doing just that:<br>
>>><br>
>>> rule pre_conditions_for_rules<br>
>>> when<br>
>>> condition0<br>
>>> then end<br>
>>><br>
>>> rule "Rule 1" extends pre_conditions_for_rules<br>
>>> ruleflow-group "work"<br>
>>> when<br>
>>> //...<br>
>>><br>
>>> -W<br>
>>><br>
>>> On 20/09/2012, John Dujon <<a href="mailto:johndujon@gmail.com">johndujon@gmail.com</a>> wrote:<br>
>>>> Hello,<br>
>>>><br>
>>>> I am trying to make my rules more readable and wonder wether or not we<br>
>>>> can<br>
>>>> factorize rules for a particular ruleflow-group. As an example, I would<br>
>>>> like to convert this:<br>
>>>><br>
>>>> // begin rules<br>
>>>> rule "Rule 1"<br>
>>>> ruleflow-group "work"<br>
>>>> when<br>
>>>> condition 0<br>
>>>> condition1<br>
>>>> then<br>
>>>> doSomething();<br>
>>>><br>
>>>> rule "Rule 2"<br>
>>>> ruleflow-group "work"<br>
>>>> when<br>
>>>> condition0<br>
>>>> condition2<br>
>>>> then<br>
>>>> doSomethingElse();<br>
>>>><br>
>>>> // end rules<br>
>>>><br>
>>>> to the following<br>
>>>><br>
>>>> // begin rules<br>
>>>><br>
>>>> pre_conditions_for_rules<br>
>>>> ruleflow-group "work"<br>
>>>> condition0<br>
>>>><br>
>>>> rule "Rule 1"<br>
>>>> ruleflow-group "work"<br>
>>>> when<br>
>>>> condition1<br>
>>>> then<br>
>>>> doSomething();<br>
>>>> end<br>
>>>><br>
>>>> rule "Rule 2"<br>
>>>> ruleflow-group "work"<br>
>>>> when<br>
>>>> condition2<br>
>>>> then<br>
>>>> doSomethingElse();<br>
>>>> end<br>
>>>><br>
>>>> // end rules<br>
>>>><br>
>>>><br>
>>>> Thank you for your time. I apologize in advance if that does not make<br>
>>>> sense, as I am new to drools<br>
>>>><br>
>>>> John<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>
>><br>
>><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>
>><br>
><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>