Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-24 Thread Leonardo Gomes
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

Re: [rules-users] CPU Spike creating a StatefulKnowledgeSession using OSGi

2012-01-11 Thread Leonardo Gomes
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:

Re: [rules-users] Integration of drools with webapplication (Servlet)

2011-12-22 Thread Leonardo Gomes
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

[rules-users] Guvnor: Embed Asset’s Editor in your application

2011-08-02 Thread Leonardo Gomes
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

Re: [rules-users] drools-ant

2011-06-15 Thread Leonardo Gomes
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

Re: [rules-users] drools dynamic LHS

2011-05-24 Thread Leonardo Gomes
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

Re: [rules-users] drools dynamic LHS

2011-05-24 Thread Leonardo Gomes
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

Re: [rules-users] Expected relative performance of 5.2

2011-05-23 Thread Leonardo Gomes
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

Re: [rules-users] change of Rules Dyanmically

2011-05-23 Thread Leonardo Gomes
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

Re: [rules-users] viewing working memory

2011-05-23 Thread Leonardo Gomes
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

Re: [rules-users] Use of StatelessKnowledgeSession

2011-05-17 Thread Leonardo Gomes
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

Re: [rules-users] FW: typical rules application

2011-05-16 Thread Leonardo Gomes
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

Re: [rules-users] Fw: Regarding Drools - Expert and Fusion

2011-05-05 Thread Leonardo Gomes
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:

Re: [rules-users] Memory issue with drools (using 10000 rules)

2011-04-27 Thread Leonardo Gomes
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

Re: [rules-users] Memory issue with drools (using 10000 rules)

2011-04-27 Thread Leonardo Gomes
, 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

Re: [rules-users] Memory issue with drools (using 10000 rules)

2011-04-26 Thread Leonardo Gomes
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,

Re: [rules-users] Memory issue with drools (using 10000 rules)

2011-04-26 Thread Leonardo Gomes
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

[rules-users] Problem in DSL with Type constraints

2011-03-31 Thread Leonardo Gomes
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

Re: [rules-users] Problem in DSL with Type constraints

2011-03-31 Thread Leonardo Gomes
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

Re: [rules-users] execute Rules selectively

2011-03-25 Thread Leonardo Gomes
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

Re: [rules-users] Misunderstanding salience?

2011-03-11 Thread Leonardo Gomes
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

Re: [rules-users] Is Drools appropriate for this app scenario?

2011-01-26 Thread Leonardo Gomes
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

[rules-users] Drools and mobile

2010-11-29 Thread Leonardo Gomes
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

Re: [rules-users] drools with IKVM

2010-11-21 Thread Leonardo Gomes
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

Re: [rules-users] Get rid of redundant conditions in combined rules.

2010-10-12 Thread Leonardo Gomes
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

Re: [rules-users] Specifying time in date-effective

2010-09-29 Thread Leonardo Gomes
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

Re: [rules-users] [rules-dev] DroolsjBPM Boot Camps 2011 USA and EMEA (Rules, Workflow, Event Processing and Ontologies)

2010-09-27 Thread Leonardo Gomes
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

[rules-users] NPE in ClassFieldExtractor.getValue()

2010-09-24 Thread Leonardo Gomes
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

Re: [rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-24 Thread Leonardo Gomes
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

Re: [rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-24 Thread Leonardo Gomes
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

Re: [rules-users] rules priority

2010-09-22 Thread Leonardo Gomes
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.

Re: [rules-users] Perfromance issues and memory leaks in Drools (Edson Tirelli)

2010-09-18 Thread Leonardo Gomes
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

Re: [rules-users] [rules-dev] Technical Rules

2010-09-14 Thread Leonardo Gomes
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

Re: [rules-users] [rules-dev] Technical Rules

2010-09-14 Thread Leonardo Gomes
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

Re: [rules-users] Drools - business rules graphical editing at runtime

2010-09-13 Thread Leonardo Gomes
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

Re: [rules-users] Verify if an objects attribute exists

2010-09-13 Thread Leonardo Gomes
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.

[rules-users] Virtual box dev environment

2010-09-09 Thread Leonardo Gomes
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

Re: [rules-users] Avoiding loops

2010-07-15 Thread Leonardo Gomes
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

[rules-users] Avoiding loops

2010-07-13 Thread Leonardo Gomes
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

Re: [rules-users] drools expert: memory issues

2010-04-07 Thread Leonardo Gomes
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

Re: [rules-users] Eclipse plugin with latest Galileo

2009-12-03 Thread Leonardo Gomes
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

Re: [rules-users] Debug as within Eclipse

2009-12-02 Thread Leonardo Gomes
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

Re: [rules-users] Regarding Drools Rules Engine

2009-12-02 Thread Leonardo Gomes
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.

Re: [rules-users] Stateful session and non-existence of Facts

2009-11-30 Thread Leonardo Gomes
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

Re: [rules-users] Problems debugging on Eclipse 3.5

2009-11-26 Thread Leonardo Gomes
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

Re: [rules-users] Stateful session and non-existence of Facts

2009-11-26 Thread Leonardo Gomes
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

Re: [rules-users] Problems debugging on Eclipse 3.5

2009-11-26 Thread Leonardo Gomes
, 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

[rules-users] Problems debugging on Eclipse 3.5

2009-11-24 Thread Leonardo Gomes
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

Re: [rules-users] Stateful session and non-existence of Facts

2009-11-24 Thread Leonardo Gomes
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

[rules-users] Stateful session and non-existence of Facts

2009-11-17 Thread Leonardo Gomes
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

Re: [rules-users] What is inference and how does it facilitate good rule design and maintenance

2009-11-10 Thread Leonardo Gomes
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.

Re: [rules-users] Class loader problem

2009-11-09 Thread Leonardo Gomes
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

Re: [rules-users] MVEL and Maps

2009-11-08 Thread Leonardo Gomes
, 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

[rules-users] MVEL and Maps

2009-11-07 Thread Leonardo Gomes
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

Re: [rules-users] Drools engine not working

2009-10-22 Thread Leonardo Gomes
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

[rules-users] JDT, JCI and Janino

2009-10-21 Thread Leonardo Gomes
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: -

[rules-users] Creating rules from an UI

2009-10-19 Thread Leonardo Gomes
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

[rules-users] Guvnor and Drools 4.0.7

2009-08-20 Thread Leonardo Gomes
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