<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009>I am attempting to work with effective dates in 
decision tables. My decision table has two columns - DATE-EFFECTIVE and 
DATE-EXPIRES; and have a date of date-effective 01/01/2009 and date-expires of 
12/31/2009. So far so good.. After compilation, the code I see has duration 
31/12/2009 - essentially, the compiler seems to have recognised the date. And, I 
get an error that reads - [86,12]: [ERR 102] Line 86:12 mismatched input '/' 
expecting 'then' in rule "CorporateVacations_22"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009>Here's the compiled code snippet with the error - 
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009>#From row number: 22<BR>rule 
"CorporateVacations_22"<BR>&nbsp;<BR>&nbsp;duration 
31/12/2009<BR>&nbsp;&nbsp;ruleflow-group 
"corporatevacations"<BR>&nbsp;&nbsp;when<BR>&nbsp;&nbsp;&nbsp;CorporateHolidays(holidaysList 
contains 
"12252009")<BR>&nbsp;&nbsp;then<BR>&nbsp;&nbsp;&nbsp;if(returnList==null){ 
returnList = new ArrayList();} returnList.add("Christmas Day");<BR>&nbsp; 
end<BR>&nbsp;<BR>&nbsp;[86,12]: [ERR 102] Line 86:12 mismatched input '/' 
expecting 'then' in rule "CorporateVacations_22"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009>Is there any other way of defining the effective and 
expiration days? Is there a correct way of using the dates?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009>Krishna</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=291214615-05052009></SPAN></FONT>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Bhamidi, Krishna <BR><B>Sent:</B> Monday, 
May 04, 2009 5:14 PM<BR><B>To:</B> 'Rules Users List'<BR><B>Subject:</B> 
Effective-date in decision tables<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=235325514-24042009><FONT face=Arial 
size=2><SPAN class=139491021-04052009>Is there a way I can set effective-date 
for rules in decision tables? It does not appear in any of the key-words of a 
decision table syntax.</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=235325514-24042009><FONT face=Arial 
size=2><SPAN class=139491021-04052009></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=235325514-24042009><FONT face=Arial 
size=2><SPAN class=139491021-04052009>Thank you,</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=235325514-24042009><FONT face=Arial 
size=2><SPAN 
class=139491021-04052009>Krishna</SPAN></FONT></SPAN></DIV></BODY></HTML>