<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 "Area_EstimatedRval1_10-01-09_12-31-14"</p>
<p>date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 5 </p>
<p>no-loop true </p>
<p>when </p>
<p>eval(BusinessLogic.gettest("inside Area_EstimatedRval1_10-01-09_12-31-14"))</p>
<p>objectP2483 : Para_2483( (fid2329=="Accessible Attic" ||fid2329=="Mobile Home") && (fid2337=="Fiberglass (Blown)") );</p>
<p></p>
<p>then </p>
<p>System.out.println("Area_EstimatedRval1_10-01-09_12-31-14");</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("inside Area_EstimatedRval1_10-01-09_12-31-14"))</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> <<a href="mailto:john.peterson.gv3k@statefarm.com">john.peterson.gv3k@statefarm.com</a>> 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 "true" in all cases. You'd most likely need to put it in an<br>Eval as suggested below.<br><br><br>>You can't directly use java code inside the LHS of a rule. You can<br>though<br>>use eval to call a java method inside your LHS. Also remember that you<br>
don't<br>>have to use ; in the patterns.<br>><br>>2010/4/30 Puneet duggal <<a href="mailto:duggalpunit@gmail.com">duggalpunit@gmail.com</a>><br>><br>>> frnds i have a rule<br>>><br>>> and its not working and i for checking i have put a Sop in my when<br>
but<br>>> it not prints the<br>>> Inside Area_SqFt_1_10-01-09_12-31-14<br>>> so how can we put SOP inside when clause.<br>>><br>>> rule "Area_SqFt_1_10-01-09_12-31-14"<br>>><br>
>> date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 6<br>>><br>>> no-loop true<br>>><br>>> when<br>>><br>>> System.out.println("Inside Area_SqFt_1_10-01-09_12-31-14");<br>
>><br>>> objectP2483 : Para_2483( (fid2335=="Block") && (fid2336==16) );<br>>><br>>> then<br>>><br>>> System.out.println("Area_SqFt_1_10-01-09_12-31-14");<br>
>><br>>> objectP2483.setFid31003(new Double(497)); end<br>>><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>