Thanks a lot. It worked perfect. Regards, Randhish
From: [email protected] [mailto:[email protected]] On Behalf Of Wolfgang Laun Sent: Thursday, April 14, 2011 6:26 PM To: Rules Users List Subject: Re: [rules-users] Retrieving rule configuration You may have to use a bit from the unstable API: KnowledgePackage kPackage = ...; KnowledgePackageImp kPackageImp = (KnowledgePackageImp)kPackage; for( org.drools.definition.rule.Rule rule: kPackage.getRules() ){ String rName = rule.getName(); org.drools.rule.Rule realRule = (org.drools.rule.Rule)kPackageImp.getRule( rName ); String rfGroup = realRule.getRuleFlowGroup(); } -W 2011/4/14 Randhish Raghavan <[email protected]<mailto:[email protected]>> Hello, A sample rule that I have created is listed below: rule 'Abnormal time MBP Enrollment' dialect 'mvel' ruleflow-group "enrl.ruleflowgroup.detailRuleFlowGroup" when ruleData : EnrlRuleData() then ----- end Is there any way I can retrieve the rule flow group name ("enrl.ruleflowgroup.detailRuleFlowGroup") when rules are loaded (Ex: using KnowledgeBaseListener)? Thanks Randhish ________________________________ http://www.mindtree.com/email/disclaimer.html _______________________________________________ rules-users mailing list [email protected]<mailto:[email protected]> https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
