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