Hi Michael,
Do you have a link to the Fluent API documentation? I wanted to answer to
this question and couldn't find the link anywhere.
Thanks,
Leo.
2012/2/24 Michael Anstis michael.ans...@gmail.com
Yes.
If the data defines the rules then there are numerous options:-
- Construct a DRL
I'm not sure which version he's using, but there were already some fixes
around this on 5.2 and/or 5.3, done by Surdilovic, if I recall well..
I've applied the same sort of approach here, but haven't proposed a pull
request, because I didn't have time to check if it was already fixed on 5.4:
You can have a look here:
https://github.com/leogomes/raul-analyzer
and here:
https://github.com/leogomes/analyzer-web
It's nothing serious, but something I was playing with sometime ago to demo
some ideas. I can't provide any support, but it's very simple. A servlet
that calls drools to analyze
I was reading this nice article from the plugtree guys:
http://www.plugtree.com/guvnor-embed-asset%E2%80%99s-editor-in-your-application/
and was wondering if there's a light-weight version of Guvnor that I could
use if I'm only interested in the BRL edition mode, that is, if I don't want
to worry
Hi,
You can have a look at this thread for a maven alternative:
http://drools.46999.n3.nabble.com/maven-drools-plugin-to-compile-DRL-s-at-build-time-td725751.html
Cheers,
Leo.
2011/6/13 Abhay B. Chaware abhay.chaw...@kpitcummins.com
How do I compile only rule (.drl) files into packages ? I
You can have a fact that stores those values:
rule Check Age
when
Context($ageLimit : age)
Person(age $ageLimit)
then
do something...
end
On Tue, May 24, 2011 at 6:33 PM, marunam suta...@gmail.com wrote:
Hello,
I have a question about
The Context fact I mentioned would be populated with values coming from a DB
or properties file. At runtime you can read the right properties file,
create a Context object and feed the working memory with it plus all the
other regular facts you already have. With this you achieve the
Hi Nathan,
In you system, do all rules fire most of the time, or is it the type of
system where only some of the rules fire each time you create a session?
We've recently introduced a feature that should improve performance, if it's
the latter. You would need to get the latest snapshot for 5.2
It will help if you share some code with us (java + drls).
Cheers,
Leo
On Fri, May 20, 2011 at 6:36 AM, Saurabh maheshwari.saurab...@gmail.comwrote:
Hi mark ,
Currently i am doing like that
I am changing the drl file at runtime .
I get all the Objects from memory into one collection , and
The audit works fine for me with stateless sessions. Did you tried the
WorkingMemoryFileLogger
?
Leo.
2011/5/23 Hezi Stern he...@delegatecom.com
I am working with stateless session (Drools 5.1.1) and I wish to view the
objects in the working memory (debug purposes)
I understand that in
Inserting new facts in the THEN clause (RHS) is possible in a stateless
session (except if you set it to run in sequential mode). You can also
create rules' conditions that operate on those inferred facts.
To get them back as results, you can either bind a global variable and add
the results to
You might want to read this article:
http://herzberg.ca.sandia.gov/guidelines.shtml
2011/5/16 Abhay B. Chaware abhay.chaw...@kpitcummins.com
Anyone ?
--
*From:* Abhay B. Chaware
*Sent:* Friday, May 13, 2011 6:17 PM
*To:* 'Rules Users List'
*Subject:* typical
Old articles, but that should give you an idea regarding architecture:
http://www.infoq.com/articles/Rule-Engines
If you want to have a better and up-to-date view, you should probably have a
look at Bali's book:
http://drools.46999.n3.nabble.com/maven-drools-plugin-to-compile-DRL-s-at-build-time-td725751.html
2011/4/27 Geoffrey De Smet ge0ffrey.s...@gmail.com
there's a maven-drools-plugin out there in the wild to precompile your
rules.
Op 27-04-11 04:27, Edson Tirelli schreef:
Besides all
, reading all these clarifications, does 30kb per rule sound
reasonable? Do you think that we can improve this number somehow?
Thank you,
-- Liron
*From:* rules-users-boun...@lists.jboss.org [mailto:
rules-users-boun...@lists.jboss.org] *On Behalf Of *Leonardo Gomes
*Sent:* Wednesday, April
Your eval, you could probably replace by something like this:
rule status-Fixed-Open
when
event : FieldChangedEvent(fieldName ==
status, oldValue == Fixed);
entity : Entity(entityType == mock-entity,
field == status,
to help with some experimental features if you provide more
details.
On Tue, Apr 26, 2011 at 6:16 PM, Leonardo Gomes
leonardo.f.go...@gmail.comwrote:
Your eval, you could probably replace by something like this:
rule status-Fixed-Open
when
Hi,
Given the following DSL definition:
[condition][RestrictedLocation]Is restricted by = ArrayList(size = 1) from
collect(RestrictedLocation() from $restrictedLocationList)
[condition][RestrictedLocation]- test=$test : test
and the following rule:
rule Test
when
Is restricted by
Small correction.
This: [condition][RestrictedLocation]- test=$test : test
should actually be:
[condition][RestrictedLocation]- test=$test == test
but I still have the problem :)
On Thu, Mar 31, 2011 at 6:02 PM, Leonardo Gomes
leonardo.f.go...@gmail.comwrote:
Hi,
Given the following
Hi Benson,
What exactly do you want to achieve? You want to execute rules in parallel?
On Fri, Mar 25, 2011 at 2:08 AM, Benson Fung benson.red...@gmail.comwrote:
Hi,
I have setup about 10 rules in the rulebase. Can you tell me how I
can execute more than one specific rule at the same
I didn't actually read through all of the thread, but it sounds to me that
you're looking for drools.halt(), which is something that you can actually
call from the consequence part of your rules.
2011/3/9 Peter Ashford pet...@bestpractice.org.nz
Ok, thanks. I can see how asserting a control
It's pretty old, but you've got some architectural diagrams here:
http://www.infoq.com/articles/Rule-Engines
On Wed, Jan 26, 2011 at 12:27 PM, Sebastien Chevalier
sebastien.cheval...@web.de wrote:
@plugtreelabs: First of all, thank you very much for your response and
hints.
@all: As I'm
Since I'm really a noobie on mobile development, this may be a stupid
question, but it doesn't hurt to ask: Does anybody here ever used Drools on
a mobile application? Would its dependencies allow it to be run on an
Android or Blackberry?
Basically, my idea is that with the CEP stuff added on
Do you have a stack trace or something like that?
2010/11/21 Piyush Goel piyush.g...@dealhunt.in
We are using Drools engine on our client written in C#. We are using IKVM
to convert the drools jar and our java beans into dll's using IKVM. We have
a rule similar to this:-
rule aggregate rule
If your problem is performance, don't worry. Conditions evaluation is
shared, so in the second rule you won't re-evaluate the entire working
memory (to know more:http://www.drdobbs.com/184405218).
If you're worried about not having to repeat the conditions on the second
rule, I would create
Hi Devyani,
You might have problems with the date format due to your system's settings.
There's the following remark in Drools 4 documentation:
Date
The date format dd-mmm- is supported by default. You can customize
this by providing an alternative date format mask as a System property
Hi Mark,
I would like to get involved as well. However, until the end of this year I
don't think I will be much available. I should have more free time from
mid-January on.
Anyway, JudCon Berlin is happening on October 2010, so I think that in
Europe it should be happening more at the end of
Hello Guys,
I'm having a NPE in the ClassFieldExtractor.getValue(InternalWorkingMemory,
Object) line: 127
It happens while executing the RHS of a rule that modifies one fact and then
updates one and retract another.
rule foo
when
...
then
// apply changes
Have a look here: http://www.drdobbs.com/184405218
here: http://blog.athico.com/2007/07/sequential-rete.html
and here: http://herzberg.ca.sandia.gov/guidelines.shtml
The easy answer for your question is Yes ;-)
Cheers,
Leo.
2010/9/24 Harshit Bapna hrba...@gmail.com
Hi All,
In a scenario
about stateless. I
tried to say that, yes, it's also worth using Rete in stateless scenarios.
Cheers,
Leo.
2010/9/24 Mark Proctor mproc...@codehaus.org
On 24/09/2010 16:18, Leonardo Gomes wrote:
Have a look here: http://www.drdobbs.com/184405218
here: http://blog.athico.com/2007/07/sequential
I think that you can explore the options already suggested:
- guard condition
- agenda group
and also:
- no-loop, if you happen to have any rule looping around itself
- drools.halt( ) in the consequence, if you want to completely halt the
execution when a given rule matches.
Cheers,
Leo.
Hi Nikhil,
If it's taking 5-6 seconds as you said, it means that you are compiling your
rules at runtime. To improve that, you could find a way to cache your
KnowledgeBase*s* - that would make your rules be compiled only once and
subsequent creation of stateless or stateful sessions would be
format.
-W
On 14 September 2010 01:17, Leonardo Gomes leonardo.f.go...@gmail.comwrote:
Hi Amisha,
You should use the user's list: rules-users@lists.jboss.org for this
sort of question.
AFAIK, no you can't convert technical rules (manually written drl) to
business rules (.brl) generated
2010/9/14 Leonardo Gomes leonardo.f.go...@gmail.com
I might be wrong, but I think DRL - BRL is still not possible.
Just had a look at org.drools.ide.common.server.util.BRDRLPersistence, and
we have the following:
public RuleModel unmarshal(String str) {
throw new
Hi Chander,
Have you already checked this:
http://www.jboss.org/drools/drools-guvnor.html#Why ?
Leo.
On Mon, Sep 13, 2010 at 8:55 AM, chuckys1106 tchande...@yahoo.com wrote:
Hello,
I have a requirement/investigation to be done in my project.
It is about allowing the end user of our
You could try to explain a bit more how the User class and the
isUserMatching method look like.
Leo.
On Fri, Sep 10, 2010 at 11:30 PM, lnguyen mzspd...@gmail.com wrote:
I'm having difficulty writing this rule.
Background information:
A User can have a supervisor but it's not required.
Hi Guys,
I'm trying to setup a drools developer environment and currently facing some
issues with missing dependencies.
Is it still worth to install the virtual box described here: *
http://blog.athico.com/2009/06/pre-installed-drools-development.html*
and do a svn update, etc.
Or is it
a processed flag)
Greetings
2010/7/13 Leonardo Gomes leonardo.f.go...@gmail.com
Hi Droolers,
I'm trying to avoid loops and looking at different possibilities
(no-loop,
activation-group, lock-on-active, etc.).
Scenario I want to avoid:
For example, the initial facts trigger *rule 1
Hi Droolers,
I'm trying to avoid loops and looking at different possibilities (no-loop,
activation-group, lock-on-active, etc.).
Scenario I want to avoid:
For example, the initial facts trigger *rule 1*, which inserts new facts
that will trigger *rule 2*, which will then insert facts that would
I'm still using good old Drools 4 and there's an ant task and a maven plugin
out there to compile your rules at build time. I'm pretty sure there's
something like that you could use as well.
Cheers,
Leonardo.
2010/4/1 miguel machado mls.mach...@gmail.com
hi again,
2010/4/1 Edson Tirelli
I've seen about three posts about that lately (including mine) and no one
seemed to have solved it yet.
What's the URL for hudson?
Thanks,
Leo.
2009/12/3 Ross H ross...@gmail.com
I think there was a previous post on this. Try the latest from Hudson and
see if that works.
2009/12/3 chris
I've been experiencing the same problem, have already tried on both windows
and ubuntu and also experienced that. The problem seems to be related to
Galileo and I was thinking that maybe more specifically the JEE version, but
haven't had the time to test it, so far... Are you using the standard
Hi Ravi,
I'll quote Greg Barton on a recent post here:
*
*
*You can also implement various listeners, (WorkingMemoryListener,
AgendaEventListener, and other such goodies in package org.drools.event)
register them with your session, and make assertions over the execution data
they gather.
Hi Wolfgang,
Thanks for the reply.
Leo.
On Fri, Nov 27, 2009 at 7:38 AM, Wolfgang Laun wolfgang.l...@gmail.comwrote:
2009/11/26 Leonardo Gomes leonardo.f.go...@gmail.com
On Tue, Nov 24, 2009 at 10:42 PM, Leonardo Gomes
leonardo.f.go...@gmail.com wrote:
H
Now, let's say FactA(1
Leonardo Gomes leonardo.f.go...@gmail.com:
Hi Guys,
I'm having the following exception while trying to lauch Debug as
Drools
JUnit Test:
FATAL ERROR in native method: JDWP No transports initialized,
jvmtiError=JVMTI_ERROR_INTERNAL(113)
ERROR: transport error 202: connect failed
The email is big just because I tried to big as clear as possible, but it's
a quick reading, I promise!
No one?
Cheers,
Leo.
On Tue, Nov 24, 2009 at 10:42 PM, Leonardo Gomes leonardo.f.go...@gmail.com
wrote:
Hello,
Regarding the session recreation, you're absolutely right, thanks!
Anyway
, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
[../../../src/share/back/debugInit.c:690]
On Thu, Nov 26, 2009 at 8:48 PM, Leonardo Gomes
leonardo.f.go...@gmail.comwrote:
My answers below..
On Tue, Nov 24, 2009 at 3:18 PM, Kris Verlaenen
Hi Guys,
I'm having the following exception while trying to lauch Debug as Drools
JUnit Test:
FATAL ERROR in native method: JDWP No transports initialized,
jvmtiError=JVMTI_ERROR_INTERNAL(113)
ERROR: transport error 202: connect failed: Connection refused
[transport.c,L41]
ERROR: JDWP Transport
it is supposed to work.
Edson
2009/11/17 Leonardo Gomes leonardo.f.go...@gmail.com
Hi Guys,
I have the following situation while running a stateful session with
Drools 4.0.7:
- I want to test that a fact with a given state doesn't exist;
- It works fine
- At a certain point I have to retract all
Hi Guys,
I have the following situation while running a stateful session with Drools
4.0.7:
- I want to test that a fact with a given state doesn't exist;
- It works fine
- At a certain point I have to retract all facts and reinsert them at the
stateful session - some of them actually changed
I think I missed something on that post. Just posted a reply.
Cheers,
Leo.
On Tue, Nov 10, 2009 at 3:05 AM, Mark Proctor mproc...@codehaus.org wrote:
Just published this, where I'm trying to explain good rule design in
terms more familiar to software developers.
Hi Hemanth,
If you're looking for dynamic creation of Facts, you should have a look here:
http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e3350
HTH,
Leo.
On Mon, Nov 9, 2009 at 8:37 AM, Hemanth kumar hema...@saha.in wrote:
Hi swapnil thanx for
, Nov 7, 2009 at 6:00 PM, Leonardo Gomes leonardo.f.go...@gmail.com
wrote:
Hello,
I'm feeding my working memory with Maps (unfortunately, this is a
requirement and I can't use beans).
Before people start racking their brains to overcome all the resulting
difficulties: Could you please
Hello,
I'm feeding my working memory with Maps (unfortunately, this is a
requirement and I can't use beans).
To access the values in this maps I use the following MVEL expression :
Map ( this[airportCode] == GIG
, this[numberOfPassengers] 1
Hi Hemanth,
Assuming that you've already tried debugging it... could you share your Fact
definition and test rule with us?
The jars are correct.
Leo.
On Thu, Oct 22, 2009 at 7:06 AM, Hemanth kumar hema...@saha.in wrote:
hi,
Im working on Drools project.here is my project scenario.
front
Hi Guys,
I was wondering why am I limited to JDT and Janino compiler (using Drools
4.0.7)?
Using JCI I would theoretically be able to plug another compiler (javac?),
wouldn't I?
I had a look at the JavaDialectConfiguration and it doesn't allow anything
other than:
-
Hi Guys,
I have an UI that allows users to create rules in admin interface of my
application. I'm thinking about generating drl text out of the UI state (I'd
have an object model that would be populated by it), but was wondering if
there would be a way to programmatically create the rules instead
Hi All -
Is Guvnor meant to work only with Drools 5?
Thanks,
Leo.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
58 matches
Mail list logo