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't contain all the
information needed to be compiled. For example, it doesn't contain any
package nor import definition.
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?
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @
http://www.plugtree.com
- Blog @
http://ilesteban.wordpress.com
On Wed, Dec 29, 2010 at 8:23 AM, Bruno Freudensprung <
bruno.freudensprung(a)temis.com> wrote:
Hi,
I would like to build a KnowledgeBase using the "KnowledgeAgent +
change-set" method but I can't get it working when the change-set
references a BRL that needs an "drools.package" file (for imports): I
get errors like "[2010:12:363 12:12:31:debug] KnowledgeAgent has
KnowledgeBuilder errors object=Unable to resolve ObjectType...".
Here is my change-set.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<change-set
xmlns="http://drools.org/drools-5.0/change-set"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...
">
<add>
<resource source="classpath:misc/KBuilder_Test.brl"
type="BRL" />
</add>
</change-set>
Please note that it works when the change-set references a DRL resource
instead of a BRL. Adding the "drools.package" file as a DRL resource
does not work neither.
The only Jira that seems to be related is:
https://issues.jboss.org/browse/JBRULES-2103
Does any of you has an idea?
Many thanks in advance,
Best regards,
Bruno.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users