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)?
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
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
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)
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
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)
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.
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.
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)
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:
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
11 matches
Mail list logo