[rules-users] Trying to get Eclipse Java code to call Guvnor
zelig_erika
zelig_erika at yahoo.it
Wed Jan 19 04:05:50 EST 2011
Hello Lucas,
sorry but I do not know how to change the file. My code is:
KnowledgeAgent ka =
KnowledgeAgentFactory.newKnowledgeAgent("/Guvnor.properties");
ka.applyChangeSet( ResourceFactory.newFileResource("bin/ChangeSet.xml") );
KnowledgeBase kb = ka.getKnowledgeBase();
StatelessKnowledgeSession ks = kb.newStatelessKnowledgeSession();
and my file "ChangeSet.xml" is:
<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/main/resources/change-set-1.0.0.xsd'
>
<add>
<resource
source='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/prova1/LATEST'
type='PKG' basicAuthentication="enabled" username="admin"
password="admin123" />
</add>
</change-set>
but I think it was wrong because it does not work.. How to tell the program
where the file resides?
Lukáš Petrovický wrote:
>
> zelig_erika píše v Út 18. 01. 2011 v 07:05 -0800:
>> I'm using Guvnor 5.1 and I read that I must modify the file ChangeSet.xml
>> but I don't understand how.
>> Can anyone help me?
>
> Hello Erika,
>
> take a look at the following mailing list posting, it has the proper XML
> format for Drools 5.1:
> http://drools-java-rules-engine.46999.n3.nabble.com/BRMS-5-1-change-set-xml-tp2109532p2109532.html
>
> (Note the 'basicAuthentication', 'username' and 'password' attributes
>
> Best regards!
>
> --
> Lukáš Petrovický
> QA Engineer, JBoss Enterprise BRMS
> Red Hat Czech
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Trying-to-get-Eclipse-Java-code-to-call-Guvnor-tp676808p2286140.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list