package cn.autoform.web.client; import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeoutException; import cn.autoform.db.exten.Process; /** * 工作流引擎 * @author liyanm * */ public interface WorkflowClient { /** * 返回安全码 */ public Map getSystem(Process process) throws TimeoutException, IOException; /** * 删除流程定义,批量 * @param processDefIds */ public Map defineDelete(Process process) throws TimeoutException; /** * 部署流程定义 * @param processDefId * @param processDefName * @param version * @return */ public Map definePeploy(Process process) throws TimeoutException; /** * 流程定义分页查询 * @param processBig * @return * @throws TimeoutException */ public Map defineSeache(Process process) throws TimeoutException; /** * 创建流程定义 * @param processBig * @return * @throws TimeoutException */ public Map defineCreate(Process process) throws TimeoutException; /** * 退回流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instBack(Process process) throws TimeoutException; /** * 设置代理 * @param processInst * @return * @throws TimeoutException */ public Map agentCreat(Process process) throws TimeoutException; /** * 创建流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instCreat(Process process) throws TimeoutException; Map autoFinish(Process process); /** * 撤销流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instDrawBack(Process process) throws TimeoutException; /** * 结束流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instOver(Process process) throws TimeoutException; /** * 设置代办 * @param processInst * @return * @throws TimeoutException */ public Map chargeCreate(Process process) throws TimeoutException; /** * 执行流程实例 * @param processInst * @return * @throws TimeoutException */ public Map instFinish(Process process) throws TimeoutException; /** * 查询流程待办 * @param processInst * @return * @throws TimeoutException */ public Map instSeacheHandle(Process process) throws TimeoutException; /** * 流程实例log(参数为空即查询所有) * @param processInst * @return * @throws TimeoutException */ public Map instLog(Process process) throws TimeoutException; /** * 获取所有可退回项目 * @param processInst * @return * @throws TimeoutException */ public Map getBack(Process process) throws TimeoutException; /** * 查询代理(参数为空即查询所有信息) * @param processInst * @return * @throws TimeoutException */ public Map instAgent(Process process) throws TimeoutException; /** * 查询代理去除流程定义信息 * @param processInst * @return * @throws TimeoutException */ public Map instAgentDefMsg(Process process) throws TimeoutException; /** * 查询流程实例(参数都为空,即查询所有) * @param processInst * @return * @throws TimeoutException */ public Map instSeache(Process process) throws TimeoutException; /** * 租户注册系统 * @param processApp * @return * @throws TimeoutException */ public Map appCreate(Process process) throws TimeoutException; /** * 初始化接口 * @param process * @return * @throws TimeoutException */ public Map initialization(Process process) throws TimeoutException; /** * 检查初始化状态 * @param process * @return * @throws TimeoutException */ public Map check(Process process) throws TimeoutException; /** *查询需要指派的参与者列表 */ Map querypeople(Process process) throws TimeoutException; /** * 指派后续活动参与者 */ Map setp(Process process) throws TimeoutException; }