docs: @Override
    public void recordTaskProcessDefinitionChange(String taskId, String processDefinitionId) {
      if (isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)) {
        HistoricTaskInstanceEntity historicTaskInstance = getHistoricTaskInstanceEntityManager().findById(taskId);
        if (historicTaskInstance != null) {
          historicTaskInstance.setProcessDefinitionId(processDefinitionId);
        }
      }
    }