@nocobase/plugin-workflow-manual 2.0.0-alpha.5 → 2.0.0-alpha.51
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.
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +9 -10
- package/dist/locale/de-DE.json +24 -24
- package/dist/locale/en-US.json +25 -24
- package/dist/locale/es-ES.json +36 -0
- package/dist/locale/fr-FR.json +36 -0
- package/dist/locale/hu-HU.json +36 -0
- package/dist/locale/id-ID.json +36 -0
- package/dist/locale/it-IT.json +25 -24
- package/dist/locale/ja-JP.json +23 -20
- package/dist/locale/ko-KR.json +29 -25
- package/dist/locale/nl-NL.json +34 -28
- package/dist/locale/pt-BR.json +36 -0
- package/dist/locale/ru-RU.json +36 -0
- package/dist/locale/tr-TR.json +36 -0
- package/dist/locale/uk-UA.json +36 -0
- package/dist/locale/vi-VN.json +36 -0
- package/dist/locale/zh-CN.json +25 -24
- package/dist/locale/zh-TW.json +36 -0
- package/dist/server/Plugin.js +3 -9
- package/package.json +5 -2
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
2
|
+
"All pass": "全部通过",
|
|
3
|
+
"Any pass": "任意通过",
|
|
4
|
+
"Anyone pass": "任何一人通过即通过",
|
|
5
5
|
"Assignee": "负责人",
|
|
6
6
|
"Assignees": "负责人",
|
|
7
|
-
"
|
|
7
|
+
"Collaboratively": "协作处理",
|
|
8
8
|
"Configure user interface": "配置界面",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"Continue the process": "继续流程",
|
|
10
|
+
"Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "可用于人工提交数据,并决定是否继续或退出流程。工作流在执行到人工节点时会为被指派的用户生成待办事项,直到用户提交对应表单后继续处理该流程。",
|
|
11
|
+
"Create record form": "新增数据表单",
|
|
12
|
+
"Custom form": "自定义表单",
|
|
13
|
+
"Data record": "数据记录",
|
|
11
14
|
"Each user has own task": "每个人处理各自的任务",
|
|
12
|
-
"Collaboratively": "协作处理",
|
|
13
15
|
"Everyone shares one task": "所有人共享同一个任务",
|
|
14
|
-
"Negotiation": "协商机制",
|
|
15
|
-
"All pass": "全部通过",
|
|
16
16
|
"Everyone should pass": "每个人通过才通过",
|
|
17
|
-
"Any pass": "任意通过",
|
|
18
|
-
"Anyone pass": "任何一人通过即通过",
|
|
19
17
|
"Field name existed in form": "表单中已有对应标识的字段",
|
|
20
|
-
"Continue the process": "继续流程",
|
|
21
|
-
"Terminate the process": "终止流程",
|
|
22
|
-
"Save temporarily": "暂存",
|
|
23
|
-
"Custom form": "自定义表单",
|
|
24
|
-
"Data record": "数据记录",
|
|
25
|
-
"Create record form": "新增数据表单",
|
|
26
|
-
"Update record form": "更新数据表单",
|
|
27
18
|
"Filter settings": "筛选设置",
|
|
28
|
-
"
|
|
29
|
-
"Task node": "任务节点",
|
|
30
|
-
"Unprocessed": "未处理",
|
|
31
|
-
"Please check one of your update record form, and add at least one filter condition in form settings.": "请检查您的其中的更新数据表单,并在表单设置中至少添加一个筛选条件。",
|
|
19
|
+
"Manual": "人工处理",
|
|
32
20
|
"My manual tasks": "我的人工任务",
|
|
21
|
+
"Negotiation": "协商机制",
|
|
22
|
+
"Please check one of your update record form, and add at least one filter condition in form settings.": "请检查您的其中的更新数据表单,并在表单设置中至少添加一个筛选条件。",
|
|
23
|
+
"Save temporarily": "暂存",
|
|
24
|
+
"Separately": "分别处理",
|
|
25
|
+
"Task": "Task",
|
|
26
|
+
"Task node": "任务节点",
|
|
33
27
|
"Task title": "任务名称",
|
|
34
|
-
"
|
|
35
|
-
|
|
28
|
+
"Terminate the process": "终止流程",
|
|
29
|
+
"Title of each task item. Default to node title.": "每项任务的名称。默认为节点名称。",
|
|
30
|
+
"Unprocessed": "未处理",
|
|
31
|
+
"Update record form": "更新数据表单",
|
|
32
|
+
"User interface": "操作界面",
|
|
33
|
+
"Values preset in this form will override user submitted ones when continue or reject.": "表单中预设的字段值会在用户提交继续或拒绝时覆盖相应字段的值。",
|
|
34
|
+
"View user interface": "查看界面",
|
|
35
|
+
"Workflow todos": "工作流待办"
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"All pass": "All pass",
|
|
3
|
+
"Any pass": "Any pass",
|
|
4
|
+
"Anyone pass": "Anyone pass",
|
|
5
|
+
"Assignee": "Assignee",
|
|
6
|
+
"Assignees": "Assignees",
|
|
7
|
+
"Collaboratively": "Collaboratively",
|
|
8
|
+
"Configure user interface": "Configure user interface",
|
|
9
|
+
"Continue the process": "Continue the process",
|
|
10
|
+
"Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.",
|
|
11
|
+
"Create record form": "Create record form",
|
|
12
|
+
"Custom form": "Custom form",
|
|
13
|
+
"Data record": "Data record",
|
|
14
|
+
"Each user has own task": "Each user has own task",
|
|
15
|
+
"Everyone shares one task": "Everyone shares one task",
|
|
16
|
+
"Everyone should pass": "Everyone should pass",
|
|
17
|
+
"Field name existed in form": "Field name existed in form",
|
|
18
|
+
"Filter settings": "Filter settings",
|
|
19
|
+
"Manual": "Manual",
|
|
20
|
+
"My manual tasks": "My manual tasks",
|
|
21
|
+
"Negotiation": "Negotiation",
|
|
22
|
+
"Please check one of your update record form, and add at least one filter condition in form settings.": "Please check one of your update record form, and add at least one filter condition in form settings.",
|
|
23
|
+
"Save temporarily": "Save temporarily",
|
|
24
|
+
"Separately": "Separately",
|
|
25
|
+
"Task": "Task",
|
|
26
|
+
"Task node": "Task node",
|
|
27
|
+
"Task title": "Task title",
|
|
28
|
+
"Terminate the process": "Terminate the process",
|
|
29
|
+
"Title of each task item. Default to node title.": "Title of each task item. Default to node title.",
|
|
30
|
+
"Unprocessed": "Unprocessed",
|
|
31
|
+
"Update record form": "Update record form",
|
|
32
|
+
"User interface": "User interface",
|
|
33
|
+
"Values preset in this form will override user submitted ones when continue or reject.": "Values preset in this form will override user submitted ones when continue or reject.",
|
|
34
|
+
"View user interface": "View user interface",
|
|
35
|
+
"Workflow todos": "Workflow todos"
|
|
36
|
+
}
|
package/dist/server/Plugin.js
CHANGED
|
@@ -47,12 +47,10 @@ var import_constants = require("../common/constants");
|
|
|
47
47
|
class Plugin_default extends import_server.Plugin {
|
|
48
48
|
onTaskSave = async (task, { transaction }) => {
|
|
49
49
|
const workflowPlugin = this.app.pm.get(import_plugin_workflow.default);
|
|
50
|
-
const workflowId = Array.from(workflowPlugin.enabledCache.keys());
|
|
51
50
|
const ModelClass = task.constructor;
|
|
52
51
|
const pending = await ModelClass.count({
|
|
53
52
|
where: {
|
|
54
53
|
userId: task.userId,
|
|
55
|
-
workflowId,
|
|
56
54
|
status: import_constants.TASK_STATUS.PENDING
|
|
57
55
|
},
|
|
58
56
|
include: [
|
|
@@ -71,8 +69,7 @@ class Plugin_default extends import_server.Plugin {
|
|
|
71
69
|
});
|
|
72
70
|
const all = await ModelClass.count({
|
|
73
71
|
where: {
|
|
74
|
-
userId: task.userId
|
|
75
|
-
workflowId
|
|
72
|
+
userId: task.userId
|
|
76
73
|
},
|
|
77
74
|
col: "id",
|
|
78
75
|
transaction
|
|
@@ -113,8 +110,7 @@ class Plugin_default extends import_server.Plugin {
|
|
|
113
110
|
const pendingCounts = await WorkflowManualTaskModel.count({
|
|
114
111
|
where: {
|
|
115
112
|
status: import_constants.TASK_STATUS.PENDING,
|
|
116
|
-
userId
|
|
117
|
-
workflowId: execution.workflowId
|
|
113
|
+
userId
|
|
118
114
|
},
|
|
119
115
|
include: [
|
|
120
116
|
{
|
|
@@ -132,8 +128,7 @@ class Plugin_default extends import_server.Plugin {
|
|
|
132
128
|
});
|
|
133
129
|
const allCounts = await WorkflowManualTaskModel.count({
|
|
134
130
|
where: {
|
|
135
|
-
userId
|
|
136
|
-
workflowId: execution.workflowId
|
|
131
|
+
userId
|
|
137
132
|
},
|
|
138
133
|
col: "id",
|
|
139
134
|
group: ["userId"],
|
|
@@ -267,6 +262,5 @@ class Plugin_default extends import_server.Plugin {
|
|
|
267
262
|
this.db.on("workflowManualTasks.afterSave", this.onTaskSave);
|
|
268
263
|
this.db.on("workflowManualTasks.afterDestroy", this.onTaskSave);
|
|
269
264
|
this.db.on("executions.afterUpdate", this.onExecutionStatusChange);
|
|
270
|
-
this.db.on("workflows.afterUpdate", this.onWorkflowStatusChange);
|
|
271
265
|
}
|
|
272
266
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-manual",
|
|
3
3
|
"displayName": "Workflow: Manual node",
|
|
4
|
+
"displayName.ru-RU": "Рабочий процесс: Узел ручной обработки",
|
|
4
5
|
"displayName.zh-CN": "工作流:人工处理节点",
|
|
5
6
|
"description": "Could be used for workflows which some of decisions are made by users.",
|
|
7
|
+
"description.ru-RU": "Может использоваться в рабочих процессах, где какие-то решения принимаются пользователями.",
|
|
6
8
|
"description.zh-CN": "用于人工控制部分决策的流程。",
|
|
7
|
-
"version": "2.0.0-alpha.
|
|
9
|
+
"version": "2.0.0-alpha.51",
|
|
8
10
|
"license": "AGPL-3.0",
|
|
9
11
|
"main": "./dist/server/index.js",
|
|
10
12
|
"homepage": "https://docs.nocobase.com/handbook/workflow-manual",
|
|
13
|
+
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/workflow-manual",
|
|
11
14
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-manual",
|
|
12
15
|
"devDependencies": {
|
|
13
16
|
"@ant-design/icons": "5.x",
|
|
@@ -30,7 +33,7 @@
|
|
|
30
33
|
"@nocobase/test": "2.x",
|
|
31
34
|
"@nocobase/utils": "2.x"
|
|
32
35
|
},
|
|
33
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "a1e34dd97f370d54f3d80a6b83ab7ddb9c72dc18",
|
|
34
37
|
"keywords": [
|
|
35
38
|
"Workflow"
|
|
36
39
|
]
|