I would appreciate it if someone could explain to me why this is illegal:
rule "some rule name"
when
$a : A($bset : bset)
$bset contains B(x == "hello")
then
//do something
end
Where:
public class A {
private Set<B> bset = new HashSet<B>();
public static class B {
private String x
}
}
Drools eclipse plugin error is not very useful. It provides the following error:
[ERR 102] Line 23:16 The unused input "contains" in the rule "some rule name"
The error appears in the line with "bset contains ..."
I looked through the Drools documentation, as well as the book I have, and did not find any examples to be very revealing in this regard.
source
share