[rules-users] simple Doubt..usage of modify
abhinay_agarwal
abhinay_agarwal at infosys.com
Thu Jul 12 02:14:53 EDT 2012
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.
More information about the rules-users
mailing list