<p dir="ltr">You&#39;d have to add both literal values to your enum definition:</p>
<p dir="ltr">USA<br>
.*USA*</p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote">On 13 Jan 2014 08:56, &quot;abhinay_agarwal&quot; &lt;<a href="mailto:abhinay_agarwal@infosys.com">abhinay_agarwal@infosys.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi mike,<br>
<br>
I am using advanced enum concepts, and my drop down values from the database<br>
for a field lets say location.<br>
<br>
When i use simple rule, it works fine. But, lets suppose I have a rule in<br>
which I have to find if a particular string is inside location.<br>
<br>
LOCATION like %USA%;<br>
<br>
So inside guvnor i can write<br>
<br>
LOCATION matches .*USA.*<br>
<br>
But, while using enumerations, I don&#39;t get an option to write that. I can<br>
just write:<br>
<br>
LOCATION matches USA<br>
<br>
which I guess is wrong.<br>
<br>
Please let me know, if I can achieve what I want through guvnor or is it out<br>
of the scope of the application.<br>
<br>
Furthermore, if this functionality doesn&#39;t exists, I guess it would be a<br>
great idea to allow user to decide if he wants to select data from list or<br>
type something, because one rule may want the former and the second rule the<br>
latter.<br>
<br>
Regards,<br>
Abhinay<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Using-both-Drop-Down-Enumeration-and-Text-Field-for-a-field-in-guvnor-tp4027656p4027666.html" target="_blank">http://drools.46999.n3.nabble.com/Using-both-Drop-Down-Enumeration-and-Text-Field-for-a-field-in-guvnor-tp4027656p4027666.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div>