public static WorkflowResult getResult(WorkflowContext context) {
        if (context == null) {
            return null;
        }

        WorkflowResult workflowResult = new WorkflowResult();
        workflowResult.setProcessInfo(WorkflowUtils.getProcessResponse(context.getProcessEntity()));
        if (context.getActionContext() != null) {
            ActionContext newAction = context.getActionContext();
            workflowResult.setNewTasks(Lists.newArrayList(WorkflowUtils.getTaskResponse(newAction.getTaskEntity())));
        }
        return workflowResult;
    }
Get the workflow result from the given workflow context
inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/util/WorkflowUtils.java