<!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">
    On 14/09/2010 21:17, Leonardo Gomes wrote:
    <blockquote
      cite="mid:AANLkTimBUxaip4=bPQ+coh4vCMtKr7TESQk6RFidfPGu@mail.gmail.com"
      type="cite">The thing is that, afaik, the DrlParser in itself
      doesn'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.&nbsp; <br>
      <br>
      BRL XML: hasn'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'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>
    </blockquote>
    Exactly, we don't want to mature and promote a proprietary XML and
    waste the time and create the confusion from not following a
    standard.<br>
    <br>
    I think people working on the guided editor are just doing hacks to
    limp the current xml along for the purposes of the guided editor
    until we can move to something more long term.<br>
    <br>
    Mark<br>
    <blockquote
      cite="mid:AANLkTimBUxaip4=bPQ+coh4vCMtKr7TESQk6RFidfPGu@mail.gmail.com"
      type="cite">
      <br>
      Having said that, I still thing that I might be wrong since I
      haven'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 moz-do-not-send="true"
            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.&nbsp; The BRL editor
          has its own XML format.<br>
          <br>
          I just wonder whether going through a DrlParser - DrlDumper
          cycle might produce a sufficiently "well-behaved" DRL text
          that could be easily enough transformed to the BRL XML. But
          nothing of this is in the "stable" 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 moz-do-not-send="true"
                href="mailto:leonardo.f.gomes@gmail.com" target="_blank">leonardo.f.gomes@gmail.com</a>&gt;</span>
            <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">
                    &nbsp;&nbsp;&nbsp; public RuleModel unmarshal(String str) {<br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new UnsupportedOperationException(<br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Still not possible to convert pure
                    DRL to RuleModel");<br>
                    &nbsp;&nbsp;&nbsp; }<br>
                  </blockquote>
                  <br>
                  Leo.<br>
                  <br>
                  <div class="gmail_quote">2010/9/14 Wolfgang Laun <span
                      dir="ltr">&lt;<a moz-do-not-send="true"
                        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 "native" Drools XML format.<br>
                      <font color="#888888">
                        <br>
                        -W</font>
                      <div>
                        <div><br>
                          <br>
                          <div class="gmail_quote">On 14 September 2010
                            01:17, Leonardo Gomes <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                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's list:<span> &lt;<a
                                  moz-do-not-send="true"
                                  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'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><br>
                                  <br>
                                  <div class="gmail_quote">On Mon, Sep
                                    13, 2010 at 10:42 PM, apatel <span
                                      dir="ltr">&lt;<a
                                        moz-do-not-send="true"
                                        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
                                          moz-do-not-send="true"
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 moz-do-not-send="true"
                                          href="mailto:rules-dev@lists.jboss.org"
                                          target="_blank">rules-dev@lists.jboss.org</a><br>
                                        <a moz-do-not-send="true"
                                          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 moz-do-not-send="true"
                                href="mailto:rules-dev@lists.jboss.org"
                                target="_blank">rules-dev@lists.jboss.org</a><br>
                              <a moz-do-not-send="true"
                                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 moz-do-not-send="true"
                        href="mailto:rules-users@lists.jboss.org"
                        target="_blank">rules-users@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        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 moz-do-not-send="true"
                    href="mailto:rules-users@lists.jboss.org"
                    target="_blank">rules-users@lists.jboss.org</a><br>
                  <a moz-do-not-send="true"
                    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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>