The error message seems to indicate that the compiler fails to recognize the
type of the argument "customer". Try adding a cast to the type of the argument
as given in the function declaration.  -

Although, I don't see how this can happen, given that your first posting
accurately reflects the code. Can you provide a complete DRL to reproduce this error?

-W


On 21 August 2012 21:53, dxande6 <dxande6@qwest.com> wrote:
I cleaned up this rule and method quite a bit as an example…..the
getCode(customer), is passing the argument but I still get the same message.

Unable to Analyse Expression getCode(customer):
[Error: unable to resolve method using strict-mode:
….getCode(java.lang.Object)

I tried moving the function to the top of the file and ended up with the
same result.

I’m trying to compile these rules into a pkg file using ANT.  Otherwise, I
can run the rules using the .DRL files and everything works fine.
Configuring the build.xml is proving to be a bit more of a task than
originally thought.




--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Upgrade-to-5-4-tp4019321p4019323.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users