Ah … I was looking at the original request about being able to set a value 
using a text field or an enumeration. It would appear that’s no longer the 
topic.

For examples like that, you might be better off using a DSL. That way you could 
have a nice phrase with a drop-down menu driven by your enumeration, but the 
code generated could generate DRL with ‘matches'.


On 13 Jan 2014, at 12:35, abhinay_agarwal <abhinay_agar...@infosys.com> wrote:

> 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.
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to