OperatorService.java 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. package jnpf.flowable.service;
  2. import jnpf.base.Pagination;
  3. import jnpf.base.service.SuperService;
  4. import jnpf.exception.WorkFlowException;
  5. import jnpf.flowable.entity.OperatorEntity;
  6. import jnpf.flowable.model.candidates.CandidateCheckVo;
  7. import jnpf.flowable.model.candidates.CandidateUserVo;
  8. import jnpf.flowable.model.operator.FlowBatchModel;
  9. import jnpf.flowable.model.operator.OperatorVo;
  10. import jnpf.flowable.model.task.FlowModel;
  11. import jnpf.flowable.model.task.TaskPagination;
  12. import jnpf.flowable.model.templatenode.BackNodeModel;
  13. import jnpf.model.FlowWorkListVO;
  14. import jnpf.permission.model.user.WorkHandoverModel;
  15. import java.util.List;
  16. import java.util.Map;
  17. /**
  18. * 类的描述
  19. *
  20. * @author JNPF@YinMai Info. Co., Ltd
  21. * @version 5.0.x
  22. * @since 2024/4/18 15:29
  23. */
  24. public interface OperatorService extends SuperService<OperatorEntity> {
  25. /**
  26. * 经办实体
  27. *
  28. * @param id 经办主键
  29. */
  30. OperatorEntity getInfo(String id) throws WorkFlowException;
  31. /**
  32. * 列表
  33. *
  34. * @param taskId 任务主键
  35. */
  36. List<OperatorEntity> getList(String taskId);
  37. /**
  38. * 列表
  39. *
  40. * @param pagination 参数
  41. */
  42. List<OperatorVo> getList(TaskPagination pagination);
  43. /**
  44. * 处理经办
  45. *
  46. * @param flowModel 参数
  47. */
  48. List<OperatorEntity> handleOperator(FlowModel flowModel) throws Exception;
  49. /**
  50. * 同意
  51. *
  52. * @param id 经办主键
  53. * @param flowModel 参数
  54. */
  55. void auditWithCheck(String id, FlowModel flowModel) throws Exception;
  56. /**
  57. * 同意
  58. *
  59. * @param id 经办主键
  60. * @param flowModel 参数
  61. */
  62. void audit(String id, FlowModel flowModel) throws Exception;
  63. /**
  64. * 同意(发起时自动通过)
  65. *
  66. * @param operator 经办实体
  67. * @param flowModel 参数
  68. */
  69. void audit(OperatorEntity operator, FlowModel flowModel) throws Exception;
  70. /**
  71. * 签收
  72. *
  73. * @param flowModel 参数,ids 、type 0 签收 1 退签
  74. */
  75. void sign(FlowModel flowModel) throws WorkFlowException;
  76. /**
  77. * 开始办理
  78. *
  79. * @param flowModel 参数,ids
  80. */
  81. void startHandle(FlowModel flowModel) throws WorkFlowException;
  82. /**
  83. * 暂存
  84. *
  85. * @param id 经办主键
  86. * @param flowModel 参数
  87. */
  88. void saveAudit(String id, FlowModel flowModel) throws WorkFlowException;
  89. /**
  90. * 加签
  91. *
  92. * @param id 经办主键
  93. * @param flowModel 参数
  94. */
  95. void addSign(String id, FlowModel flowModel) throws Exception;
  96. /**
  97. * 获取加签的人
  98. *
  99. * @param id 经办主键
  100. * @param pagination 参数
  101. */
  102. List<CandidateUserVo> getReduceList(String id, Pagination pagination) throws WorkFlowException;
  103. /**
  104. * 减签
  105. *
  106. * @param id 记录主键
  107. * @param flowModel 参数
  108. */
  109. void reduce(String id, FlowModel flowModel) throws WorkFlowException;
  110. /**
  111. * 获取退回的节点
  112. *
  113. * @param id 经办主键
  114. */
  115. List<BackNodeModel> getFallbacks(String id) throws WorkFlowException;
  116. /**
  117. * 退回
  118. *
  119. * @param id 经办主键
  120. * @param flowModel 参数
  121. */
  122. void back(String id, FlowModel flowModel) throws Exception;
  123. /**
  124. * 撤回
  125. *
  126. * @param id 记录主键
  127. * @param flowModel 参数
  128. */
  129. void recall(String id, FlowModel flowModel) throws WorkFlowException;
  130. /**
  131. * 转审
  132. *
  133. * @param id 经办主键
  134. * @param flowModel 参数
  135. */
  136. void transfer(String id, FlowModel flowModel) throws Exception;
  137. /**
  138. * 协办
  139. *
  140. * @param id 经办主键
  141. * @param flowModel 参数
  142. */
  143. void assist(String id, FlowModel flowModel) throws WorkFlowException;
  144. /**
  145. * 协办保存
  146. *
  147. * @param id 经办主键
  148. * @param flowModel 参数
  149. */
  150. void assistSave(String id, FlowModel flowModel) throws WorkFlowException;
  151. /**
  152. * 批量审批流程分类列表
  153. */
  154. List<FlowBatchModel> batchFlowSelector();
  155. /**
  156. * 批量审批流程版本列表
  157. *
  158. * @param templateId 流程定义主键
  159. */
  160. List<FlowBatchModel> batchVersionSelector(String templateId);
  161. /**
  162. * 批量审批节点列表
  163. *
  164. * @param flowId 流程定义版本主键
  165. */
  166. List<FlowBatchModel> batchNodeSelector(String flowId);
  167. /**
  168. * 批量审批节点属性
  169. *
  170. * @param flowModel 参数
  171. */
  172. Map<String, Object> batchNode(FlowModel flowModel) throws WorkFlowException;
  173. /**
  174. * 批量审批获取候选人
  175. *
  176. * @param flowId 版本主键
  177. * @param operatorId 经办主键
  178. * @param batchType 类型,0.同意 1.拒绝
  179. */
  180. CandidateCheckVo batchCandidates(String flowId, String operatorId, Integer batchType) throws WorkFlowException;
  181. /**
  182. * 批量审批
  183. *
  184. * @param flowModel 参数
  185. */
  186. void batch(FlowModel flowModel) throws Exception;
  187. /**
  188. * 流程交接
  189. *
  190. * @param fromId 移交人
  191. */
  192. FlowWorkListVO flowWork(String fromId);
  193. /**
  194. * 流程交接
  195. *
  196. * @param workHandoverModel 参数
  197. */
  198. boolean flowWork(WorkHandoverModel workHandoverModel);
  199. }