@Override
    protected WorkflowEventLogEntity buildEventLog(WorkflowContext context) {
        WorkflowEventLogEntity workflowEventLogEntity = super.buildEventLog(context);
        workflowEventLogEntity.setTaskId(getTaskId(context));
        return workflowEventLogEntity;
    }
Listener of build even log event.
inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/event/task/LogableTaskEventListener.java