<!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.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2>I wonder whether Drools 5 "Complex Event Processing Support 
(Temporal Reasoning)" might be what you're looking for?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2><A 
href="http://blog.athico.com/2008/07/drools-50-m1-new-and-noteworthy.html">http://blog.athico.com/2008/07/drools-50-m1-new-and-noteworthy.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2>With kind regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=375484909-29012009><FONT face=Arial 
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>David 
  Siefert<BR><B>Sent:</B> 29 January 2009 09:40<BR><B>To:</B> Rules Users 
  List<BR><B>Subject:</B> [rules-users] Working with dates in 
  rules<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>Hi-</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I'm wondering how it would be possible to compare a part of a date in the 
  lhs condition of a rule in a Drool.&nbsp; In other words, I need to compare a 
  date to see if it is&nbsp;<EM>x</EM> days from the current 
  date,&nbsp;<EM>n</EM> hours from current time, etc.&nbsp; Would anyone be kind 
  enough to provide an example?&nbsp; I'm thinking I may have to implement 
  something of my own to offer that functionality?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Big thanks,</DIV>
  <DIV>David</DIV></BLOCKQUOTE></BODY></HTML>