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

Wolfgang Laun wolfgang.laun at gmail.com
Tue Nov 27 04:44:43 EST 2012


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 <esteban.aliverti at gmail.com> wrote:
> Well, there could be another way using one global for each of your lists
> (the lists should be inserted as fact just like you are doing) and then
> doing something like List( this == globalListA), but I never tried
> something like that.
> I think Wolfgang's recommendation (which is the same you have proposed) is
> the most elegant solution.
>
> Best Regards,
>
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Blog @ http://ilesteban.wordpress.com
>
>
> On Tue, Nov 27, 2012 at 10:28 AM, abhinay_agarwal <
> abhinay_agarwal at infosys.com> wrote:
>
>> 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 at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>


More information about the rules-users mailing list