c.checkFoo("$1","$2"),
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Alex Esmann
Sent: Thursday, August 20, 2009 10:15 AM
To: Rules Users List
Subject: [rules-users] Decision table problem
Hey
I am using drools with a decision table (XLS). One of the conditions in
the table is a call to a java method, c.checkFoo($1,$2)), where c is of
type Foo. When I first created this method it took 2 integers and that
worked fine, now I need to update it to take to strings instead. I have
updated the method but when trying to it I get some errors.
Some examples of values in the cells for this condition are
[ 901, 910 ]
[ 90AAA, 90ABC]
For the first value I get this error:
The method checkFoo(String, String) in the type Foo is not applicable
for the arguments (int, int)
For the second value I get this error:
The method checkFoo(String, String) in the type Foo is not applicable
for the arguments (int, int)
Syntax error on token "AAA", delete this token
Syntax error on token "AAC", delete this token
How do I convince drools that the values in the cells should be read as
strings and not integers?
Kind Regards
Alex
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
This email and any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. If you have received this
email in error please notify the system manager. This message contains confidential
information and is intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.