Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-27 Thread abhinay_agarwal
Tnxx Laune, i ll have a look to it !! Tnxx Greg, things are more clear now ! -- View this message in context: http://drools.46999.n3.nabble.com/Inserting-Different-Objects-Of-Same-Class-tp4020971p4020993.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-27 Thread Greg Barton
reason to match a list in the rule conditions is if changing the list could result in that rule firing. From: abhinay_agarwal To: rules-users@lists.jboss.org Sent: Tuesday, November 27, 2012 4:36 AM Subject: Re: [rules-users] Inserting Different Objects Of Same C

Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-27 Thread Wolfgang Laun
Entry points are "partitions" of Working Memory. See the "Fusion" manual and Drools' javadoc. List listA = ... WorkingMemoryEntryPoint epListA = kSession.getWorkingMemoryEntryPoint( "listA" ); epListA.insert( listA ); rule matchListA when List(...) from entry-point "listA" then That's a

Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-27 Thread abhinay_agarwal
I was initially using two lists making them global, and it was working for me, but then i read "Globals are not designed to share data between rules and they should never be used for that purpose. Rules always reason and react to the working memory state, so if you want to pass data from rule to

Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-27 Thread abhinay_agarwal
entry point ?? can yu throw me some light on "entry points" ? -- View this message in context: http://drools.46999.n3.nabble.com/Inserting-Different-Objects-Of-Same-Class-tp4020971p4020980.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-27 Thread Wolfgang Laun
Yet another way would be to insert each List into a different entry point so that you might write List( ... ) from entry-point "ListA" AFAIK, you don't have a way of matching any List, though. -W On 27/11/2012, Esteban Aliverti wrote: > Well, there could be another way using one global fo

Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-27 Thread abhinay_agarwal
So i can consider that there is no other way out :( Neways, Thanks for the quick replies ! You guys rock ! -- View this message in context: http://drools.46999.n3.nabble.com/Inserting-Different-Objects-Of-Same-Class-tp4020971p4020976.html Sent from the Drools: User forum mailing list archive a

Re: [rules-users] Inserting Different Objects Of Same Class !

2012-11-26 Thread Wolfgang Laun
You'll have to add the information that isn't available with an anonymous fact object, i.e., a name tied to a reference. class NameFact { String name; Object fact; ... } To identify any fact that hasn't an id in its contents: (a) via a name when NameFact( name == "Chebyshev", $fact:

[rules-users] Inserting Different Objects Of Same Class !

2012-11-26 Thread abhinay_agarwal
hey, I have 3 different ArrayList which i need to populate under different circumstances. I can insert 3 different arraylist(differentiated by there names) but in drools enviroment, how m i suppossed to differentiate them?? Regards, Abhinay -- View this message in context: http://drools.4699