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):
{name}."{indic}"\+:{value}={name}.putIndicator("{indic}",{name}.get("{indic}")+{value});
I believe this will fix your problem.
[]s
Edson
Hi,
I have this in my DSL consequence :
{name}."{indic}"+:{value}={name}.putIndicator("{indic}",{name}.get("{indic}")+{value});
{name}."{indic}":{value}={name}.putIndicator("{indic}",{value});
If I write in my dslr :
...
then
ex."eeee"+:200
ex."eeee":200
end
the mapping is :
then
ex."eeee"+:200
ex.putIndicator("eeee", ex.get("eeee") + 200);
end
Why I have not this :
then
ex.putIndicator("eeee",ex.get("eeee") + 200);
ex.putIndicator("eeee",200);
end
:confused::confused:
thanks,
V.
--
View this message in context: http://www.nabble.com/DSL-expression------tf4507913.html#a12856258
Sent from the drools - user mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users