[rules-users] simple Doubt..usage of modify
Wolfgang Laun
wolfgang.laun at gmail.com
Thu Jul 12 02:24:45 EDT 2012
Search for "modify" in the Drools Expert manual. No need to repeat it all here.
-W
On 12/07/2012, abhinay_agarwal <abhinay_agarwal at infosys.com> wrote:
> what is the difference if I use :
>
> rule "rule1"
> when
> $song : Song()
> then
> modify($song)
> {
> setName(index.getAndIncrement()+"_"+$song.getName());
> }
> end
>
>
> and if i use :
>
>
> rule "rule1"
> when
> $song : Song()
> then
> $song.setName(index.getAndIncrement()+"_"+$song.getName());
> end
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/simple-Doubt-usage-of-modify-tp4018614.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