Hi,
Does anyone know how to catch exceptions in a RULE .
I mean like
(defrule someRule
"comment"
(Callhome (thing1 ?a)(thing2 ?b))
(try (< ?a ?b)catch (printout t "they need to be integers" crlf))
(test(eq ?b TRUE))
=>
(printout t "done" crlf)
)
in the above case the engine throws me an exception when ?a and ?b happen to
be strings and then it doesnt fire the remaining rules.
i dont want that. Instead i would want the engine to just ignore this rule
if ?a ?b are strings.
can this be done.?
Regards,
Mrinal