private Integer getTaskId(WorkflowContext context) {
        return context.getActionContext().getTaskEntity().getId();
    }
Listener of build even log event.
inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/event/task/LogableTaskEventListener.java