[rules-users] Rules Behavior

Edson Tirelli tirelli at post.com
Wed Mar 14 17:21:45 EDT 2007


   Patrick,

   This happens in 3.0.x versions because the way the parser works. This 
problem is solved in 3.1 (trunk). A workaround in 3.0.x is to quote what 
you want to preserv as a String:

[then]Task FORWARD "{fwd}"=task.put("FORWARD","{fwd}");

Task FORWARD    "Joseph Peter,jpeter,approve"

     []s
     Edson
  

Patrick Santana wrote:

> Hello Guys,
>
> I have a .dsl file that contains this:
> [then]Task FORWARD {fwd}=task.put("FORWARD","{fwd}");
>
>
> In my rule file I have:
> Task FORWARD    Joseph Peter,jpeter,approve
>
> obs.: task is a hash.
>
> After the rule run correct, I got this result inside the hash task.
> "Joseph Peter , jpeter , approve". I mean, some spaces were added.
>
> Does anybody know why I have this behavior?
>
>
> Thank you all,
>  
> ____________________
> Patrick Santana
> patrick at digitalbio.be
>
>
> ------------------------------------------------------------------------
> Now you can scan emails quickly with a reading pane 
> <http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/reading_pane/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html>. 
> Get the new Yahoo! Mail 
> <http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/reading_pane/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html>. 
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>rules-users mailing list
>rules-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
>  
>


-- 
 Edson Tirelli
 Software Engineer - JBoss Rules Core Developer
 Office: +55 11 3124-6000
 Mobile: +55 11 9218-4151
 JBoss, a division of Red Hat @ www.jboss.com





More information about the rules-users mailing list