Override and implement the clone method of the class you want to clone/copy then in the
RHS of your rule do:
SomeClass copy = $someclass.clone();
Earnie!
________________________________
From: Ashish Soni <learnspring(a)gmail.com>
To: Rules Users List <rules-users(a)lists.jboss.org>
Sent: Wednesday, April 1, 2009 9:50:25 AM
Subject: [rules-users] How to clone object inside a rule
Hi All ,
I want to clone/copy one object inside a rule depends on some condition , Please let me
know how i can do that ?
Regards,
Ashish