2
0

new_workflow.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "basic_info": {
  3. "name": "测试工作流001",
  4. "description": "测试工作流描述"
  5. },
  6. "notice_info": {
  7. "title_template": "{title}",
  8. "content_template": "你有一个待办工单:{titile}",
  9. "notice_id_list": [1,2]
  10. },
  11. "field_info_list": [
  12. {
  13. "default_value": "备注内容",
  14. "field_type": "text",
  15. "placeholder": "备注信息",
  16. "field_key": "comment",
  17. "field_name": "备注",
  18. "label": "label content"
  19. }
  20. ],
  21. "node_info_list": [
  22. {
  23. "distribute_type": "direct",
  24. "participant_type": "none",
  25. "remember_last_participant": false,
  26. "name": "发起人新建中",
  27. "allow_retreat": false,
  28. "participant": "",
  29. "f_id": "f_1",
  30. "type": "start",
  31. "node_field_info_list": [
  32. {
  33. "field_key": "comment",
  34. "field_attr": "rwm"
  35. },
  36. {
  37. "field_key": "title",
  38. "field_attr": "rwm"
  39. }
  40. ],
  41. "props": {}
  42. },{
  43. "distribute_type": "direct",
  44. "participant_type": "personal",
  45. "remember_last_participant": false,
  46. "name": "TL审批中",
  47. "allow_retreat": false,
  48. "participant": "1",
  49. "f_id": "f_2",
  50. "type": "common",
  51. "node_field_info_list": [
  52. {
  53. "field_key": "comment",
  54. "field_attr": "r"
  55. },{
  56. "field_key": "title",
  57. "field_attr": "r"
  58. },{
  59. "field_key": "created_at",
  60. "field_attr": "r"
  61. },{
  62. "field_key": "creator.alias",
  63. "field_attr": "r"
  64. }
  65. ],
  66. "node_field": {"comment": "r", "title": "r", "created_at": "r", "creator.alias": "r"},
  67. "props": {}
  68. },{
  69. "distribute_type": "direct",
  70. "participant_type": "personal",
  71. "remember_last_participant": false,
  72. "name": "结束",
  73. "allow_retreat": false,
  74. "participant": "",
  75. "f_id": "f_3",
  76. "type": "end",
  77. "node_field_info_list": [
  78. {
  79. "field_key": "comment",
  80. "field_attr": "r"
  81. },{
  82. "field_key": "title",
  83. "field_attr": "r"
  84. },{
  85. "field_key": "created_at",
  86. "field_attr": "r"
  87. },{
  88. "field_key": "creator.alias",
  89. "field_attr": "r"
  90. }
  91. ],
  92. "props": {}
  93. }
  94. ],
  95. "transition_info_list": [
  96. {
  97. "source_node_f_id": "f_1",
  98. "condition_expression": {},
  99. "field_require_check": true,
  100. "name": "新建",
  101. "destination_node_f_id": "f_2",
  102. "type": "accept",
  103. "alert_text": "",
  104. "props": {}
  105. },
  106. {
  107. "source_node_f_id": "f_2",
  108. "condition_expression": {},
  109. "field_require_check": true,
  110. "name": "同意",
  111. "destination_node_f_id": "f_3",
  112. "type": "accept",
  113. "alert_text": "",
  114. "props": {}
  115. }
  116. ],
  117. "permission_info": {
  118. "admin_id_list": [
  119. 1
  120. ]
  121. },
  122. "hook_info_list":[]
  123. }