<HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<HEAD><!-- Template generated by Exclaimer Template Editor on 09:35:33 Wednesday, 30 January 2013 -->
<STYLE type=text/css>P.52562654-851b-4305-a1a1-b72e8dd7fb7d {
        MARGIN: 0cm 0cm 0pt
}
LI.52562654-851b-4305-a1a1-b72e8dd7fb7d {
        MARGIN: 0cm 0cm 0pt
}
DIV.52562654-851b-4305-a1a1-b72e8dd7fb7d {
        MARGIN: 0cm 0cm 0pt
}
TABLE.52562654-851b-4305-a1a1-b72e8dd7fb7dTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="Generator" content="Microsoft Word 12 (filtered medium)" />
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:14.0pt;
        font-family:"Lucida Console";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Lucida Console";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</HEAD>
<BODY lang="EN-US" link="blue" vlink="purple">
<P>
<div class="WordSection1">
<p class="MsoPlainText">> you'll have to evaluate all relevant conditions individually and keep track of the positives
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><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?<o:p></o:p></span></p>
<p class="MsoPlainText"><span style=font-family:"Calibri","sans-serif";color:#1F497D><o:p> </o:p></span></p>
<p class="MsoPlainText"><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.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style=font-family:"Calibri","sans-serif";color:#1F497D><o:p> </o:p></span></p>
<p class="MsoPlainText"><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.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style=font-family:"Calibri","sans-serif";color:#1F497D><o:p> </o:p></span></p>
<p class="MsoPlainText"><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.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style=font-family:"Calibri","sans-serif";color:#1F497D><o:p> </o:p></span></p>
<p class="MsoPlainText"><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><o:p></o:p></span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<br />
From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] 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<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">[Groundhog Day]<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">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.)<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-W<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On 29/01/2013, mp <<a href="mailto:meitreyi.panchmia@morganstanley.com"><span style=color:windowtext;text-decoration:none>meitreyi.panchmia@morganstanley.com</span></a>> wrote:<o:p></o:p></p>
<p class="MsoPlainText">> I need to record the results of each of the conditions as a side
<o:p></o:p></p>
<p class="MsoPlainText">> effect in a list. But in case condition1 is false, condition2 would
<o:p></o:p></p>
<p class="MsoPlainText">> not be evaluated.<o:p></o:p></p>
<p class="MsoPlainText">> This would prevent me from knowing whether or not condition2 was
<o:p></o:p></p>
<p class="MsoPlainText">> true/false.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> 5.8.3.3.12. Operator precedence at<o:p></o:p></p>
<p class="MsoPlainText">> <a href="http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/ht">
<span style=color:windowtext;text-decoration:none>http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/ht</span></a><o:p></o:p></p>
<p class="MsoPlainText">> ml/ch05.html#d0e3962 lists & as an operator. But it somehow doesn't
<o:p></o:p></p>
<p class="MsoPlainText">> work.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> --<o:p></o:p></p>
<p class="MsoPlainText">> View this message in context:<o:p></o:p></p>
<p class="MsoPlainText">> <a href="http://drools.46999.n3.nabble.com/Non-short-circuit-ANDing-tp4021928p4">
<span style=color:windowtext;text-decoration:none>http://drools.46999.n3.nabble.com/Non-short-circuit-ANDing-tp4021928p4</span></a><o:p></o:p></p>
<p class="MsoPlainText">> 021931.html Sent from the Drools: User forum mailing list archive at
<o:p></o:p></p>
<p class="MsoPlainText">> Nabble.com.<o:p></o:p></p>
<p class="MsoPlainText">> _______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">> rules-users mailing list<o:p></o:p></p>
<p class="MsoPlainText">> <a href="mailto:rules-users@lists.jboss.org"><span style=color:windowtext;text-decoration:none>rules-users@lists.jboss.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">
<span style=color:windowtext;text-decoration:none>https://lists.jboss.org/mailman/listinfo/rules-users</span></a><o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">_______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">rules-users mailing list<o:p></o:p></p>
<p class="MsoPlainText"><a href="mailto:rules-users@lists.jboss.org"><span style=color:windowtext;text-decoration:none>rules-users@lists.jboss.org</span></a><o:p></o:p></p>
<p class="MsoPlainText"><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><span style=color:windowtext;text-decoration:none>https://lists.jboss.org/mailman/listinfo/rules-users</span></a><o:p></o:p></p>
</div>
<BR /><BR />
<HR id=HR1 />
<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">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></BODY>
</HTML>