You have already been given the link <a href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html</a> . Browse and make sure to find all occurrences of &quot;eval&quot;.<br>
-W<br><br><div class="gmail_quote">On 7 April 2011 05:41, Heng hh <span dir="ltr">&lt;<a href="mailto:hockhuiheng@gmail.com">hockhuiheng@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
 I need to know what is the eval function in drools?<br>
<br>
On Wed, Apr 6, 2011 at 4:39 PM, Swindells, Thomas &lt;<a href="mailto:TSwindells@nds.com">TSwindells@nds.com</a>&gt; wrote:<br>
&gt; As far as the drools engine is concerned there is no such thing as files, there are just rules loaded into the knowledge base.<br>
&gt; As for salience the manual is a good place to start learning about it: <a href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e3573" target="_blank">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e3573</a><br>

&gt;<br>
&gt; Thomas<br>
&gt;<br>
&gt;&gt; -----Original Message-----<br>
&gt;&gt; From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-">rules-users-</a><br>
&gt;&gt; <a href="mailto:bounces@lists.jboss.org">bounces@lists.jboss.org</a>] On Behalf Of Heng hh<br>
&gt;&gt; Sent: 06 April 2011 05:14<br>
&gt;&gt; To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; Subject: [rules-users] Question<br>
&gt;&gt;<br>
&gt;&gt; Hi all<br>
&gt;&gt;  I would like to ask how drools run . I found that they can run in two<br>
&gt;&gt; different drl file. What is salience for ?.<br>
&gt;&gt;<br>
&gt;&gt; rule &quot; Teting 571&quot;<br>
&gt;&gt;       salience 4200<br>
&gt;&gt;     when<br>
&gt;&gt;       root:AdjudicationDTO(type==&quot;PRIORAPPROVAL_LINE&quot;,t:type);<br>
&gt;&gt;       pa:PriorApproval();<br>
&gt;&gt;       pal:PriorApprovalLine($pb:productBenefit);<br>
&gt;&gt;<br>
&gt;&gt;       cct:PriorApprovalTreatment(id!=null,$c:clinical);<br>
&gt;&gt;       then<br>
&gt;&gt;               System.out.println( &quot;571= PASS &quot;);<br>
&gt;&gt;               if(<br>
&gt;&gt;<br>
&gt;&gt;       root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment<br>
&gt;&gt; (),pal.getClinicalUcrs(),$c)!=null&amp;&amp;<br>
&gt;&gt;<br>
&gt;&gt;       root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment<br>
&gt;&gt; (),pal.getClinicalUcrs(),$c).getUcrType()!=null&amp;&amp;<br>
&gt;&gt;               (<br>
&gt;&gt;<br>
&gt;&gt;       root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment<br>
&gt;&gt; (),pal.getClinicalUcrs(),$c).getMinChargeLimit()!=null&amp;&amp;<br>
&gt;&gt;<br>
&gt;&gt; root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal<br>
&gt;&gt; .getClinicalUcrs(),$c).getMinChargeLimit().compareTo(pal.getRequestedAm<br>
&gt;&gt; ount())&lt;0<br>
&gt;&gt;                           ||<br>
&gt;&gt;<br>
&gt;&gt; root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal<br>
&gt;&gt; .getClinicalUcrs(),$c).getMinChargeLimit()!=null&amp;&amp;<br>
&gt;&gt;<br>
&gt;&gt; root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal<br>
&gt;&gt; .getClinicalUcrs(),$c).getMinChargeLimit().compareTo(pal.getAllocatedAm<br>
&gt;&gt; ount())&lt;0<br>
&gt;&gt;               )<br>
&gt;&gt;           ){<br>
&gt;&gt;               registerPALineStepStr(pal,571+cct.getId().toString(),<br>
&gt;&gt;                       &quot;571 Clinical treatment UCR validation&quot;,<br>
&gt;&gt;                       AdjudicationConstants.RESULT_FAIL,<br>
&gt;&gt;                       &quot;The requested amount is more than the treatment UCR<br>
&gt;&gt; charge limit&quot;,<br>
&gt;&gt;                       &quot;PA line requested amt [&quot;+pal.getRequestedAmount()+&quot;]<br>
&gt;&gt; &quot;+<br>
&gt;&gt;                       &quot; Allocated amt [&quot;+pal.getAllocatedAmount()+&quot;] &quot;+<br>
&gt;&gt;                       &quot;<br>
&gt;&gt; benefit[&quot;+pal.getProductBenefit().getBenefit().getCode()+&quot;]&quot;+<br>
&gt;&gt;<br>
&gt;&gt;       &quot;UCR[&quot;+root.getUcrDetailsMsg(root.getAppliedUcr($pb.getBenefit(),<br>
&gt;&gt; pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c))+&quot;]&quot;<br>
&gt;&gt;                   );<br>
&gt;&gt;           }<br>
&gt;&gt;       else{<br>
&gt;&gt;               registerPALineStepStr(pal,571+cct.getId().toString(),<br>
&gt;&gt;                       &quot;571 Clinical treatment UCR validation&quot;,<br>
&gt;&gt;                       AdjudicationConstants.RESULT_PASS,<br>
&gt;&gt;                       &quot;The requested amount is more than the treatment UCR<br>
&gt;&gt; charge limit&quot;,<br>
&gt;&gt;                       &quot;PA line requested amt [&quot;+pal.getRequestedAmount()+&quot;]<br>
&gt;&gt; &quot;+<br>
&gt;&gt;                       &quot; Allocated amt [&quot;+pal.getAllocatedAmount()+&quot;] &quot;+<br>
&gt;&gt;                       &quot;<br>
&gt;&gt; benefit[&quot;+pal.getProductBenefit().getBenefit().getCode()+&quot;]&quot;+<br>
&gt;&gt;<br>
&gt;&gt;       root.getUcrDetailsMsg(root.getAppliedUcr($pb.getBenefit(),pa.getP<br>
&gt;&gt; roposedDateOfTreatment(),pal.getClinicalUcrs(),$c))<br>
&gt;&gt;                   );<br>
&gt;&gt;       }<br>
&gt;&gt; end<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt; **************************************************************************************<br>
&gt; This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the <a href="mailto:postmaster@nds.com">postmaster@nds.com</a> and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.<br>

&gt;<br>
&gt; NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
&gt; **************************************************************************************<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<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>
</blockquote></div><br>