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....
Puneet Duggal

On 4/30/10, Gayatri Chandak <> wrote:

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) {
  = name;

     public String getAge() {
           return age;
     public void setAge(String age) {
           this.age = age;

     public String getSex() {
           return sex;
     public void setSex(String sex) {
  = sex;

Then in the rule file you should write as:

rule "rule1"

objectPerson : PersonDetails ( conditions are placed here )

So, objectP2483 is the object of your Fact (POJO).

Gayatri Chandak
TEG-Open Source
Tata Consultancy Services
Yantra Park -(STPI)
2nd Pokharan Road,
Opp HRD Voltas Center,Subash Nagar
Mumbai - 400 601,Maharashtra
Ph:- 022-67782556
Experience certainty.   IT Services
                 Business Solutions

From:       Puneet duggal <>

To:         Rules Users List <>

Date:       04/30/2010 03:11 PM

Subject:    Re: [rules-users] rules problem

Sent by:

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


objectP2483 : Para_2483(fid2338>=4 &&fid2327=="1" );




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

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