<a href="http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_single/index.html#d0e1802">http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_single/index.html#d0e1802</a><div><br></div>

<div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Fri, Aug 17, 2012 at 4:06 PM, jasonxzhong <span dir="ltr">&lt;<a href="mailto:jason.zhong@ellucian.com" target="_blank">jason.zhong@ellucian.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Sure I&#39;ll explain. Assuming I have the following defined in a DSL:<br>
<br>
[consequence][]Set result &quot;{name}&quot; to {value} = data.results.put(&quot;{name}&quot;,<br>
{value});<br>
<br>
In the guided BRL rule editor, when I choose to use this DSL to add an<br>
action, the following is displayed<br>
<br>
   Set rule flag &quot;[name]&quot; to [value]<br>
<br>
In this case data.results is a map that contains name/value pairs that can<br>
be set be the rules. My questions are:<br>
a. Can I attach a list of valid names to the {name} variable defined in the<br>
DSL?<br>
b. Is it possible to specify a list of valid values for the {value} variable<br>
based on the value of {name} defined in the DSL? For example if<br>
name==&quot;valid&quot;, {value} is in [true, false]. If name==&quot;code&quot;, {value} is in<br>
[1,2,3,4,5]. Or if a helper function can be used for this?<br>
<br>
Thanks,<br>
<br>
Jason<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Specify-enumeration-for-DSL-variables-tp4019228p4019247.html" target="_blank">http://drools.46999.n3.nabble.com/Specify-enumeration-for-DSL-variables-tp4019228p4019247.html</a><br>


<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>