[rules-users] Using "in" or "not in" operator in a DSL

Pavel Tavoda pavel.tavoda at gmail.com
Wed May 12 18:16:23 EDT 2010


DSL processor work with TEXT. Try something like this:
[condition][]- person is {years} years old=Age (value in ({years}))

Pavel

On Wed, May 12, 2010 at 2:16 PM, Joerg Herbst
<herbsthannover at googlemail.com> wrote:
> Hi folks,
>
> I'm trying to create a DSL where the user should be able to add a bunch
> of values, as when using the normal rule syntax.
>
> The DSL should look something this:
> when
> person is not "18","21", "100" years old
> then
> normal birthday
> end
>
> My problem is I don't know the number of arguments. When I write a
> normal rule I can say somethink like:
> Age (value in ("18","21","100"))
> But how can I achieve this in a DSL syntax?
>
> Thanks
> Joerg
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list