It sounds like you need to create a flavour of the WorkingMemoryEventListener and add it
to your session.
Your objectUpdated(ObjectUpdatedEvent) method could then compare the event.getFactHandle()
to the fact handle you got hold of when you inserted it.
Steve
On Jul 13, 2012, at 12:16 PM, abhinay_agarwal <abhinay_agarwal(a)infosys.com> wrote:
suppose i have an object Customer and i insert the object of customer in the
session...
class Customer
{
custID;
//getter and setter
}
Customer customer = new Customer()
ksession.insert(customer)
now i fire a couple of rules on this object..
and within the rules, the custID is set with three different values. Ex -
001,002,003
is there a way by which i can get all the three values ??
if I use a factHandle like
FactHandle fh = ksession.insert(customer)
syso(((Customer)ksession.getObject(fh)).getCustID)
//output is only 003..
i need all the three values..what can be done !!??
--
View this message in context:
http://drools.46999.n3.nabble.com/Setting-and-extracting-different-values...
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