Search for "modify" in the Drools Expert manual. No need to repeat it all here.
-W
On 12/07/2012, abhinay_agarwal <abhinay_agarwal(a)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....
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