Hi All,
My requirment is that i want to send corresponding error when any rule
fails.
for example:
rule "ValidationRuleExp_G250.4_0"
when
IValidationField(attributeId =="G250.4")
(((Map( this["G250.18"] !=4))&&(Map( this["G250.4"]not
in("910","990","983","995","996","997"))))||((Map(
this["G250.18"]
==4))&&(Map( this["G250.4"]
in("910","990","983","995","996","997")))))
then
System.out.println("comming
here---Success-------------------------------------------------->");
end
In this case i can call some method in success,Is there any way so that i
can call some method when any rule fails.
the problem is that i am trying to generate rule file and all the validation
expressions are already defined.
my task is to evaluate these expression and generate corresponding error
message when any rule fails
can you please suggest me how can i do this using drools.
Thanks,
Gaurav
--
View this message in context:
http://www.nabble.com/how-to-perform-some-task-when-rule-fails.-tf4475301...
Sent from the drools - user mailing list archive at
Nabble.com.