On 5 July 2011 10:54, lansyj <lansyjp@gmail.com> wrote:
Hi,

I understand Drools does support enumerated lists of values for checking
conditions and assigning consequences. Am i mistaken?

It's using a Rete network, and I've never heard "enumerated lists of values" in any description of the involved algorithms. Where does this come from?


The ID would be a numeric value of 8 or 12 bytes in length. The Blacklist
validation would be just the basic full word match.

Basically a subset of positive "long" values; if area codes are involved, distribution is not regular (even within a certain number of  digits). But a hash lookup on the String value should give you good performance.

   Subscriber( $addr: address )
   Blacklist( set contains $addr )
then
   refuse...

-W
 

Best Regards

-lj

--
View this message in context: http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140051p3140095.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users