Hi there… When implement a history event listener, I found in the END event for external task activity, the getStartTime & getDurationInMillis() function always return NULL.
It does not happen for other activities as far as I can tell, but only for the external task.
Is it a bug?
BTW, Camunda version: 7.17.6-ee. The start event for external task includes the start time though.
@EventListener(condition="#historyEvent.eventType==‘end’ ")
public void onHistoryEvent(HistoryEvent historyEvent) {
System.out.println(historyEvent.getStartTime());
System.out.println(historyEvent.getDurationInMillis());
}
Thanks
The user task is the same issue. Below is output for the historyevent object. You can see the durationInMillis, starttime is null. Anyone can help?
HistoricActivityInstanceEventEntity[activityId=Activity_021ooo7, activityName=Human Review, activityType=userTask , activityInstanceId=Activity_021ooo7:85d45172-4e14-11ed-8ac1-0242e60c4e84, activityInstanceState=4, parentActivityInstanceId=85ca6650-4e14-11ed-8ac1-0242e60c4e84, calledProcessInstanceId=null, calledCaseInstanceId=null, taskId=null, taskAssignee=null, durationInMillis=null, startTime=null, endTime=Mon Oct 17 08:10:17 EDT 2022, eventType=end, executionId=85d45171-4e14-11ed-8ac1-0242e60c4e84, processDefinitionId=Mega_Journey_1:1:76116fad-4e14-11ed-8ac1-0242e60c4e84, rootProcessInstanceId=85ca6650-4e14-11ed-8ac1-0242e60c4e84, processInstanceId=85ca6650-4e14-11ed-8ac1-0242e60c4e84, tenantId=null]
Noticed the same for processes. StartTime is NULL