[rules-users] Exception Handling in the rule

sdinoo sdinoo at gmail.com
Tue Jun 7 01:21:40 EDT 2011


Hi,

In my when clause I have an eval statement like this

eval((ClaimsHistoryHelper.getClaimDrug(drugRefNo)).getDrugName())

For some reason, there is no DrugRecord for the given drugRefNo and hence I
get javaNullPointer exceptions
I do want to rule to continue evaluation and not stop with the error and
hence I dont want to handle exception at fireAllRules catch block

How can I handle the exception in the DRL ?





--
View this message in context: http://drools.46999.n3.nabble.com/Exception-Handling-in-the-rule-tp3033223p3033223.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list