The thing is that, afaik, the DrlParser in itself doesn&#39;t give you something that you can use to generate the BRL XML, even for a well-behaved DRL. You would have to do some sort of model-to-model transformation that would have RuleModel as an outcome. With the RuleModel at hand you can easily marshal it to BRL XML.<br>
<br>There are visitors for the RuleModel that generate BRL XML (quite simple with XStream) and pure DRL, and when you want to compile a BRL rule package today, it uses the DRL visitor to generate the DRL that can be used to compile.  <br>
<br>BRL XML: hasn&#39;t evolved lately mainly because Mark and the others are waiting for RuleML to become the canonical XML representation. I think that the BRL Schema misses a lot of things that you have today in a DRL and that&#39;s why nobody wanted to make the effort to have a DRL -&gt; BRL parser. This part risk to be completely rewritten the day they decide to use RuleML.<br>
<br>Having said that, I still thing that I might be wrong since I haven&#39;t looked much at the 5.x code except for the parts that I already knew from 4.0.7 :)<br><br>Cheers,<br>Leo.<br><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 2:00 PM, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You are right, of course.  The BRL editor has its own XML format.<br><br>I just wonder whether going through a DrlParser - DrlDumper cycle might produce a sufficiently &quot;well-behaved&quot; DRL text that could be easily enough transformed to the BRL XML. But nothing of this is in the &quot;stable&quot; API, so it would be wobbly in more than one way.<br>

<br>-W<br><br><br><div class="gmail_quote">2010/9/14 Leonardo Gomes <span dir="ltr">&lt;<a href="mailto:leonardo.f.gomes@gmail.com" target="_blank">leonardo.f.gomes@gmail.com</a>&gt;</span><div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I might be wrong, but I think DRL -&gt; BRL is still not possible.<br><br><br>Just had a look at org.drools.ide.common.server.util.BRDRLPersistence, and we have the following:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">


    public RuleModel unmarshal(String str) {<br>        throw new UnsupportedOperationException(<br>                &quot;Still not possible to convert pure DRL to RuleModel&quot;);<br>    }<br></blockquote><br>Leo.<br><br>


<div class="gmail_quote">2010/9/14 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


There is a short hint in <span><span></span></span>the Expert Manual, subsection 4.11.3, where conversion between DRL and XML using classes such as DrlParser and XmlDumper is discussed. A .brk is just the &quot;native&quot; Drools XML format.<br>


<font color="#888888">
<br>-W</font><div><div></div><div><br><br><div class="gmail_quote">On 14 September 2010 01:17, Leonardo Gomes <span dir="ltr">&lt;<a href="mailto:leonardo.f.gomes@gmail.com" target="_blank">leonardo.f.gomes@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Amisha,<br><br>You should use the user&#39;s list:<span> &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;</span> for this sort of question.<br><br>AFAIK, no you can&#39;t convert technical rules (manually written drl) to business rules (.brl) generated with the graphical editor using Guvnor.<br>




<br>Cheers,<br>Leo.<div><div></div><div><br><br><div class="gmail_quote">On Mon, Sep 13, 2010 at 10:42 PM, apatel <span dir="ltr">&lt;<a href="mailto:apatel@ondeckcapital.com" target="_blank">apatel@ondeckcapital.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
Is it possible to port Technical Rules in Drools to Business Rules? Is the<br>
procedure posted somewhere?<br>
<br>
Also is it possible to apply Drools Categories to Technical Rules?<br>
<br>
Thanks for your help,<br>
Amisha<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Technical-Rules-tp1468563p1468563.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Technical-Rules-tp1468563p1468563.html</a><br>





Sent from the Drools - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br>
</blockquote></div><br>