[drools-user] Doubts in Bound Variables

2006-12-21 Thread Niyas
Hi, I am new to jBoss Rule - Drools and I am hust going thru' the manual and trying some examples using JBoss Rules IDE in Eclipse.. I am having doubt in bound variable: what is the difference between emp: Employee and $emp:Employee (the $ sign)?

[drools-user] Doubts in Bound Variables

2006-12-21 Thread Niyas
I am new to jBoss Rule - Drools and I am hust going thru' the manual and trying some examples using JBoss Rules IDE in Eclipse.. I am having doubt in bound variable: what is the difference between emp: Employee and $emp:Employee (the $ sign)? give some example

Re: [drools-user] Doubts in Bound Variables

2006-12-21 Thread nicolae oana
Hi Niyas, There is no difference between your two declarations emp and $emp . The sign '$' is used as first letter in the name of a declaration just to differentiate declarations from fields. You can used or not. It's your choice. But I think it is appropriate to use it, just to follow the

Re: [drools-user] Doubts in Bound Variables

2006-12-21 Thread Niyas
Why in the second case it's not printing anything? I am not asked about usom valid identifiers pls see the below two rules.. Is there any difference between the below two rules rule Credti Accept salience 10 when cust:Customer(customerAge 18)

Re: [drools-user] Three Important Doubts

2006-12-21 Thread nicolae oana
Hi Joj, 1) and 2) In this case it is appropriate to use the declarations (bound variable) for your properties of the class Student, and the eval complementary element for column (read the drools manual http://labs.jboss.com/portal/jbossrules/docs). Drools doesn't allow you to operate with

Re: [drools-user] Doubts in Bound Variables

2006-12-21 Thread nicolae oana
Niyas, I tested a very resembling rule, and it works fine. I don't know what is the problem, as your code seems to be correct.The error isn't for sure the way we name the declarations. rule EvalWithFunction_1 when $e:Employee($name:employeeName == Fred)

Re: [drools-user] Doubts in Bound Variables

2006-12-21 Thread Edson Tirelli
Niyas, There is no difference I can see between the 2 rules. Only thing worth to mention is you can't have both simultaneously in your package because they have the same name, but I guess you have one or the other, right? Regarding the $, as Oana said, it is just a naming convention.

Re: [drools-user] Running Drools inside netbeans module issues

2006-12-21 Thread Edson Tirelli
Really weird indeed. But if you are using JANINO, there is no problem in removing the JDT and JCI-JDT jars. []s Edson elmo wrote: Hi, The solution is really weird. It wasn't a classloading problem. There seems to be a conflict if I include in the package the eclipse JDT compiler.

Re: [drools-user] Doubts in Bound Variables

2006-12-21 Thread Research
Niyas wrote: Why in the second case it's not printing anything? I am not asked about usom valid identifiers pls see the below two rules.. Is there any difference between the below two rules rule Credti Accept salience 10 when cust:Customer(customerAge 18)

Re: [drools-user] Problem with serializing WorkingMemory

2006-12-21 Thread Michael Neale
This really rings a bell, but I am not sure what the solution is/was. Surely other people are doing this with success? The problem must be to do with the drools classes not being available to the classloader that is deserializing the WM. On 12/21/06, Michael Suzio [EMAIL PROTECTED] wrote:

Re: [drools-user] Problem with serializing WorkingMemory

2006-12-21 Thread Michael Suzio
It appears to be a bug related (I think) to how the rulebase and working memory interact. They do seem fairly tied to one another when you look at the actual code for the Reteoo implementations of the classes. The fact that there is a JDK bug that seems so similar leads me to believe maybe this