If you look at the implementation of EventFactHandle.getEndTimestamp (not ...eSt...) you'll see why: it returns startTimestamp + duration.
You should *not* use methods that aren't in the stable part of the Drools API. Also, the documentation does not tell you that you can map event attributes to start and end of an event - only the start and the duration. -W On 24/02/2012, youssef azbakh <azbak...@gmail.com> wrote: > Hello every body ! > > I'm a new drools Fusion user, And I'm now facing a real problem which > is that my events attriutes values doesn't go to starttimestam and > endtimestamp, I explain : > > when declaring a new event > > declare Evenement > @role(event) > @startimestamp(attr1) > @endtimestamp(attr2) > end > > > > And in the java code when I call the methods (getStartTimeStamp() end > getEndTimeStamp()) of EventFactHandle object which is used to insert a > nuw event in the working memrory. > > it gives me a very different values of what give (getAttr1() and getAttr2(). > > I want to know what is my error and also what is exactely the > relationship between starttimestamp of EventFactHandle and attr1 ?? > > > Thank you > Merci :) > > -- > Youssef AZBAKH > Elève ingénieur en 3ème année informatique. > Institut National de Statiqtique et d'Economie Appliquée (INSEA). > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users