<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Amila,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2>Conversion between DRL and XML can be done 
automatically&nbsp;using following helpers/utilities that come with Drools 
itself</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><PRE class=programlisting><A id=d0e5750>XmlDumper - for exporting XML
DrlDumper - for exporting DRL
DrlParser - reading DRL
XmlPackageReader - reading XML</A></PRE><PRE class=programlisting>&nbsp;</PRE><PRE class=programlisting>
</PRE></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=amilac@hsenidmobile.com href="mailto:amilac@hsenidmobile.com">Amila 
  Silva</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org 
  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, June 30, 2009 12:02 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [rules-users] How to retrieve 
  the Rule names in the drools rule file</DIV>
  <DIV><BR></DIV><BR>hi everyone,<BR>&nbsp;&nbsp; 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.<BR>&nbsp;&nbsp; i want to load the or 
  show the available rules and system user to select the required rule for his 
  program.<BR>&nbsp;&nbsp; let me know the possible way of doing this.<BR><BR 
  clear=all><BR>-- <BR>Thanks,<BR>Regrads,<BR><BR>Amila Silva,<BR>Associate 
  Software Engineer<BR><BR>hSenid Mobile Solutions<BR><BR>Phone : 
  <BR>+94-77-9983894<BR>Fax &nbsp; &nbsp; : <BR>+94-11-2673 845<BR><BR>Web: 
  <BR><A href="http://www.hSenid.com">http://www.hSenid.com</A><BR><BR>Make it 
  Happen<BR><BR><BR><A 
  href="http://www.hSenidMobile.com">http://www.hSenidMobile.com</A><BR><BR>Enabling 
  the Mobile World<BR><BR><BR>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.<BR><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>rules-users mailing 
  list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE></BODY></HTML>