I have recently started using DROOLS and I keep having a problem. I think I am not entirely sure how the field extractors are supposed to work. Basically I need to write a rule that fires when a particular category of object is encountered but drools keeps returning null for the category even though the category has contents. I think the best way to see it is the following code...
rule "Test" when $ts : CategorisedTree($category : category) then System.out.println($category + " == " + $ts.getCategory() + " ? " + ($category == $ts.getCategory())); end
null == Relation ? false null == Type ? false null == Surname ? false null == MiddleName ? false null == FirstName ? false