[rules-users] String range compares

Steve Olson SOlson at ameren.com
Tue May 6 11:36:08 EDT 2008


We've hit a situation where the business users would like to specifiy some
facts that have a range check (a 'between' type operation) on fixed length
strings, that are usually short (6 characters or less).  Simple example -
given a range of 'ABC' to 'ABM', this range would match all the character
strings 'ABC', 'ABD', ..., 'ABM'.  We quickly discovered the '<' and '>'
operators don't work with strings, and are wondering if others have solved
this problem other ways.  Searches have shown some discussions about being
able to build something like a custom StringEvaluator that does support '<'
and '>', but we haven't seen enough to know what would be the best path.  If
anyone has suggestions, other than using eval() for all such checks, I'd
appreciate any info.  

Thanks in advance...
-- 
View this message in context: http://www.nabble.com/String-range-compares-tp17085898p17085898.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list