Re: [rules-users] rules problem
hello all plz reply to my question .. On 4/29/10, Puneet duggal duggalpu...@gmail.com wrote: hi all, I am new to drool business rules , i have a web application in which i have 100 rules so i want to know which rules are going to be executed based on the facts i suppilied . my drl files is loaded at run time from database. thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules problem
You can add something like rule rulename when ... then System.out.println(rulename); end in the thenclause. 2010/4/30 Puneet duggal duggalpu...@gmail.com hello all plz reply to my question .. On 4/29/10, Puneet duggal duggalpu...@gmail.com wrote: hi all, I am new to drool business rules , i have a web application in which i have 100 rules so i want to know which rules are going to be executed based on the facts i suppilied . my drl files is loaded at run time from database. thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules problem
Hi , you can add the following line to the RHS of your rules: drools.getRule().getName() This returns the name of the rule. Note: As the RHS is executed only when the conditions in the LHS are met (satisfied), you can get the name(s) of the rule(s) that are fired. Regards, Gayatri Chandak TEG-Open Source Tata Consultancy Services Yantra Park -(STPI) 2nd Pokharan Road, Opp HRD Voltas Center,Subash Nagar Mumbai - 400 601,Maharashtra India Ph:- 022-67782556 Mailto: gayatri.chan...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing From: Antonio Neto antoniosouzan...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 04/30/2010 02:20 PM Subject:Re: [rules-users] rules problem Sent by:rules-users-boun...@lists.jboss.org You can add something like rule rulename when ... then System.out.println(rulename); end in the thenclause. 2010/4/30 Puneet duggal duggalpu...@gmail.com hello all plz reply to my question .. On 4/29/10, Puneet duggal duggalpu...@gmail.com wrote: hi all, I am new to drool business rules , i have a web application in which i have 100 rules so i want to know which rules are going to be executed based on the facts i suppilied . my drl files is loaded at run time from database. thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules problem
thanks frnds for ur reply frnd actually im making rule like this rule Square_Foot_Calculation_Rule1_01-02-10_01-28-13 date-effective 02-Jan-2010 date-expires 28-Jan-2013 salience 0 no-loop true when objectP2483 : Para_2483(fid2338=4 fid2327==1 ); then objectP2483.setFid31003(objectP2483.getEid2162()); end can u tell me what is this objectP2483 ?? where this object is created ?? And i want to know the rule which are going to execute prior of execution...i.e before calling execute() method ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules problem
thanks Gayatri for ur reply actually im making rule like this rule Square_Foot_Calculation_Rule1_01-02-10_01-28-13 date-effective 02-Jan-2010 date-expires 28-Jan-2013 salience 0 no-loop true when objectP2483 : Para_2483(fid2338=4 fid2327==1 ); then objectP2483.setFid31003(objectP2483.getEid2162()); end can u tell me what is this objectP2483 ?? where this object is created ?? And i want to know the rule which are going to execute prior of execution...i.e before calling execute() method On 4/30/10, Gayatri Chandak gayatri.chan...@tcs.com wrote: Hi , you can add the following line to the RHS of your rules: drools.getRule().getName() This returns the name of the rule. Note: As the RHS is executed only when the conditions in the LHS are met (satisfied), you can get the name(s) of the rule(s) that are fired. Regards, Gayatri Chandak TEG-Open Source Tata Consultancy Services Yantra Park -(STPI) 2nd Pokharan Road, Opp HRD Voltas Center,Subash Nagar Mumbai - 400 601,Maharashtra India Ph:- 022-67782556 Mailto: gayatri.chan...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing From: Antonio Neto antoniosouzan...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 04/30/2010 02:20 PM Subject:Re: [rules-users] rules problem Sent by:rules-users-boun...@lists.jboss.org You can add something like rule rulename when ... then System.out.println(rulename); end in the thenclause. 2010/4/30 Puneet duggal duggalpu...@gmail.com hello all plz reply to my question .. On 4/29/10, Puneet duggal duggalpu...@gmail.com wrote: hi all, I am new to drool business rules , i have a web application in which i have 100 rules so i want to know which rules are going to be executed based on the facts i suppilied . my drl files is loaded at run time from database. thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules problem
Hi, if you have a POJO say PersonDetails as: public class PersonDetails { String name; String age; String sex; String desg; public String getDesg() { return desg; } public void setDesg(String desg) { this.desg = desg; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } } Then in the rule file you should write as: rule rule1 when objectPerson : PersonDetails ( conditions are placed here ) then rhs end So, objectP2483 is the object of your Fact (POJO). Regards, Gayatri Chandak TEG-Open Source Tata Consultancy Services Yantra Park -(STPI) 2nd Pokharan Road, Opp HRD Voltas Center,Subash Nagar Mumbai - 400 601,Maharashtra India Ph:- 022-67782556 Mailto: gayatri.chan...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing From: Puneet duggal duggalpu...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 04/30/2010 03:11 PM Subject:Re: [rules-users] rules problem Sent by:rules-users-boun...@lists.jboss.org thanks frnds for ur reply frnd actually im making rule like this rule Square_Foot_Calculation_Rule1_01-02-10_01-28-13 date-effective 02-Jan-2010 date-expires 28-Jan-2013 salience 0 no-loop true when objectP2483 : Para_2483(fid2338=4 fid2327==1 ); then objectP2483.setFid31003(objectP2483.getEid2162()); end can u tell me what is this objectP2483 ?? where this object is created ?? And i want to know the rule which are going to execute prior of execution...i.e before calling execute() method ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules problem
thanks a lot gayatri for ur prompt reply i am confused that when and where is objectPerson or objectP2483 is defined and created and how and when its decided that which all rules are to be fired .How can i know all this before calling the execute method thanks... Puneet Duggal On 4/30/10, Gayatri Chandak gayatri.chan...@tcs.com wrote: Hi, if you have a POJO say PersonDetails as: public class PersonDetails { String name; String age; String sex; String desg; public String getDesg() { return desg; } public void setDesg(String desg) { this.desg = desg; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } } Then in the rule file you should write as: rule rule1 when objectPerson : PersonDetails ( conditions are placed here ) then rhs end So, objectP2483 is the object of your Fact (POJO). Regards, Gayatri Chandak TEG-Open Source Tata Consultancy Services Yantra Park -(STPI) 2nd Pokharan Road, Opp HRD Voltas Center,Subash Nagar Mumbai - 400 601,Maharashtra India Ph:- 022-67782556 Mailto: gayatri.chan...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing From: Puneet duggal duggalpu...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 04/30/2010 03:11 PM Subject:Re: [rules-users] rules problem Sent by:rules-users-boun...@lists.jboss.org thanks frnds for ur reply frnd actually im making rule like this rule Square_Foot_Calculation_Rule1_01-02-10_01-28-13 date-effective 02-Jan-2010 date-expires 28-Jan-2013 salience 0 no-loop true when objectP2483 : Para_2483(fid2338=4 fid2327==1 ); then objectP2483.setFid31003(objectP2483.getEid2162()); end can u tell me what is this objectP2483 ?? where this object is created ?? And i want to know the rule which are going to execute prior of execution...i.e before calling execute() method ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users