[rules-users] java.lang.NoSuchMethodError

2007-02-07 Thread Francisco Brum
Hello everybody! I'm having the same problem that you had, but when I run the project from the JBoss Server and try do run the code with the JBoss rules, I get the error: java.lang.NoSuchMethodError:

Re: [rules-users] Creating a long literal

2007-02-07 Thread Aziz Boxwala
You're right. The L causes a syntax error at compile time. Outside, an eval, I ran into range problems. I was trying to multiply a bunch of integers. The product was outside the range of an integer and I ended up with garbage. One way around it would have been to force the operands of the

[rules-users] [Column(f1=='v1', f2=='v2')] vs [Column(f1=='v1') Column(f2== 'v2')]

2007-02-07 Thread Olenin, Vladimir (MOH)
Hi, I wonder what is the difference (performance-wise, etc) between these two constructs: Column(f1=='v1', f2=='v2') And Column(f1=='v1') Column(f2=='v2') ? Both of them should select the same 'Column' facts (where Column.f1=='v1' Column.f2='v2'), correct? Is one

Re: [rules-users] Using variable in a drl file

2007-02-07 Thread Edson Tirelli
You mean a global? http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.5/html/ch03s03.html#d0e1532 Yen Chiu wrote: Hi everyone, Can anyone guide me on how to declare a variable (e.g: a double variable) and use it throughout the drl file from top to bottom.

RE: [rules-users] [Column(f1=='v1', f2=='v2')] vs [Column(f1= ='v1') Column(f2== 'v2')]

2007-02-07 Thread Olenin, Vladimir (MOH)
Hi, Edson. Thanks for the explanation. Just wanted to clarify one thing. If I have a set of following Column fact objects and I put then into workspace using the 'identity' mode (below are only field values the facts are initialized with, one per line, each line is a separate Column fact): 1)

Re: [rules-users] [Column(f1=='v1', f2=='v2')] vs [Column(f1= ='v1') Column(f2== 'v2')]

2007-02-07 Thread Edson Tirelli
Nope. If you have a rule: rule A when Column(f1=='v1') Column(f2=='v2') then // do something end The rule will activate for tuples: [1, 3] [1, 4] [1, 5] [2, 3] [2, 4] [2, 5] [3, 4] [3, 5] Remember that the implicit conditional element is AND. If you write a rule rule A

RE: [rules-users] rule chaining problem?

2007-02-07 Thread Francisco Brum
What you cold do it's before deleting a node, first you will remove it arcs! Maybe using a flag identifying future node to delete, and all the arcs from a node with that flag is deleted. And then delete the node. To do that, use the term salient. I'm just a beginner in rules, but this seams

Re: [rules-users] Adding DROOLS/JBoss Rules to classpath

2007-02-07 Thread Kris Verlaenen
Yes, the drools jars do not contain any source by default (to limit the size of the jars). There are two ways to use the source of these classes though: * When you are trying to debug an application in eclipse, and you open the debug dialog (right click your Java main class, select Debug As -