cancel
Showing results for 
Search instead for 
Did you mean: 

How ist the duration calculated in History tables?

nikki
Champ in-the-making
Champ in-the-making
Hello together,
I try to analyse the history data of process instances. How is the duration calculated in history tables? If I calculate a duration by deducting End_Time and Start_Time I come to other results, than in history service. So do I have a format problem?
Thanks for your help!
greets Nikki
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Duration (in millis) is calculated based in start and end-time (HistoricScopeInstanceEntity):

public void markEnded(String deleteReason) {
    this.deleteReason = deleteReason;
    this.endTime = ClockUtil.getCurrentTime();
    this.durationInMillis = endTime.getTime() - startTime.getTime();
  }

Are you using MySQL? The timestamp type is only accurate to the second, milliseconds can differ from the actual value used for calculation.

nikki
Champ in-the-making
Champ in-the-making
Thanks for your help!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.