TimeConfig.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package jnpf.flowable.model.templatenode.nodejson;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import jnpf.flowable.enums.ExtraRuleEnum;
  4. import jnpf.flowable.enums.OperatorEnum;
  5. import lombok.Data;
  6. import java.util.ArrayList;
  7. import java.util.List;
  8. @Data
  9. public class TimeConfig {
  10. //----------------------限时------------------------
  11. /**
  12. * 开始时间 0-接收时间,1-发起时间,2-表单变量
  13. */
  14. @Schema(description = "开始类型")
  15. private Integer nodeLimit = 0;
  16. /**
  17. * 表单字段key
  18. */
  19. @Schema(description = "表单字段key")
  20. private String formField = "";
  21. /**
  22. * 限定时长 默认24 (小时)
  23. */
  24. @Schema(description = "限定时长")
  25. private Integer duringDeal = 24;
  26. //--------------------超时-------------------------
  27. /**
  28. * 超时自动审批
  29. */
  30. @Schema(description = "超时自动审批")
  31. private Boolean overAutoApprove = false;
  32. /**
  33. * 超时次数
  34. */
  35. @Schema(description = "超时次数")
  36. private Integer overAutoApproveTime = 5;
  37. /**
  38. * 超时自动转审
  39. */
  40. @Schema(description = "超时自动转审")
  41. private Boolean overAutoTransfer = false;
  42. /**
  43. * 转审超时次数
  44. */
  45. @Schema(description = "转审超时次数")
  46. private Integer overAutoTransferTime = 5;
  47. /**
  48. * 转审人类型
  49. */
  50. @Schema(description = "转审人类型")
  51. private Integer overTimeType = OperatorEnum.Nominator.getCode();
  52. /**
  53. * 接口主键
  54. */
  55. @Schema(description = "接口主键")
  56. private String interfaceId;
  57. /**
  58. * 模块json
  59. */
  60. @Schema(description = "模块json")
  61. private List<TemplateJsonModel> templateJson = new ArrayList<>();
  62. /**
  63. * 转审人
  64. */
  65. @Schema(description = "转审人")
  66. private List<String> reApprovers = new ArrayList<>();
  67. /**
  68. * 超时审批人,2.同一部门 7.同一角色 3.同一岗位 8.同一分组
  69. */
  70. @Schema(description = "超时审批人")
  71. private Integer overTimeExtraRule = ExtraRuleEnum.organize.getCode();
  72. //---------------------公共----------------------------------
  73. /**
  74. * 超时设置 0.关闭 1.自定义 2.同步发起配置
  75. */
  76. @Schema(description = "超时设置")
  77. private Integer on = 0;
  78. /**
  79. * 第一次时间
  80. * (小时)第一次超时时间默认值0=第一次触发超时事件时间=节点限定时长起始值+节点处理限定时长+设定的第一次超时时间
  81. */
  82. @Schema(description = "第一次时间")
  83. private Integer firstOver = 0;
  84. /**
  85. * 时间间隔(提醒、超时)
  86. */
  87. @Schema(description = "时间间隔")
  88. private Integer overTimeDuring = 2;
  89. }