@Override
    public void validate() {
        super.validate();
        Preconditions.expectNotBlank(type, ErrorCodeEnum.INVALID_PARAMETER, "process type cannot be empty");
        Preconditions.expectNotNull(startEvent, "start event cannot be null");
        Preconditions.expectNotNull(endEvent, "end event cannot be null");

        startEvent.validate();
        endEvent.validate();

        nameToTaskMap.values().forEach(WorkflowTask::validate);
    }
Get workflow task by task name.

@param name workflow task name.
@return workflow task info.
inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/definition/WorkflowProcess.java