TemplateJsonService.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package jnpf.flowable.service;
  2. import jnpf.base.entity.VisualdevEntity;
  3. import jnpf.base.service.SuperService;
  4. import jnpf.exception.WorkFlowException;
  5. import jnpf.flowable.entity.TemplateJsonEntity;
  6. import jnpf.flowable.model.templatejson.TemplateJsonInfoVO;
  7. import jnpf.flowable.model.templatenode.TemplateNodeUpFrom;
  8. import java.util.List;
  9. public interface TemplateJsonService extends SuperService<TemplateJsonEntity> {
  10. /**
  11. * 列表
  12. *
  13. * @return
  14. */
  15. List<TemplateJsonEntity> getListByTemplateIds(List<String> id);
  16. /**
  17. * 列表
  18. *
  19. * @return
  20. */
  21. List<TemplateJsonEntity> getList(String templateId);
  22. /**
  23. * 获取启用的列表
  24. */
  25. List<TemplateJsonEntity> getListOfEnable();
  26. /**
  27. * 信息
  28. *
  29. * @param id 主键值
  30. * @return ignore
  31. */
  32. TemplateJsonEntity getInfo(String id) throws WorkFlowException;
  33. /**
  34. * 更新
  35. *
  36. * @param id 主键值
  37. * @param entity 实体对象
  38. * @return ignore
  39. */
  40. boolean update(String id, TemplateJsonEntity entity);
  41. /**
  42. * 流程保存或发布
  43. *
  44. * @param from 主键值
  45. * @return ignore
  46. */
  47. void save(TemplateNodeUpFrom from) throws WorkFlowException;
  48. /**
  49. * 新增
  50. *
  51. * @param from 对象
  52. * @return ignore
  53. */
  54. void create(TemplateNodeUpFrom from);
  55. /**
  56. * 删除
  57. *
  58. * @param entity 实体对象
  59. */
  60. void delete(TemplateJsonEntity entity);
  61. /**
  62. * 删除
  63. *
  64. * @param id 实体对象
  65. */
  66. void delete(List<String> id);
  67. /**
  68. * 复制
  69. *
  70. * @param entity 实体对象
  71. */
  72. void copy(TemplateJsonEntity entity, String id);
  73. /**
  74. * 版本详情
  75. *
  76. * @param id 版本主键
  77. */
  78. TemplateJsonInfoVO getInfoVo(String id) throws WorkFlowException;
  79. /**
  80. * 获取表单
  81. *
  82. * @param id 版本主键
  83. */
  84. VisualdevEntity getFormInfo(String id) throws WorkFlowException;
  85. }