Hello !
I have a problem with my DSL file.
I have in my working memory an object called FieldCumulMontantImpl.
I want to test the value of the field "value" and the condition must be
evaluated if it is ' 00000000000'.
The object has getter and setter called setValue() and getValue().
First Rule mapping :
f : FieldCumulMontantImpl() eval(f.getValue().equals(" 00000000000")) --> OK
Others Rule mapping :
FieldCumulMontantImpl( v : value -> ( v.equals(" 00000000000") ) ) --> KO
FieldCumulMontantImpl( value == " 00000000000" ) --> KO
FieldCumulMontantImpl( value.equals(" 00000000000") ) --> KO
The first rule mapping give the good result whereas with my others rule
mapping, the condition is never evaluated.
I want to avoid eval() because it is very resource consuming.
Is the syntax wrong ??
Thanx