zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
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);
    
}