On 28 July 2011 23:36, menada euje...@gmail.com wrote:
Because the fact is not already in the kbase (so i can't modify it and then
insert it).
(1)
X x = new X(...);
x.setA(...);...x.setZ(...);
insert( x );
(2)
X x = new X(...);
insert( x );
modify( x ){ setA(...),..., setZ(...) }
These two
Which version of drools are you using? The document you pointed out seems a
little bit old.
Since Drools 5, you can use globals to use application's data in your DRLs.
If you are using Drools 5 or higher, I suggest you to read the documentation
about globals.
Best Regards,
Whoa! See below...
2011/7/28 Edson Tirelli ed.tire...@gmail.com
I think we need to differentiate paradigms here. When using rules,
contrary to imperative code, what we are doing is pattern matching.
X( a.b.c == value )
In the above case, we are looking for Xs that make that whole
The comparison might not be done with the required fairness. Consider that
the stateless session's execute method implies a dispose() call, which you
appear to be skipping in the stateful test code.
If your rules do not insert secondary facts and if you are able to clean up
properly after
Can someone point me in the direction of documentation or examples for using
Rule Templates together with data held in a database (or source other than
XLS / CSV which seems to be what all the examples show)?
Many thanks,
David
___
rules-users mailing
Lets forget that these are nested accessors and the problems they bring.
Lets look at what they would be if they were real relations:
On 29/07/2011 08:55, Wolfgang Laun wrote:
Whoa! See below...
2011/7/28 Edson Tirelli ed.tire...@gmail.com
mailto:ed.tire...@gmail.com
I think we
Yes, that is exactly what I think. Pattern matching constraints are like
query parameters. They need to exist and evaluate to true in order to match.
So, for this to match:
a.b.c == null
a needs to exist and be non-null, b needs to exist and be non-null, c
needs to exist and be null. So it
On 29/07/2011 14:28, Edson Tirelli wrote:
Yes, that is exactly what I think. Pattern matching constraints are
like query parameters. They need to exist and evaluate to true in
order to match. So, for this to match:
a.b.c == null
a needs to exist and be non-null, b needs to exist and
Are you aware of the Expert manual's Chapter Authoring, where Section
x.2, Templates discusses these and, in Subsection x.2.2, Expanding a
Template shows how to use Collections of Pojos and Maps as parameter
provides for template expansions?
-W
2011/7/29 David Godfrey davidg...@gmail.com
Can
I am getting an error when the knowledge agent loads a pkg. The rules source
file contains an import for a class:
com.abclegal.domain.task.FileDocumentsWithCourtTask
and the RHS of a rule makes a cast using the class name without fully
qualifying it:
I'm using Drool 5. I reviewed globals and it looks like it might be
appropriate for my situation. I find plenty of documentation on how to use a
global in a consequence, but none on how to use a global in a condition. Do
you know if it's possible to use a global in a condition? My situation
If the global is both modified by rules and investigated by rules: then
it's not a global but a singleton fact.
You can use a global in a condition, but only if the data obtained from the
global is constant over time.
I think that your container ought to be a fact.
-W
2011/7/29 Matthew Erler
Ah, other engines don't do nested accessors because they're wimps. WIMPS! :)
--- On Fri, 7/29/11, Mark Proctor mproc...@codehaus.org wrote:
From: Mark Proctor mproc...@codehaus.org
Subject: Re: [rules-users] Condition syntax to access Map
To: rules-users@lists.jboss.org
Date: Friday, July 29,
Thanks Wolfgang-
I did not realize the stateless session was just a wrapper around the
stateful session. I think the stateful with manual cleanup after each
fireAllRules invocation is the way to go here.
As a follow up question, do you think Drools and Rules Engines in general
are the way to go
Please ignore the previously posted benchmark data. The benchmark code had a
bug.
--
View this message in context:
http://drools.46999.n3.nabble.com/Stateful-vs-Stateless-Session-Performance-tp3208057p3211133.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hello,
I am new to Drools. On starting to execute a simple program, eclipse gives
the following stacktrace as error. I even included the org.eclipse.jdt that
comes with eclipse, but it is still giving me error. Anybody please suggest
the problem. I am using Drools 5.0 and its dependencies and
16 matches
Mail list logo