[rules-users] Setting and extracting different values for the same object using rules
Stephen Masters
stephen.masters at me.com
Fri Jul 13 07:44:18 EDT 2012
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 at 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-for-the-same-object-using-rules-tp4018660.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120713/7bf91670/attachment.html
More information about the rules-users
mailing list