Not at the moment, as we consider the working memory to have an invalid state at this point. I'm not sure adding this is a good idea. Exceptions are not generally considered recoverably. What you can do is have the eval call a function, which wraps and swalls the thrown exception.

Mark
Juergen wrote:
Is it possible to tell drools not to forward an exception thrown during LHS evaluation, but to consider it as LHS not fulfilled? probably as additional rule attribute?

e.g.
rule "a"
    failureException NullPointerException, SomeException
    when
        a : A()
B(b == (aBind.getSomeAttrib().getSomeAttribThatsNull().getAttrib())
        eval ( someExpressionsThatThrowsSomeException() )
    then
        ...
end




Reply via email to