[rules-users] Using both Drop Down(Enumeration) and Text Field for a field in guvnor

abhinay_agarwal abhinay_agarwal at infosys.com
Mon Jan 13 07:35:57 EST 2014


Hi Steve,

I don't see the point how this would resolve my issue ?

Suppose I have name and i have few data in database as John, Frank, Joseph,
John Mc Guin.

Now, to make work easy for business users and to be sure they don't make a
mistake, I want to provide these data as enums in guvnor.

So, the user can check for data like :

name equals John etc.

But, the user has a scenario where he wants to check if John is present in a
name or not. So the condition should be

name equals .*John.*

But, coz I am using enum, no .* functionality is available. 

The only scenario which I can see is (dont know whether it wud work or not)

setName(String name)
{
this.name = ".*" + name + ".*";
}

But how do I make things easy for business users, I can't just overpopulate
the list.

Thanks,
Abhinay



--
View this message in context: http://drools.46999.n3.nabble.com/Using-both-Drop-Down-Enumeration-and-Text-Field-for-a-field-in-guvnor-tp4027656p4027673.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list