[rules-users] rules getting fired in an infiniteloop even when noloop is set to true

Abarna Ramachandran rabarna at archstone.in
Mon Sep 7 03:29:47 EDT 2009


i have my rule as

rule AssignSomething
no-loop true
when
   $ao:AssertionObject()
   $ssc:String() from getSSC(getRecordData($ao,"stationNo"))
   eval(!($ssc==null))
then
   modify($ao){setBillingRecord("posId",$ssc);}
    info(BillingRecordHelper.SSCPOC_ASSIGNED_INFO,log);
end


Here i am setting values for the assertionobject in my rhs. But this
value is different from the ssc value i am checking in the rule
condition. But still this goes into an infinite loop.
what am i doing wrong?

thanks
Abarna



More information about the rules-users mailing list