<div>Consider a rule A and another one, B, extending it. If both are activated and</div><div>A fires first, it may change a fact so that A&#39;s consequence isn&#39;t true any more.</div><div>But this would deactivate B so that it can&#39;t fire at all. You can also</div>
<div>write a consequence for B that modifies facts so that A&#39;s condition becomes</div><div>false. </div><div><br></div><div>The only reliable way seems to let B&#39;s consequence modify only</div><div>facts bound in B&#39;s (additional) conditions and to give it a higher</div>
<div>constraint - then A&#39;s consequence will fire later and modify facts</div><div>bound in A&#39;s condition.<br><div><br></div><div>There&#39;s no documentation on &quot;extends&quot; for rules, although it has been around</div>
<div>for quite some time. Perhaps it&#39;s just an experimental feature that will</div><div>disappear again...?</div><div><br></div><div>-W<br><br><div class="gmail_quote">On 7 September 2012 22:47, lhorton <span dir="ltr">&lt;<a href="mailto:LHorton@abclegal.com" target="_blank">LHorton@abclegal.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good points.  And in fact, decision tables are already designed to do the<br>
kind of thing I&#39;m experimenting with using &quot;extends,&quot; i.e. they let one put<br>
a set of common conditions in one CONDITION column that can be used by<br>
one-to-many rules in the table.<br>
<br>
Is there documentation about how &#39;extends&#39; works as a rule option?  In my<br>
experiments so far I see the base rule usually firing before the rule that<br>
extends it, but in some cases i see only the extended rule firing, which<br>
didn&#39;t make sense to me.  We&#39;re still on 5.2.0.Final though, so maybe things<br>
have changed.  Don&#39;t worry, I&#39;m not going to file a bug report!  Just<br>
experimenting with this new-to-me feature.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Can-we-use-rule-extends-option-in-decision-tables-tp4019653p4019660.html" target="_blank">http://drools.46999.n3.nabble.com/Can-we-use-rule-extends-option-in-decision-tables-tp4019653p4019660.html</a><br>

<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></div>