[rules-users] LHS and value

Mark Proctor mproctor at codehaus.org
Tue Mar 6 11:17:48 EST 2007


line 3 is illegal, you can't just put random java expressions in a LHS. 
instead do:
eval( map.put("uid", "0") != null )

Although you shouldn't be writting to stuff in a LHS.

Patrick Santana wrote:
> Guys,
>
> I have this LHS
>
> 1.            when
> 2.                  map:Map();
> 3.                      map.put("UID","0");
> 4.                  eval(MapUtils.getString(map, 
> "SUPPLIER").equals("{supplier}"));
>
>
>  
> Is it possible what I try to do in the line 3? I'm receiving: 
> unknown:66:18 Unexpected token '"UID"'
>
>
> Thank you very much,
>
> Patrick
> PS.: I'm using a .dsl file. I just removed it from here to simplify.
>
>
>
>
>
> ____________________
> Patrick Santana
> patrick at digitalbio.be
>
>
> ------------------------------------------------------------------------
> New Yahoo! Mail is the ultimate force in competitive emailing. Find 
> out more at the Yahoo! Mail Championships 
> <http://uk.rd.yahoo.com/mail/uk/taglines/default/championships/games/*http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk/>. 
> Plus: play games and win prizes.
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070306/123f5eb5/attachment.html 


More information about the rules-users mailing list