[rules-users] Problem in update() method

Puneet duggal duggalpunit at gmail.com
Wed May 12 23:54:01 EDT 2010


hi frnds
i am having problem  with update() method when i call update method  from
first rule
it calls  second rule and goes in infinite loop calling the second method
rule again and again
why is it so ??


rule "Area_EstimatesRval4_10-01-09_12-31-14"
date-effective "01-Oct-2009" date-expires "31-Dec-2014"  salience 5
 no-loop true
  when
 objectP2483 : Para_2483( (fid2329>=0);

 then

 objectP2483.setFid2339(objectP2483.getFid2338() *3.1);update(objectP2483);

  rule "Area_EstimatedRval_test_10-01-09_12-31-14"
date-effective "01-Oct-2009" date-expires "31-Dec-2014"  salience 5
 no-loop true
  when
 objectP2483 : Para_2483( fid2339>0);
  then
 System.out.println("Area_EstimatedRval_test_10-01-09_12-31-14");
 objectP2483.setFid2339(objectP2483.getEid2143());

 update(objectP2483); end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100513/665b1d44/attachment.html 


More information about the rules-users mailing list