@nocobase/plugin-workflow-action-trigger 1.7.0-alpha.1 → 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.
- package/dist/externalVersion.js +10 -10
- package/dist/locale/de-DE.json +22 -0
- package/dist/locale/it-IT.json +14 -6
- package/dist/locale/nl-NL.json +9 -0
- 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-alpha.
|
|
13
|
-
"@nocobase/plugin-workflow": "1.7.0-alpha.
|
|
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.7.0-alpha.
|
|
19
|
-
"@nocobase/server": "1.7.0-alpha.
|
|
20
|
-
"@nocobase/actions": "1.7.0-alpha.
|
|
21
|
-
"@nocobase/plugin-error-handler": "1.7.0-alpha.
|
|
22
|
-
"@nocobase/data-source-manager": "1.7.0-alpha.
|
|
23
|
-
"@nocobase/plugin-workflow-test": "1.7.0-alpha.
|
|
24
|
-
"@nocobase/test": "1.7.0-alpha.
|
|
25
|
-
"@nocobase/utils": "1.7.0-alpha.
|
|
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,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Form event": "Formularereignis",
|
|
3
|
+
"Event triggers when submitted a workflow bound form action.": "Ereignis wird ausgelöst, wenn eine an einen Workflow gebundene Formularaktion übermittelt wird.",
|
|
4
|
+
"Form data model": "Formulardatenmodell",
|
|
5
|
+
"Use a collection to match form data.": "Verwenden Sie eine Sammlung, um Formulardaten abzugleichen.",
|
|
6
|
+
"Post-action event": "Ereignis nach Aktion",
|
|
7
|
+
"Triggered after the completion of a request initiated through an action button or API, such as after adding or updating data. Suitable for data processing, sending notifications, etc., after actions are completed.": "Wird nach Abschluss einer Anfrage ausgelöst, die über eine Aktionsschaltfläche oder API initiiert wurde, z. B. nach dem Hinzufügen oder Aktualisieren von Daten. Geeignet für Datenverarbeitung, Senden von Benachrichtigungen usw. nach Abschluss von Aktionen.",
|
|
8
|
+
"Collection": "Sammlung",
|
|
9
|
+
"The collection to which the triggered data belongs.": "Die Sammlung, zu der die ausgelösten Daten gehören.",
|
|
10
|
+
"Trigger mode": "Auslösemodus",
|
|
11
|
+
"Local mode, triggered after the completion of actions bound to this workflow": "Lokaler Modus, wird nach Abschluss von Aktionen ausgelöst, die an diesen Workflow gebunden sind",
|
|
12
|
+
"Global mode, triggered after the completion of the following actions": "Globaler Modus, wird nach Abschluss der folgenden Aktionen ausgelöst",
|
|
13
|
+
"Select actions": "Aktionen auswählen",
|
|
14
|
+
"Create record action": "Datensatz erstellen Aktion",
|
|
15
|
+
"Update record action": "Datensatz aktualisieren Aktion",
|
|
16
|
+
"Associations to use": "Zu verwendende Verknüpfungen",
|
|
17
|
+
"User submitted form": "Vom Benutzer übermitteltes Formular",
|
|
18
|
+
"Role of user submitted form": "Rolle des vom Benutzer übermittelten Formulars",
|
|
19
|
+
"Trigger data": "Auslöserdaten",
|
|
20
|
+
"User acted": "Handelnder Benutzer",
|
|
21
|
+
"Role of user acted": "Rolle des handelnden Benutzers"
|
|
22
|
+
}
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
"
|
|
2
|
+
"Post-action event": "Evento post-azione",
|
|
3
|
+
"Triggered after the completion of a request initiated through an action button or API, such as after adding or updating data. Suitable for data processing, sending notifications, etc., after actions are completed.":
|
|
4
|
+
"Attivato dopo il completamento con esito positivo di una richiesta avviata tramite un pulsante di azione o un'API, ad esempio dopo l'aggiunta o l'aggiornamento di dati. Adatto per l'elaborazione dei dati, l'invio di notifiche, ecc. dopo il completamento delle azioni.",
|
|
5
|
+
"Collection": "Raccolta",
|
|
6
|
+
"The collection to which the triggered data belongs.": "La raccolta a cui appartengono i dati attivati.",
|
|
7
|
+
"Trigger mode": "Modalità di attivazione",
|
|
8
|
+
"Local mode, triggered after the completion of actions bound to this workflow": "Modalità locale, attivata dopo il completamento delle azioni associate a questo workflow",
|
|
9
|
+
"Global mode, triggered after the completion of the following actions": "Modalità globale, attivata dopo il completamento delle seguenti azioni",
|
|
10
|
+
"Select actions": "Seleziona azioni",
|
|
11
|
+
"Create record action": "Azione di creazione record",
|
|
12
|
+
"Update record action": "Azione di aggiornamento record",
|
|
6
13
|
"Associations to use": "Associazioni da utilizzare",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
14
|
+
"Trigger data": "Dati attivazione",
|
|
15
|
+
"User acted": "Utente che ha agito",
|
|
16
|
+
"Role of user acted": "Ruolo dell'utente che ha agito"
|
|
9
17
|
}
|
|
@@ -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
|
-
|
|
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-alpha.
|
|
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": "
|
|
24
|
+
"gitHead": "d2c8d0194316b2d1bf42af6f466cf4b29af84778",
|
|
25
25
|
"keywords": [
|
|
26
26
|
"Workflow"
|
|
27
27
|
]
|