docs: @Override
    public void recordProcessInstanceStart(ExecutionEntity processInstance, FlowElement startElement) {
      if (isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)) {
        HistoricProcessInstanceEntity historicProcessInstance = getHistoricProcessInstanceEntityManager().create(processInstance); 
        historicProcessInstance.setStartActivityId(startElement.getId());
  
        // Insert historic process-instance
        getHistoricProcessInstanceEntityManager().insert(historicProcessInstance, false);
        
        // Fire event
        ActivitiEventDispatcher activitiEventDispatcher = getEventDispatcher();
        if (activitiEventDispatcher != null && activitiEventDispatcher.isEnabled()) {
          activitiEventDispatcher.dispatchEvent(
              ActivitiEventBuilder.createEntityEvent(ActivitiEventType.HISTORIC_PROCESS_INSTANCE_CREATED, historicProcessInstance));
        }
  
      }
    }