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<String, Object> defineDelete(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 部署流程定义
|
* @param processDefId
|
* @param processDefName
|
* @param version
|
* @return
|
*/
|
public Map<String, Object> definePeploy(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 流程定义分页查询
|
* @param processBig
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> defineSeache(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 创建流程定义
|
* @param processBig
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> defineCreate(Map<String,Object> map) throws TimeoutException;
|
|
/**
|
* 退回流程实例
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instBack(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 设置代理
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> agentCreat(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 创建流程实例
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instCreat(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 撤销流程实例
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instDrawBack(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 结束流程实例
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instOver(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 设置代办
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> chargeCreate(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 执行流程实例
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instFinish(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 查询流程待办
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instSeacheHandle(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 流程实例log(参数为空即查询所有)
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instLog(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 获取所有可退回项目
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> getBack(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 查询代理(参数为空即查询所有信息)
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instAgent(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 查询代理去除流程定义信息
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instAgentDefMsg(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 查询流程实例(参数都为空,即查询所有)
|
* @param processInst
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> instSeache(Map<String,Object> maps) throws TimeoutException;
|
|
/**
|
* 租户注册系统
|
* @param processApp
|
* @return
|
* @throws TimeoutException
|
*/
|
public Map<String, Object> appCreate(Map<String,Object> 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);
|
|
}
|
|
|