[rules-users] Using joda-time in drools-fusion

Greg Barton greg_barton at yahoo.com
Tue May 19 12:39:12 EDT 2009


Is it possible to use the joda-time classes as timestamp and interval fields in drools-fusion?  i.e.

declare Foo
    @role( event )
    @timestamp( startTime )
    @duration( interval )
end

...where...

import org.joda.time.DateTime;
import org.joda.time.Interval;

public interface Foo {
  public DateTime getStartTime();
  public Interval getInterval();
}

I tried it and it's not working, but I want to make sure it's possible before I dig in.  There's a dependency in drools for joda-time and I'd like to use it if possible.


      



More information about the rules-users mailing list