[rules-users] How to parametrize method parameters in DSL?

Wolfgang Laun wolfgang.laun at gmail.com
Sat May 7 10:08:37 EDT 2011


The documentation says that any '{' and '}' in the expansion text must be
preceded by '\'.
-W

On 7 May 2011 06:10, boy18nj <boy18nj at gmail.com> wrote:

> [consequence][]Turn on the "{sprinkler}" for "{room}"=modify( {sprinkler}
> ){setOn(true)}
>
> Example in above dsl, I cannot figure out how to parametrize true parameter
> because RHS already contains curly brackets.
>
> If i do like this, it is wrong DSL compilaton throw errors-
> [consequence][]Turn "{on}" the "{sprinkler}" for "{room}"=modify(
> {sprinkler} ){setOn({on})}
>
> Please suggest the correct code.
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-parametrize-method-parameters-in-DSL-tp2910918p2910918.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110507/14975bc8/attachment.html 


More information about the rules-users mailing list