OK, in DRL terms this would be something like this (I&#39;ve not checked the syntax, but it gives you an idea):-<br><br><span style="font-family: courier new,monospace;">function boolean isTooOld(Calendar usd, Calendar crd, int age) {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    crd.add(Calendar.DAY_OF_YEAR, age);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    return crd.after(usd);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">rule &quot;old claims&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">when</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    Parameters( $usd : userSpecifiedDate, $param : maxAge )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    Claim( $crd : claimRequestDate )<br>    eval(isTooOld( $usd, $crd, $param ) )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">then</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    System.out.println(&quot;that&#39;s an old claim&quot;);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">end</span><br style="font-family: courier new,monospace;">
<br>I used a function to increase readibility. You could have placed the logic in-line or a helper function on a domain object.<br><br>You should then be able to convert this into a decision table.<br><br>With kind regards,<br>
<br>Mike<br><br><div class="gmail_quote">On 24 February 2011 11:08, sdinoo <span dir="ltr">&lt;<a href="mailto:sdinoo@gmail.com">sdinoo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
lets say instead of =now() I am using a user-specified date(usd). I want to<br>
calculate (usd - claimRequestDate) in the Condition something like &lt;usd -<br>
ClaimREquestDate) &gt; &quot;$param&quot;<br>
<br>
I the data for that condition I want to put an integer say 65 - the rule<br>
should fire when the condition is met<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Date-Condition-in-Decision-tables-tp2565936p2566732.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Date-Condition-in-Decision-tables-tp2565936p2566732.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<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>