<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
Sorry for the duplicate post, the previous one got inserted into
another thread (also sorry for that). So here it is... in its own
thread :-).<br>
<br>
I plan to use the Drools Eclipse plugin in order to create rules with
both the "Guided rule" editor and the "Rule resource" editor, and I
would like to write a rather "generic" piece of code (using a
KnowledgeBuilder) in order to setup a KnowledgeBase from the rule files
contained in a directory.<br>
<br>
Would you say that am I completly re-inventing something that already
exists? If not, is there is a convention related to building a rule
base from a directory containing a mix of Drools files
(drools.package, BRL, DRL...) created with the Drools Eclipse plugin?<br>
<br>
My first experiments showed that, in a directory containing only a BRL
file and its associated "drools.package" file:<br>
<ul>
  <li>If I add both the "drools.package" file (as a DRL resource), then
the BRL file (as a BRL resource) into the KnowledgeBuilder, I get a
compilation error telling "Unable to resolve ObjectType 'Document'"</li>
  <li>If I concatenate the content of the "drools.package" file and the
result of the "BRL 2 DRL" conversion into a single DRL file, then add
that unique DRL file (as a DRL resource) into the KnowledgeBuilder,
everything is fine.</li>
</ul>
Does any of you have an idea where I am mistaken?<br>
Many thanks in advance,<br>
<br>
Best regards,<br>
<br>
Bruno.<br>
</body>
</html>