<div dir="ltr">This request turns up a lot. If you dig deeper into the Rete algorithm and examine how it works, you'll find that the node relations and redundancy elimination greatly abstracts away from what we think of as the LHS of a rule. In the node network, it's no longer a set of conditions grouped together for each rule that are checked for true/false collectively. I can't think of a way to accomplish this without severely impacting performance as I think you'd essentially end up evaluating all of your rules with a secondary algorithm. However, I only claim to know that I know very little, so grain of salt.
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 30, 2013 at 8:35 AM, Cotton, Ben <span dir="ltr"><<a href="mailto:Ben.Cotton@morganstanley.com" target="_blank">Ben.Cotton@morganstanley.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<p>
</p><div>
<p>> you'll have to evaluate all relevant conditions individually and keep track of the positives
<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d">Would it be reasonable to suggest that the Drools team provide the user community with some tool, API, or other framework construct that might assist us when we are faced
with this exact task?<u></u><u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d">I mean, yes, what you suggest here works (and it works perfectly). But, for such an important and common user concern, we currently face a lot of "Drools .DRL keystroke
labor" to get us completely where we need to be wrt to coding this tactic completely.<u></u><u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d">Does your Intellifest white paper (today is the day? HOORAY!) comment at all on strategies to achieve this pattern in .DRL code? It would be way cool if the framework
itself liberated us with a “just add water and out comes the .DRL code you want” capability. Such a capability would deliver to users a full answer wrt to our “when do rules fail to fire?” accounting needs.<u></u><u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d">Admittedly, I don’t know of a best way to proceed wrt to potentially providing that capability. But I do know it would be nice.<u></u><u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:#1f497d">As always, thank you very much for this forum’s superb support.</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p><u></u> <u></u></p>
<p>-----Original Message-----<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] On Behalf Of Wolfgang Laun<br>
Sent: Tuesday, January 29, 2013 2:07 PM<br>
To: Rules Users List<br>
Subject: Re: [rules-users] Non short circuit ANDing<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>[Groundhog Day]<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>If you need to know all the reasons why a rule doesn't fire you'll have to evaluate all relevant conditions individually and keep track of the positives. (See a very recent thread on this list.)<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>-W<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>On 29/01/2013, mp <<a href="mailto:meitreyi.panchmia@morganstanley.com" target="_blank"><span style="color:windowtext;text-decoration:none">meitreyi.panchmia@morganstanley.com</span></a>> wrote:<u></u><u></u></p>
<p>> I need to record the results of each of the conditions as a side
<u></u><u></u></p>
<p>> effect in a list. But in case condition1 is false, condition2 would
<u></u><u></u></p>
<p>> not be evaluated.<u></u><u></u></p>
<p>> This would prevent me from knowing whether or not condition2 was
<u></u><u></u></p>
<p>> true/false.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> 5.8.3.3.12. Operator precedence at<u></u><u></u></p>
<p>> <a href="http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/ht" target="_blank">
<span style="color:windowtext;text-decoration:none">http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/ht</span></a><u></u><u></u></p>
<p>> ml/ch05.html#d0e3962 lists & as an operator. But it somehow doesn't
<u></u><u></u></p>
<p>> work.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> --<u></u><u></u></p>
<p>> View this message in context:<u></u><u></u></p>
<p>> <a href="http://drools.46999.n3.nabble.com/Non-short-circuit-ANDing-tp4021928p4" target="_blank">
<span style="color:windowtext;text-decoration:none">http://drools.46999.n3.nabble.com/Non-short-circuit-ANDing-tp4021928p4</span></a><u></u><u></u></p>
<p>> 021931.html Sent from the Drools: User forum mailing list archive at
<u></u><u></u></p>
<p>> Nabble.com.<u></u><u></u></p>
<p>> _______________________________________________<u></u><u></u></p>
<p>> rules-users mailing list<u></u><u></u></p>
<p>> <a href="mailto:rules-users@lists.jboss.org" target="_blank"><span style="color:windowtext;text-decoration:none">rules-users@lists.jboss.org</span></a><u></u><u></u></p>
<p>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
<span style="color:windowtext;text-decoration:none">https://lists.jboss.org/mailman/listinfo/rules-users</span></a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>_______________________________________________<u></u><u></u></p>
<p>rules-users mailing list<u></u><u></u></p>
<p><a href="mailto:rules-users@lists.jboss.org" target="_blank"><span style="color:windowtext;text-decoration:none">rules-users@lists.jboss.org</span></a><u></u><u></u></p>
<p><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank"><span style="color:windowtext;text-decoration:none">https://lists.jboss.org/mailman/listinfo/rules-users</span></a><u></u><u></u></p>
</div>
<br><br>
<hr>
<br><span style="FONT-FAMILY:Arial;COLOR:#808080;FONT-SIZE:7.5pt">NOTICE:
Morgan Stanley is not acting as a municipal advisor and the opinions or views
contained herein are not intended to be, and do not constitute, advice within
the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer
Protection Act. If you have received this communication in error, please destroy
all electronic and paper copies and notify the sender immediately.
Mistransmission is not intended to waive confidentiality or privilege. Morgan
Stanley reserves the right, to the extent permitted under applicable law, to
monitor electronic communications. This message is subject to terms available at
the following link: <a style="FONT-FAMILY:Arial;COLOR:#808080;FONT-SIZE:7.5pt" href="http://www.morganstanley.com/disclaimers" target="_blank">http://www.morganstanley.com/disclaimers</a>
If you cannot access these links, please notify us by reply message and we will
send the contents to you. By messaging with Morgan Stanley you consent to the
foregoing.</span><br>
<p></p>
<p></p><p></p></div>
<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></blockquote></div><br></div>