[rules-users] Mvel "in" operator and Inline List Question (Elements with range)

mattmadhavan mmadhavan at facs.org
Wed Jan 29 13:22:46 EST 2014


Hello,
I see the example mvel "in" operator for the inline array as follows:


surgeryCode in [00, 12, 13, 15, 19, *20, 21, 22, 23, 24, 25*, 30, 33, 45,
48, 55, 56, 65, 66, 70, 80, 90, 99]
 
If you notice above the codes *21 to 25* are contiguous (Range)

Is it possible to specify in the list a 'short hand' notation like 21-25
like as follows:

surgeryCode in [00, 12, 13, 15, 19, 20, *21-25*, 30, 33, 45, 48, 55, 56, 65,
66, 70, 80, 90, 99]

If Drools does not support it, is writing my own Custom Operator is my only
option?

Thanks in advance!

Matt'M 




--
View this message in context: http://drools.46999.n3.nabble.com/Mvel-in-operator-and-Inline-List-Question-Elements-with-range-tp4027912.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list