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

boy18nj boy18nj at gmail.com
Sat May 7 00:10:10 EDT 2011


[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.



More information about the rules-users mailing list