rule "checkClaim"

        when
                clm : Claim(typeId == 1)
                clm : Claim(amount > 10000.00)
                
        then 
                clm.setStatus("REJECTED");
                clm.setReason("amount claimed exceeds the maximum permitted");  
        
end


rule "checkClaim2"

        when
                clm : Claim(typeId == 1)
                clm : Claim(daysInHospital > 50)
                
        then 
                clm.setStatus("REJECTED");
                clm.setReason(clm.getReason() + "    more nights in hospitals 
than the
maximum permitted");
end



This is the code in my drl file. suppose the factObject of Claim satisfies
both the rules (we can't give the same name for muntiple rules in drl, rt?
but can't we do it in .xls?).  but i'm getting reason as "amount claimed
exceeds the maximum permitted". y it's so? i expected "amount claimed
exceeds the maximum permitted    more nights in hospitals than the maximum
permitted".

thanx in advance
jojan


-- 
View this message in context: 
http://www.nabble.com/propagation-of-object-thru-rules-tf2471502.html#a6891107
Sent from the drools - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to