[rules-users] DSL parsing List of Strings

Edson Tirelli tirelli at post.com
Fri Jan 23 13:10:18 EST 2009


   Just don't use {} in the DSLR:

when
    Reaction appears "r1","r2","r3"

   []s
   Edson

2009/1/23 Trägenap <traegenap at ttc-informatik.de>

> Hi,
>
> how I can define a list in a DSL-file?
>
> So user should define a list of comma separated reations (Strings)in a
> DSL-rule-file, like this {"r1","r2","r3"}
>
> This list should be used as parameter for "in"-command.
> I always get:
>
> mismatched input '{' expecting ')
> no viable alternative at input '{' in rule
>
>
>
> DSLR:
> when
>   Reaction appears {"r1","r2","r3"}
>
> DSL:
> [condition][]Reaction appears {reactions}=
> $interactionrequest : Interactionrequest($state in ({reactions}))
>
> Thanks for advice
> Thorsten
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090123/ddbe2eb0/attachment.html 


More information about the rules-users mailing list