Monitoring sensor parameter change
by Bartek
Hello,
I am using Drools with Guvnor and Drools Fusion. I have application
that read data from sensors and after each read insert event to
StatefulKnowledgeSession. I have some basic rules that works.
Now I need to detect when one of sensor parameter change by some value
between reads from given sensor, e. g.
Lets say I want to detect when power rise by more then 2:
4 sensor reads (4 events inserted to session)
1. power=0.9
2. power=1
3. power =4 --> rule should detect that fact (4-1=3 ; 3>2)
4. power = 2
I do not now how to get access to previous reads in rule to do
subtraction (4-1=3). Any advice appreciated.
Thanks,
Bartek
11 years, 6 months
Memory Leak while working with Drools 5.5.1 Final
by ganapathya
Hi,
I'm using Drools 5.5.1 Final and am facing Memory Leak Issues with
org.drools.reteoo.ReteooRuleBase not getting released.
We maintain Rules Sheets as Excel Decision tables and these are maintained
as BLOBs in the DB. When the application is starting up, these BLOBs are
read from the DB and compiled into RuleBase and are maintained in memory. We
execute the rules by reading the compiled drools rule base from memory.
The memory does not seem to be getting released and we get an outofmemory
exception once every week and we're having to restart the app. When we took
a memory dump and analyzed the dump we see that most of the memory is
occupied by the org.drools.reteoo.ReteooRuleBase class.
Has anyone else experienced this before? Any insight as to how we can solve
this?
P.S: The component using Drools is a stand alone component and runs on OSGi.
Spring Injection is used but not for Drools. JDK used is JROCKIT 1.6. 0_31.
Thanks,
Ganapathy
--
View this message in context: http://drools.46999.n3.nabble.com/Memory-Leak-while-working-with-Drools-5...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 6 months
grammar of rules language
by Florian.Pirchner
hi,
i am looking for the grammar of rules to get some insights of all the semantic elements available. i found parts of it at github.
can anyone point me to a proper location?
is there a single antlr file for it?
Thanks a lot
Florian Pirchner
11 years, 6 months
Walkin Clinic for Drools & jBPM @ Red Hat Summit
by Mark Proctor
http://blog.athico.com/2013/06/walkin-clinic-for-drools-jbpm-red-hat.html
Red Hat Summit, Boston
June 11th to 14th
We have a dedicated room for community members to come and chat and hang out with core Drools & jBPM developers. The room should be open to all, not just those with summit passes, although you'll need to tell security where you are going.
Day: Thursday
Location: Hynes Convention Centre, Hynes Room 110
There will be chairs and tables, so you can spend as long as you like. Myself, Edson Tirelli, Kris Verlaenen and Pedro Zapata will be there. No question too small, no task too big :) We can help you getting installed and set, give some mentoring on your current projects, or help you dive deep into Drools or jBPM code.
You can drop in with quick questions on your projects or about Drools & jBPM itself, there will be chairs and tables, so you can stay longer and hang out and code :)
11 years, 6 months
Servor error whenever a rule doesn't work
by Jesse Tordoff
Hello,
I am using Drools with Guvnor, and I'm new to the system. Whenever there is
an error in a rule (eg the syntax is weird), I get a server error. Is this
normal? Is there any way around it? It's hard to find what is wrong when
that's all I get.
Thanks!
Jessica
11 years, 6 months
choose method from fact object in guided editor
by Hans Wirz
Hello
I'm new to Drools and Guvnor and I'm trying to find a way to enable the
selection of a method (other than getter and setter) by the guvnor guided
editor in a drop-down-list way like the fields.
Example (.drl-file edited by Drools-Plugin in Eclipse):
How to achieve this in Guvnor guided editor, because the method
getContentValue("reviewed") cannot be chosen - it must be KNOWN by the one
who creates the rule?
My approach (using a Formula):
Many thanks for your help
Hans
11 years, 6 months