<div>hi john,</div>
<div> </div>
<div>My rule is something  like this </div>
<div> </div><font face="Courier" size="2"><font face="Courier" size="2">
<p>rule &quot;Area_EstimatedRval1_10-01-09_12-31-14&quot;</p>
<p>date-effective &quot;01-Oct-2009&quot; date-expires &quot;31-Dec-2014&quot; salience 5 </p>
<p>no-loop true </p>
<p>when </p>
<p>eval(BusinessLogic.gettest(&quot;inside Area_EstimatedRval1_10-01-09_12-31-14&quot;))</p>
<p>objectP2483 : Para_2483( (fid2329==&quot;Accessible Attic&quot; ||fid2329==&quot;Mobile Home&quot;) &amp;&amp; (fid2337==&quot;Fiberglass (Blown)&quot;) );</p>
<p></p>
<p>then </p>
<p>System.out.println(&quot;Area_EstimatedRval1_10-01-09_12-31-14&quot;);</p>
<p>objectP2483.setFid2339(objectP2483.getFid2338() * 2.2);update(objectP2483);</p>
<p>end </p>
<div></div></font></font>but its not  going inside the 
<div>BusinessLogic.gettest(&quot;inside Area_EstimatedRval1_10-01-09_12-31-14&quot;))</div>
<div> </div>
<div>whats rung in this ??<br><br> </div>
<div><span class="gmail_quote">On 4/30/10, <b class="gmail_sendername">John Peterson</b> &lt;<a href="mailto:john.peterson.gv3k@statefarm.com">john.peterson.gv3k@statefarm.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">If you really wanted to see your text string there, you might be able to<br>invoke a method that takes that text string and prints it and then<br>
returns &quot;true&quot; in all cases.  You&#39;d most likely need to put it in an<br>Eval as suggested below.<br><br><br>&gt;You can&#39;t directly use java code inside the LHS of a rule. You can<br>though<br>&gt;use eval to call a java method inside your LHS. Also remember that you<br>
don&#39;t<br>&gt;have to use ; in the patterns.<br>&gt;<br>&gt;2010/4/30 Puneet duggal &lt;<a href="mailto:duggalpunit@gmail.com">duggalpunit@gmail.com</a>&gt;<br>&gt;<br>&gt;&gt; frnds i have a rule<br>&gt;&gt;<br>&gt;&gt; and its not working and i  for checking i have put a Sop in my  when<br>
but<br>&gt;&gt; it not  prints  the<br>&gt;&gt; Inside Area_SqFt_1_10-01-09_12-31-14<br>&gt;&gt; so how can we put SOP inside when clause.<br>&gt;&gt;<br>&gt;&gt; rule &quot;Area_SqFt_1_10-01-09_12-31-14&quot;<br>&gt;&gt;<br>
&gt;&gt; date-effective &quot;01-Oct-2009&quot; date-expires &quot;31-Dec-2014&quot; salience 6<br>&gt;&gt;<br>&gt;&gt; no-loop true<br>&gt;&gt;<br>&gt;&gt; when<br>&gt;&gt;<br>&gt;&gt; System.out.println(&quot;Inside Area_SqFt_1_10-01-09_12-31-14&quot;);<br>
&gt;&gt;<br>&gt;&gt; objectP2483 : Para_2483( (fid2335==&quot;Block&quot;) &amp;&amp; (fid2336==16) );<br>&gt;&gt;<br>&gt;&gt; then<br>&gt;&gt;<br>&gt;&gt; System.out.println(&quot;Area_SqFt_1_10-01-09_12-31-14&quot;);<br>
&gt;&gt;<br>&gt;&gt; objectP2483.setFid31003(new Double(497)); end<br>&gt;&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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br>