public static TaskResponse getTaskResponse(WorkflowTaskEntity taskEntity) {
        if (taskEntity == null) {
            return null;
        }

        TaskResponse taskResponse = TaskResponse.builder()
                .id(taskEntity.getId())
                .type(taskEntity.getType())
                .processId(taskEntity.getProcessId())
                .processName(taskEntity.getProcessName())
                .processDisplayName(taskEntity.getProcessDisplayName())
                .name(taskEntity.getName())
                .displayName(taskEntity.getDisplayName())
                .applicant(taskEntity.getApplicant())
                .approvers(Arrays.asList(taskEntity.getApprovers().split(WorkflowTaskEntity.APPROVERS_DELIMITER)))
                .operator(taskEntity.getOperator())
                .status(TaskStatus.valueOf(taskEntity.getStatus()))
                .remark(taskEntity.getRemark())
                .startTime(taskEntity.getStartTime())
                .endTime(taskEntity.getEndTime())
                .build();

        try {
            JsonNode formData = null;
            if (StringUtils.isNotBlank(taskEntity.getFormData())) {
                formData = JsonUtils.parseTree(taskEntity.getFormData());
            }
            taskResponse.setFormData(formData);
        } catch (Exception e) {
            LOGGER.error("parse task form error: ", e);
            throw new JsonException("parse task form or ext params error, please contact administrator");
        }

        return taskResponse;
    }
Get task response from task entity
inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/util/WorkflowUtils.java