Re: [rules-users] kbase.getFactType returning null even though I see it in Guvnor

2012-09-27 Thread richard
Yes, I added in knowledge base. When I look at in Guvnor it shows up in the model. When I open up mortgagemodel, it is there. -- View this message in context: http://drools.46999.n3.nabble.com/kbase-getFactType-returning-null-even-though-I-see-it-in-Guvnor-tp4020018p4020020.html Sent from the D

[rules-users] kbase.getFactType returning null even though I see it in Guvnor

2012-09-27 Thread richard
I am using the mortgage example in Guvnor and I added a factType to the model called BillRate. I am getting a null back on this: FactType billrateType = kbase.getFactType("mortgages", "BillRate"); The original types in that are predefined work such as Bankruptcy, Applicant, etc. I rebuilt the

Re: [rules-users] Deserialzation Error running test example

2012-09-20 Thread richard
So, what versions do I use? I downloaded the guvnor from Jboss web site. 5.4.0 final and I got the example code from github repository. -- View this message in context: http://drools.46999.n3.nabble.com/Deserialzation-Error-running-test-example-tp4019874p4019882.html Sent from the Drools: User

Re: [rules-users] Deserialzation Error running test example

2012-09-20 Thread richard
Okay, i changed my mortgage-changeset.xml to: 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/chan

[rules-users] Deserialzation Error running test example

2012-09-20 Thread richard
I get this error running either with Netbeans or Eclispe. I downloaded source from github. Lastest Guvnor too. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinde

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

2012-09-18 Thread Richard Yium
is 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 di

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 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 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 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

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

2012-09-14 Thread Richard Yium
a Eclipse .project file? Either of these will ensure your classpath dependencies are correctly setup. On 14 September 2012 21:54, richard wrote: I fixed the above with including right jar. >But now I get this. >Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFou

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
d JBoss AS7.1.1 so am confident it works. On 14 September 2012 16:56, richard wrote: 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 >deseri

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 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 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 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

[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

Re: [rules-users] Problem with RuleFlow sample project

2012-05-01 Thread Richard Moore
ols Flow>> >> > You'll need to have jBPM on your classpath to execute ruleflows. > > Mark >> >> 2012/4/27 Richard Moore >> Hi, >> >> I am starting to learn Drools and have hit a problem when using the >> Ru

[rules-users] Problem with RuleFlow sample project

2012-04-27 Thread Richard Moore
Hi, I am starting to learn Drools and have hit a problem when using the RuleFlow. Whenever I try to run the sample project using Eclipse I get the following error: Caused by: java.lang.ClassNotFoundException: org.jbpm.bpmn2.BPMN2ProcessProviderImpl at java.net.URLClassLoader$1.run(Unknown S

Re: [rules-users] In drools what is the exact difference between Insert and Update ??

2012-03-30 Thread Richard Calmbach
Wolfgang: Are the slides for your presentation online? This would be very helpful. I have searched repeatedly for a rule design best practices document and have only found conference agenda items on the topic but no actual document. After more than a year of working with Drools, I have figured out

Re: [rules-users] Streaming mode

2012-03-05 Thread Richard Calmbach
le out thread-safety issues, but for them, it may be worth a shot. Thank you for your interest in resolving user issues. I'm sorry I can't be of more help this time, but as you can see from my JIRA history, I try to do my part. That's what an open source community is all about. Than

Re: [rules-users] Streaming mode

2012-03-03 Thread Richard Calmbach
session.fireAllRules(); } -Richard ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Multiple threading

2012-02-13 Thread Richard Calmbach
necessary (synchronizing on the session), then there is a thread-safety bug in Drools. -Richard 2012/2/10 Mark Proctor > On 10/02/2012 03:36, Apache wrote: > > Hey, > I am trying to get multiple threads to insert events and run rules against > the union of events inserted

Re: [rules-users] Drools-server KnowledgeSessions

2012-01-12 Thread Richard Calmbach
2004/08/06/method-injection/ -Richard On Wed, Jan 11, 2012 at 4:37 PM, Hrumph wrote: > Is it possible to dynamically create a KnowledgeSession using the > Drools-server API, or must the be statically declared in the Spring config? > > Thanks > > -- > View this message in co

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-22 Thread Richard Calmbach
ot), you want to insert and fire immediately upon event arrival (and, yes, events could come from an asynchronous messaging queue). At least this approach has worked well for me. Happy to hear feedback from others. -Richard On Thu, Dec 22, 2011 at 10:45 AM, Skiddlebop wrote: > Thanks for the l

Re: [rules-users] Bugs in Drools 5.3.0 break Fusion event processing

2011-11-09 Thread Richard Calmbach
t" > *Envoyé: *Mercredi 9 Novembre 2011 14:53:00 > *Objet: *Re: [rules-users] Bugs in Drools 5.3.0 break Fusion event > processing > > > >Richard, > >This is great info. Yes, please open JIRA's for all 3 issues and we > will make sure this is fixed for

[rules-users] Bugs in Drools 5.3.0 break Fusion event processing

2011-11-08 Thread Richard Calmbach
I am making extensive use of the event processing features of the Drools rule engine. Upgrading from Drools 5.2.0.Final to Drools 5.3.0.Final broke 47 of my unit tests and also broke my functional tests. There seem to be multiple changes in Drools 5.3.0 that cause incorrect behavior and/or break ba

Re: [rules-users] Help with troubleshooting rules/Drools

2011-10-31 Thread Richard Calmbach
Robert Crawford wrote: > > Any advice on how to troubleshoot problems? I have a fairly simple set of > rules (a couple dozen), but keep having problems with fatal exceptions. > The most recent was: > > org.drools.RuntimeDroolsException: Unexpected exception executing action > org.drools.reteoo.P

Re: [rules-users] Online 5.3.0 javadocs

2011-10-31 Thread Richard Calmbach
Martin A wrote: > > Hello, > I'm looking for the online 5.3.0 javadocs, but can't find it... Would you > point me to a reference? > I have not been able to find online (as opposed to download) javadoc for any version of Drools after 5.1.1 either. I created an issue about that here: https://issu

[rules-users] Using Drools for Batch Data Validation

2010-04-21 Thread Richard, Rene
Hello, I am new to Drools (1 day of reading and watching video podcasts etc...). We have a requirement for our project where we'll have an input table HSQLDB table and some validation rules we need to apply on the data in the table. Some tables will have > 45 000 records or more. Would this ki

Re: [rules-users] Seeing Working Memory View, Agenda View, etc in Eclipse editor

2009-11-12 Thread Richard Bourner
ing the problem is the same for the 4 views, even though I haven't tried). Richard Vijay Katam wrote: > > Richard, > I use "Drools Application" to launch my applications. In the refresh > problem that you encountered do you have any elements in those views and > th

[rules-users] Drools fusion and absence of events

2009-10-28 Thread Richard Ambridge
Hi, Trying to get to grips with Fusion and absence of events... If I have a Bean that has just a simple variable, e.g. class MyBean { private String name; getter+setter } I want to use events to determine when an object with name=="one" is available, and no object with name=="tw

Re: [rules-users] Comparing multiple accumulations

2009-07-15 Thread Richard Sherman
Thanks very much Wolfgang it was seeing the "2P" in your equation that made me realise that I had missed the "amountInPence < 0 &&" in the final accumulation. Its now working fine. Richard Wolfgang Laun-2 wrote: > > For simplicity's sake, I

RE: [rules-users] Comparing multiple accumulations

2009-07-14 Thread Richard Sherman
s@lists.jboss.org > > The second accumulate has "amountInPence < 0" but the values in your > data are all positive. Therefore,... > -W > > 2009/7/14 Richard Sherman : > > Thanks Wolfgang, > > > > Here's the extra information as requested. &

Re: [rules-users] Comparing multiple accumulations

2009-07-14 Thread Richard Sherman
nDate : 2009/07/12 amountInPence : 45000 transactionCode : Type 1 - transactionDate : 2009/07/13 amountInPence : 5000 transactionCode : Type 2 Thanks Richard >From: wolfgang.l...@gmail.com >To: rules-users@lists.jboss.org >Date: Tue, 14 Jul 2009 12:43:40 +0

[rules-users] Comparing multiple accumulations

2009-07-14 Thread Richard Sherman
$value : amountInPence) from $acc.transactions), sum($value) ) then $s.setMessage( "Account in arrears" ); update($s); // flag update end Thanks Richard ___

[rules-users] ClassCastException for Hibernate entity when rule is fired

2009-05-28 Thread Sobhana Richard
hi, we are using Drools 4.0.7 and have a rule which uses a Hibernate entity (SaleEventItem) and its related entity (Inventory). Some times, the SaleEventItem passed as the fact has the Inventory lazy loaded and hence its type is the Hibernate proxy - Inventory_$$_javassist_93. In this case, the

[rules-users] Web Decision Tables & functions

2009-02-13 Thread Richard Evans
Is it possible to define a column in a Web Decision Table with a function call template so that data values are passed to a function - say eval(Fact.check($1)) - as it is in spreadsheet tables? Thanks Richard Richard Evans 07985 437 517 www.thoughtbreak.com

[rules-users] Dynamically selecting ruleflow group

2009-02-13 Thread Richard Evans
I have a situation where I need to execute one group of rules in one circumstance and another in a different circumstance. So frar so good. I just have 2 rulesets in a flow -each pointing at a different ruleflow group - and select using a split. However I expect the number of rule-flow groups t

[rules-users] RE: Re-using rules in overlapping "groups"

2009-02-13 Thread Richard Evans
Hello folk. I am trying to work out the best way to use drools for an application where I have : - A domain of @30 fairly complex policy rules each of which has a Boolean outcome (Fired or Not) - A domain of @100 "audiences" who apply different subsets of the policy rules and

[rules-users] Removing history from JBRMS

2008-10-11 Thread Richard Ambridge
Hi, In drools-jbrms all history information is kept, which is great for when we are in production to track changes. However, during development we perform a lot of changes and tests with the repository. Is there anyway to remove the history information from the repository? Cheers Ric __

[rules-users] Deploying Guvnor M2 in Glassfish

2008-10-03 Thread Richard Ambridge
On wednesday I logged a bug GUVNOR-19 indicating that I am unable to deploy Guvnor M2 in Glassfish application server. Since then, and with little sleep, I have been able to workaround the problem. To deploy Guvnor M2 release in glassfish, do the following. Download jboss-seam from http://he

[rules-users] Changing DSL in BRMS

2008-06-17 Thread Richard Ambridge
Hi, I have a DSL defined in BRMS that says for example.. [when]The cat sat on the mat=Object(moose) and then loads of rules defined that are using that DSL.. Now the business wants to change the words so that the DSL reads [when]The dog sat on the mat=Object(moose) That is easy to do, as I

[rules-users] Timeline for JBRMS

2008-05-22 Thread Richard Ambridge
Are there any schedules for BRMS V2? Several items look like they will solve some of our requirements. Many thanks, Ric ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] newbie question on "when" condition syntax

2008-05-02 Thread Richard Bremner
ed using a DSL. Can the whole rule be defined in Groovy/Java - if so I might be easier doing that. I have so much work to do! many thanks Richard 2008/5/2 Anstis, Michael (M.) <[EMAIL PROTECTED]>: > Hi Richard, > > The "when" section matches fact (object) patterns, so

[rules-users] newbie question on "when" condition syntax

2008-05-02 Thread Richard Bremner
Hi, say I have a class with two fields, x and y: public class Test { int x = 1; int y = 2; getters/setters... } I would like a rule which fires when y = x + 1 my initial thought would be something like: rule "Rule 1" when test : Test (y == x + 1)

[rules-users] Question on setting globals

2008-04-10 Thread Seema Richard
Hi, I've been reading the Drools documentation where it is mentioned that "It is strongly discouraged to set (or change) a global value from inside your rules. We recommend to you always set the value from your application using the working memory interface." What is the reason for this? Also,

RE: [rules-users] Rule files missing in examples

2008-04-08 Thread Seema Richard
ECTED] On Behalf Of X10 Sent: Tuesday, April 08, 2008 6:15 PM To: Rules Users List Subject: Re: [rules-users] Rule files missing in examples On Tue, 2008-04-08 at 17:20 +0530, Seema Richard wrote: > I'm new to Drools, trying to learn from the examples. I downloaded the > drools-4.0.4-e

[rules-users] Rule files missing in examples

2008-04-08 Thread Seema Richard
Hi, I'm new to Drools, trying to learn from the examples. I downloaded the drools-4.0.4-examples.zip from http://www.jboss.org/drools/downloads.html. The rule files are missing in most of the examples. Even the simplest one, HelloWorld.drl is missing. Please let me know how I can get the correc

[rules-users] Drools Eclipse Plugin Problem

2008-04-02 Thread Seema Richard
Hi all, I have added the Drools 4.0.6 plugin in my Eclipse v 3.2.2. I have the plugin jar containing all the required classes in the org.drools.eclipse_4.0.6.jar which is added to the plugins folder of Eclipse. But I'm getting this error when I attempt to open a .drl file. java.lang.ClassNotFou

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Richard Hoberman
> You can also find a sample example ShoppingExample.java and Shopping.drl, > which is self-explanatory. > However, I was not able to test few MVEL features like projections, which i > think if added would make drools even more dynamic. > > Thanks, > manjax23 > > > Richard Hoberman

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Richard Hoberman
ions, which i >> think if added would make drools even more dynamic. >> >> Thanks, >> manjax23 >> >> >> Richard Hoberman wrote: >> >>> 1. I can't find any mention of dialects anywhere in the Drools 4 >>> manual. Am I missing

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Richard Hoberman
dClaimValidationTest.java:29) at com.sadalbari.mvanamibia.model.UnregisteredClaimValidationTest.testEmptyClaim(UnregisteredClaimValidationTest.java:42) ... Removed 22 stack frames Thanks Richard Mark Proctor wrote: > in theory for nested accessors it should switch to the MVEL dialect > automatically. You only need to specify the MVEL dialect explici

[rules-users] Please help - losing hair

2007-08-16 Thread Richard Hoberman
I'm using Drools 4 (M2), which is supposed to support nested accessors* This works: when Claim( submissionInfo == null), but not this: when Claim( submissionInfo.date == null) Rule file, SubmissionInfo.java and exception are below. What am I missing? Richard * See http://article.gman