[rules-users] simple Doubt..usage of modify

Wolfgang Laun wolfgang.laun at gmail.com
Thu Jul 12 05:52:35 EDT 2012


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 at 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-tp4018614p4018629.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list