<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Hi.</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=300315015-03042007><FONT face=Arial 
color=#0000ff size=2>Here is a quick test i was trying to do for calling the dao 
in LHS but it fails .. what am i missing .. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=300315015-03042007><FONT color=#0000ff><FONT 
face=Arial size=2></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=300315015-03042007><FONT color=#0000ff><FONT 
face=Arial size=2>global com.itemfile.item.dao.ItemValidationDao 
itemValidationDao;</FONT></DIV>
<DIV dir=ltr align=left>
<P><FONT face=Arial size=2>global com.itemfile.rules.ValidationErrorMap 
errors;</FONT></P>
<P><FONT face=Arial size=2>rule "Item should have a valid status"</FONT></P>
<P><FONT face=Arial size=2>when</FONT></P>
<P><FONT face=Arial size=2>ItemVo( statusCode : itemStatusCode != 
null)</FONT></P>
<P><FONT color=#ff0000><FONT face=Arial><FONT size=2><STRONG><FONT 
color=#00ff00>ItemVo( statusCode<SPAN class=300315015-03042007> == 
true</SPAN>&nbsp;)</FONT> from 
itemValidationDao.isValidItemStatus(statusCode)</STRONG></FONT></FONT></FONT></P>
<P><FONT face=Arial size=2>then</FONT></P>
<P><FONT face=Arial size=2>errors.addValidationError("nullItemStatusCode","Item 
Status Code is null");</FONT></P>
<P><FONT face=Arial size=2>System.out.println("Item Base Defaults Called" + 
itemValidationDao.isValidItemStatus(statusCode));</FONT></P>
<P><FONT face=Arial size=2>System.out.println("Item Status Code is 
null");</FONT></P>
<P><FONT face=Arial size=2>end</FONT></P>
<DIV dir=ltr align=left><SPAN class=300315015-03042007><FONT face=Arial 
color=#800000 size=2>
<P>Caused by: org.drools.rule.InvalidRulePackage: unknown:32:28 Unexpected token 
'itemValidationDao'</P></FONT></SPAN></DIV>
<P><SPAN class=300315015-03042007><FONT face=Arial><FONT color=#000000><FONT 
size=2>isValidItemStatus<SPAN class=922475718-05042007><FONT 
color=#0000ff>&nbsp;()&nbsp;</FONT></SPAN> method returns a boolean and i need 
to check if thats true than go to the RHS side ....&nbsp;<SPAN 
class=922475718-05042007><FONT color=#0000ff>&nbsp;somehow </FONT></SPAN>it does 
not recognize itemValidationDao in LHS side .. RHS same call works ...&nbsp;<SPAN 
class=922475718-05042007><FONT 
color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></FONT></SPAN></P>
<P><SPAN class=300315015-03042007><FONT face=Arial><FONT><FONT size=2><SPAN 
class=922475718-05042007>&nbsp;</SPAN></FONT></FONT></FONT></SPAN><BR><FONT 
face=Arial size=2><SPAN class=300315015-03042007><SPAN 
class=922475718-05042007>Can anybody suggest how to call database in LHS 
...&nbsp;</SPAN></SPAN></FONT></P>
<P><SPAN class=300315015-03042007><FONT face=Arial><FONT size=2><SPAN 
class=922475718-05042007>thanks</SPAN></FONT></FONT></SPAN></P></DIV></FONT></SPAN></BODY></HTML>


<HTML><BODY><P><hr size=1></P><br>
<P><STRONG><br>
*******************************************************************<br>
*** This email and any files transmitted with it are confidential<br>
and intended solely for the individual or entity to whom they are<br>
addressed. If you have received this email in error destroy it<br>
immediately. ******************************************************<br>
**************** Wal-Mart Confidential ****************************<br>
******************************************<br>
</STRONG></P></BODY></HTML>