code: @Override
    public void recordTaskCreated(TaskEntity task, ExecutionEntity execution) {
      if (isHistoryLevelAtLeast(HistoryLevel.AUDIT)) {
        HistoricTaskInstanceEntity historicTaskInstance = getHistoricTaskInstanceEntityManager().create(task, execution);
        getHistoricTaskInstanceEntityManager().insert(historicTaskInstance, false);
      }
      
      recordTaskId(task);
    }
docs: /*
  (non-Javadoc)
  
  @see org.activiti.engine.impl.history.HistoryManagerInterface#recordTaskCreated (org.activiti.engine.impl.persistence.entity.TaskEntity,
  org.activiti.engine.impl.persistence.entity.ExecutionEntity)