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....
Sent from the Drools: User forum mailing list archive at
Nabble.com.