<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 08:24:10 Saturday, 3 November 2012 -->
<STYLE type=text/css>P.cbb2e7ed-7077-4bb2-9ab9-2f74af5430b7 {
        MARGIN: 0cm 0cm 0pt
}
LI.cbb2e7ed-7077-4bb2-9ab9-2f74af5430b7 {
        MARGIN: 0cm 0cm 0pt
}
DIV.cbb2e7ed-7077-4bb2-9ab9-2f74af5430b7 {
        MARGIN: 0cm 0cm 0pt
}
TABLE.cbb2e7ed-7077-4bb2-9ab9-2f74af5430b7Table {
        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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.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="MsoNormal"><span style=font-size:12.0pt>Hi,&nbsp; Can someone please point me to compelling examples/sample code &nbsp;of how to use a DROOLs callback API for very high-resolution logging of L-value predicate matching events?<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt>E.g.&nbsp; I want to be able to log when each of these 5 L-value predicates either &#8220;MATCHES&#8221; or &#8220;FAILS TO MATCH&#8221; (at the time of the event)<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style=font-size:12.0pt>rule &quot;LCHUS_IRS_CURRENCY_RULE&quot;&nbsp; //XLS Item=195<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp; when&nbsp; <o:p></o:p></span></b></p>
<p class="MsoNormal" style=margin-left:.5in><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IRDCurrencyRuleFact(
<o:p></o:p></span></b></p>
<p class="MsoNormal" style=margin-left:.5in><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;productType == &quot;IRS&quot;,<o:p></o:p></span></b></p>
<p class="MsoNormal" style=margin-left:.5in><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; currency==&quot;GBP&quot;,<o:p></o:p></span></b></p>
<p class="MsoNormal" style=margin-left:.5in;text-indent:.5in><b><span style=font-size:12.0pt>upfrontFeePaymentDate &lt; IRDCurrencyRuleFact.terminationDate,<o:p></o:p></span></b></p>
<p class="MsoNormal" style=margin-left:.5in><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maturity &lt;= 18275,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //unit = days, i.e. 50 Years<o:p></o:p></span></b></p>
<p class="MsoNormal" style=margin-left:.5in><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; notional &lt;= 99,999,999,999.99&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //max Notional<o:p></o:p></span></b></p>
<p class="MsoNormal" style=margin-left:.5in><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp; then<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&#8220;LCHUS&#8221;);<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style=font-size:12.0pt>end<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style=font-size:12.0pt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
<p class="MsoNormal"><b><span style=font-size:12.0pt;color:gray><o:p>&nbsp;</o:p></span></b></p>
<p class="MsoNormal"><b><span style=color:gray>Ben D Cotton III</span></b><span style=font-size:9.0pt;color:gray><br />
Morgan Stanley &amp; Co.<br />
OTC Derivatives Clearing Technology <br />
1221 AOTA Rockefeller Ctr - Flr 27<br />
New York, NY 10020<br />
(212)762.9094<br />
<a href="mailto:ben.cotton@ms.com"><span style=color:gray>ben.cotton@ms.com</span></a>
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</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>