How to use Agenda Group in the new Rule Unit API?

2 views
Skip to first unread message

Steven Chou

unread,
Oct 10, 2025, 10:42:18 PM (8 days ago) Oct 10
to Drools Usage
Hi, 
Is there a way to use the Agenda Group with the newer Rule Unit Java API, i.e. RuleUnitData class implementation?
The sample of the usage of agenda group requires the access to the KieSession object, but I don't think that is available from the RuleUnitInstance. I also don't see any Java API exposed to control the agenda group in the Rule Unit API.

Can someone please help on this? What I want is to set focus on the specific agenda group before firing the rule.

Thanks,

Steven 

Alex Porcelli

unread,
Oct 11, 2025, 11:53:04 AM (7 days ago) Oct 11
to drools...@googlegroups.com
RuleUnits itself is a group of rules to be executed. From docs [1]:
"If you need to group your rules with rule unit, rule units themselves
are a clearer and simpler grouping method."

[1] https://kie.apache.org/docs/10.1.x/drools/drools/language-reference/index.html#_legacy_rule_attributes
> --
> You received this message because you are subscribed to the Google Groups "Drools Usage" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/drools-usage/078d0542-570f-4b34-9919-bd8fadc9ca43n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages