@nocobase/plugin-workflow-action-trigger 1.6.10 → 1.7.0-alpha.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.
@@ -9,18 +9,18 @@
9
9
 
10
10
  module.exports = {
11
11
  "@formily/react": "2.3.0",
12
- "@nocobase/client": "1.6.10",
13
- "@nocobase/plugin-workflow": "1.6.10",
12
+ "@nocobase/client": "1.7.0-alpha.10",
13
+ "@nocobase/plugin-workflow": "1.7.0-alpha.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.6.10",
19
- "@nocobase/server": "1.6.10",
20
- "@nocobase/actions": "1.6.10",
21
- "@nocobase/plugin-error-handler": "1.6.10",
22
- "@nocobase/data-source-manager": "1.6.10",
23
- "@nocobase/plugin-workflow-test": "1.6.10",
24
- "@nocobase/test": "1.6.10",
25
- "@nocobase/utils": "1.6.10"
18
+ "@nocobase/database": "1.7.0-alpha.10",
19
+ "@nocobase/server": "1.7.0-alpha.10",
20
+ "@nocobase/actions": "1.7.0-alpha.10",
21
+ "@nocobase/plugin-error-handler": "1.7.0-alpha.10",
22
+ "@nocobase/data-source-manager": "1.7.0-alpha.10",
23
+ "@nocobase/plugin-workflow-test": "1.7.0-alpha.10",
24
+ "@nocobase/test": "1.7.0-alpha.10",
25
+ "@nocobase/utils": "1.7.0-alpha.10"
26
26
  };
@@ -0,0 +1,9 @@
1
+ {
2
+ "Form event": "Formuliergebeurtenis",
3
+ "Event triggers when submitted a workflow bound form action.": "De gebeurtenis wordt geactiveerd wanneer een formulieractie die aan een workflow is gekoppeld wordt ingediend.",
4
+ "Form data model": "Formuliergegevensmodel",
5
+ "Use a collection to match form data.": "Gebruik een collectie om formuliergegevens te matchen.",
6
+ "Associations to use": "Associaties om te gebruiken",
7
+ "User submitted form": "Gebruiker heeft formulier ingediend",
8
+ "Role of user submitted form": "Rol van de ingediende formuliergebruiker"
9
+ }
@@ -176,7 +176,7 @@ class ActionTrigger_default extends import_plugin_workflow.Trigger {
176
176
  });
177
177
  }
178
178
  }
179
- event.push({ data: (0, import_plugin_workflow.toJSON)(payload), ...userInfo });
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
- event.push({ data, ...userInfo });
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.6.10",
7
+ "version": "1.7.0-alpha.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": "e60f706756ba6e0d11a6b9a752c02531db8500bc",
24
+ "gitHead": "d2c8d0194316b2d1bf42af6f466cf4b29af84778",
25
25
  "keywords": [
26
26
  "Workflow"
27
27
  ]