<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma,new york,times,serif;font-size:10pt"><div>Override and implement the clone method of the class you want to clone/copy then in the RHS of your rule do:<br><br>SomeClass copy = $someclass.clone();<br><br>Earnie!<br></div><div style="font-family: tahoma,new york,times,serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Ashish Soni &lt;learnspring@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Rules Users List &lt;rules-users@lists.jboss.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, April 1, 2009 9:50:25 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [rules-users] How to clone object inside a rule<br></font><br>
Hi All , <br><br>I want to clone/copy one object inside a rule depends on some condition , Please let me know how i can do that ?<br><br><br>Regards,<br>Ashish<br>
</div></div></div></body></html>