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

Wolfgang Laun wolfgang.laun at gmail.com
Mon Feb 7 11:01:26 EST 2011


@Edson: What about logging?
-W

2011/2/7 Edson Tirelli <ed.tirelli at 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( this after $that )
>    Edson
>
> 2011/2/7 Wolfgang Laun <wolfgang.laun at gmail.com>
>>
>> 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.roess at seeburger.de> wrote:
>> >
>> > 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 Nabble.com.
>> > _______________________________________________
>> > rules-users mailing list
>> > rules-users at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/rules-users
>> >
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> --
>   Edson Tirelli
>   JBoss Drools Core Development
>   JBoss by Red Hat @ www.jboss.com
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>




More information about the rules-users mailing list