Hi Kicho,
I could not find addPackageFromBRL() in Package Builder.
Any other options???
Thanks
M
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of rules-users-request(a)lists.jboss.org
Sent: Monday, June 14, 2010 8:36 AM
To: rules-users(a)lists.jboss.org
Subject: rules-users Digest, Vol 43, Issue 68
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Re: running brl rules - error (kicho)
2. Error using change-set (Raf)
3. Re: Error using change-set (Esteban Aliverti)
4. Re: Error using change-set (Raf)
----------------------------------------------------------------------
Message: 1
Date: Mon, 14 Jun 2010 04:10:02 -0700 (PDT)
From: kicho <golijat(a)gmail.com
Subject: Re: [rules-users] running
brl rules - error
To: rules-users(a)lists.jboss.org
Message-ID: <1276513802820-894097.post(a)n3.nabble.com
Content-Type: text/plain; charset=us-ascii
Hi,
you should have a look at PackageBuilder javadoc. There is a method for
adding brl's:
public void addPackageFromBrl(Resource resource)
throws DroolsParserException,
IOException
Throws:
DroolsParserException
IOException
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/running-brl-rules-err...
Sent from the Drools - User mailing list archive at
Nabble.com.
------------------------------
Message: 2
Date: Mon, 14 Jun 2010 13:24:05 +0200
From: Raf <r.ventaglio(a)gmail.com
Subject:
[rules-users] Error using change-set
To: rules-users(a)lists.jboss.org
Message-ID:
<AANLkTik-vro4abvyCYyt2Wtjud7utoEOQentIfvCl5_u(a)mail.gmail.com
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I am trying to use a change-set file to load my DSL and DSLR resources, but
I am not able to get it working.
My first attempt was based on the snippet I found here:
http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/ht...
<?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.xsd'
<add
<resource source='file:classification.dsl' type='DSL' /
<resource source='file:classification.drl'
type='DSLR' /
</add
</change-set
but I received the following error:
(null: 4, 78): SchemaLocation: schemaLocation value = '
http://drools.org/drools-5.0/change-set.xsd' must have even number of URI's.
(null: 4, 78): cvc-elt.1: Cannot find the declaration of element
'change-set'.
Then, I found the following old post in the mailing list:
http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-wh...
where it was suggested to
"Just replace *xs:schemaLocation='**http://drools.org/drools-5.0/change-set.
xsd* <
http://drools.org/drools-5.0/change-set.xsd>*'* by *xs:schemaLocation
='http://drools.org/drools-5.0/change-set drools-change-set-5.0.xsd'*"
So I changed my file to:
<?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-setdrools-chan...
<add
<resource source='file:classification.dsl' type='DSL' /
<resource source='file:classification.dslr'
type='DSLR' /
</add
</change-set
but now I receive the following errors:
(null: 4, 100): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 4, 100): cvc-elt.1: Cannot find the declaration of element
'change-set'.
(null: 5, 9): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 6, 63): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 7, 65): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
What am I missing?
Thanks.
Raf