[rules-users] Backing up Guvnor repository

2010-01-13 Thread RichardA
Today we are using Drools 4 and the gui for the rules. The backend of the gui repository is in Oracle, and we backup the oracle db each day. But we also perform an export from the gui using the import/export function to gather a known good repository. In drools 4 we can use: wget -O repository_e

[rules-users] Inconsistent results in fusion

2009-12-17 Thread RichardA
Hi all again, I am having a problem where the results of the rules is not consistent. I am using rules flow and fireUntilHalt.. Here is most of my code: (expanding the default drools example) private static KnowledgeBase readKnowledgeBase() throws Exception { KnowledgeBuilder kbu

Re: [rules-users] not matches

2009-12-16 Thread RichardA
Ok, ignore this, found that previously the ^TEST never matched. Its just now with fusion my rules are looping more. Sorry to spam. RichardA wrote: > > In drools5 I have taken the standard Eclipse demo project, and changed the > Sample.drl to contain only the following: >

[rules-users] not matches

2009-12-16 Thread RichardA
In drools5 I have taken the standard Eclipse demo project, and changed the Sample.drl to contain only the following: package com.sample import com.sample.DroolsTest.Message; rule "Hello World" when m : Message( message not matches "^TEST" ) then

Re: [rules-users] unable to resolve Type Declaration class

2009-11-27 Thread richarda
age.Message so, its trying to load a class called "defaultPackage.Message" which obviously isn't found.. richarda wrote: > > Yeah, its in the classpath.. and to be doubly sure just before the code I > do a > Message s=new Message(); > and that works.. so jvm can find the Message

Re: [rules-users] unable to resolve Type Declaration class

2009-11-27 Thread richarda
the actual rules, etc... > >Edson > > 2009/11/25 richarda > >> >> Also tried under 5.1.0M1 release.. same issue :( >> Am i doing something wrong by declaring the @role in the Configuration >> section? >> >> >> richarda wrote: >> &

Re: [rules-users] unable to resolve Type Declaration class

2009-11-25 Thread richarda
Also tried under 5.1.0M1 release.. same issue :( Am i doing something wrong by declaring the @role in the Configuration section? richarda wrote: > > Still trying to get this to work. > I have managed to create from a default (new) guvnor setup. > > Steps I do.. > 1. Creat

Re: [rules-users] unable to resolve Type Declaration class

2009-11-25 Thread richarda
.java:25) at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:69) at com.sample.DroolsTest.main(DroolsTest.java:27) richarda wrote: > > So, my code is doing this: > > KnowledgeBaseConfiguration conf = > KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); > conf.

Re: [rules-users] unable to resolve Type Declaration class

2009-11-24 Thread richarda
Yes Edson Tirelli-4 wrote: > >Do you have the import for your signature class? > > import my.package.Signature > > Edson > > 2009/11/24 richarda > >> >> So, my code is doing this: >> >> KnowledgeBaseConfiguration conf = &g

[rules-users] unable to resolve Type Declaration class

2009-11-24 Thread richarda
So, my code is doing this: KnowledgeBaseConfiguration conf = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); conf.setOption(EventProcessingOption.STREAM); KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder(); try { Fi

[rules-users] Adding jars for Guvnor to work

2009-11-20 Thread richarda
Hi, I have some rules that include a class that I created.. part of that class requires the Apache common library. When I run Drools in my application it all works fine as the Apache jar files are in my classpath. However, when I try to setup in Guvnor I am getting errors that the classpath i

[rules-users] Null pointer when retracting Event which has an 'after'

2009-11-16 Thread richarda
I wish to have a rule that says, if I get one event, but not another one after a period, then do something. But I also want to only do this once.. So, I wrote the rules: (using the eclipse sample project) declare Message @role( event ) end rule "Hello World" when

Re: [rules-users] Help with StatefulSession and Stream Mode

2009-11-13 Thread richarda
to bring the engine to life again.. Is this correct? richarda wrote: > > Hi all, > > I am stuck trying to understand how to setup my drools system.. > > I am using Stream mode, with some negative rules, and a continuous stream > of facts. > Facts are evaluated and w

[rules-users] Help with StatefulSession and Stream Mode

2009-11-13 Thread richarda
Hi all, I am stuck trying to understand how to setup my drools system.. I am using Stream mode, with some negative rules, and a continuous stream of facts. Facts are evaluated and will in turn insert events into the memory if required. I thought it would be like this: First, setup, Knowledge

[rules-users] Events are not automatically expiring from working memory

2009-10-30 Thread richarda
I wanted to post something I found in case others are scratching their heads on this. Drools Fusion user guide indicates: 2.8.2. Inferred expiration offset Another way for the engine to calculate the expiration offset for a given event is implicitly, by analyzing the temporal constraints in the

Re: [rules-users] Collect and hibernate

2009-10-29 Thread richarda
Thanks for all help. To complete this thread, bug logged; https://jira.jboss.org/jira/browse/JBRULES-2319 Edson Tirelli-4 wrote: > >Ouch. Bug. Would you please add a JIRA for that and a test case? > >Thanks, >Edson > > 2009/10/29 richarda > >

Re: [rules-users] Collect and hibernate

2009-10-29 Thread richarda
Ok, I have found if I run in: conf.setOption( EventProcessingOption.CLOUD ); it works.. but in conf.setOption( EventProcessingOption.STREAM ); i get Null for the object any idea why? richarda wrote: > > Thanks for the continued help... but > > --- >

Re: [rules-users] Collect and hibernate

2009-10-29 Thread richarda
a > test, try replacing the query call with an arbitrary method call that > returns a couple objects. > >Edson > > > > 2009/10/29 richarda > >> >> Using Drools 5.0.1 >> >> I get the same results with the below rule. >> I leave the

Re: [rules-users] Collect and hibernate

2009-10-29 Thread richarda
m > hibernateSession.createQuery("from MessageAsEvent where > serial=?").setParameter(0,$m.serial).list() >then > insert($o) >end > > In any case, collect should work too. Which version of drools are you > using? > > []s >

[rules-users] Collect and hibernate

2009-10-29 Thread richarda
Hi again, I wish to have a rule that when an Event has a certain uuid then load into working memory all other events that have been received for this unit... So I write the rule: rule "Repeating" when $m : MessageAsEvent(uuid=="mesC:7") $others : Linke

Re: [rules-users] Drools fusion and absence of events

2009-10-28 Thread richarda
Thanks, it turns out my email post was correct and my code i was testing with with different.. If I do, $a : MyBean(name=="one"); not( MyBean(name=="two", this after [0s,10s] $a)) which means, item not received between 0 and 10 seconds then it works as expected.. If I do

[rules-users] Memory Leak in BRMS for ruleAgent?

2009-01-09 Thread richarda
We are seeing a memory leak when running Drools 4.0.7 JBRMS We have the JBRMS deployed and some package snapshots taken. Seperately a client is running rulesAgent ruleAgent= RuleAgent.newRuleAgent(agentProps); with properties looking like: url=http://... poll=60 localCacheDir=... It seems tha