public static <T extends TaskForm> T parseTaskForm(ObjectMapper objectMapper, WorkflowTaskEntity taskEntity,
            WorkflowProcess process) {
        Preconditions.expectNotNull(taskEntity, "taskEntity cannot be null");
        Preconditions.expectNotNull(process, "process cannot be null");
        if (StringUtils.isEmpty(taskEntity.getFormData())) {
            return null;
        }

        WorkflowTask task = process.getTaskByName(taskEntity.getName());
        Preconditions.expectNotNull(task, "user task not exist " + taskEntity.getName());
        Preconditions.expectTrue(task instanceof UserTask, "task should be userTask " + taskEntity.getName());

        UserTask userTask = (UserTask) task;
        try {
            JavaType javaType = objectMapper.constructType(userTask.getFormClass());
            return objectMapper.readValue(taskEntity.getFormData(), javaType);
        } catch (Exception e) {
            LOGGER.error("parse task form failed for {}", taskEntity.getFormData(), e);
            throw new FormParseException("parse task form failed, please contact the administrator");
        }
    }
Parse the task form in JSON string format into a WorkflowTask instance
inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/util/WorkflowUtils.java