package com.changhong.epc.rely.api.service.workFlow; import java.io.IOException; import java.util.Map; import java.util.Optional; import java.util.concurrent.TimeoutException; import javax.servlet.http.HttpServletRequest; import com.changhong.epc.rely.api.bean.Process; import com.changhong.epc.rely.api.service.BaseApi; public interface WorkFlowService { /** * 删除流程定义,批量 * @param processDefIds */ public Map defineDelete(Map maps) throws TimeoutException; /** * 部署流程定义 * @param processDefId * @param processDefName * @param version * @return */ public Map definePeploy(Map maps) throws TimeoutException; /** * 流程定义分页查询 * @param processBig * @return * @throws TimeoutException */ public Map defineSeache(Map maps) throws TimeoutException; /** * 创建流程定义 * @param processBig * @return * @throws TimeoutException */ public Map defineCreate(Map map) throws TimeoutException; /** * 退回流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instBack(Map maps) throws TimeoutException; /** * 设置代理 * @param processInst * @return * @throws TimeoutException */ public Map agentCreat(Map maps) throws TimeoutException; /** * 创建流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instCreat(Map maps) throws TimeoutException; /** * 撤销流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instDrawBack(Map maps) throws TimeoutException; /** * 结束流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instOver(Map maps) throws TimeoutException; /** * 设置代办 * @param processInst * @return * @throws TimeoutException */ public Map chargeCreate(Map maps) throws TimeoutException; /** * 执行流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instFinish(Map maps) throws TimeoutException; /** * 查询流程待办 * @param processInst * @return * @throws TimeoutException */ public Map instSeacheHandle(Map maps) throws TimeoutException; /** * 流程实例log(参数为空即查询所有) * @param processInst * @return * @throws TimeoutException */ public Map instLog(Map maps) throws TimeoutException; /** * 获取所有可退回项目 * @param processInst * @return * @throws TimeoutException */ public Map getBack(Map maps) throws TimeoutException; /** * 查询代理(参数为空即查询所有信息) * @param processInst * @return * @throws TimeoutException */ public Map instAgent(Map maps) throws TimeoutException; /** * 查询代理去除流程定义信息 * @param processInst * @return * @throws TimeoutException */ public Map instAgentDefMsg(Map maps) throws TimeoutException; /** * 查询流程实例(参数都为空,即查询所有) * @param processInst * @return * @throws TimeoutException */ public Map instSeache(Map maps) throws TimeoutException; /** * 租户注册系统 * @param processApp * @return * @throws TimeoutException */ public Map appCreate(Map maps) throws TimeoutException; /** * 初始化租户 * @param tenantId * @param companyId * @return */ Integer initialization(Integer tenantId, Integer companyId); /** * 检查租户是否初始化 * @param tenantId * @param companyId * @return */ Boolean check(Integer tenantId, Integer companyId); }