The easiest way to do this is to use regular expressions with matches
Eg
state matches "AZ|CA|NV"
if you don't care about the case then use "(?i)AZ|CA|NV"
You can find details of regex here
http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html
There are also the "in" and memberof keywords which can do similar operations
but regex are probably easier.
Thomas
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
bounces(a)lists.jboss.org] On Behalf Of vadlam
Sent: 08 April 2010 18:16
To: rules-users(a)lists.jboss.org
Subject: [rules-users] How to do operator such as " is one of ("xx",
"yy",
"zz") in a decision tablee
Hi, we are trying to do something like this in a decision table
we need to be able to create a condition like the below in a decision table
condition column. Perhaps one way this can be done is for user to be able to
select mutiple states from a dropdown list of states and then apply the
operator " is one of " on those selections.
State is one of {"AZ","CA","NV"}
Please let me know if this can be done .
Thank you all in advance.
--
View this message in context:
http://n3.nabble.com/How-to-do-operator-such-as-
is-one-of-xx-yy-zz-in-a-decision-tablee-tp706475p706475.html
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes. To protect the environment please
do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United
Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603
8808 40-00
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.
An NDS Group Limited company.
www.nds.com