OK, I think I found it and here is what the rule could look like:<br><br>rule &quot;Repayment Code Requires Approval&quot;<br>&nbsp;&nbsp;&nbsp; salience 60<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; repaymentCode : RepaymentCode( code == &quot;MD&quot;, matchApprv == &quot;Y&quot; )
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mdOutput : ModelDiscrepancyOutput( $amt1 : sumRTVQty, sumCmAndRnr == $amt1)<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;Repayment Code Requires Approval&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; processMDAdjustments(drools.getWorkingMemory
().getQueryResults( &quot;MD Adjustments&quot; ), StatusConstants.APPROVAL);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;mdOutput: &quot; + mdOutput);<br>end<br><br>Now my question is, how does Drools handle these objects and the comparison because the underlying objects are BigDecimal?
<br><br><div><span class="gmail_quote">On 7/9/07, <b class="gmail_sendername">Ronald R. DiFrango</b> &lt;<a href="mailto:ron.difrango@gmail.com">ron.difrango@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All,<br><br>I have the following rule:<br><br>rule &quot;Repayment Code Requires Approval&quot;<br>&nbsp;&nbsp;&nbsp; salience 60<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; repaymentCode : RepaymentCode( code == &quot;MD&quot;, matchApprv == &quot;Y&quot; )
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mdOutput : ModelDiscrepancyOutput( $amt1 : sumRTVQty, $amt2 : sumCmAndRnr)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; eval($amt1.doubleValue() == $amt2.doubleValue())<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;Repayment Code Requires Approval&quot;);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; processMDAdjustments(drools.getWorkingMemory().getQueryResults( &quot;MD Adjustments&quot; ), StatusConstants.APPROVAL);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;mdOutput: &quot; + mdOutput);<br>end<br><br>If I remember correctly, there was going to be an update to the rules language that would allow me to eliminate the eval.&nbsp; Is this true and if so what is the syntax that accomplishes this?
<br><br><span id="st" name="st" class="st">Ron</span><br>
</blockquote></div><br>