Let me do some tests and I will come back to you.<div><br></div><div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">2010/12/29 Bruno Freudensprung <span dir="ltr">&lt;<a href="mailto:bruno.freudensprung@temis.com">bruno.freudensprung@temis.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




  

<div bgcolor="#ffffff" text="#000000">
<br>
Hi Esteban,<br>
<br>
Thank you for your fast answer!<br>
<br>
I am planning to integrate the Drools Eclipse plugin into an RCP
application (that will be used to create rules, but not only). Maybe I
am wrong but I would like to avoid using Guvnor that seems to be
complicated from a deployment point of view (an additional server into
our architecture). That&#39;s why I planned to build the KnowledgeBase
(based on the files generated by the Drools Eclipse plugin in my
application) and to fire the rules using the API.<br>
<br>
I have the impression (but maybe it is just a consequence of my
inexperience) that Drools&#39; API lacks some kind of &quot;put the pieces
together&quot; feature that would ease the KnowledgeBase building. Something
like a KnowledgeAgent that would take a directory as input, build DRLs
from BRLs + drools packages (expected next to BRLs), etc... I also have
the impression that the directory layout and file extensions could be
&quot;enforced&quot; (a bit like javac that expects .java files located in
directories corresponding to packages). There seems to be conventions
like that in Guvnor (&quot;sub-directories&quot; in packages containing technical
rules, business rules, dsls... rule &quot;inheritance&quot; from a parent package
to sub-package, and useful things like that) but they do not seem to
have any equivalent in the Drools&#39; Core API. And that&#39;s exactly where I
am :-).<br>
<br>
Anyway, I have tried adding the &quot;drools.package&quot; as a DRL into the
change-set... :<br>
<br>
<tt>    &lt;add&gt;<br>
        &lt;resource source=&quot;classpath:misc/drools.package&quot; type=&quot;DRL&quot;
/&gt;<div class="im"><br>
        &lt;resource source=&quot;classpath:misc/KBuilder_Test.brl&quot;
type=&quot;BRL&quot; /&gt;<br>
    &lt;/add&gt;</div></tt><br>
<br>
...but it does not work (I still get the &quot;KnowledgeAgent has
KnowledgeBuilder errors  object=Unable to resolve ObjectType...&quot; error).<br>
<br>
Best regards,<br>
<br>
Bruno.<br>
<br>
Esteban Aliverti a écrit :
<div class="im"><blockquote type="cite">Why are you trying to work with BRL format? This format is
only used to store rules in guvnor/eclipse and it is not prepared to be
used in any environment. The main problem is that BRL doesn&#39;t contain
all the information needed to be compiled. For example, it doesn&#39;t
contain any package nor import definition.
  <div>What you could try is to add a DRL in your change-set (before
the BRL)  containing only the import statements. Could you please try
it and tell me the results?</div>
  <div><br>
  </div>
  <div>Best Regards, <br>
  <div><br clear="all">
  <br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
  <br>
Esteban Aliverti<br>
- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
  <br>
  </div>
  </div>
</blockquote>
<br>
</div></div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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></div>