[rules-users] API of Rule: no access to interesting attributes
Wolfgang Laun
wolfgang.laun at gmail.com
Sat Aug 7 14:52:39 EDT 2010
Whereas org.drools.rule.Rule contains a wealth of interesting fields,
the stable API org.drools.definition.rule.Rule restricts us to
getName() and getPackageName() (and some MetaData - whatever that
might be).
I'd opt for an extension of this interface, providing access to
agendaGroup, activationGroup and ruleFlowGroup. I see no obvious
reason why these user defined attributes should remain hidden.
These rule attributes would provide a good opportunity for writing
more sophisticated event loggers, letting you specify rule filters by
natural rule groupings.
Cheers
-W
More information about the rules-users
mailing list