CandidatesService.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package jnpf.flowable.service;
  2. import jnpf.base.service.SuperService;
  3. import jnpf.flowable.entity.CandidatesEntity;
  4. import jnpf.flowable.entity.OperatorEntity;
  5. import jnpf.flowable.entity.TemplateNodeEntity;
  6. import jnpf.flowable.model.task.FlowModel;
  7. import java.util.List;
  8. /**
  9. * 类的描述
  10. *
  11. * @author JNPF@YinMai Info. Co., Ltd
  12. * @version 5.0.x
  13. * @since 2024/4/18 16:01
  14. */
  15. public interface CandidatesService extends SuperService<CandidatesEntity> {
  16. /**
  17. * 获取候选人
  18. *
  19. * @param taskId 任务id
  20. * @param nodeCode 节点编码
  21. */
  22. List<CandidatesEntity> getList(String taskId, String nodeCode);
  23. /**
  24. * 新建
  25. *
  26. * @param fo 参数类
  27. * @param taskId 任务id
  28. * @param nodeEntityList 节点集合
  29. * @param operator 经办实体
  30. */
  31. void create(FlowModel fo, String taskId, List<TemplateNodeEntity> nodeEntityList, OperatorEntity operator);
  32. /**
  33. * 删除
  34. *
  35. * @param taskId 任务主键
  36. * @param nodeIds 节点编码集合
  37. */
  38. void deleteByCodes(String taskId, List<String> nodeIds);
  39. /**
  40. * 删除
  41. *
  42. * @param taskId 任务主键
  43. * @param nodeIds 节点编码
  44. * @param userId 用户主键
  45. */
  46. void delete(String taskId, List<String> nodeIds, List<String> userId);
  47. /**
  48. * 获取选择分支
  49. *
  50. * @param taskId 任务主键
  51. * @param nodeCode 节点编码
  52. */
  53. List<String> getBranch(String taskId, String nodeCode);
  54. /**
  55. * 保存选择分支
  56. *
  57. * @param branchList 选择分支
  58. * @param operator 经办
  59. */
  60. void createBranch(List<String> branchList, OperatorEntity operator);
  61. /**
  62. * 删除选择分支
  63. *
  64. * @param taskId 任务主键
  65. * @param nodeCode 节点编码
  66. */
  67. void deleteBranch(String taskId, String nodeCode);
  68. }