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

cn.schoolwow.workflow.service.execute.WorkFlowInstanceService Maven / Gradle / Ivy

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

import cn.schoolwow.quickdao.domain.external.PageVo;
import cn.schoolwow.workflow.domain.request.ContextDataRequest;
import cn.schoolwow.workflow.domain.request.StartWorkFlowRequest;
import cn.schoolwow.workflow.domain.request.WorkFlowInstanceQuery;
import cn.schoolwow.workflow.entity.WorkFlowInstance;
import com.alibaba.fastjson.JSONObject;

public interface WorkFlowInstanceService {
    /**
     * 查询单个工作流实例
     * */
    WorkFlowInstance getWorkFlowInstance(WorkFlowInstanceQuery workFlowInstanceQuery);

    /**
     * 查询工作流实例
     * */
    PageVo getWorkFlowInstancePagingList(WorkFlowInstanceQuery workFlowInstanceQuery, int pageNumber, int pageSize);

    /**
     * 查询工作流实例上下文数据
     * @param contextDataRequest 查询请求
     * */
    JSONObject getWorkFlowInstanceContextData(ContextDataRequest contextDataRequest);

    /**
     * 启动工作流实例
     * @param name 工作流定义名称
     * */
    WorkFlowInstance startWorkFlow(String name);

    /**
     * 启动工作流实例
     * @param startWorkFlowRequest 启动工作流请求
     * */
    WorkFlowInstance startWorkFlow(StartWorkFlowRequest startWorkFlowRequest);

    /**
     * 撤销工作流实例
     * @param workFlowInstanceId 工作流实例id
     * */
    void revokeWorkFlowInstance(long workFlowInstanceId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy