AFAIK compound DSL is not supported; however longer term we are looking to move to a more sophisticated approach using templates that'll allow compound construction.
I tried creating a DSL something like the following:-
[when] there is a QQ with attr equal to {YYY} = there is a Q - with attr
equal to {YYY}
[when]there is a Q = Question()
[when] - with attr equal to {YYY} = attr == "{YYY}"
but I find that the expansion does not seem to work right.
When I use this like
when
there is a QQ with attr equal to abc
then
...
What this expands to is
Question() attr == "abc"
I was hoping that the condition would be put inside the pattern.
Is it not possible to make "compound" DSL statements that use inline "-"
clauses?
Chris Selwyn
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users