[rules-users] Setting object's fields to complex result in RHS
Edson Tirelli
tirelli at post.com
Fri Jun 1 10:02:56 EDT 2007
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 at 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-tf3851977.html#a10911851
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070601/0dcf3340/attachment.html
More information about the rules-users
mailing list