you will have to use a predicate or an eval, and basically have a utliity method to take a comma seperated list and do the testing for you.

Drools 3.0 doesn't have connective constraints to do it in the constraint language just yet, hence you need a method to do it.

On 10/19/06, EJ <[EMAIL PROTECTED]> wrote:
Hi,

I'm new to Drools, working with an Excel Decision Table and wondering how to go
about the following. I'd like to have a condition that is fulfilled when the
actual value of a (String) property of some bean matches any one item in a comma
(or any other token) separated sequence defined in the decision table.

So my Excel cell will contain a sequence like abc,def,hij,klm,nop and the
condition is fulfilled if the actual bean property value ==
abc||def||hij||klm||nop .

The number of items in the sequence must not be fixed; it has to be possible to
add and remove items in the list without having to change the 'hidden' rule
template.

Thanks,
EJ


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to