<div>
<div>thanks a  lot gayatri for ur prompt reply</div>
<div> </div>
<div>i am confused  that when and where is objectPerson or objectP2483 </div>
<div>is  defined and created  and how  and when its decided  that which </div>
<div>all rules are to be fired .How can i know all this before calling the </div>
<div>execute method....</div>
<div> </div>
<div>thanks...</div>
<div>Puneet Duggal<br><br> </div>
<div><span class="gmail_quote">On 4/30/10, <b class="gmail_sendername">Gayatri Chandak</b> &lt;<a href="mailto:gayatri.chandak@tcs.com">gayatri.chandak@tcs.com</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>if you have a POJO say PersonDetails as:<br><br>public class PersonDetails {<br><br>     String name;<br>
     String age;<br>     String sex;<br>     String desg;<br><br>     public String getDesg() {<br>           return desg;<br>     }<br>     public void setDesg(String desg) {<br>           this.desg = desg;<br>     }<br>
<br>     public String getName() {<br>           return name;<br>     }<br>     public void setName(String name) {<br>           <a href="http://this.name">this.name</a> = name;<br>     }<br><br>     public String getAge() {<br>
           return age;<br>     }<br>     public void setAge(String age) {<br>           this.age = age;<br>     }<br><br>     public String getSex() {<br>           return sex;<br>     }<br>     public void setSex(String sex) {<br>
           this.sex = sex;<br>     }<br>}<br><br>Then in the rule file you should write as:<br><br>rule &quot;rule1&quot;<br><br>when<br>objectPerson : PersonDetails ( conditions are placed here )<br>then<br>&lt;rhs&gt;<br>
end<br><br>So, objectP2483 is the object of your Fact (POJO).<br><br>Regards,<br>Gayatri Chandak<br>TEG-Open Source<br>Tata Consultancy Services<br>Yantra Park -(STPI)<br>2nd Pokharan Road,<br>Opp HRD Voltas Center,Subash Nagar<br>
Mumbai - 400 601,Maharashtra<br>India<br>Ph:- 022-67782556<br>Mailto: <a href="mailto:gayatri.chandak@tcs.com">gayatri.chandak@tcs.com</a><br>Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br>____________________________________________<br>
Experience certainty.   IT Services<br>                 Business Solutions<br>                 Outsourcing<br>____________________________________________<br><br><br><br>From:       Puneet duggal &lt;<a href="mailto:duggalpunit@gmail.com">duggalpunit@gmail.com</a>&gt;<br>
<br>To:         Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br><br>Date:       04/30/2010 03:11 PM<br><br>Subject:    Re: [rules-users] rules problem<br><br>Sent by:    <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
<br><br><br><br><br><br>thanks frnds for ur  reply frnd<br><br><br>actually im making rule like this<br><br><br>rule &quot;Square_Foot_Calculation_Rule1_01-02-10_01-28-13&quot;<br><br><br>date-effective &quot;02-Jan-2010&quot; date-expires &quot;28-Jan-2013&quot; salience 0<br>
<br><br>no-loop true<br><br><br>when<br><br><br>objectP2483 : Para_2483(fid2338&gt;=4 &amp;&amp;fid2327==&quot;1&quot; );<br><br><br><br>then<br><br><br>objectP2483.setFid31003(objectP2483.getEid2162());<br><br><br>end<br>
<br><br><br>can u tell me  what is this  objectP2483 ??<br><br><br>where this  object is created ??<br><br><br>And i want to know the rule which are  going to execute<br>prior of execution...i.e before calling execute() method<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>
<br><br><br><br><br><br><br>=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain<br>confidential or privileged information. If you are<br>not the intended recipient, any dissemination, use,<br>
review, distribution, printing or copying of the<br>information contained in this e-mail message<br>and/or attachments to it are strictly prohibited. If<br>you have received this communication in error,<br>please notify us by reply e-mail or telephone and<br>
immediately and permanently delete the message<br>and any attachments. Thank you<br><br><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> </div>