Re: [rules-users] Salience problems

2011-04-27 Thread Wolfgang Laun
This has indeed been discovered recently, for certain scenarios where activations were queued in the wrong order after fact modification. The fix is in ./drools-core/src/main/java/org/drools/core/util/BinaryHeapQueue.java: --- a/drools-core/src/main/java/org/drools/core/util/BinaryHeapQueue.java

Re: [rules-users] How to use parameter inside changeset.xml?

2011-04-27 Thread boy18nj
Anybody had the same issue? -- View this message in context: http://drools.46999.n3.nabble.com/How-to-use-parameter-inside-changeset-xml-tp2864504p2872855.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing

Re: [rules-users] How to declare an array attribute within an object in a DRL file?

2011-04-27 Thread fulton
Wolfgang, Thanks again for the reply! However, after much testing, I'm still having problems with Drools Server parsing the JSON array. My current test DRL is: == package com.foobar declare Person name: String hobbies: java.util.ArrayList end rule

Re: [rules-users] Import Functions in Guvnor

2011-04-27 Thread boy18nj
Thanks for reply. If we use free from DSL, the problem I encountered we cannot make Test Scenario's in Guvnor for free form DSL. Is there workaround to make test scenarios for free from DSL(Technical Assets) in Drools. -- View this message in context: http://drools.46999.n3.nabble.com/Import-Fu

Re: [rules-users] Salience problems

2011-04-27 Thread Tihomir Surdilovic
Hi Chris, since you mention to already have a support license for JBoss Enterprise BRMS, the best place to ask these types of questions is at the excellent JBoss Customer Support Portal (https://access.redhat.com/home) where your question will be handled under SLAs ensuring timely response and

[rules-users] Salience problems

2011-04-27 Thread Chris Selwyn
I am finding that the "salience" feature is acting very erratically. Some of my rules modify the working memory. So I would like them to execute before the others that simply read the memory after modification and report on certain data conditions that are left after all modifications have hap

Re: [rules-users] Rules Validation

2011-04-27 Thread Michael Anstis
Drools has drools-verifier that performs certain (expandable) validation and verification checks. http://community.jboss.org/wiki/DroolsVerifier 2011/4/27 Guy Moas > Hi, > > > > Could you please let me know whether Drools has no rule > validation/completeness capabilities. > > > > Regards,** >

Re: [rules-users] NullPointer after inserting fact in RHS

2011-04-27 Thread nch
While having a closer look at your stack trace I realise I should modify the pointcut to include the execution of the "matches" methods. So it'd end up looking something like this: pointcut isAllowed(Object o) : (execution(boolean *.isAllowed*(..)) || execution(boolean *.matches(..))) && targ

[rules-users] Rules Validation

2011-04-27 Thread Guy Moas
Hi, Could you please let me know whether Drools has no rule validation/completeness capabilities. Regards, Guy Moas - Technical Project Manager tel: +972 (73) 2608276 | mobile: +972 (52) 3624583 | X-Lite: 8276 | fax: +972 (73) 2608205 gm...@fis-software.com

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

2011-04-27 Thread Leonardo Gomes
Hi Liron, Are you planning on using a stateful or a stateless session afterwards? Do you have the memory numbers for rules execution? How many facts? -Leonardo. 2011/4/27 Shebs, Liron > Hi All, > > > > Thank you all for your responses and ideas. > > > > Here are some answers to questions raise

Re: [rules-users] NullPointer after inserting fact in RHS

2011-04-27 Thread dabar
I've added null checks everywhere mmlCommandUid is used and this seems to allowed the rules to progress slightly further, but a similar error then occurs, again when facts are being inserted Caused by: org.drools.RuntimeDroolsException: Unexpected exception executing action org.drools.process.inst

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

2011-04-27 Thread Shebs, Liron
Hi All, Thank you all for your responses and ideas. Here are some answers to questions raised by you * 10,000 rules is what we estimate a real system will contain. * The rules are similar to each other on the testing environment, but in the real system we expect more variance,

Re: [rules-users] Drools Performance

2011-04-27 Thread Nicolas Héron
Hi, I have done a loyalty system with drools 4 (now they are in version 5) for a retail company in France 3 years that calculates your discount given your points, history, etc.. You have to put a lot of data in memory cache (ehcache for example) as the database is the the weak point in concurrent m

Re: [rules-users] Is package snapshot really a tagged version?

2011-04-27 Thread Jervis Liu
On 2011/4/27 9:03, boy18nj wrote: > Initially I thought once we create a snapshot version. It's content are > sticky and tagged. And we cannot edit it. But I was wrong. It seems we can > even override the contents of package snapshots. > Package snapshot is a tagged version, at least this is in the

Re: [rules-users] Drools Performance

2011-04-27 Thread Sumeet Karawal
Thanks Mark for the reply. Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com From: Mark Proctor

Re: [rules-users] Drools Performance

2011-04-27 Thread Mark Proctor
On 27/04/2011 11:52, Sumeet Karawal wrote: > > Thanks Michael for the help. But, is there any benchmark or a rough figure > like number of hits or number of rule fired per minute, for normal > performance. I can write one rule that runs much slower than something with 1000 rules. So we suggest peo

Re: [rules-users] Hot deployment in Drools

2011-04-27 Thread Michael Anstis
If you use KnowledgeAgent and poll the location of your rule assets (DRL, DSLR, decision tables etc) then yes, I believe so. On 27 April 2011 11:58, Sumeet Karawal wrote: > > > Thanks Michael. Also for other rule resources like .drl or .dsl and using > Drools - Expert, can we change the rules on

Re: [rules-users] Drools Performance

2011-04-27 Thread Michael Anstis
Not that I'm aware of (although the general "performance" topic comes up on this forum from time-to-time, so other users may report back). Obviously performance of rules depends on how complex they are; and whether you then optimise them - much like "how many SQL queries can RDBMS xyz execute per

Re: [rules-users] Hot deployment in Drools

2011-04-27 Thread Sumeet Karawal
Thanks Michael. Also for other rule resources like .drl or .dsl and using Drools - Expert, can we change the rules on the fly. Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com

Re: [rules-users] Drools Performance

2011-04-27 Thread Sumeet Karawal
Thanks Michael for the help. But, is there any benchmark or a rough figure like number of hits or number of rule fired per minute, for normal performance. Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com

Re: [rules-users] Drools Performance

2011-04-27 Thread Michael Anstis
If you use a stateless session per transaction you should generally be OK. How much lag you're likely to encounter is a much harder question to answer: how well does your database retrieval scale, would this present an issue before the rules engine? The rules engine is "just a POJO library" the o

Re: [rules-users] Hot deployment in Drools

2011-04-27 Thread Michael Anstis
1) Please read about KnowledgeAgent, but you'd still need to upload the revised worksheet to Guvnor. 2) Please read about AgendaEventListener's re: which rules fired. Guvnor maintains audit history for "who" changed rules, but I'm not sure whether there's a (public) API to retrieve this other than

[rules-users] Drools Performance

2011-04-27 Thread Sumeet Karawal
Hi, I have an Application where I have to give the discount to user according to their profile points. i.e. when the user logs in, his profile points are fetched from the database, and respectively he is given the required discount. My concern is how many concurrent users will be supported by t

[rules-users] Hot deployment in Drools

2011-04-27 Thread Sumeet Karawal
Hi, I have some queries about Drools - Guvnor : 1) Is hot deployment possible in Guvnor, how can we do that? How can we change rules on fly? eg we are using Decision Table for rules and if we change some data in that sheet, how will the changes get reflected in the rule engine? 2) Does the rule

Re: [rules-users] NullPointer after inserting fact in RHS

2011-04-27 Thread Wolfgang Laun
We ought to see the Java code for this class reduced to the field and its getters: org.drools.base.com.somecompany.prov.rulesbased.facts.ProvResponse1649170666$getMmlCommandUid Also, we ought to see the uses of this field mmlCommandUid in your rules - which kinds of constraints you are using where

Re: [rules-users] NullPointer after inserting fact in RHS

2011-04-27 Thread dabar
Thanks for the replies. MmlCommandUid is an int so I have assumed I did not need to do a null check as an int can never be null in java. Is drools autoboxing this to Integer? -- View this message in context: http://drools.46999.n3.nabble.com/NullPointer-after-inserting-fact-in-RHS-tp2866772p286

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 > 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 suggestions already

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

2011-04-27 Thread Geoffrey De Smet
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 suggestions already made in other e-mails, it is also worth considering if you can pre-compile rules and just load them at runtime instead of compiling them

Re: [rules-users] NullPointer after inserting fact in RHS

2011-04-27 Thread nch
I think I have an AspectJ based solution for this which consists on making every isAllowed* method return "false" instead of letting exceptions thrown inside them propagate: pointcut isAllowed(Object o) : execution(boolean *.isAllowed*(..)) && target(o); boolean around(Objec

Re: [rules-users] Import Functions in Guvnor

2011-04-27 Thread Toni Rikkola
You need to use free form text or make a DSL for the function if you want to use it in the RHS. Toni On Dec 1, 2010, at 7:24 AM, Pankaj Khattar wrote: > > Can anybody share that how to import java function in the guvnor & use them > in writing rules in guvnor. > > For example i have a drl fil

Re: [rules-users] NullPointer after inserting fact in RHS

2011-04-27 Thread Wolfgang Laun
The location of the NPE suggests that some field (mmlCommandUid) is null when you insert the object, but some rule wants to access its intValue. All fields accessed in all rules must be initialized properly; Drools does not guard field accesses with "!= null" for you. -W On 26 April 2011 20:27,

Re: [rules-users] detailed execution trace

2011-04-27 Thread nch
This solution is valid only for LHS, right? What about the RHS? Seems more difficult to me, as the terminal node holds a compiled rule. Cheers De: Mark Proctor Para: rules-users@lists.jboss.org Enviado: mar,26 abril, 2011 21:53 Asunto: Re: [rules-users] detail

Re: [rules-users] How to declare an array attribute within an object in a DRL file?

2011-04-27 Thread Wolfgang Laun
Array types are not supported for the fields of types declared in DRL. A java.util.ArrayList (no generic parameters) should work. -W On 26 April 2011 23:59, fulton wrote: > I am currently using Drools Server to accept JSON-formatted insertion > messages from a PHP application. Within the DRL f