<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Its not straight forward but you can use the DRLDumper, one a
PackageDescr, assuming it parses without errors:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DrlParser parser = new DrlParser();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PackageDescr pkg = parser.parse( source,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; dsl );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; final DrlDumper drlDumper = new DrlDumper();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; final String drlResult = drlDumper.dump( pkg );<br>
<br>
<br>
<br>
Michael Neale wrote:
<blockquote
 cite="mid:96ab3ced0703070346x79203d93sb9ba178e9ebdc369@mail.gmail.com"
 type="cite">no in 3.0 version unfortunately. You can tell the parser
to print out the DRL - but it will just write it out the System.out
(only for debuggin). Look in RuleParser for that option.<br>
  <br>
In trunk - which will be the new version - there is a seperate step
which outputs DRL - but I don't think that made it into the M1 release
- should be in M2 though.
  <br>
  <br>
  <div><span class="gmail_quote">On 3/7/07, <b class="gmail_sendername">kingston</b>
&lt;<a moz-do-not-send="true" href="mailto:raja_kingston@yahoo.co.in">raja_kingston@yahoo.co.in</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Is there anyway to get the DRL syntax out of the DSL format?<br>
    <br>
Is there any Convenient API method Which takes rule in DSL format and
the<br>
DSL File Name as arguments and returns the DRL Syntax ?<br>
    <br>
--<br>
View this message in context: <a moz-do-not-send="true"
 href="http://www.nabble.com/DSL-to-DRL-File-Conversion---Is-it-possible---tf3360408.html#a9347582">http://www.nabble.com/DSL-to-DRL-File-Conversion---Is-it-possible---tf3360408.html#a9347582</a><br>
Sent from the drools - user mailing list archive at <a
 moz-do-not-send="true" href="http://Nabble.com">Nabble.com</a>.<br>
    <br>
_______________________________________________<br>
rules-users mailing list<br>
    <a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>