RHS is a java block, anything valid in java is valid there... are you
sure you are binding the variables?
when
student : Student( mark1 : mark1, mark2 : mark2 )
then
student.setTotal( mark1 + mark2 );
end
[]s
Edson
2007/6/1, Joj <jojpm(a)yahoo.com>:
Hi,
Can't we write on RHS like:
student.setTotal(mark1 + mark2);
(where mark1 & 2 are variables in student)
Is it possible? I mean arithmetical operations, calling Java methods, etc
from inside setters. If not, is there any other logic to do the same?
Please reply A.F.A.P.
Jojan
--
View this message in context:
http://www.nabble.com/Setting-object%27s-fields-to-complex-result-in-RHS-...
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @
www.jboss.com