<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's consequence isn't true any more.</div><div>But this would deactivate B so that it can't fire at all. You can also</div>
<div>write a consequence for B that modifies facts so that A's condition becomes</div><div>false. </div><div><br></div><div>The only reliable way seems to let B's consequence modify only</div><div>facts bound in B's (additional) conditions and to give it a higher</div>
<div>constraint - then A's consequence will fire later and modify facts</div><div>bound in A's condition.<br><div><br></div><div>There's no documentation on "extends" for rules, although it has been around</div>
<div>for quite some time. Perhaps it'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"><<a href="mailto:LHorton@abclegal.com" target="_blank">LHorton@abclegal.com</a>></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'm experimenting with using "extends," 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 'extends' 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't make sense to me. We're still on 5.2.0.Final though, so maybe things<br>
have changed. Don't worry, I'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>