I have a member which is a BitSet, and in a given rule, I’d like to test whether a particular bit is set, for example:
class Foo
{
BitSet bar;
// getter & setter
}
My rule that I would like:
rule "Test Bitset"
when
$f : Foo(bar ???) <-- what does this look like?
then
// do something
end
Is this possible?
According to the docs
would be a valid way to do it.
Drools doc