Advice could be the easiest way to do it. Writing your own comparisons
in Java would be complicated and in Jess it would be quite hard to do
a whole set (since you'd need to use the functions you were
replacing). Advice would be pretty simple. I think this is all you'd
need to do:
(defadv
I have a case where I have a User Function that typcally returns a
Number but can return NIL. If I have a rule that uses the > function, I
get a "Not a number" exception. I'd like to handle this in the SQL NULL
sort of way, which is to say, NIL cannot be compared to anything
successfully (i.e. it