Re: [rules-users] Marshalling Error : JBRULES-2453

2010-11-04 Thread Michael Anstis
If it's impossible to debug *with* a test case imagine how difficult it must be without one! ;-) On 4 November 2010 04:49, Mark Proctor mproc...@codehaus.org wrote: On 03/11/2010 15:01, drooRam wrote: bump you'll need to make a minimal self contained test that removes everything but

[rules-users] Temporal operator before[1ms, oo] exhibtis strange behaviour

2010-11-04 Thread Wolfgang Laun
The .drl: declare Leave @role( event ) @timestamp( timestamp ) end rule XXX Leave not != when $leave: Leave() not Leave( this != $leave ) then System.out.println( XXX only one Leave - not != ); end rule YYY Leave not after when $leave: Leave() not Leave( this before

Re: [rules-users] Temporal operator before[1ms, oo] exhibtis strange behaviour

2010-11-04 Thread Wolfgang Laun
In STREAM mode, the clock may have to have advanced beyond the latest fact so that certain conditions can be evaluated safely. For instance, another event could still be inserted at the same millisecond. If a condition such as not Event( this coincides $event ) were evaluated prematurely, it

Re: [rules-users] Temporal operator before[1ms, oo] exhibtis strange behaviour

2010-11-04 Thread Michael Anstis
Hi Wolfgang, I'd assume your assumption to be correct. Cloud Mode's definition in the Fusion manual includes:- When running in CLOUD mode, the engine sees all facts in the working memory, does not matter if they are regular facts or events, as a whole and There is no notion of timeThere is

[rules-users] Configure flow and rule persistence using Execution Server

2010-11-04 Thread raic
Hi, I'm new to Drools and i'm searching for some information related to flow and rules persistence. I'm using Guvnor and Execution Server (5.1). My application connects to the Execution Server via REST using JSON commands, and I have all rules and flows stored in Guvnor repository. I found

Re: [rules-users] Help needed in activationCreated and activationCanceled event

2010-11-04 Thread Michael Anstis
Please don't email me direct. I won't reply in the future. All questions and answers are of value to the community as a whole. To quote what I replied to an almost identical request a couple of days ago and posted to the drools-user mailing list. AFAIK, Activation Cancelled events would

Re: [rules-users] Starting resource change scanner and notifier in drools-server.

2010-11-04 Thread Jason Davidson
I've move both the changeset.xml and my PKG files to a file location (not on the class path). It still doesn't detect when the PKG files have been updated. changeset.xml: change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'

Re: [rules-users] Marshalling Error : JBRULES-2453

2010-11-04 Thread Mark Proctor
On 04/11/2010 08:36, Michael Anstis wrote: If it's impossible to debug *with* a test case imagine how difficult it must be without one! hehe, yes meant without :) Mark ;-) On 4 November 2010 04:49, Mark Proctor mproc...@codehaus.org mailto:mproc...@codehaus.org wrote: On 03/11/2010

Re: [rules-users] KnowledgeAgent ChangeSet failing to reload resources

2010-11-04 Thread Jason Davidson
Eric, I've been fighting something similar to your problem as posted herehttp://lists.jboss.org/pipermail/rules-users/2010-November/017124.html. I'm interested in what your KnowledgeAgent setup because I can't get the agent to detect changes to rule PKG files. Are you using Spring? Thanks!

Re: [rules-users] KnowledgeAgent ChangeSet failing to reload resources

2010-11-04 Thread etfink123
Jason, Your's sound slightly different in that you have not been able to successfully fire up your KnowledgeBase at all. Mine works, but fails once an invalid DRL file is read. In any case, I am not use PKG for my ChangeSet resources: change-set xmlns='http://drools.org/drools-5.0/change-set'

[rules-users] case in-sensitive string comparison?

2010-11-04 Thread H.C.
We have a requirement to display data as stored (with the right casing) but for evaluation purposes strings should be compared case in-sensitive. We have several hundred rules touching these particular strings and would really like to avoid doing eval( x != null x.equalsIngoreCase(y) )

Re: [rules-users] case in-sensitive string comparison?

2010-11-04 Thread Michael Anstis
You could look at using your own custom operator. Wolfgang Laun linked to an article of his recently explaining the approach. I'm not sure if custom operators however allow for indexing in the RETE network and therefore whether they're any faster than eval. Wolfgang, Edson, can you advise in

Re: [rules-users] case in-sensitive string comparison?

2010-11-04 Thread Wolfgang Laun
If (re)writing the rules to replace String == and != with a custom op for String eq and ne is an option, then it's simple to provide this operator. The link is http://members.inode.at/w.laun/drools/CustomOperatorHowTo.html -W 2010/11/4 Michael Anstis michael.ans...@gmail.com You could look at

Re: [rules-users] case in-sensitive string comparison?

2010-11-04 Thread H.C.
Thanks guys, this could be a workable option. Will do some experimentation. Thanks! -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/case-in-sensitive-string-comparison-tp1842677p1843097.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] accessing a drools variable

2010-11-04 Thread Bruno Freudensprung
Hi, I've never tried this but there is a getGlobals() method on the StatelessKnowledgeSession and on the StatefulKnowledgeSession (actually on KnowledgeRuntime). Maybe worth giving a try :-). Best regards, Bruno. rajivharris a écrit : Hi, I am setting a String variable as global. And

Re: [rules-users] accessing a drools variable

2010-11-04 Thread Wolfgang Laun
To set a global called prodName to the value returned by getName() within a rule's consequence you should use drools.getWorkingMemory().setGlobal( prodName, getName() ); -W On 4 November 2010 18:15, rajivharris rajivhar...@gmail.com wrote: Hi, I am setting a String variable as global. And

Re: [rules-users] accessing a drools variable

2010-11-04 Thread rajivharris
Hi , Thanks Bruno and Wolfgang for replying. The getname() is a drools function which i want to invoke at runtime and set the global variable. Code: global String prodCat; rule Your First Rule when #conditions nameList : ArrayList()

Re: [rules-users] accessing a drools variable

2010-11-04 Thread Wolfgang Laun
All accesses to a global must be done via setGlobal/getGlobal: drools.getWorkingMemory().setGlobal( prodCat, getName(nameList) ); It's not a Java variable. -W On 4 November 2010 20:59, rajivharris rajivhar...@gmail.com wrote: Hi , Thanks Bruno and Wolfgang for replying. The getname()