Hey,
Thanks for the fast answer
On Thu, 2009-08-20 at 10:24 -0400, Knapp, Barry wrote:
> c.checkFoo("$1","$2"),
>
When I try that I just get a whole lot of these errors:
[962,140]: [ERR 101] Line 962:140 no viable alternative at input ''
[962,145]: [ERR 101] Line 962:145 no viable alternative at input ''
/Alex
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] 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
> [email protected]
> 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.
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> !DSPAM:4a8d5ca239714658650203!
>
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users