Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-18 Thread Richard Yium
Hmm, my eclipse, m2Eclipse didn't download the dependencies. From: Michael Anstis To: Rules Users List Sent: Tuesday, September 18, 2012 8:00 AM Subject: Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file? Th

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-18 Thread Michael Anstis
This is all you should need:- git clone https://github.com/droolsjbpm/guvnor Dependencies are not downloaded when cloning from github. This is normal behavior. Importing into Eclipse with M2Eclipse should download and import the dependencies. On 18 September 2012 13:14, richard wrote: > It d

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-18 Thread richard
It did not load/include the jars when I imported from the github. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019829.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-17 Thread Michael Anstis
If you've elected to move away from Maven's dependency management then, for now, add all JARs in drools-distribution-5.4.0.Final\binaries. On 17 September 2012 22:45, richard wrote: > Where do I get the correct jar for these? > import org.drools.KnowledgeBase; > import org.drools.agent.Knowledge

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-17 Thread richard
Where do I get the correct jar for these? import org.drools.KnowledgeBase; import org.drools.agent.KnowledgeAgent; import org.drools.agent.KnowledgeAgentFactory; import org.drools.definition.type.FactType; import org.drools.io.Resource; import org.drools.io.ResourceFactory; import org.drools.runtim

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-17 Thread richard
What do you suggest? Are you using Eclipse, if so which version? -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019817.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-17 Thread Michael Anstis
You really are having a tough time. It really is not this difficult. doxia-sink-api is not, AFAIK (and I've searched our dependencies), not required by Drools. On 17 September 2012 21:49, richard wrote: > I get could not get the value for parameter encoding for plugin execution > default-resour

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-17 Thread richard
I get could not get the value for parameter encoding for plugin execution default-resources when I am doing and import of existing maven project. Could not get the value for parameter encoding for plugin execution default-resources Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or on

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-17 Thread Michael Anstis
Sure, no problem. Git clone this : https://github.com/droolsjbpm/guvnor Then you can import https://github.com/droolsjbpm/guvnor/tree/master/guvnor-examples into Eclipse using M2Eclipse. With kind regards, Mike On 17 September 2012 19:54, richard wrote: > Could you post a link with the corre

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-17 Thread richard
Could you post a link with the correct download for the example where I can import a maven project? I have installed Maven and the eclipse plugin for it. Thanks, Richard -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sa

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread Michael Anstis
es Users List > *Sent:* Friday, September 14, 2012 4:05 PM > *Subject:* Re: [rules-users] Guvnor example how to access rules in > database instead sample.drl file? > > Did you File->Import...->Maven->Existing Maven Projects? I believe this is > offered with the M2Eclipse plug

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread Richard Yium
, September 14, 2012 4:05 PM Subject: Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file? Did you File->Import...->Maven->Existing Maven Projects? I believe this is offered with the M2Eclipse plugin. Or, did you perform mvn eclipse:eclipse to build

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread Michael Anstis
Did you File->Import...->Maven->Existing Maven Projects? I believe this is offered with the M2Eclipse plugin. Or, did you perform mvn eclipse:eclipse to build a Eclipse .project file? Either of these will ensure your classpath dependencies are correctly setup. On 14 September 2012 21:54, richard

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread richard
I fixed the above with including right jar. But now I get this. Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/drools/util/FastClassLoader at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread richard
I think I am running the correct example. I am using eclipse, so maybe i have it set up wrong? Any clues? Exception in thread "main" org.drools.ProviderInitializationException: Provider org.drools.impl.KnowledgeBaseProviderImpl could not be set. at org.drools.KnowledgeBaseFactory.loadP

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread richard
Michael, I had edited post, I get this error now Exception in thread "main" java.lang.NoSuchMethodError: org.drools.util.CompositeClassLoader.clone()Lorg/drools/util/CompositeClassLoader; at org.drools.RuleBaseConfiguration.getClassLoader(RuleBaseConfiguration.java:886) at org.droo

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread Richard Yium
le.java:49) From: Michael Anstis To: Rules Users List Sent: Friday, September 14, 2012 11:48 AM Subject: Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file? I assume:- 1) You changed the URL in the change-set to suit where y

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread Michael Anstis
I assume:- 1) You changed the URL in the change-set to suit where your Guvnor is running? The stack trace suggests http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/mortgages/LATESTcould not be found. 2) You built the mortgages package in Guvnor? I've been running this very same exa

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread richard
Guvnor - Version 5.4.0.Final \drools-examples\drools-examples-brms\mortgage-example I get this error. java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage at org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(Knowle

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread Michael Anstis
I mean guvnor/guvnor-examples/src/main/java/org/drools/guvnor/examples/mortgage/client/MortgageClientExample.java This does not use a properties file (that the below implies), just a Change-set. Furthermore "RuleAgent" sounds very old... what version of Drools Guvnor are you using? Normally, if r

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-14 Thread richard
I assume you mean the mortgageApplicationTest.java. I have looked at the models, so I see the fact types in the model. But when I try to run mortgageApplicationTest.java I am getting: Exception in thread "main" java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Prop

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-13 Thread Michael Anstis
Did you look at the model in Guvnor and the Guvnor example I referenced? If things still aren't clear pop by to #guvnor on IRC tomorrow (9:00 GMT onwards) and it will be easier to talk you through your problems. sent on the move On 13 Sep 2012 21:57, "richard" wrote: > I guess I don't understa

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-13 Thread richard
I guess I don't understand, I am able to pull the rules from the db. I can see how the helloworld example works because i see stuff being used in sample.drl. Dummy rule : mortgages : RULE Underage : mortgages : RULE Bankruptcy history : mortgages : RULE No bad credit checks : mortgages : RULE no

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-13 Thread Michael Anstis
The fact types/classes are declarative. Look in the model definition in Guvnor. When you come to use your own classes you will need to upload the JAR to Guvnor as a new JAR model and also include in your client classpath. Models uploaded to Guvnor only serve to drive the UI and are not included in

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-13 Thread richard
I am able to get a list of the rules from the mortgage in the database, but how do I set up the java when I fire the rules, to get them to execute the underage rule? Viewing source for: Underage 1. | rule "Underage" 2. | salience 10 3. | dialect "mv

Re: [rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-13 Thread Michael Anstis
Your best option would be to use a change-set. There is such an example, using the mortgages-sample repository in /guvnor/guvnor-examples. You could also use the REST API to retrieve rules, but for now the above should give you a starting point. With kind regards, Mike On 12 September 2012 20:

[rules-users] Guvnor example how to access rules in database instead sample.drl file?

2012-09-12 Thread richard
Newbie here, How do I access the rules in mortgage/test in sample versus having the rule included in a .drl file? Guvnor is up and running in tomcat. Thanks for your help. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-inste