规范

超时的定义规范如下:

  1. 1{
  2. 2 id: 'activity_1',
  3. 3 name: 'Review',
  4. 4 type: 'activityUserTask',
  5. 5 options: {
  6. 6 ...
  7. 7 },
  8. 8 behaviors: [
  9. 9 {
  10. 10 id: 'behavior_1',
  11. 11 name: 'Overtime',
  12. 12 type: 'overtime',
  13. 13 color: '#FF3B30',
  14. 14 options: {
  15. 15 cancelActivity: true,
  16. 16 timeDuration: 3000,
  17. 17 },
  18. 18 },
  19. 19 ],
  20. 20},
  • behavior
名称 说明
type overtime
  • options
名称 类型 说明
cancelActivity Boolean 当执行该行为时,是否取消当前节点
timeDuration Number(ms) 超过此时间时执行该行为
timeDate Date,如2022-02-11T22:51:00Z 到达指定时间时执行该行为
  • timeDurationtimeDate只能配置其中一个