[rules-users] LHS functions not in eval()...

Edson Tirelli tirelli at post.com
Sat Sep 1 14:07:58 EDT 2007


   Yes, the only way to call functions is inside eval or RHS. Although,
drools executes some time coercion. Did you tried a direct comparison? I'm
not positive it will work, but you may try.

2007/8/31, wasabifan <bryan.rickman at kewill.com>:
>
>
> I am trying to write a function that takes a numeric value and returns a
> string.  Basically, I have a numeric number I need to match to a string
> number (so I need to convert one to the other type).  I wrote a function
> to
> do this, but it only seems to work in the RHS or inside an eval().
>
> Is there a way to convert numerics to strings (or vice-versa) in the LHS
> not
> in an eval?  Or is a big function inside the eval() the only way to do
> this?
>
> Thanks,
> Bryan
> --
> View this message in context:
> http://www.nabble.com/LHS-functions-not-in-eval%28%29...-tf4362273.html#a12433462
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> 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 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070901/ce8891a6/attachment.html 


More information about the rules-users mailing list