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

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

2013-02-13 Thread starfish15
Hello All, I am starting up on a project which requires Drools rules. I have been asked certain basic Q's. Am jotting them below 1. *Can the Drools Rule engine communicate to a DB * I know by default, drools does use the *Apache JackRabbit DB* to store respective assets and there are means to

[rules-users] Query regarding guvnor and drools remote execution using categories of guvnor

2012-10-10 Thread Krishnendra Nandi
Hi All I am a newbie I have a question In guvnor we have categories Using REST API we can access assets through categories like /rest/categories/{}/assets ...something like this I have a JSON object which gets populated which has references to binary for all the assets 1) How do we construct

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

2012-05-02 Thread stelomax
Hi, Please bear with me, I am relatively new to the world of Drools and have a question. I am hoping it will be a simple issue. First let me frame my planned implementation at a high level. I am hoping to use Drools as a real time service enabled quote validation tool. Facts representing

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

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

2012-01-27 Thread vadlam
I have created a query in guvnor 5.3 in a separate drl file as follows. query get total Documents created document : Document( ) end I have several rules that create Documents as part of the ruleflow. on the java side ksession.fireAllRules(new RuleFilter()); // the rulefilter does

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.

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

2011-12-25 Thread bobbi_80
Hi , I want to know if there is any way I can evaluate a string in rule language. Here is what I am doing DroolsTest.java has a class as follows. DroolsTest.java public static class cpuTracker{ private String machinename; private String

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,

[rules-users] Query Version from Java Client

2011-03-01 Thread Satyendra Sharma
Hi , Please share me sample java code to query version of all the activity done through BRMS. As I got some sample code to run over repository.xml using apache Jackrabbit but I did not not get how to invoke the WebDev URL provioded by BRMS using jackrabbit api. Please share some sample code

[rules-users] Query query...

2010-11-09 Thread Dennis Duggan
I have 2 types of objects in my knowledge base that I am trying to equate. Equality is based on a number of different variables contained in the objects. Once I find equal objects I set a status member in each to Matched, otherwise it will be OneKnows or TwoKnows. After I fire the rules I

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 :

[rules-users] Query about Drools

2010-11-01 Thread sameer.bogawat
I have a project where I am allowing users to create rules from the application UI. Currently all the rules related info is stored in a database and the rules matching code is in Java. However this slows down the application considerably and hence we are looking at using a third party rules

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

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

2010-10-15 Thread Nikhil S. Kulkarni
Hi , I am using drools 5.0 in application. I am facing performance issues. I am using drls, rule flows and rule templates. My scenario is as follows :- Consider there is list of 20 companies. There are about 2 members in each company. Now I have several rules in which

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

[rules-users] query regarding fault node

2010-10-01 Thread Keerti Sharma
hi, can we call a java service from a fault node like actions node.what can we write in editor of fault node and exception handler. thanx -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/query-regarding-fault-node-tp1613493p1613493.html Sent from the Drools

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

2010-07-29 Thread senthij
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 Topology hiearchy: -Subnetwork

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

[rules-users] Query on loading facts dynamically

2010-06-30 Thread jobin wilson
Hello List, I have a very basic question about inserting facts into the working memory dynamically.For firing the rules,we should be having all our facts in the working memory.In that case,How will we deal with the situation where the facts that we need for evaluation of a particular rule is

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

[rules-users] Query about the state of tuples in AgendaItem.

2010-03-29 Thread Rajnikant Gupta
Hi Group, I have a doubt regarding tuples. I created a rule using complex types objects. I am comparing two complex type objecs which have parent-child relationship eg. ParentType.equals(ChildType). I expect this to follow java rule which allows such comparision. Now when I run the rules with

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

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

2009-11-23 Thread DeepakA
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 run time), if the rules get executed then the rules need to be removed from the

[rules-users] query support in Drools 5

2009-03-02 Thread Michal Bali
Hi, Is there a way to get the QueryResults from a StatefulKnowledgeSession in Drools 5.0 ? The old API has a getQueryResults method but I can't find it in the new API. Thanks, Best Regards, Michal ___ rules-users mailing list

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

[rules-users] query on modify

2008-06-24 Thread Prem Kumar L
Hi, I tried creating/compiling/executing the following rule using the drools eclipse workbench: package com.sample import org.domain.CreditCard; rule Credit Eligibility no-loop true when cc : CreditCard( age 18, annualIncome 5, asset 50 ) then

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,

[rules-users] Query Problem

2007-11-16 Thread Ronald R. DiFrango
All, I have the following query: query Open RTV Lines line : DetailLine(status in (StatusConstants.OPEN, StatusConstants.PARTIALLY_MATCHED)) end And what appears to be happening is it is only picking up those lines that are marked with StatusConstants.PARTIALLY_MATCHED and not those marked

[rules-users] query

2007-09-26 Thread prateek.katiyar
Hi I am using Drools 4.0 version with .xml file. Here is my java program. package com.wipro.rfq.report.bean; import java.io.InputStreamReader; import java.io.Reader; import org.drools.RuleBase; import

[rules-users] query

2007-09-24 Thread prateek.katiyar
Hi In one of my program i am getting the following erroe message Exception in thread main org.drools.compiler.PackageBuilder$MissingPackageNameException: Missing package name for rule package. at org.drools.compiler.PackageBuilder.validatePackageName(PackageBuilder.java:294) at

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

[rules-users] query in function

2007-07-05 Thread hypnosat7
Can we call a query in a function in the drl file Thanks -- View this message in context: http://www.nabble.com/query-in-function-tf4030626.html#a11449368 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list

[rules-users] Query Regarding Facts Pattern

2007-05-22 Thread JAGARAN
Hi, Suppose I want to add a business rules in JBRMS. Now I need facts pattern to be chosen. The guide says You need to have a model of the facts(API) in a jar file and upload it. Please let me know the details of the concept of how to do that. Thanks in Advance. Regards JAGARAN -- View

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

2007-04-11 Thread Niloy Debnath
hi, I'm going to convert a PackageDescr object which has the rules to XML file.I'm trying to convert it into xml using dump method of XmlDumper class. The problem with that is while the rest of the code is fine i cannot get the lhs part. There is no method in fact as far as i know to

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

[rules-users] query question

2007-02-20 Thread Kevin J. Schmidt
Can a query in a rules file be used in the LHS of another rule? -- Kevin J. Schmidt [EMAIL PROTECTED] In all affairs it's a healthy thing now and then to hang a question mark on the things you have long taken for granted. -Bertrand Russell ___

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