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
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
https://lists.jboss.org/mailman/listinfo/rules-users