which are private to the threads
* No data is shared between threads (with the exception of the
RuleBase, as outline above)
* I am on JDK 1.5
I would be grateful for any pointers for 'correct' use of Drools in an
MT environment.
Cheers,
Ingomar
--
Ingomar Otter
Chief Technology Officer
mailto
As 4.0.7 seems to be GA, will repository.jboss.com/maven2 also be
updated?
--I
--
Ingomar Otter
Chief Technology Officer
mailto:[EMAIL PROTECTED]
Mobile: +49 172 2367867
Valtech GmbH
Bahnstraße 16
40212 Düsseldorf
Germany
Phone: +49 (0)211 179237-0
Fax: +49 211 179237-19
http://www.valtech.de
groupIdorg.drools/groupId
artifactIddrools/artifactId
version4.0.7/version
/dependency
--I
--
Ingomar Otter
Chief Technology Officer
mailto:[EMAIL PROTECTED]
Mobile: +49 172 2367867
Valtech GmbH
Bahnstraße 16
40212
Kris,
that may be silly but have you tried to add the ; after
'addCharge($event, $amount)'?
If you use the Java dialect for the RHS this IS mostly Java (it's just
copied over into the generated code).
If in doubt, use -Ddrools.dump.dir=whatever to check out the
generated code.
--I
Am
1. Seems to me that the conditions in a rule are always connected
with AND relation:
True.
AND is the default.
Is or allowed? I mean , can I express: if (C1 or C2 or C3) and
C4, then D1 in 1 rule?
You can have an explicit OR, see section 6.5.2.3 of the 4.0.7
documentation.
Can I form a
Why don't you use facts for control?
when mylamp==on
then
assert/update sth?
That looks easier to me.
--I
Am 25.07.2008 um 13:04 schrieb Claudio Rainoldi:
Hi everyone,
i'm developing a java application using drools 4 for domotic control;
i ve implemented a listener on my working memory with
I don't understand the structure, could you post more source please?
--I
Am 28.07.2008 um 13:43 schrieb thomas kukofka:
=Field/method 'InputObject' not found for class
'com.rules.InputObject'Rule
___
rules-users mailing list
what are disadvantages and advantages of the following
possibillities to to
get access to working memory facts from outside:
Is there a reason why you want to use something other than queries?
I would suggest to use queries _unless_ you have a definitive
requirement that requires something
We used two approaches to double check results.
At first we used an approach similiar to what you haved described.
Please note that (depneding on platfom) freeMemory is not byte-
exact). Wo you won't see little changes.
Also, if you were using stateless sessions the result you have seen
may
Use logicals.
Am 29.07.2008 um 11:20 schrieb Claudio Rainoldi:
Hi everyone,
isn'it there a way to find when a rule isn't more active.
For example if i have this rule:
rule light 2 on
dialect java
when
Light (name==0/0/2, actualvalue==1);
then
System.out.println(luce 2 on);
end
when someone
sorry i'm a new drools user.. Can you try to be a little more
clear?
thanks..
2008/7/29, Ingomar Otter [EMAIL PROTECTED]:
Use logicals.
Am 29.07.2008 um 11:20 schrieb Claudio Rainoldi:
Hi everyone,
isn'it there a way to find when a rule isn't more active.
For example if i have this rule
Hans,
If you change not NegativeResult() to not (exits
NegativeResult()) this should result in the expected behaviour.
Cheers,
Ingomar
Am 31.07.2008 um 17:19 schrieb [EMAIL PROTECTED]:
How is not supposed to work with insertLogical? Assume I have two
different rules whose conditions
-- Original message --
From: Ingomar Otter [EMAIL PROTECTED]
Hans,
If you change not NegativeResult() to not (exits
NegativeResult()) this should result in the expected behaviour.
Cheers,
Ingomar
Am 31.07.2008 um 17:19 schrieb [EMAIL PROTECTED]:
How is not supposed
Typically, a rulebase would be generated and cached on first use;
to save
on the continually re-generation of the Rule Base; which is
expensive.
Read: Cache the rulebase (the rulebase object) with a Cache
mechanism of your choice.
AFAIK there is no dedicated caching mechanism in Drools
Hello Harsh,
The problem I am facing is that the salience specified in the drl is
not
being used.
Please elaborate, this is a too general question. So the salience is
present in the generated drl?
Salience (by default) defines the execution order of those rules
which are activated
Ehm, I would think that unless person implements a
PropertyChangeListener, you need to tell the engine about the change
of the slot.
Update would be the proper way AFAIK.
In this case, I don't see why one would want to insert an object into
WM - as it is already in WM.
I think the exact
You have to declare the global in the rule package.
global foo.bar.Logger logger;
--Ingomar
Am 11.09.2008 um 18:24 schrieb Earnest Dyke:
Greetings all,
I have the following Java code and rule. When executed I get an
Unexpected Global exception (see below). What am I doing wrong?
Folks,
we have a scenario where we are applying rules with complex in their
LHS at the end of our rule processing.
Today we just use a low salience to achieve this. Obviously, these
rules are included in the pattern matching and in the agenda updates
for all preceding changes to the
Sorry,
...with complex _joins__ in their LHS ...
Am 16.09.2008 um 14:17 schrieb Ingomar Otter:
Folks,
we have a scenario where we are applying rules with complex in
their LHS at the end of our rule processing.
Today we just use a low salience to achieve this. Obviously, these
rules
Given the information remote diagnosis is not feasible.
I would suggest to have a look at the heap ... to see where things are
going.
See
http://weblogs.java.net/blog/kellyohair/archive/2005/09/heap_dump_snaps.html
--Ingomar
Am 29.09.2008 um 17:30 schrieb Cheng, Ping:
All,
I wrote a
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ingomar
Otter
Sent: Monday, September 29, 2008 12:47 PM
To: Rules Users List
Subject: Re: [rules-users] memory issue when listening to market data
Given the information remote diagnosis is not feasible.
I would suggest to have a look
-histo and I added up all objects' memory and it
pretty much matched what I saw from jconsole.
Is there any chance that jmap -histo and -heap return different
result?
Thanks.
-Ping
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ingomar
Otter
Sent
Hi Andrew,
I've seen this in 4.0.7 as well.
There is a dependency from drools-compiler to either Eclipse JDT or
Janino for compilation, depending on what compiler you choose. JDT is
default by now.
Both compilers are supplied with 5M2 bin-dist, see lib/janino.jar and
yes
Am 04.11.2008 um 17:51 schrieb Pramod Koshy:
Can we use Drools for a CRM tool to implment the business rules for
lead
assignment. Say Lead 1 has to be distributed to User 1 if Lead is
from State
Florida.
thanks,
--
View this message in context:
Phil,
maybe you can tell us what you are trying to do? Are you talking about
the RHS?
--Ingomar
Am 16.02.2009 um 23:15 schrieb can_...@gmx.de:
Hello,
I would like to itterate over a list in a drl template file, I
looked at http://mvel.codehaus.org/MVEL+2.0+Orb+Tags
@foreach{item :
Phl,
I am still not quite there.
, I would like a foreach which itterates through a list in my java
class, e.g. Golfer, and addes the conditions in the collection to my
rule with ANDs
So the condition is where?
What I would be looking for is a plain text description of the rule, ie.
find
How about
when
Time(value==10) //it's 10 o'clock
$aFriend: Friend() //any friend in the working memory
then
//RHS will be fired for each friend if it's 10 o'clock
end
or:
when
Time(value==10) //is it 10?
$self:Self() //get a handle to yourself
Blair.
can you post the stack trace?
Also, does the probem go away IF you increase stack size?
--I
Am 20.02.2009 um 17:54 schrieb Christie, Blair:
We are having a problem reading in large serialized files. We get a
StackOverflow exception when the rules get to be 2m.
Is there a way to
If you are not the intended recipient, you have received this
transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this
transmission, or any of the information included therein,
is unauthorized and strictly prohibited.
Maybe
Our project is going into production after 1 year so please let me
know is it good idea to implement 4.0.7 or 5.0.X ?
I think it's safe to assume that 5.x will be rock solid a year from
now so I would suggest 5 as migration from 4.0.x to 5.x is not free.
--I
Am 12.03.2009 um 14:53 schrieb
Folks,
it seems that since 2.0 MVEL supports null-safe MVEL expressions, ie.
fact.?property.subproperty == foo will evaluate to false (instead of
failing) if property is null.
I tried this some time ago and it seems that the drools parser does
not like the ?.
Is anybody using this?
Cheers,
Folks,
I am currently tuning a Drools application.
We have made good progress with basic rule tuning (pattern
reordering), however I am under the impression that there is still
some inefficient matching going on. I am wondering whether there are
hooks in Drools (or an approach) to get a
Ashish,
My guess is that you are navigating properties and the something along
the way is null.
Eg object.prop1.prop2 where prop1 is null. If prop1 can be null you
have to check for nullness first, ie.
object.prop1!=null, object.prop1.prop2
--Ingomar
Am 01.04.2009 um 19:23 schrieb
Christian,
with our app, we see a compile performance which is at least an order
of magnitude higher.
I would assume that in your case the extreme fine granularity of your
DRLs may be slowing things down.
Have you tried to consolidate these in bigger but fewer DRls?
If you need that
Well maybe it is lost and I just re-create it.
However the archive button is only visible when I open the asset. :-(
Solution: Mount Guvnor via WebDav and fix it there. :-)
--I
Am 24.04.2009 um 11:17 schrieb Ingomar Otter:
When opening a web-based decision table my 5.0.0CR1 guvnor gets
stuck
Lindy,
by default Drools will re-evaluate the rules as needed once facts
are changed (and the engine is told about it), so when changed is
actually the default behavior.
The examples you give sound more like an event-processing scenario
(reasoning over time) so you might want to have a look
It seems that the rules-users list is experiencing either massive
delays or duplicate delivery.
See message below which reached me today.
Should you experience the same effect, I have indicated this to
rules-users-owner so it is known
Cheers,
Ingomar
Von: David Boaz
Hello @all.
We are generating quite some rules and we have handcrafted rules.
We'd like to combine both into RuleBases that we use for a limited time.
So far we have parsed the static packages and merged these into
RuleBases we create. We hang on to the static packages to avoid
unnnecessary
Shenika,
It's always here:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/tags/4.0.7.19894.GA/
Check it out and buikd it (it's trivial).
If you get's nervous because of this, you might want to consider to
move from the community to the RedHat supported version. ;-)
--I
Am
David,
- Does the order of the conditions in a rule affect performance, the
execution order, or the structure of the Rete network?
Yes, quite a lot has been written about this. The drools documentation
has a few paragraphs with good heuristics...
A popular read seems to be this paper, which
Alex,
sounds like a feasible use of Drools to me.
Do you have details on number of facts, rules and/or typical rules?
The time you give (5msec) is ambitious but I think is feasible if done
right. This means that I do not see a reason why this can not be
achieved with Drools - in principle.
During a few experiments I did with MVEL, I have found that 2.x
actually performs slower than 1.x in our case. Maybe that is a
starting point.
Scott, do you have the possibility to profile your application using
4.x and using 5.x? That should reveal the bottlenecks and I am sure
that
Rene,
mhhm, what are your trying to do (besides storing rules in a rdbms)?
What's the use-case?
Cheers,
--I
Am 03.06.2009 um 22:21 schrieb r.r.neum...@freenet.de:
Hi guys,
my question is listed in the topic. Is it possible? I read, that
Drools 4
provides such a feature but in this case,
To me it appears to be a very generic question that's hard to answer
without serious mind-reading skills.
Am 04.06.2009 um 09:31 schrieb r.r.neum...@freenet.de:
It's just a question still now :) ...
--
View this message in context:
How about if you create a rule with lowest salience, this will fire
_after_ all other rules have fired.
Would this help?
Am 04.06.2009 um 22:17 schrieb Malenfant, Andre:
Anyone knows if it is possible to have a `default` rule that would
fire only if others have not?
Also, is there a way,
- Since this is a web application, I cannot debug the rules
in Eclipse (unless I am missing something)
You are missing something. :-) That's possible.
However we have found regular debuggers not to helpful.
Have a look at the WorkingMemoryLoggers, they can give you a detailed
...@lists.jboss.org
] On Behalf Of Ingomar Otter
Sent: Monday, June 08, 2009 12:00 PM
To: Rules Users List
Subject: Re: [rules-users] Templates / Generated rules debugging
- Since this is a web application, I cannot debug the rules
in Eclipse (unless I am missing something)
You are missing
47 matches
Mail list logo