Just don't use {} in the DSLR:
when
Reaction appears "r1","r2","r3"
[]s
Edson
2009/1/23 Trägenap <traegenap(a)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(a)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