Hi Amila,
 
One way to do this is to convert your rule file to xml and then manipulate the xml to get whatever the data you need.
Conversion between DRL and XML can be done automatically using following helpers/utilities that come with Drools itself
 
XmlDumper - for exporting XML
DrlDumper - for exporting DRL
DrlParser - reading DRL
XmlPackageReader - reading XML
 
----- Original Message -----
From: Amila Silva
To: rules-users@lists.jboss.org
Sent: Tuesday, June 30, 2009 12:02 PM
Subject: [rules-users] How to retrieve the Rule names in the drools rule file


hi everyone,
   I have requirement like to retrieve the RULE names in a given rule files. and also is there a way to map a rule names from a multiple rule files.
   i want to load the or show the available rules and system user to select the required rule for his program.
   let me know the possible way of doing this.


--
Thanks,
Regrads,

Amila Silva,
Associate Software Engineer

hSenid Mobile Solutions

Phone :
+94-77-9983894
Fax     :
+94-11-2673 845

Web:
http://www.hSenid.com

Make it Happen


http://www.hSenidMobile.com

Enabling the Mobile World


Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. The content and opinions contained in this email are not necessarily those of hSenid Software International. If you have received this email in error please contact the sender.


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users