Thanks a lot. It worked perfect.
Regards,
Randhish
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] 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
<Randhish_Raghavan@mindtree.com<mailto:Randhish_Raghavan@mindtree.com>>
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
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users