Without modify (or update) the Drools Engine is not aware of the
change caused by the setter. See the Expert manual for further
details.
-W
On 12/07/2012, abhinay_agarwal <abhinay_agarwal(a)infosys.com> wrote:
what is unclear in my mind is, if we can use something like this :
when
$c: Customer()
then
$c.setName("abhinay")
then y do we use:
when
$c: Customer()
then
modify($c)
{
setName("abhinay")
}
I simply dont get the difference !!
--
View this message in context:
http://drools.46999.n3.nabble.com/simple-Doubt-usage-of-modify-tp4018614p...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users