Re: [rules-users] Sudoku example doesn't work in drools 5.1

2011-01-18 Thread Mark Proctor
i'd like to see sudoku redone, the example we have at the moment is terrible. in that it uses a different salience per rule to drive it, which is very bad practice. Any takers for a more robust sudoku example, that demonstrates best practice? Mark On 19/01/2011 06:38, cafebabe wrote: > With re

Re: [rules-users] Different rule fires when debugging vs running after upgrading to 5.1.1

2011-01-18 Thread Wolfgang Laun
There are two answers: a) factor X b) not the same code or data or both Some code to reproduce this might lead to a definite answer. -W On 19 January 2011 00:41, H.C. wrote: > > I just upgraded Drools from 5.0.1 to 5.1.1 and am facing failures in our > Junit tests after the upgrade (test worked

[rules-users] Sudoku example doesn't work in drools 5.1

2011-01-18 Thread cafebabe
With reference to issue https://issues.jboss.org/browse/JBRULES-2867 and thread "Bug in Sudoku Example - with fix" http://drools-java-rules-engine.46999.n3.nabble.com/Bug-in-Sudoku-Example-with-fix-td196315.html, sudoku example in Drools 5.1 is not working correctly. drools version: 5.1.1 Althou

[rules-users] Different rule fires when debugging vs running after upgrading to 5.1.1

2011-01-18 Thread H.C.
I just upgraded Drools from 5.0.1 to 5.1.1 and am facing failures in our Junit tests after the upgrade (test worked in 5.0.1). I have two rules that are mutually exclusive on the value of a particular attribute. When debugging, this attribute has the expected value and the first rule fires. When

[rules-users] KnowledgeAgent doesn't throw an exception even if it is not able to get the resource

2011-01-18 Thread Harshit Bapna
Hello All, I am using knowledgeAgent to retrieve a resource from Guvnor. I have deliberately stopped the Guvnor to check if it throws any error but KnowledgeAgent eats up the error. *How can it be detected that an error occurred during creation of knowledgeBase?* *ConsoleOutput:* Although Knowled

Re: [rules-users] Trying to get Eclipse Java code to call Guvnor

2011-01-18 Thread Lukáš Petrovický
zelig_erika píše v Út 18. 01. 2011 v 07:05 -0800: > I'm using Guvnor 5.1 and I read that I must modify the file ChangeSet.xml > but I don't understand how. > Can anyone help me? Hello Erika, take a look at the following mailing list posting, it has the proper XML format for Drools 5.1: http://dro

Re: [rules-users] Trying to get Eclipse Java code to call Guvnor

2011-01-18 Thread zelig_erika
hi all, I'm trying to do the same example (http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-part-1/).. I created the file Guvnor.properties but I can not log in because I must enter correct username and password and I do not know how to do that. I get the following error:

[rules-users] loading rules into one package

2011-01-18 Thread Piotr Jedrychowski
Hello. I'm loading a lot of rules during starting of JBoss. Loading of rules is made by such scenario: 1) Read first part of rules from database (about 4000 rules) 2) Send rules to Drools bean 3) Parse rules (convert string rules into Drools format) by KnowledgeBuilder - one package (pkg1) wit

Re: [rules-users] Decision table rework, progress

2011-01-18 Thread Esteban Aliverti
Nice work! Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2011/1/18 Mark Proctor > On 18/01/2011 10:14, Wolfgang Laun wrote: > > I've just wondered whether I should add support for permitting >Cheese

Re: [rules-users] Decision table rework, progress

2011-01-18 Thread Mark Proctor
On 18/01/2011 10:14, Wolfgang Laun wrote: I've just wondered whether I should add support for permitting Cheese from $cheesery.brands price >= 100 Seems like a valid use case. Mark -W 2011/1/18 Michael Anstis > Hi Mark, Vimeo automatical

Re: [rules-users] Greater than or less than in eval

2011-01-18 Thread Wolfgang Laun
Double as in java.lang.Double? This would be strange, since these types sure are compatible. -W 2011/1/18 Mohod, Akash > Thanks Wolfgang. Good spot there. The data types were not matching . > Fixed now. > > One of them was double and other was Double. > > > > Regards, > > Akash > > > > > > *Fro

Re: [rules-users] Greater than or less than in eval

2011-01-18 Thread Mohod, Akash
Thanks Wolfgang. Good spot there. The data types were not matching . Fixed now. One of them was double and other was Double. Regards, Akash From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: Tuesday, January 18, 2011 1:57 PM T

Re: [rules-users] Decision table rework, progress

2011-01-18 Thread Wolfgang Laun
I've just wondered whether I should add support for permitting Cheese from $cheesery.brands price >= 100 -W 2011/1/18 Michael Anstis > Hi Mark, > > Vimeo automatically creates a HD video when you upload a file >1280 x 720. > > I checked the recent video on Vimeo and if the "HD" icon

Re: [rules-users] Decision table rework, progress

2011-01-18 Thread Michael Anstis
Hi Mark, Vimeo automatically creates a HD video when you upload a file >1280 x 720. I checked the recent video on Vimeo and if the "HD" icon is blue and you view full screen it is HD already. I'll update the blog to state an HD version is available at the link provided. Cheers, Mike 2011/1/17

Re: [rules-users] Greater than or less than in eval

2011-01-18 Thread Wolfgang Laun
Space after "$"? Error message? Types of Employee.age, Event.ageLimit? It would be preferable to to use when Employee ($name : name, $age : age) Event ($eventName : eventName, ageLimit > $age) then -W 2011/1/18 Mohod, Akash > Hi, > > > > I am trying to wri

Re: [rules-users] Function call from LHS in Drools

2011-01-18 Thread Mohod, Akash
Thanks a lot Wolfgang. Regards, Akash From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: Monday, January 17, 2011 9:27 PM To: Rules Users List Subject: Re: [rules-users] Function call from LHS in Drools when S

[rules-users] Greater than or less than in eval

2011-01-18 Thread Mohod, Akash
Hi, I am trying to write the following rule using Drools 5.1 but having issues. when Employee ($name : name, $ age : age) Event ($eventName : eventName , $ageLimit : ageLimit) eval($age < $ ageLimit) then System.out.println (" Can pa