Re: [rules-users] Why is Drools called "Drools"?

2011-06-10 Thread Mauricio Salatino
Hehe excellent question.. I think Mark has a good store about that! 2011/6/10 John Peterson > This is something I get asked on a semi-regular basis and I don’t have a > good answer for it, so I thought I’d post it to the mailing list and hope > someone can tell the story. Is there anyone out t

[rules-users] Why is Drools called "Drools"?

2011-06-10 Thread John Peterson
This is something I get asked on a semi-regular basis and I don't have a good answer for it, so I thought I'd post it to the mailing list and hope someone can tell the story. Is there anyone out there who can explain how the name "Drools" was settled on? _

Re: [rules-users] ERR 101 & 102 When parsing Decision Table xls

2011-06-10 Thread Wolfgang Laun
Looks as if this is only a warning. Does the DRL compile without error? Also, your code uses the old API. Try KnowledgeBuilder kBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); DecisionTableConfiguration dtConf = KnowledgeBuilderFactory.newDecisionTableConfiguration(); dtConf.

Re: [rules-users] Custom-Operator - No access to FactHandles?

2011-06-10 Thread Edson Tirelli
I think there is a fundamental misunderstanding in the use you are trying to do with custom operators. Custom operators are supposed to be used to correlate 2 values, that may be lists, but not do "search" in the working memory, as that would be extremely inefficient. If you need to process sets

[rules-users] Difference between / ?

2011-06-10 Thread Andre
both can carry command tags, so if i´m going to declare set-global tags , is there any difference doing that in batch/script, do i have in both scenarios my global instances? like vs. -- View this message in context: http://drools.46999.n3.nabble.com/Difference-between-drools-batch-dr

Re: [rules-users] ERR 101 & 102 When parsing Decision Table xls

2011-06-10 Thread Sleepyhead
Thx man! Was getting pretty pissed ... :P Only now I have a different problem when actually using the decision table: public RuleBase readDecisionTable() throws Exception { SpreadsheetCompiler converter = new SpreadsheetCompiler(); String drl = con

Re: [rules-users] operator question

2011-06-10 Thread Jon Gil
well, I'll be. I didn't know that. Thank you very much. 2011/6/10 Wolfgang Laun > Correction: > redbookYear > (vehicleYear + $param) > > > On 10 June 2011 14:52, Wolfgang Laun wrote: > >> Given that the left hand sign of the comparison must be a simple field >> reference and the right hand s

Re: [rules-users] operator question

2011-06-10 Thread Wolfgang Laun
Correction: redbookYear > (vehicleYear + $param) On 10 June 2011 14:52, Wolfgang Laun wrote: > Given that the left hand sign of the comparison must be a simple field > reference and the right hand side a bracketed expression, employ simple > equation transformattion techniques to arrive at >

Re: [rules-users] operator question

2011-06-10 Thread Jon Gil
Which when i start the server drools is on produces: rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kbase5': Invocation of init method failed; nested exception is java.lang.RuntimeException: [12,30]: [ERR 101] Line 12:30 no viable alternative at input '-' in

Re: [rules-users] operator question

2011-06-10 Thread Wolfgang Laun
Given that the left hand sign of the comparison must be a simple field reference and the right hand side a bracketed expression, employ simple equation transformattion techniques to arrive at redbookYear > (vehicleYear) + $param) -W 2011/6/10 Jon Gil > more specifically > > RuleTable

Re: [rules-users] ERR 101 & 102 When parsing Decision Table xls

2011-06-10 Thread Wolfgang Laun
The joined cells C7:G7 irritate the spreadsheet parser. Reduce this to C7:E7, i.e. the cells below CONDITION. -W On 10 June 2011 13:16, Sleepyhead wrote: > Hey all, > > I'm new to Drools, and trying to use decision tables. > Only I got some errors I don't understand > > Description Resource

Re: [rules-users] operator question

2011-06-10 Thread Jon Gil
more specifically RuleTableCondition Action $a:OOPVehicle (redbookYear - vehicleYear) > $param System.out.println($param); 50 "reducing Redbook Value by 50 years" 20 "reducing Redbook Value by 20 years" 5 "reducing Redbook Value by 5 years" On Fri, Jun 10, 2011 at 9:39 AM, Jon Gil

Re: [rules-users] operator question

2011-06-10 Thread Jon Gil
I want my condition to be (Year1 - Year2) > $param 2011/6/10 Wolfgang Laun > Please describe the problem, accuretely. > -W > > 2011/6/10 Jon Gil > >> Hi all, This might seem overly simple but can I use the + and - operators >> in a Condition in a spreadsheet? I feel i'll need to import s

Re: [rules-users] operator question

2011-06-10 Thread Wolfgang Laun
Please describe the problem, accuretely. -W 2011/6/10 Jon Gil > Hi all, This might seem overly simple but can I use the + and - operators > in a Condition in a spreadsheet? I feel i'll need to import something, and > I've tried creating an "add" method in my factmodel java class, but i can't >

[rules-users] operator question

2011-06-10 Thread Jon Gil
Hi all, This might seem overly simple but can I use the + and - operators in a Condition in a spreadsheet? I feel i'll need to import something, and I've tried creating an "add" method in my factmodel java class, but i can't seem to use it. ___ rules-us

[rules-users] ERR 101 & 102 When parsing Decision Table xls

2011-06-10 Thread Sleepyhead
Hey all, I'm new to Drools, and trying to use decision tables. Only I got some errors I don't understand Description ResourcePathLocationType [ERR 101] Line 15:87 no viable alternative at input 'false' in rule "Pricing bracket_11" in pattern Person CheckAccepted.xls

Re: [rules-users] Custom-Operator - No access to FactHandles?

2011-06-10 Thread Martin, Matthias
Exactly! I need to iterate over a bunch of objects/facts in the Working Memory. Von: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Vincent Legendre Gesendet: Freitag, 10. Juni 2011 12:04 An: Rules Users List Betreff: Re: [rules-users] Custom-Opera

Re: [rules-users] Custom-Operator - No access to FactHandles?

2011-06-10 Thread Vincent Legendre
Title: CARTE DE VISITE And why not accessing the object itself directly ? Because the evaluation of one object field depends on others objects in WM ? Le 10/06/2011 11:54, Martin, Matthias a écrit : Hello,   some

[rules-users] Custom-Operator - No access to FactHandles?

2011-06-10 Thread Martin, Matthias
Hello, some of our custom operators need to access already inserted facts at runtime. Therefore we extended org.drools.base.BaseEvaluator. The provide methods, i. e. public boolean evaluate(InternalWorkingMemory workingMemory, InternalReadAccessor extractor, Object object, FieldValue value), st

Re: [rules-users] Terminating service threads

2011-06-10 Thread Manuel Ortiz
Manuel Ortiz gmail.com> writes: > > Wolfgang Laun gmail.com> writes: > > > > > > > Both ResourceChange... classes have a stop() method which ought to > > terminate > the threads.-W > > 2011/6/9 Manuel Ortiz gmail.com>Hello everybody: > > I have a Drools based application which instantiate

Re: [rules-users] Terminating service threads

2011-06-10 Thread Manuel Ortiz
Wolfgang Laun gmail.com> writes: > > > Both ResourceChange... classes have a stop() method which ought to terminate the threads.-W > 2011/6/9 Manuel Ortiz gmail.com>Hello everybody: > I have a Drools based application which instantiates KnowledgeAgent and ResourceChangeNotifier and ResourceC