<br> In Drools 4.0, DSL mappings support regexp expressions. "+" is a regexp special character, so you need to escape it in your mapping key (only in the key):<br><br>{name}."{indic}"\+:{value}={name}.putIndicator("{indic}",{name}.get("{indic}")+{value});
<br><br> I believe this will fix your problem.<br><br> []s<br> Edson<br><br><br><div><span class="gmail_quote">2007/9/24, vdelbart <<a href="mailto:delbart.v@mipih.fr">delbart.v@mipih.fr</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi,<br><br>I have this in my DSL consequence :<br><br>{name}."{indic}"+:{value}={name}.putIndicator("{indic}",{name}.get("{indic}")+{value});<br>{name}."{indic}":{value}={name}.putIndicator("{indic}",{value});
<br><br>If I write in my dslr :<br><br>...<br>then<br> ex."eeee"+:200<br> ex."eeee":200<br>end<br><br>the mapping is :<br><br>then<br> ex."eeee"+:200<br>ex.putIndicator("eeee",
ex.get("eeee") + 200);<br>end<br><br>Why I have not this :<br>then<br>ex.putIndicator("eeee",ex.get("eeee") + 200);<br>ex.putIndicator("eeee",200);<br>end<br>:confused::confused:<br>
<br>thanks,<br><br>V.<br><br><br><br><br><br><br>--<br>View this message in context: <a href="http://www.nabble.com/DSL-expression------tf4507913.html#a12856258">http://www.nabble.com/DSL-expression------tf4507913.html#a12856258
</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli
<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>