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
13 years, 1 month
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.
13 years, 1 month
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
13 years, 1 month
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 :)
13 years, 1 month
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
13 years, 1 month
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
13 years, 1 month
Multi-dimentional planning in C#
by Wierdbeard65
Hi,
I came across the OptaPlanner site / product as part of researching
solutions to a project I am working on for my employer.
In essance, it's a timetabling system, however all of the solutions I have
found so far don't actually go far enough!
I am writing in C#, is there a port of Optaplanner? Or is it available as a
library I can call?
I need to schedule classes for a training organization. I have a number of
locations and in each location 1 or more classrooms. I have instructors
based in various locations, but they can travel.
Each class runs from between 1 and 5 days
Each instructor can teach 1 or more classes
Each room can host 1 or more classes
I need to run a certain number of each class at each location in a quarter.
But
Each room can only hold one class at a time
Each instructor can only teach one class at the same time
I don't want the same class running at multiple locations simultaneously
I want to minimise travel
I want instructors to be able to have preferred classes, rooms and
locations.
I want classes to have preferred rooms.
I'm thinking Genetic Algorithm, but the only one I have found online is
written in C++ and is more aimed at a university, where the class <->
instuctor link is fixed.
Am I in completely the wrong place? If so, days of Googling hasn't helped,
so can anyone offer some pointers?
Many thanks in advance!
--
View this message in context: http://drools.46999.n3.nabble.com/Multi-dimentional-planning-in-C-tp40241...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month