cy
2022-06-22 425675051e544cf29b2132615cfbf7a93dc5e51f
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
package cn.ksource.core.workflow;
 
import java.util.List;
import java.util.Map;
 
import cn.ksource.beans.WORKFLOW_BASE;
import cn.ksource.beans.WORKFLOW_NODE;
 
public interface WorkflowBusinessService {
    
    
    /**
     * 指定环节
     * @param base
     * @param node_template_id
     * @param entity
     * @version V1.0.0
     * @author 杨凯
     * @date May 6, 2015 3:19:03 PM
     */
    public void toNode(WORKFLOW_BASE base,String node_template_id,NodeDealEntity entity);
    
    
    /**
     * 获取当前节点可回退到的节点模板列表
     * @param nodeInstanceId 节点实例编号
     * @return
     */
    public List<Map> getBackTemplateNodeList(String nodeInstanceId);
    
    /**
     * 进入下一环节
     * @param workflowInstanceId 流程实例编号
     * @param nodeInstanceId 节点实例编号
     * @param userId 处理人编号
     * @param result 处理结果
     * @param note 处理意见
     * @return
     */
    public WORKFLOW_BASE toNext(String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note);
    
    /**
     * 进入下一环节,并指定了负责人
     * @param workflowInstanceId 流程实例编号
     * @param nodeInstanceId 节点实例编号
     * @param userId 处理人编号
     * @param result 处理结果
     * @param note 处理意见
     * @param dutyers 负责人
     * @return
     */
    public WORKFLOW_BASE toNext(String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note, List<WorkflowDutyerEntity> dutyers);
    
    /**
     * 进入下一环节,直接到最后一个节点
     * @param workflowInstanceId
     * @param nodeInstanceId
     * @param userId
     * @param result
     * @param note
     * @return
     */
    public WORKFLOW_BASE toLast(String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note);
    
    /**
     * 流程回退
     * @param workflowInstanceId 流程实例编号
     * @param nodeInstanceId 节点实例编号
     * @param userId 处理人编号
     * @param result 处理结果
     * @param note 处理意见
     * @param backNodeTemplateId 回退到的节点模板编号
     * @return
     */
    public WORKFLOW_BASE toBack(String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note, String backNodeTemplateId);
    
    /**
     * 结束流程
     * @param workflowInstanceId
     * @param nodeInstanceId
     * @param userId
     * @param result
     * @param note
     * @return
     */
    public WORKFLOW_BASE finishWorkflow(String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note);
    
    /**
     * 关闭流程
     * @param workflowInstanceId
     * @param nodeInstanceId
     * @param userId
     * @param result
     * @param note
     * @return
     */
    public WORKFLOW_BASE closeWorkflow(String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note);
    
    /**
     * 判断是否是流程环节主要负责人
     * @param nodeId
     * @param userId
     * @return
     */
    public boolean isAdminWorkflowNode(String flowId, String nodeId, String userId);
    
    /**
     * 更新流程状态
     * @param workflowInstanceId
     * @param wfstate
     * @return
     */
    public WORKFLOW_BASE updateWorkflowState(String workflowInstanceId, Integer wfstate);
    
 
    /**
     * 启动智能提醒流程
     * @param businessId
     * @return
     */
    public WORKFLOW_BASE startCIRemindWorkflow(String businessId);
    
    /**
     * 启动健康检查流程
     * @param businessId
     * @return
     */
    public WORKFLOW_BASE startCIHealthWorkflow(String businessId);
    
    /**
     * 获取上个节点信息
     * @param flowId
     * @param nodeId
     * @return
     */
    public WORKFLOW_NODE getLastWorkflowNode(String flowId, String nodeId);
    
    /**
     * 进入指定环节,并指定了负责人
     * @param nodeNum 第几个节点
     * @param workflowInstanceId 流程实例编号
     * @param nodeInstanceId 节点实例编号
     * @param userId 处理人编号
     * @param result 处理结果
     * @param note 处理意见
     * @param dutyers 负责人
     * @return
     */
    public WORKFLOW_BASE toNode(int nodeNum, String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note, List<WorkflowDutyerEntity> dutyers);
    
    /**
     * 启动事件流程
     * @param businessId 业务编号
     * @return
     */
    public WORKFLOW_BASE startIncidentWorkflow(String businessId,String bz);
    /**
     * 入库流程
     */
    public WORKFLOW_BASE startStockWorkflow(String businessId,String bz);
    /**
     * 备件申领流程
     */
    public WORKFLOW_BASE startSpareWorkflow(String businessId,String bz);
    /**
     * 出库申请流程
     */
    public WORKFLOW_BASE startDeliveryWorkflow(String businessId,String bz);
    /**
     * 报损报溢流程
     */
    public WORKFLOW_BASE startOverageLossWorkflow(String businessId,String bz);
 
    /**
     * 出库申请流程
     */
    public WORKFLOW_BASE startInventoryWorkflow(String businessId,String bz);
    /**
     * 启动现场运维流程
     * @param businessId
     * @return
     * @version V1.0.0
     * @author 杨凯
     * @date May 16, 2015 3:11:02 PM
     */
    public WORKFLOW_BASE startIncident_LocalWorkflow(String businessId,String bz);
    
    
    
    /**
     * 启动问题管理流程
     * @param businessId
     * @return
     * @version V1.0.0
     * @author 杨凯
     * @date May 20, 2015 3:12:00 PM
     */
    public WORKFLOW_BASE startQuestionWorkflow(String businessId,String bz);
    
    
    /**
     * 重新设置流程节点处理人
     * @param workflowInstanceId 流程实例编号
     * @param nodeInstanceId 节点实例编号
     * @param userId 处理人编号
     * @param userName 处理人姓名
     * @return
     */
    public WORKFLOW_BASE resetNodeDealer(String workflowInstanceId, String nodeInstanceId, String userId, String userName);
    
    /**
     * 逻辑删除流程
     * @param workflowInstanceId
     * @param nodeInstanceId
     * @param userId
     * @param result
     * @param note
     * @return
     */
    public WORKFLOW_BASE deleteWorkflow(String workflowInstanceId, String nodeInstanceId, String userId, Integer result, String note);
 
    /**
     * 启动标准变更管理流程
     * @param businessId
     * @return
     * @version V1.0.0
     * @author 杨凯
     * @date May 20, 2015 3:12:00 PM
     */
    public WORKFLOW_BASE startChangeWorkflow(String businessId);
    
    /**
     * 启动发布流程
     * @param businessId
     * @return
     */
    public WORKFLOW_BASE startReleaseWorkflow(String businessId,String note);
    
    /**
     * 启动采集流程
     * @param businessId 业务编号
     * @return
     */
    public WORKFLOW_BASE startCIAddWorkflow(String businessId);
}