I need to compare date from java bean to system date for a rule. I referred
to previous posts, drools expert documentation and tried to come up with a
rule which is not yet working. Please help me for the same.

1. Which package should i import to use DateFactory? It is not in
org.drools.base.evaluators.DateFactory anymore i guess. Is there a better
way to get CurrentSystemDate other than using DateFactory? 

2. In my JavaBean the date has format dd/MM/YYYY. So where do i set this
format to drools.dateformat? In my .drl file or in the java pgm where i load
the .drl file and do insertion of fact objects and fire the rules. 


rule SetTktIssueDate
when
        DateFactory($sysdate : today )
        $br:BillingRecord(tktIssueDate==null || tktIssueDate > sysdate)
then    
        modify($br){setTktIssueDate(sysdate);}

thanks
ABRA2

-- 
View this message in context: 
http://old.nabble.com/Using-DateFormat-and-getting-today%27s-date-in-drools5.0-tp26402736p26402736.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to