[rules-users] How to obtain the timestamp of an event if I don't use an @timestamp attribute?

2011-02-07 Thread OlliSee
Yeah..the topic subject explains itself, I presume :) -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-to-obtain-the-timestamp-of-an-event-if-I-don-t-use-an-timestamp-attribute-tp2443366p2443366.html Sent from the Drools - User mailing list archive at

Re: [rules-users] How to obtain the timestamp of an event if I don't use an @timestamp attribute?

2011-02-07 Thread Wolfgang Laun
An insert call returns a fact handle . If this is of the class org.drools.common.EventFactHandle you can call getStartTimestamp() and other getters. This is not part of the stable API. .W On 7 February 2011 15:10, OlliSee o.ro...@seeburger.de wrote: Yeah..the topic subject explains itself, I

Re: [rules-users] How to obtain the timestamp of an event if I don't use an @timestamp attribute?

2011-02-07 Thread Edson Tirelli
Usually you should not need to obtain the timestamp. What do you need it for? Remember you can always use temporal operators directly on events, no need to access the timestamp. Example: $that : Event1( Event2( this after $that ) Edson 2011/2/7 Wolfgang Laun wolfgang.l...@gmail.com An

Re: [rules-users] How to obtain the timestamp of an event if I don't use an @timestamp attribute?

2011-02-07 Thread Wolfgang Laun
@Edson: What about logging? -W 2011/2/7 Edson Tirelli ed.tire...@gmail.com:    Usually you should not need to obtain the timestamp. What do you need it for? Remember you can always use temporal operators directly on events, no need to access the timestamp. Example: $that : Event1( Event2(