Otherwise() was removed, I wasn't happy with the implementation, heh
wasn't even aware that anyone was using it. Sorry.
Matt Geis wrote:
I've got the following three rules in my DRL, but I'm seeing
s : String()
System.out.println("got a match, string found in working memory");
i : Integer()
System.out.println("got a match, Integer found in working memory");
rule "no matching rule"
System.out.println("no rule applied, using otherwise rule");
If I assert a String, then the 'matchfound' rule fires. If I assert an Integer,
'intmatchfound' fires. If I assert an object of a different type or do not assert
anything, the rule I would expect to fire ('no matching rule') never fires. The
only way I can get it to fire is if I explicitly assert an instance of Otherwise.
I was under the impression that Drools would automatically assert it when it sees that no
other rule has fired.
Am I doing something wrong here? Did usage of Otherwise change?
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos
rules-users mailing list