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.
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
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
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
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.
___
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
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
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:
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