<html><body><div>It sounds like you need to create a flavour of the WorkingMemoryEventListener and add it to your session.</div><div><br></div><div>Your objectUpdated(ObjectUpdatedEvent) method could then compare the event.getFactHandle() to the fact handle you got hold of when you inserted it.</div><div><br></div><div>Steve</div><div><br><br>On Jul 13, 2012, at 12:16 PM, abhinay_agarwal &lt;abhinay_agarwal@infosys.com&gt; wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch">suppose i have an object Customer and i insert the object of customer in the<br> session...<br> <br> class Customer<br> {<br> custID;<br> //getter and setter<br> }<br> <br> Customer customer = new Customer()<br> ksession.insert(customer)<br> <br> <br> now i fire a couple of rules on this object..<br> <br> and within the rules, the custID is set with three different values. Ex -<br> 001,002,003<br> <br> is there a way by which i can get all the three values ??<br> <br> if I use a factHandle like<br> <br> FactHandle fh = ksession.insert(customer)<br> syso(((Customer)ksession.getObject(fh)).getCustID)<br> <br> //output is only 003..<br> <br> <br> i need all the three values..what can be done !!??<br> <br> --<br> View this message in context: <a href="http://drools.46999.n3.nabble.com/Setting-and-extracting-different-values-for-the-same-object-using-rules-tp4018660.html" data-mce-href="http://drools.46999.n3.nabble.com/Setting-and-extracting-different-values-for-the-same-object-using-rules-tp4018660.html">http://drools.46999.n3.nabble.com/Setting-and-extracting-different-values-for-the-same-object-using-rules-tp4018660.html</a><br> Sent from the Drools: User forum mailing list archive at <a href="http://Nabble.com" data-mce-href="http://Nabble.com">Nabble.com</a>.<br> _______________________________________________<br> rules-users mailing list<br> <a href="mailto:rules-users@lists.jboss.org" data-mce-href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" data-mce-href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></div></blockquote></div></body></html>