On 06/12/2011, Zhao Yi <zhaoyi0113(a)gmail.com> wrote:
Is it your post?
laune wrote
>
> for( Rule rule: knowledgePackage.getRules() ){
> String ruleName = rule.getName();
> org.drools.rule.Rule realRule =
> (org.drools.rule.Rule)
> ((KnowledgePackageImp)knowledgePackage).getRule( ruleName );
> String agName = realRule.getAgendaGroup();
> }
>
Yes.
I wander where the knowledgePackage coming from. I am in
beforeActivationFired method, how can I get knowledgePackage in this method?
Pass your listener a reference to the KnowledgeBase, which will give
you the knowledge packages; the rule contains the package name, and so
on.
-W
--
View this message in context:
http://drools.46999.n3.nabble.com/How-can-I-get-rule-s-agenda-group-name-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users