@nocobase/plugin-workflow-action-trigger 1.7.0-alpha.4 → 1.7.0-beta.10
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/externalVersion.js +10 -10
- package/dist/server/ActionTrigger.js +2 -3
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/react": "2.3.0",
|
|
12
|
-
"@nocobase/client": "1.7.0-
|
|
13
|
-
"@nocobase/plugin-workflow": "1.7.0-
|
|
12
|
+
"@nocobase/client": "1.7.0-beta.10",
|
|
13
|
+
"@nocobase/plugin-workflow": "1.7.0-beta.10",
|
|
14
14
|
"react": "18.2.0",
|
|
15
15
|
"react-i18next": "11.18.6",
|
|
16
16
|
"lodash": "4.17.21",
|
|
17
17
|
"sequelize": "6.35.2",
|
|
18
|
-
"@nocobase/database": "1.7.0-
|
|
19
|
-
"@nocobase/server": "1.7.0-
|
|
20
|
-
"@nocobase/actions": "1.7.0-
|
|
21
|
-
"@nocobase/plugin-error-handler": "1.7.0-
|
|
22
|
-
"@nocobase/data-source-manager": "1.7.0-
|
|
23
|
-
"@nocobase/plugin-workflow-test": "1.7.0-
|
|
24
|
-
"@nocobase/test": "1.7.0-
|
|
25
|
-
"@nocobase/utils": "1.7.0-
|
|
18
|
+
"@nocobase/database": "1.7.0-beta.10",
|
|
19
|
+
"@nocobase/server": "1.7.0-beta.10",
|
|
20
|
+
"@nocobase/actions": "1.7.0-beta.10",
|
|
21
|
+
"@nocobase/plugin-error-handler": "1.7.0-beta.10",
|
|
22
|
+
"@nocobase/data-source-manager": "1.7.0-beta.10",
|
|
23
|
+
"@nocobase/plugin-workflow-test": "1.7.0-beta.10",
|
|
24
|
+
"@nocobase/test": "1.7.0-beta.10",
|
|
25
|
+
"@nocobase/utils": "1.7.0-beta.10"
|
|
26
26
|
};
|
|
@@ -176,7 +176,7 @@ class ActionTrigger_default extends import_plugin_workflow.Trigger {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
(workflow.sync ? syncGroup : asyncGroup).push([workflow, { data: (0, import_plugin_workflow.toJSON)(payload), ...userInfo }]);
|
|
180
180
|
}
|
|
181
181
|
} else {
|
|
182
182
|
const { filterTargetKey, repository } = context.app.dataSourceManager.dataSources.get(dataSourceName).collectionManager.getCollection(collectionName);
|
|
@@ -188,9 +188,8 @@ class ActionTrigger_default extends import_plugin_workflow.Trigger {
|
|
|
188
188
|
appends
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
(workflow.sync ? syncGroup : asyncGroup).push([workflow, { data, ...userInfo }]);
|
|
192
192
|
}
|
|
193
|
-
(workflow.sync ? syncGroup : asyncGroup).push(event);
|
|
194
193
|
}
|
|
195
194
|
for (const event of syncGroup) {
|
|
196
195
|
const processor = await this.workflow.trigger(event[0], event[1], { httpContext: context });
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流:操作后事件",
|
|
5
5
|
"description": "Triggered after the completion of a request initiated through an action button or API, such as after adding, updating, deleting data, or \"submit to workflow\". Suitable for data processing, sending notifications, etc., after actions are completed.",
|
|
6
6
|
"description.zh-CN": "通过操作按钮或 API 发起请求并在执行完成后触发,比如新增、更新、删除数据或者“提交至工作流”之后。适用于在操作完成后进行数据处理、发送通知等。",
|
|
7
|
-
"version": "1.7.0-
|
|
7
|
+
"version": "1.7.0-beta.10",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/plugins/workflow-action-trigger",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@nocobase/server": "1.x",
|
|
22
22
|
"@nocobase/test": "1.x"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "e9077cd02774330e9d9d0c9ff0324596207d90a0",
|
|
25
25
|
"keywords": [
|
|
26
26
|
"Workflow"
|
|
27
27
|
]
|