public PageResult<TaskResponse> listTask(TaskRequest request) {
        Preconditions.expectNotNull(request, "task request cannot be null");

        Map<String, Object> requestMap = JsonUtils.OBJECT_MAPPER.convertValue(request,
                new TypeReference<Map<String, Object>>() {
                });
        requestMap.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()));
        Response<PageResult<TaskResponse>> response = ClientUtils.executeHttpCall(workflowApi.listTask(requestMap));
        ClientUtils.assertRespSuccess(response);
        return response.getData();
    }
Get task list

@param request workflow task query request
@return task response list
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/WorkflowClient.java