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
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
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
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
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
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
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'
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
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!
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'
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) )
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
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
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.
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
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
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()
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()
18 matches
Mail list logo