[rules-users] Re: Problems with Global Date Object

Frank Langelage frank at lafr.de
Mon Aug 27 01:58:28 EDT 2007


Brian Enderle wrote:
> I would like to create a new Date object representing the current date and use 
> that as a global.  I have tried the following:
> 
> (in Java code)
> setGlobal("todaysDate", new Date());
> 
> (in rules file)
> global java.utils.Date todaysDate;
> 
Is this exactly in your rules file?
Then it should be "java.util.Date todaysDate;" instead.




More information about the rules-users mailing list