@steedos-labs/plugin-workflow 3.0.0-beta.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/main/default/client/instance.client.js +6 -6
  2. package/main/default/client/object_workflows.client.js +8 -7
  3. package/main/default/manager/import.js +17 -1
  4. package/main/default/manager/push_manager.js +20 -12
  5. package/main/default/manager/uuflowManagerForInitApproval.js +794 -0
  6. package/main/default/manager/uuflow_manager.js +53 -4
  7. package/main/default/manager/workflow_manager.js +1 -1
  8. package/main/default/methods/trace_approve_cc.js +568 -0
  9. package/main/default/objectTranslations/flows.en/flows.en.objectTranslation.yml +19 -0
  10. package/main/default/objectTranslations/flows.zh-CN/flows.zh-CN.objectTranslation.yml +19 -0
  11. package/main/default/objectTranslations/instance_tasks.en/instance_tasks.en.objectTranslation.yml +211 -0
  12. package/main/default/objectTranslations/instance_tasks.zh-CN/instance_tasks.zh-CN.objectTranslation.yml +211 -0
  13. package/main/default/objectTranslations/instances.en/instances.en.objectTranslation.yml +212 -0
  14. package/main/default/objectTranslations/instances.zh-CN/instances.zh-CN.objectTranslation.yml +209 -0
  15. package/main/default/objects/categories.object.yml +1 -0
  16. package/main/default/objects/flows/buttons/del.button.yml +7 -10
  17. package/main/default/objects/flows/buttons/design_form_layout.button.js +5 -2
  18. package/main/default/objects/flows/buttons/distributeAdmin.button.yml +5 -5
  19. package/main/default/objects/flows/buttons/newexport.button.yml +1 -1
  20. package/main/default/objects/flows/buttons/newimport.button.yml +2 -1
  21. package/main/default/objects/flows/flows.object.yml +12 -4
  22. package/main/default/objects/forms/forms.object.yml +39 -0
  23. package/main/default/objects/instance_tasks/buttons/instance_new.button.yml +3 -5
  24. package/main/default/objects/instances/buttons/instance_cc.button.yml +7 -7
  25. package/main/default/objects/instances/buttons/instance_delete.button.yml +2 -2
  26. package/main/default/objects/instances/buttons/instance_delete_many.button.yml +6 -6
  27. package/main/default/objects/instances/buttons/instance_distribute.button.yml +14 -13
  28. package/main/default/objects/instances/buttons/instance_flow_chart.button.yml +1 -1
  29. package/main/default/objects/instances/buttons/instance_forward.button.yml +8 -8
  30. package/main/default/objects/instances/buttons/instance_new.button.yml +3 -5
  31. package/main/default/objects/instances/buttons/instance_reassign.button.yml +1 -16
  32. package/main/default/objects/instances/buttons/instance_related.button.yml +4 -4
  33. package/main/default/objects/instances/buttons/instance_relocate.button.yml +9 -12
  34. package/main/default/objects/instances/buttons/instance_retrieve.button.yml +106 -2
  35. package/main/default/objects/instances/buttons/instance_save.button.yml +3 -9
  36. package/main/default/objects/instances/buttons/instance_submit.button.yml +1 -1
  37. package/main/default/objects/instances/buttons/instance_terminate.button.yml +7 -10
  38. package/main/default/objects/instances/listviews/monitor.listview.yml +0 -1
  39. package/main/default/pages/flowdetail.page.amis.json +9 -9
  40. package/main/default/pages/instance_detail.page.amis.json +3 -3
  41. package/main/default/pages/instance_tasks_detail.page.amis.json +3 -3
  42. package/main/default/pages/instance_tasks_list.page.amis.json +147 -110
  43. package/main/default/pages/instances_list.page.amis.json +146 -110
  44. package/main/default/routes/am.router.js +49 -2
  45. package/main/default/routes/api_cc.router.js +5 -12
  46. package/main/default/routes/api_flow_permission.router.js +7 -2
  47. package/main/default/routes/api_get_object_workflows.router.js +79 -22
  48. package/main/default/routes/api_object_workflow_drafts.router.js +18 -19
  49. package/main/default/routes/api_workflow_chart.router.js +682 -0
  50. package/main/default/routes/api_workflow_engine.router.js +1 -1
  51. package/main/default/routes/api_workflow_instance_return.router.js +164 -167
  52. package/main/default/routes/api_workflow_next_step_users.router.js +13 -8
  53. package/main/default/routes/api_workflow_reassign.router.js +200 -196
  54. package/main/default/routes/api_workflow_relocate.router.js +2 -2
  55. package/main/default/routes/api_workflow_retrieve.router.js +246 -237
  56. package/main/default/routes/export.router.js +5 -4
  57. package/main/default/routes/flow_form_design.ejs +33 -8
  58. package/main/default/routes/flow_form_design.router.js +4 -3
  59. package/main/default/routes/import.router.js +6 -7
  60. package/main/default/services/flows.service.js +1 -1
  61. package/main/default/translations/en.translation.yml +5 -0
  62. package/main/default/translations/zh-CN.translation.yml +2 -1
  63. package/main/default/triggers/amis_form_design.trigger.js +27 -5
  64. package/main/default/triggers/instances.trigger.js +9 -7
  65. package/main/default/utils/designerManager.js +12 -5
  66. package/package.json +4 -4
  67. package/package.service.js +21 -7
  68. package/public/workflow/index.css +4 -0
  69. package/src/instance_record_queue.js +1 -3
  70. package/src/rests/api_workflow_instance_batch_remove.js +4 -3
  71. package/src/webhook_queue.js +283 -0
  72. package/main/default/manager/index.js +0 -23
@@ -285,6 +285,8 @@ actions:
285
285
  label: 流程设计器
286
286
  designForm:
287
287
  label: 表单设计器
288
+ design_form_layout:
289
+ label: 表单设计器(New)
288
290
  enableFlow:
289
291
  label: 启用
290
292
  disableFlow:
@@ -307,8 +309,25 @@ actions:
307
309
  label: 删除
308
310
  addFormFields:
309
311
  label: 添加字段
312
+ del:
313
+ label: 删除
310
314
  CustomLabels:
311
315
  import_flows_error_title: 导入失败
312
316
  import_flows_error_not_find_object: '未找到对象[ %s ]'
313
317
  import_flows_error_not_allow_enable_workflow: '对象[ %s ]未启用配置对象流程'
314
318
  import_flows_error_not_find_fields: '缺少字段[ %s ]'
319
+ flows_action_del_dialog_title: 删除流程
320
+ flows_action_del_dialog_field_flowName: 为了确保安全,请输入您要删除的流程名(同时会删除相关的申请单)
321
+ flows_action_del_dialog_error_not_same: 请确认, 输入的名称与流程名称不一致
322
+ flows_action_del_dialog_message_success: 操作成功
323
+ flows_action_del_dialog_message_failed: 操作失败
324
+ flows_action_distributeAdmin_dialog_error_not_find_step: 请先在流程设计器的步骤中, 设置允许分发的步骤
325
+ flows_action_distributeAdmin_dialog_field_distribute_optional_users_id: 流程被分发时分发对象选择范围
326
+ flows_action_distributeAdmin_dialog_field_distribute_to_self: 分发时可分发给自己
327
+ flows_action_distributeAdmin_dialog_field_distribute_end_notification: 分发结束后提醒发起人
328
+ flows_action_distributeAdmin_dialog_field_upload_after_being_distributed: 被分发后是否允许上传附件
329
+ flows_page_record_field_form_name: 表单名称
330
+ flows_page_record_field_form_description: 表单描述
331
+ flows_page_record_field_form_name_forumla: 标题公式
332
+ flows_page_record_field_form_script: 表单脚本
333
+ flows_page_record_action_edit_dialog_title: 编辑表单
@@ -0,0 +1,211 @@
1
+ name: instance_tasks
2
+ label: Approval
3
+ description:
4
+ fields:
5
+ applicant:
6
+ label: Applicant
7
+ help:
8
+ description:
9
+ applicant_name:
10
+ label: Applicant Name
11
+ help:
12
+ description:
13
+ applicant_organization_name:
14
+ label: Applicant Organization Name
15
+ help:
16
+ description:
17
+ category:
18
+ label: Category
19
+ help:
20
+ description:
21
+ category_name:
22
+ label: Category Name
23
+ help:
24
+ description:
25
+ cost_time:
26
+ label: Cost Time
27
+ help:
28
+ description:
29
+ deadline:
30
+ label: Deadline
31
+ help:
32
+ description:
33
+ description:
34
+ label: Description
35
+ help:
36
+ description:
37
+ distribute_from_instance:
38
+ label: Distribute From Instance
39
+ help:
40
+ description:
41
+ due_date:
42
+ label: Due Date
43
+ help:
44
+ description:
45
+ extras:
46
+ label: Extras
47
+ help:
48
+ description:
49
+ finish_date:
50
+ label: Finished Date
51
+ help:
52
+ description:
53
+ flow:
54
+ label: Workflow
55
+ help:
56
+ description:
57
+ flow_name:
58
+ label: Workflow Name
59
+ help:
60
+ description:
61
+ form:
62
+ label: Form
63
+ help:
64
+ description:
65
+ forward_from_instance:
66
+ label: Forwarding source Instance
67
+ help:
68
+ description:
69
+ handler:
70
+ label: Handler
71
+ help:
72
+ description:
73
+ handler_name:
74
+ label: Handler Name
75
+ help:
76
+ description:
77
+ handler_organization:
78
+ label: Handler Organization
79
+ help:
80
+ description:
81
+ handler_organization_fullname:
82
+ label: Handler Organization FullName
83
+ help:
84
+ description:
85
+ handler_organization_name:
86
+ label: Handler Organization Name
87
+ help:
88
+ description:
89
+ instance:
90
+ label: Instance
91
+ help:
92
+ description:
93
+ instance_name:
94
+ label: Instance Title
95
+ help:
96
+ description:
97
+ instance_state:
98
+ label: Processing State
99
+ help:
100
+ options:
101
+ - label: Draft
102
+ value: draft
103
+ - label: Pending
104
+ value: pending
105
+ - label: Completed
106
+ value: completed
107
+ description:
108
+ is_archived:
109
+ label: Archived
110
+ help:
111
+ description:
112
+ is_error:
113
+ label: Error
114
+ help:
115
+ description:
116
+ is_finished:
117
+ label: Finished
118
+ help:
119
+ description:
120
+ is_latest_approve:
121
+ label: Is it the latest approval record of the same user in the same application form
122
+ help:
123
+ description:
124
+ is_read:
125
+ label: Read
126
+ help:
127
+ description:
128
+ keywords:
129
+ label: Keywords
130
+ help:
131
+ description:
132
+ next_steps.$.step:
133
+ label: Step
134
+ help:
135
+ description:
136
+ next_steps.$.users:
137
+ label: Step users
138
+ help:
139
+ description:
140
+ next_steps:
141
+ label: Next Step
142
+ help:
143
+ description:
144
+ read_date:
145
+ label: Read Date
146
+ help:
147
+ description:
148
+ remind_date:
149
+ label: Reminder time for urging
150
+ help:
151
+ description:
152
+ reminded_count:
153
+ label: The number of reminders for urging
154
+ help:
155
+ description:
156
+ sign_show:
157
+ label: Show Signature
158
+ help:
159
+ description:
160
+ start_date:
161
+ label: Start Date
162
+ help:
163
+ description:
164
+ step:
165
+ label: Step
166
+ help:
167
+ description:
168
+ step_name:
169
+ label: Step Name
170
+ help:
171
+ description:
172
+ submit_date:
173
+ label: Submit Date
174
+ help:
175
+ description:
176
+ submitter:
177
+ label: Submitter
178
+ help:
179
+ description:
180
+ submitter_name:
181
+ label: Submitter Name
182
+ help:
183
+ description:
184
+ trace:
185
+ label: Trace
186
+ help:
187
+ description:
188
+ type:
189
+ label:
190
+ help:
191
+ description:
192
+ user:
193
+ label: User
194
+ help:
195
+ description:
196
+ user_name:
197
+ label: User Name
198
+ help:
199
+ description:
200
+ values:
201
+ label: Form Values
202
+ help:
203
+ description:
204
+ listviews:
205
+ inbox:
206
+ label: Inbox
207
+ outbox:
208
+ label: Outbox
209
+ actions:
210
+ instance_new:
211
+ label: New
@@ -0,0 +1,211 @@
1
+ name: instance_tasks
2
+ label: 审批
3
+ description:
4
+ fields:
5
+ applicant:
6
+ label: 申请单申请人
7
+ help:
8
+ description:
9
+ applicant_name:
10
+ label: 申请单申请人姓名
11
+ help:
12
+ description:
13
+ applicant_organization_name:
14
+ label: 申请单申请人所属组织名称
15
+ help:
16
+ description:
17
+ category:
18
+ label: 分类
19
+ help:
20
+ description:
21
+ category_name:
22
+ label: 分类名称
23
+ help:
24
+ description:
25
+ cost_time:
26
+ label: 花费时间
27
+ help:
28
+ description:
29
+ deadline:
30
+ label: 催办截止时间
31
+ help:
32
+ description:
33
+ description:
34
+ label: 备注
35
+ help:
36
+ description:
37
+ distribute_from_instance:
38
+ label: 分发来源申请单
39
+ help:
40
+ description:
41
+ due_date:
42
+ label: 截止时间
43
+ help:
44
+ description:
45
+ extras:
46
+ label: Extras
47
+ help:
48
+ description:
49
+ finish_date:
50
+ label: 完成时间
51
+ help:
52
+ description:
53
+ flow:
54
+ label: 流程
55
+ help:
56
+ description:
57
+ flow_name:
58
+ label: 流程名称
59
+ help:
60
+ description:
61
+ form:
62
+ label: 表单
63
+ help:
64
+ description:
65
+ forward_from_instance:
66
+ label: 转发来源申请单
67
+ help:
68
+ description:
69
+ handler:
70
+ label: 实际处理人
71
+ help:
72
+ description:
73
+ handler_name:
74
+ label: 实际处理人姓名
75
+ help:
76
+ description:
77
+ handler_organization:
78
+ label: 实际处理人所属组织
79
+ help:
80
+ description:
81
+ handler_organization_fullname:
82
+ label: 实际处理人所属组织全称
83
+ help:
84
+ description:
85
+ handler_organization_name:
86
+ label: 实际处理人所属组织名称
87
+ help:
88
+ description:
89
+ instance:
90
+ label: 申请单
91
+ help:
92
+ description:
93
+ instance_name:
94
+ label: 文件标题
95
+ help:
96
+ description:
97
+ instance_state:
98
+ label: 申请单状态
99
+ help:
100
+ options:
101
+ - label: 草稿
102
+ value: draft
103
+ - label: 进行中
104
+ value: pending
105
+ - label: 已完成
106
+ value: completed
107
+ description:
108
+ is_archived:
109
+ label: 是否已归档
110
+ help:
111
+ description:
112
+ is_error:
113
+ label: 是否报错
114
+ help:
115
+ description:
116
+ is_finished:
117
+ label: 是否已完成
118
+ help:
119
+ description:
120
+ is_latest_approve:
121
+ label: 是否是同一个用户在同一个申请单中最新的审批记录
122
+ help:
123
+ description:
124
+ is_read:
125
+ label: 已读
126
+ help:
127
+ description:
128
+ keywords:
129
+ label: 关键字
130
+ help:
131
+ description:
132
+ next_steps.$.step:
133
+ label: 步骤
134
+ help:
135
+ description:
136
+ next_steps.$.users:
137
+ label: 步骤处理人
138
+ help:
139
+ description:
140
+ next_steps:
141
+ label: 下一步
142
+ help:
143
+ description:
144
+ read_date:
145
+ label: 已读时间
146
+ help:
147
+ description:
148
+ remind_date:
149
+ label: 催办提醒时间
150
+ help:
151
+ description:
152
+ reminded_count:
153
+ label: 催办提醒次数
154
+ help:
155
+ description:
156
+ sign_show:
157
+ label: 显示签名
158
+ help:
159
+ description:
160
+ start_date:
161
+ label: 开始时间
162
+ help:
163
+ description:
164
+ step:
165
+ label: 步骤
166
+ help:
167
+ description:
168
+ step_name:
169
+ label: 步骤名称
170
+ help:
171
+ description:
172
+ submit_date:
173
+ label: 提交时间
174
+ help:
175
+ description:
176
+ submitter:
177
+ label: 申请单提交人
178
+ help:
179
+ description:
180
+ submitter_name:
181
+ label: 提交人姓名
182
+ help:
183
+ description:
184
+ trace:
185
+ label: Trace
186
+ help:
187
+ description:
188
+ type:
189
+ label:
190
+ help:
191
+ description:
192
+ user:
193
+ label: 处理人
194
+ help:
195
+ description:
196
+ user_name:
197
+ label: 处理人姓名
198
+ help:
199
+ description:
200
+ values:
201
+ label: 表单内容
202
+ help:
203
+ description:
204
+ listviews:
205
+ inbox:
206
+ label: 待审批
207
+ outbox:
208
+ label: 已审批
209
+ actions:
210
+ instance_new:
211
+ label: 新建
@@ -0,0 +1,212 @@
1
+ name: instances
2
+ label: Request
3
+ description:
4
+ fields:
5
+ name:
6
+ label: Name
7
+ help:
8
+ description:
9
+ flow:
10
+ label: Workflow
11
+ help:
12
+ description:
13
+ flow_version:
14
+ label: Workflow Version
15
+ help:
16
+ description:
17
+ form:
18
+ label: Form
19
+ help:
20
+ description:
21
+ form_version:
22
+ label: Form Version
23
+ help:
24
+ description:
25
+ submitter:
26
+ label: Submitter
27
+ help:
28
+ description:
29
+ submitter_name:
30
+ label: Submitter's Name
31
+ help:
32
+ description:
33
+ submit_date:
34
+ label: Submit Date
35
+ help:
36
+ description:
37
+ applicant:
38
+ label: Applicant
39
+ help:
40
+ description:
41
+ applicant_name:
42
+ label: Applicant's Name
43
+ help:
44
+ description:
45
+ applicant_organization:
46
+ label: Applicant Department
47
+ help:
48
+ description:
49
+ applicant_organization_name:
50
+ label: Applicant Department's Name
51
+ help:
52
+ description:
53
+ applicant_organization_fullname:
54
+ label: Applicant Department's Fullname
55
+ help:
56
+ description:
57
+ code:
58
+ label: Code
59
+ help:
60
+ description:
61
+ values:
62
+ label: Field Values
63
+ help:
64
+ description:
65
+ inbox_users:
66
+ label: Inbox Users
67
+ help:
68
+ description:
69
+ outbox_users:
70
+ label: Outbox Users
71
+ help:
72
+ description:
73
+ traces:
74
+ label: Processing Traces
75
+ help:
76
+ description:
77
+ attachments:
78
+ label: Attachments
79
+ help:
80
+ description:
81
+ flow_name:
82
+ label: Workflow Name
83
+ help:
84
+ description:
85
+ category_name:
86
+ label: Category Name
87
+ help:
88
+ description:
89
+ category:
90
+ label: Category
91
+ help:
92
+ description:
93
+ state:
94
+ label: Processing State
95
+ help:
96
+ options:
97
+ - label: Draft
98
+ value: draft
99
+ - label: Pending
100
+ value: pending
101
+ - label: Completed
102
+ value: completed
103
+ description:
104
+ is_archived:
105
+ label: Archived
106
+ help:
107
+ description:
108
+ is_deleted:
109
+ label: Deleted
110
+ help:
111
+ description:
112
+ related_instances:
113
+ label: Related Instances
114
+ help:
115
+ description:
116
+ record_ids:
117
+ label: Record IDs
118
+ help:
119
+ description:
120
+ record_ids.$.o:
121
+ label:
122
+ help:
123
+ description:
124
+ record_ids.$.ids:
125
+ label:
126
+ help:
127
+ description:
128
+ current_step_auto_submit:
129
+ label: Auto Submit if Time Out
130
+ help:
131
+ description:
132
+ current_step_name:
133
+ label: Current Step Name
134
+ help:
135
+ description:
136
+ applicant_company:
137
+ label: Applicant's Division
138
+ help:
139
+ description:
140
+ cc_count:
141
+ label: CC Count
142
+ help:
143
+ description:
144
+ listviews:
145
+ all:
146
+ label: All
147
+ inbox:
148
+ label: Inbox
149
+ outbox:
150
+ label: Outbox
151
+ draft:
152
+ label: Draft
153
+ pending:
154
+ label: In Progress
155
+ completed:
156
+ label: Finished
157
+ monitor:
158
+ label: Monitor
159
+ actions:
160
+ view_instance:
161
+ label: View Instance
162
+ instance_terminate:
163
+ label: Cancel Request
164
+ instance_save:
165
+ label: Save
166
+ instance_related:
167
+ label: Linked requests
168
+ instance_distribute:
169
+ label: Distribute
170
+ instance_submit:
171
+ label: Submit
172
+ instance_forward:
173
+ label: Request Forward
174
+ instance_cc:
175
+ label: Carbon Copy
176
+ instance_relocate:
177
+ label: Relocate
178
+ instance_new:
179
+ label: New Request
180
+ instance_delete:
181
+ label: Delete
182
+ instance_delete_many:
183
+ label: Delete
184
+ CustomLabels:
185
+ instance_action_new_dialog_title: Please select the process
186
+ instance_action_new_dialog_msg_success: Created successfully!
187
+ instance_action_new_dialog_msg_failed: Created failed!
188
+ instance_action_delete_many_msg_not_select: Please select at least one record
189
+ instance_action_instance_save_msg_success: Temporary storage successful
190
+ instance_action_instance_save_msg_failed: Temporary storage failed
191
+ instance_action_instance_distribute_dialog_sub_title: Distribute the currently selected file to the new process and continue to execute the approval operation
192
+ instance_action_instance_distribute_dialog_field_process: Process name
193
+ instance_action_instance_distribute_dialog_field_users: Distribute to
194
+ instance_action_instance_distribute_dialog_field_description: Description
195
+ instance_action_instance_distribute_dialog_field_to_self: Distribute it to yourself too
196
+ instance_action_instance_distribute_dialog_field_to_attachment: Save the original form as an attachment
197
+ instance_action_instance_distribute_dialog_field_related: Automatically create associated files
198
+ instance_action_instance_cc_dialog_title_prefix: "Current Step:"
199
+ instance_action_instance_cc_dialog_field_users: Carbon Copy To
200
+ instance_action_instance_cc_dialog_field_description: Carbon Copy Description
201
+ instance_action_instance_cc_dialog_sub_title: Forward the currently selected file to the new process and continue to execute the approval operation.
202
+ instance_action_terminate_dialog_title: Cancel Request
203
+ instance_action_terminate_dialog_content: Please fill in the reasons for canceling the application
204
+ instance_action_terminate_dialog_msg_success: The cancellation application has been successful!
205
+ instance_action_terminate_dialog_msg_failed: The cancellation application failed.
206
+ instance_action_instance_relocate_dialog_title: Relocate
207
+ instance_action_instance_relocate_dialog_title_prefix: "Current Step:"
208
+ instance_action_instance_relocate_dialog_field_reason: Please fill in the reasons for the Relocating
209
+ instance_action_relocate_dialog_msg_success: Relocated successful
210
+ instance_action_relocate_dialog_msg_failed: Relocated failed
211
+ instance_action_instance_save_msg_upgraded: The workflow has been upgraded. The page will refresh automatically.
212
+