Re: [rules-users] Setting object's fields to complex result in RHS

2007-06-01 Thread Edson Tirelli
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 <[EMAIL PROTECTED]>: Hi, Can't we write on RHS lik

[rules-users] Setting object's fields to complex result in RHS

2007-06-01 Thread Joj
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 thi