[rules-users] Drools Performance and Maintanability

2012-04-23 Thread dollanitri
Hello, Recently i started playing out with Drools Guvnor GUI and created couple of rules based on DecisionTable GUI Editor and also ruleflows in eclipse. Then integrated Drools with Java Custom Web Application and tried out executing rules on front end by changing rules on the drools guvnor at

[rules-users] KnowledgeAgent dispose - KnowledgeBase dispose

2012-04-23 Thread srinivasasanda
Hi All When I dispose the Knowledge Agent still using knowledge base i am able to get the session and fire the rules. I there any way to dispose the Knowledge base. Who will take care of dispose of the Knowledge base. Can u please suggest me. -- View this message in context:

Re: [rules-users] Drools Performance and Maintanability

2012-04-23 Thread Michael Anstis
In response to a couple if your questions:- 1) Guvnor uses an optimistic lock at the asset (e.g. decision table) level. We do not provide for merging as you describe. 3) Guvnor uses Apache Jackrabbit for persistence. Jackrabbit can be configured to use a database however the schema Jackrabbit

Re: [rules-users] Drools Performance and Maintanability

2012-04-23 Thread Nicolas Héron
Hello, about your point #1, you can use status of rules and therefor only build in production if a rule is in special case, but is is tricky and there is no merge facility and possibility in Guvnor. The only way is to do it from whithin eclipse with the the guvnor plugin over webdav. about your

Re: [rules-users] Exception when building a template

2012-04-23 Thread Michael Anstis
Hello, Are you using a Rule Template or Decision Table? Your post states template (decision table) but these are two different things entirely. That aside, it does sound like a bug - you should either not be able to define invalid column names in Guvnor or we should provide a means to protect

Re: [rules-users] Unable to view drls in guvnor

2012-04-23 Thread Michael Anstis
There must be something in WAS's log indicating a problem of some sort. Have you tried with a completely clean repository, i.e. delete the repository.xml and repository folder entirely? Since the problem only occurs in your DEV environment (I assume a DEV server somewhere, not your local IDE DEV

[rules-users] setting global variables in session : the Command interface VS the RuleContext. What is the difference ?

2012-04-23 Thread Ahmed Feki
hi , i m new in drools, i m reading the Drools-JBoss-Rules-5.0-Developers-Guide book in which i found a validation rule example on its chapter 3. In this exemple, global variables were set into the session with two methods shown in this code : ... session =

[rules-users] setting global variables in session : the Command interface VS the RuleContext. What is the difference ?

2012-04-23 Thread bardelman
hi , i m new in drools, i m reading the Drools-JBoss-Rules-5.0-Developers-Guide book in which i found a validation rule example on its chapter 3. In this exemple, global variables were set into the session with two methods shown in this code : ... session =

[rules-users] Trying to make drools-debugging (Eclipse) work in FIT for rules

2012-04-23 Thread ingo_mytoys
Hi folks, I'm happy that I recently discovered both the Eclipse debugging views for Drools (working memory, agenda) and the FIT for rules framework. Since our development project itself can't be tested as Drools-Application I'd like to use FIT for acceptance-tests and debugging. Might be a smooth

Re: [rules-users] Drools Performance and Maintanability

2012-04-23 Thread dollanitri
Thanks for your inputs.. #1. it means if multiple users update same record (in this case decision table ) then other one changes will be overwritten, as it shouldn't be i believe. #3. is it way to import this repository into eclipse to see data by using some plugin ? -- View this message

Re: [rules-users] Drools Performance and Maintanability

2012-04-23 Thread Michael Anstis
#1 - Two users, (1) and (2), open the same asset. User (1) saves OK. User (2) will be prevented from saving as their view of the underlying asset is out of date. This is how the optimistic lock pattern works. It is ideal for low con-currency usage patterns, which is how we envisage Guvnor

Re: [rules-users] Drools Performance and Maintanability

2012-04-23 Thread dollanitri
Hi Nicolas, Thanks for your valuable inputs. #2, did you observered how much memory was consumed while building such huge rules ? do we need to consider memory consumption in this case? -- View this message in context:

Re: [rules-users] setting global variables in session : the Command interface VS the RuleContext. What is the difference ?

2012-04-23 Thread Wolfgang Laun
If you have a StatelessKnowledgeSession (or StatefulKnowledgeSession) object, you'd call its method setGlobal () to assign an object to a global variable. If you don't have the session object, you can acquire it in some other way, e.g., in consequence (RHS) code. You'd use the predefined variable

Re: [rules-users] Trying to make drools-debugging (Eclipse) work in FIT for rules

2012-04-23 Thread ingo_mytoys
Hi everybody, might be that I found the solution myself. Is it possible that FIT uses an abstraction-layer (like e.g for persistence JPA-Annotations instead of original Hibernate annotations), which prevents Eclipse from applying breakpoint functionality? FIT imports: import

Re: [rules-users] Drools Planner : multiple planning entities

2012-04-23 Thread TEddahabi
In 5.4.0.CR1, to not have the exception, I put ValueRange.excludeUninitializedPlanningEntity on false (That also works if I dont use this attribute, its default value is false). The solver seems doing the right moves. -- View this message in context:

[rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread TonyN
Hi, I have nested classes in the domain model and I imported these nested classes in order to use them in the guided editor. Things are ok except when one of the rule required a custom java function, then I would get an error at 'build' package time (the error is 'not able to resolve

Re: [rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread Michael Anstis
Hi, This was a bug, but has been fixed for 5.4.0.Final. The only workaround is to move the enumerations to their own class, rather than nest in another Class. https://bugzilla.redhat.com/show_bug.cgi?id=724629 With kind regards, Mike On 23 April 2012 14:12, TonyN tony.n.ngu...@boeing.com

Re: [rules-users] Guvnor 5.3 to 5.4.0.CR1 DSLVariableValue ClassCastException

2012-04-23 Thread Esteban Aliverti
Thanks a lot Mike, I have a really busy week. I really appreciate your help! Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Mon, Apr 23, 2012 at 5:06 PM, jemka je...@tullahoma.de wrote:

[rules-users] Rules and Ruleflow GroupS

2012-04-23 Thread Welsh, Armand
A while back, I was looking to use Ruleflow-Groups and a process flow. Due to some issues in the code that affected the use of the process flow, I was unable to use them. I believe those issues have been worked out, and now I am looking into using them again. One thing I am not clear on, is

Re: [rules-users] Performace Issues drools

2012-04-23 Thread Welsh, Armand
I don't know your data model, but I believe, what you may be looking for is; CONDITION: $pt: Patient ( ) $test : LabTest( ) from $pt.labTests not (exists (LabTest (testId == $test.testId))) CONSEQUENCE Insert($test); If I am recalling this correctly, line2 does not inject

Re: [rules-users] Rules and Ruleflow GroupS

2012-04-23 Thread Vincent LEGENDRE
No you can't ... or I really don't know how .. You can duplicate a ruleflow group in a ruleflow (if your rule is only dependant of others rules in the same group), but if a rule is a subpart of multiple groups ... well ... I think you can't avoid to write your own agenda filter, or try to use

Re: [rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread TonyN
Hi, I downloaded the Guvnor 5.4.0 CR1 and problem is still there (I am assuming the fix is in this CR release too?). I would like to send this image to show one of class in the domain model that contains nested classes. TcItem contains Dataset contains NamedReferences

Re: [rules-users] Explanation of a decision

2012-04-23 Thread Welsh, Armand
I do this. I use a custom function to perform my inserts like this: (I also have a property called rule in my data facts, that I store the rule name into so I can trace the logic tree that set the fact values). This is also based on the assumption that your facts you are created are being

Re: [rules-users] Performace Issues drools

2012-04-23 Thread Greg Barton
You can simplify the last condition to: not LabTest(testId == $test.testId) I think it's faster, too. --- On Mon, 4/23/12, Welsh, Armand awe...@statestreet.com wrote: From: Welsh, Armand awe...@statestreet.com Subject: Re: [rules-users] Performace Issues drools To: 'Rules Users List'

Re: [rules-users] Rules and Ruleflow GroupS

2012-04-23 Thread Welsh, Armand
Thanks for the feedback Yeah.. my rules deal with data transformation. We convert vendor feed data to internal data for making trade decisions. So we have large data sets that need to be evaluated. So instead of inserting all data into working memory from our lookup tables in our DB, I

Re: [rules-users] Performace Issues drools

2012-04-23 Thread Welsh, Armand
I will have to play with performance testing on these conditions. My understanding was that there is not real performance difference, because every fact insert get evaluated at insert time for rules that reference the facts, and then with exists, you are only limiting the rule to one

Re: [rules-users] setting global variables in session : the Command interface VS the RuleContext. What is the difference ?

2012-04-23 Thread Welsh, Armand
The knowledgeSession is used to setup your new session for processing. When you issue the command, fireAllRule() on the knowledgeSession (or session.execute), then the knowledgeRuntime is created, and the rules are in a running state. The knowledgeRuntime is an instance of a live (running

Re: [rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread Michael Anstis
Nope, I meant 5.4.0.Final - as I typed :) Can you create a JIRA (https://issues.jboss.org/browse/GUVNOR) and attach a repository export demonstrating the problem. I can take a look to check it's working as you require with (what will become) 5.4.0.Final. Otherwise, it'll be a bug and need

Re: [rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread TonyN
Thanks Mike...will do! -- View this message in context: http://drools.46999.n3.nabble.com/Nested-class-BRL-and-Java-error-tp3932432p3933172.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list

Re: [rules-users] Rules and Ruleflow GroupS

2012-04-23 Thread Vincent LEGENDRE
Tell me if I understand well : - you have a set of lookup rules that are independant of initial data in the WM - you have another set of lookup rules that depends of data currently in the WM, that should trigger in the middle of data processing. In this second group, some business rules can

Re: [rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread TonyN
JIRA ticket opened (GUVNOR-1873)... Thx -- View this message in context: http://drools.46999.n3.nabble.com/Nested-class-BRL-and-Java-error-tp3932432p3933348.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users

[rules-users] Best practice for 0..1 relations

2012-04-23 Thread Christopher Dolan
What's the best way to encode a fact that's needed in the RHS but is not important in the LHS? Consider a contrived example of computing total household income for single or married persons. I can think of two ways to encode this rule, but I don't like either of them: Style 1: one rule for

Re: [rules-users] Best practice for 0..1 relations

2012-04-23 Thread Christopher Dolan
Sorry, I wasn't clear... In the example, it's the spouse that's the optional fact. I want the rule to fire whether or not a spouse exists, but the RHS computes the income differently if a spouse exists or not. If a spouse is added/removed, I want the rule to re-fire and the income should be

Re: [rules-users] Exception when building a template

2012-04-23 Thread Sean Su
I was using template to build the decision table type of rule editor. I have switched to the decision table since then. However since the template design allows me to achieve the decision table look and feel, it would be great to allow us to define the display name of the column as well. Yes,

Re: [rules-users] Best practice for 0..1 relations

2012-04-23 Thread Vincent LEGENDRE
In fact, you question is : What's the best way to define something that's needed in the RHS but is not matchable in the LHS? You said not important, but you want the income to be updated (I guess for other rules' LHS) ... so it was not clear. And what about using an accumulate rather than a