Re: [rules-users] Query regarding Upgrade to drools API 6.1.0

2014-09-01 Thread djb
You just use the old classes when writing a 5.X application, and the new ones when writing a 6.X app. -- View this message in context: http://drools.46999.n3.nabble.com/Query-regarding-Upgrade-to-drools-API-6-1-0-tp4030736p4030738.html Sent from the Drools: User forum mailing list archive at

Re: [rules-users] Query on web services and database stuff

2013-02-14 Thread Michael Anstis
Firstly a correction. Drools rule engine otherwise known as Drools Expert does not use JCR by default. Guvnor (Drools rule authoring and management web applicafion) does use JCR as its persistent store. JCR is better thought of as a hierarchical data store than a (R)DBMS. That said Drools Expert

Re: [rules-users] Query on web services and database stuff

2013-02-14 Thread Jeremy Ary
If you consider Drools Expert (the core engine) as a component, then certainly, yes, it can be integrated into a system that both utilizes persistence and communicates via web services in various ways respectively. As for working examples, I'm of the opinion that would be stretching the point of

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Michael Anstis
Does each quote validation exercise enrich the StatefulKnowledgeSession with other facts that could influence validation of other quotes? If not probably using a StatefulKnowledgeSession per HTTP request might be more simple (with the KnowledgeBase as an application scoped variable). Regarding

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Stephen Lomax
Hi Mike, Each quote does not enrich the session, we were actively looking to remove the quote at the end of the session to prevent it growing as we were just comparing the quote to the core product attribute facts. What is the performance hit in launching a Stateful knowledge session with say

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Michael Anstis
That's a possibility, but it'd depend on your rules. As a thought, you could serialise the initialised StatelessKnowledgeSession into a byte[] (cached at application scope) and deserialise with each web-service call. I would wait to see if Mark Proctor, Edson Tirelli or community members have

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Stephen Lomax
Hi Mike, Many thanks for that..we had previously thought of serialising to file but thought the purpose of the StatefulKnowledgeSession was to keep it live in memory continuously, rather than instantiating a new session with each web service call. My concern is that if we instantiate a new

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread GPatel
...@mattelli.com To: Rules Users List rules-users@lists.jboss.org, Date: 05/02/2012 04:28 AM Subject:Re: [rules-users] Query for a fact, and concurrent rule execution Sent by:rules-users-boun...@lists.jboss.org Hi Mike, Many thanks for that..we had previously thought

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Wolfgang Laun
, Date: 05/02/2012 04:28 AM Subject:Re: [rules-users] Query for a fact, and concurrent rule execution Sent by:rules-users-boun...@lists.jboss.org Hi Mike, Many thanks for that..we had previously thought of serialising to file but thought the purpose

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Stephen Lomax
cramming everything into a StatefulKnowledgeSession and worry abt thead-safety. From: Stephen Lomax stephen.lo...@mattelli.com To: Rules Users List rules-users@lists.jboss.org, Date: 05/02/2012 04:28 AM Subject:Re: [rules-users] Query for a fact, and concurrent rule execution

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Greg Barton
and not changed by the rules you should share them between sessions in the same JVM, saving memory and DB load overhead.) --- On Wed, 5/2/12, Wolfgang Laun wolfgang.l...@gmail.com wrote: From: Wolfgang Laun wolfgang.l...@gmail.com Subject: Re: [rules-users] Query for a fact, and concurrent rule execution

Re: [rules-users] query created in guvnor 5.3.0.final does not return expected results

2012-01-27 Thread Wolfgang Laun
You'd get this result even when there's no query with the name string you use in the API call. (1) Make sure that the name is correct. (2) Make sure that there is a query with that name, e.g., by inspecting the session's knowledge base at runtime. -W On 28/01/2012, vadlam

Re: [rules-users] query in drools expert :: rule language

2011-12-26 Thread bobbi_80
Hi luane, thanks for that. Using the expression under eval() solves the problem. I don't develop the objects I am applying the rule against. So I have to make do with string datatype. cheers. -- View this message in context:

Re: [rules-users] query in drools expert :: rule language

2011-12-26 Thread Wolfgang Laun
The Drools version would be interesting, to raise a JIRA if it is 5.2.0. -W On 26 December 2011 09:05, bobbi_80 guruprasad_bo...@infosys.com wrote: Hi luane, thanks for that. Using the expression under eval() solves the problem. I don't develop the objects I am applying the rule against. So

Re: [rules-users] query in drools expert :: rule language

2011-12-26 Thread bobbi_80
sorry forgot to mention that part. I am using 5.3.0 final. -- View this message in context: http://drools.46999.n3.nabble.com/query-in-drools-expert-rule-language-tp3612345p3612453.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] query in drools expert :: rule language

2011-12-25 Thread Wolfgang Laun
Starting with Drools 5.2, general boolean expressions should work, but there were problems. Which version are you using? Why doesn't averageCPU have a numeric type? Then the comparison would be straightforward (and most efficient). To be on the safe side with String, use $cpuUsage :

Re: [rules-users] Query in stateless knowledge session - SOLVED

2011-08-01 Thread Heijink, Hank
Mark, Thanks for your help! I was finally able to test, and that totally worked. I was confused by example 3.37 (4.37 in the Drools 5.2.0 docs). The key point I missed must be that newStartProcess causes all the rules to fire. Well, at least I was right about it being something simple. :-)

Re: [rules-users] Query in stateless knowledge session returns no results

2011-07-31 Thread Heijink, Hank
Aha! I missed the line about the dispose. That makes a lot of sense. What I don't understand is why the example 3.37 in the docs would work. If I understand what you're saying, it shouldn't. Thanks! Hank Sent from my iPhone On Jul 30, 2011, at 8:27 AM, Wolfgang Laun

Re: [rules-users] Query in stateless knowledge session returns no results

2011-07-31 Thread Mark Proctor
On 31/07/2011 17:25, Heijink, Hank wrote: Aha! I missed the line about the dispose. That makes a lot of sense. What I don't understand is why the example 3.37 in the docs would work. If I understand what you're saying, it shouldn't. It should work, as long as the query is executed as part of

Re: [rules-users] Query in stateless knowledge session returns no results

2011-07-31 Thread Mark Proctor
On 31/07/2011 17:45, Mark Proctor wrote: On 31/07/2011 17:25, Heijink, Hank wrote: Aha! I missed the line about the dispose. That makes a lot of sense. What I don't understand is why the example 3.37 in the docs would work. If I understand what you're saying, it shouldn't. It should work, as

Re: [rules-users] Query in stateless knowledge session returns no results

2011-07-31 Thread Heijink, Hank
Thanks so much! I'll have a chance to test it tomorrow. Hank Sent from my iPhone On Jul 31, 2011, at 12:48 PM, Mark Proctor mproc...@codehaus.orgmailto:mproc...@codehaus.org wrote: On 31/07/2011 17:45, Mark Proctor wrote: On 31/07/2011 17:25, Heijink, Hank wrote: Aha! I missed the line about

Re: [rules-users] Query in stateless knowledge session returns no results

2011-07-30 Thread Wolfgang Laun
StatelessKnowledgeSession.execute(...) executes the command(s) and *finally calls dispose()* on the session. Use a stateful session or a global (filled with a low-salience rule) or - simply use the getObjects command. -W On 29 July 2011 22:47, Heijink, Hank heij...@audible.com wrote: Hi all,

Re: [rules-users] Query query...

2010-11-09 Thread Esteban Aliverti
Are you setting the status attribute in the RHS of a rule? Are you updating the facts after you modify them? Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/11/9 Dennis Duggan

Re: [rules-users] Query query...

2010-11-09 Thread Wolfgang Laun
How are classes MyObject1 and MyObject2 related? Is there a field status in each of them and/or in their common superclass? -W 2010/11/9 Dennis Duggan den...@esptechnologies.com I have 2 types of objects in my knowledge base that I am trying to equate. Equality is based on a number of

Re: [rules-users] Query query...

2010-11-09 Thread Dennis Duggan
I have a super interface, that both objects implement. The matching rule looks like: rule Match when $oRecord1 : MyObject1( ) $oRecord2 : MyObject2(RefID==$oRecord1. RefID ) then $oRecord1.setStatus( Matched ); $oRecord2.setStatus( Matched ); end I can

Re: [rules-users] Query query...

2010-11-09 Thread Wolfgang Laun
You don't call modify or update on $oRecord1/$oRecord2! -W 2010/11/9 Dennis Duggan den...@esptechnologies.com I have a super interface, that both objects implement. The matching rule looks like: *rule* Match *when* $oRecord1 : MyObject1( ) $oRecord2 :

Re: [rules-users] Query about Drools

2010-11-01 Thread Michael Anstis
Hi, 1) Outside of Guvnor rules are normally defined in DRL (text files) or spreadsheets (Decision Tables). There is an API to load these into KnowledgeBases at runtime. Behind the covers Guvnor does much the same - generating DRL from its internal structures that are compiled into KnowledgeBases

Re: [rules-users] Query about performance in using data as fact or using it as Global variable

2010-10-15 Thread Michael Anstis
I cannot tell from what you have posted; but without relating member to company you run the risk of producing a Cartesian product of results which would, no doubt, give you a performance problem. rule Cartesian product when $c : Company() $m : Member() then

Re: [rules-users] Query about performance in using data as fact or using it as Global variable

2010-10-15 Thread Wolfgang Laun
For this sort of analysis one has to know (1) whether one Member can be a member of a single company only, or whether (s)he can be a member of more than one, too; (2) (assuming it's N:1) whether is is possible to have a reference to the company as a field in each Member object (3) whether you can

Re: [rules-users] Query on Performance Improvement in Drools 5 while dealing with huge data

2010-07-29 Thread senthij
correcting the format. -- Hi There, We are using Drools 5 in our project, the requirement was to have huge database, the data is being fetched from DB and inserted into drools working memory. For eg: Cell - 50k ExternalCell - 50k CellRelation - 250

Re: [rules-users] Query on loading facts dynamically

2010-06-30 Thread Wolfgang Laun
If you want to reward all students you'll have to have all students in WM, at one time or other. Assuming that you aren't dealing with all the students in China, it doesn't matter much how you do this. Now as for a student's exams, there might be an advantage if you could restrict the set of

Re: [rules-users] Query on loading facts dynamically

2010-06-30 Thread jobin wilson
Thanks W for the quick responseyou are absolutely correct,to reward all the students based on some criteria,all of them should be in WM.But the average of last 3 out of all 75 should become a part of the reward criteria and the challenge as you mentioned would be how to restrict the exam

Re: [rules-users] Query on performance when adding/removing rules

2009-11-24 Thread DeepakA
any suggestions regarding the impact on performance??? DeepakA wrote: We have a set of rules (lets call them old rules) running in our strategy server. A new requirement is that - the client can make calls to the server, at that point new rules need to be loaded in the workin memory (at

Re: [rules-users] query or global

2008-07-28 Thread Ingomar Otter
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

Re: [rules-users] Query Problem

2007-11-18 Thread Ronald R. DiFrango
Mark, I am certain that this is a bug. In my rules, I was able to make it work where I leave the Open lines on he agenda and he query does in fact pick them up. I wil see if I can create a small test case that demonstrates the problem. What is the link to JIRA so I can log it. Ron On Nov 17,

Re: [rules-users] query

2007-09-24 Thread Edson Tirelli
As the error message states, you probably forgot to define a package name in your DRL files. []s Edson 2007/9/24, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi In one of my program i am getting the following erroe message Exception in thread main

Re: [rules-users] query regarding drl to xml conversion...

2007-04-11 Thread Mark Proctor
Niloy, I suggest you make a drl first and then look at the AST it creates in memory and then make sure that the programmatic descr tree you are making matches that. Mark Niloy Debnath wrote: hi, I'm going to convert a PackageDescr object which has the rules to XML file.I'm trying to

Re: [rules-users] query question

2007-02-20 Thread Mark Proctor
no Kevin J. Schmidt wrote: Can a query in a rules file be used in the LHS of another rule? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users