The error message seems to indicate that the compiler fails to recognize the<br>type of the argument &quot;customer&quot;. Try adding a cast to the type of the argument<br>as given in the function declaration.  - <br><br>Although, I don&#39;t see how this can happen, given that your first posting <br>
accurately reflects the code. Can you provide a complete DRL to reproduce this error?<br><br>-W<br><br><br><div class="gmail_quote">On 21 August 2012 21:53, dxande6 <span dir="ltr">&lt;<a href="mailto:dxande6@qwest.com" target="_blank">dxande6@qwest.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I cleaned up this rule and method quite a bit as an example…..the<br>
getCode(customer), is passing the argument but I still get the same message.<br>
<br>
Unable to Analyse Expression getCode(customer):<br>
[Error: unable to resolve method using strict-mode:<br>
….getCode(java.lang.Object)<br>
<br>
I tried moving the function to the top of the file and ended up with the<br>
same result.<br>
<br>
I’m trying to compile these rules into a pkg file using ANT.  Otherwise, I<br>
can run the rules using the .DRL files and everything works fine.<br>
Configuring the build.xml is proving to be a bit more of a task than<br>
originally thought.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Upgrade-to-5-4-tp4019321p4019323.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-Upgrade-to-5-4-tp4019321p4019323.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>