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@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@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