All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.schoolwow.workflow.service.task.WorkFlowTaskService Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package cn.schoolwow.workflow.service.task;

import cn.schoolwow.quickdao.domain.external.PageVo;
import cn.schoolwow.workflow.contant.TaskType;
import cn.schoolwow.workflow.domain.request.CompleteTaskRequest;
import cn.schoolwow.workflow.domain.request.WorkFlowTaskQuery;
import cn.schoolwow.workflow.domain.response.WorkFlowTaskResponse;

import java.util.List;

public interface WorkFlowTaskService {
    /**
     * 查询单个待办任务列表
     * @param workFlowTaskQuery 任务查询请求
     * */
    WorkFlowTaskResponse getSingleTask(WorkFlowTaskQuery workFlowTaskQuery);

    /**
     * 分页查询任务列表
     * @param workFlowTaskQuery 任务查询请求
     * */
    List getTaskList(WorkFlowTaskQuery workFlowTaskQuery);

    /**
     * 分页查询任务列表
     * @param workFlowTaskQuery 任务查询请求
     * @param pageNumber 页码
     * @param pageSize 每页个数
     * */
    PageVo getPagingTaskList(WorkFlowTaskQuery workFlowTaskQuery, int pageNumber, int pageSize);

    /**
     * 完成任务
     * @param taskId 任务id
     * @param taskType 完成任务类型
     * @return 实例是否结束
     * */
    boolean completeTask(long taskId, TaskType taskType);

    /**
     * 完成任务
     * @param completeTaskRequest 完成任务请求
     * @return 实例是否结束
     * */
    boolean completeTask(CompleteTaskRequest completeTaskRequest);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy