@nocobase/plugin-workflow 2.1.11 → 2.2.0-alpha.2
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/119.e7dbd037d52d1286.js +10 -0
- package/dist/client/142.d84a976875799df4.js +10 -0
- package/dist/client/159.3d5abee06b818db3.js +10 -0
- package/dist/client/276.69fb2aea13bc7c37.js +10 -0
- package/dist/client/346.66d060d37843d3d1.js +10 -0
- package/dist/client/382.80ebd002a9971b65.js +10 -0
- package/dist/client/394.d7eacf666590a6ae.js +10 -0
- package/dist/client/438.c4de8f085e490158.js +10 -0
- package/dist/client/509.2f72dd97808f12d1.js +10 -0
- package/dist/client/54.c452a382e9b3953d.js +10 -0
- package/dist/client/{618.c91be3f6e4d73501.js → 618.a97bc812678ab2a7.js} +1 -1
- package/dist/client/635.3f165e9ed7e940b2.js +10 -0
- package/dist/client/67.4117e04bd42f9d42.js +10 -0
- package/dist/client/719.5801e3f1cf81b97b.js +10 -0
- package/dist/client/739.955f18b3dc31ae3a.js +10 -0
- package/dist/client/759.13aab01e6912ed8d.js +10 -0
- package/dist/client/772.1ebaef11a0ac8688.js +10 -0
- package/dist/client/782.332fd345a98b82c2.js +10 -0
- package/dist/client/828.77de843c49fb307a.js +10 -0
- package/dist/client/87.d2c2b5b1cae08bfc.js +10 -0
- package/dist/client/938.77649c32dae1c225.js +10 -0
- package/dist/client/964.cb1ecff7a46687b7.js +10 -0
- package/dist/client/972.4da2796f3f2df874.js +10 -0
- package/dist/client/AddNodeContext.d.ts +1 -9
- package/dist/client/Branch.d.ts +1 -1
- package/dist/client/BranchContext.d.ts +2 -10
- package/dist/client/FlowContext.d.ts +10 -5
- package/dist/client/NodeClipboardContext.d.ts +12 -2
- package/dist/client/NodeDragContext.d.ts +14 -2
- package/dist/client/RemoveNodeContext.d.ts +16 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/nodeVariableUtils.d.ts +7 -6
- package/dist/client/nodes/calculation.d.ts +3 -75
- package/dist/client/nodes/condition.d.ts +7 -111
- package/dist/client/nodes/create.d.ts +3 -124
- package/dist/client/nodes/destroy.d.ts +2 -57
- package/dist/client/nodes/end.d.ts +2 -23
- package/dist/client/nodes/index.d.ts +2 -91
- package/dist/client/nodes/multi-conditions.d.ts +10 -48
- package/dist/client/nodes/output.d.ts +2 -44
- package/dist/client/nodes/query.d.ts +3 -255
- package/dist/client/nodes/update.d.ts +2 -117
- package/dist/client/style.d.ts +7 -27
- package/dist/client/triggers/collection.d.ts +3 -154
- package/dist/client/triggers/index.d.ts +2 -36
- package/dist/client/triggers/schedule/index.d.ts +8 -65
- package/dist/client/utils.d.ts +4 -5
- package/dist/client/variable.d.ts +4 -44
- package/dist/client-v2/119.81195bcd0d451279.js +10 -0
- package/dist/client-v2/142.3d386748090ff6d3.js +10 -0
- package/dist/client-v2/159.cb221540c286cd32.js +10 -0
- package/dist/client-v2/224.44a5e1227bee33fb.js +10 -0
- package/dist/client-v2/276.43297f402f31970e.js +10 -0
- package/dist/client-v2/326.bdc99ad8e7590970.js +10 -0
- package/dist/client-v2/346.8c038b3c99d4fdc9.js +10 -0
- package/dist/client-v2/382.05f5482bb512b179.js +10 -0
- package/dist/client-v2/387.ab3eac2eb447f36f.js +10 -0
- package/dist/client-v2/394.515ed058e7f72797.js +10 -0
- package/dist/client-v2/438.b7df0416b66f8f64.js +10 -0
- package/dist/client-v2/513.ab2bdd96ad9ece4d.js +10 -0
- package/dist/client-v2/54.287764bc467d65da.js +10 -0
- package/dist/client-v2/635.37de4abe241b30e8.js +10 -0
- package/dist/client-v2/719.05cf070ef89a78f4.js +10 -0
- package/dist/client-v2/739.906e94bbe6d52a3d.js +10 -0
- package/dist/client-v2/759.7b162ad3adf450f1.js +10 -0
- package/dist/client-v2/772.8e5148d8c1518449.js +10 -0
- package/dist/client-v2/938.717e47af39485b29.js +10 -0
- package/dist/client-v2/ExecutionCanvas.d.ts +15 -0
- package/dist/client-v2/canvas/AddNodeContext.d.ts +35 -0
- package/dist/client-v2/canvas/AddNodeContext.shared.d.ts +33 -0
- package/dist/client-v2/canvas/AddNodeSlot.d.ts +20 -0
- package/dist/client-v2/canvas/Branch.d.ts +32 -0
- package/dist/client-v2/canvas/BranchContext.d.ts +20 -0
- package/dist/client-v2/canvas/BranchRenderContext.d.ts +14 -0
- package/dist/client-v2/canvas/CanvasContent.d.ts +20 -0
- package/dist/client-v2/canvas/DownstreamBranchIndex.d.ts +20 -0
- package/dist/client-v2/canvas/Instruction.d.ts +139 -0
- package/dist/{client/triggers/schedule/EndsByField.d.ts → client-v2/canvas/JobButton.d.ts} +3 -3
- package/dist/client-v2/canvas/Node.d.ts +36 -0
- package/dist/client-v2/canvas/NodeClipboardContext.d.ts +64 -0
- package/dist/client-v2/canvas/NodeConfigDrawer.d.ts +27 -0
- package/dist/client-v2/canvas/NodeDragContext.d.ts +83 -0
- package/dist/client-v2/canvas/RemoveNodeContext.d.ts +45 -0
- package/dist/client-v2/canvas/WorkflowTypedVariableInput.d.ts +16 -0
- package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +39 -0
- package/dist/client-v2/canvas/WorkflowVariableJsonTextArea.d.ts +15 -0
- package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +18 -0
- package/dist/client-v2/canvas/adaptVariableOptionToMetaTree.d.ts +48 -0
- package/dist/client-v2/canvas/addNodeController.d.ts +70 -0
- package/dist/client-v2/canvas/collectionFieldOptions.d.ts +57 -0
- package/dist/client-v2/canvas/contexts.d.ts +84 -0
- package/dist/client-v2/canvas/dropImpact.d.ts +28 -0
- package/dist/client-v2/canvas/instructionAvailability.d.ts +26 -0
- package/dist/client-v2/canvas/nodeRenderDispatch.d.ts +79 -0
- package/dist/client-v2/canvas/nodeTree.d.ts +21 -0
- package/dist/client-v2/canvas/nodeVariableUtils.d.ts +14 -0
- package/dist/client-v2/canvas/removeNodeUtils.d.ts +31 -0
- package/dist/client-v2/canvas/style.d.ts +35 -0
- package/dist/client-v2/canvas/textAreaInsertion.d.ts +14 -0
- package/dist/client-v2/canvas/useWorkflowInstruction.d.ts +23 -0
- package/dist/client-v2/canvas/useWorkflowVariableOptions.d.ts +40 -0
- package/dist/client-v2/canvas/workflowVariableConverters.d.ts +13 -0
- package/dist/client-v2/components/Calculation.d.ts +18 -0
- package/dist/client-v2/components/ExecutionStatusIcon.d.ts +18 -0
- package/dist/{client/triggers/schedule/RepeatField.d.ts → client-v2/components/ExecutionStatusTag.d.ts} +3 -4
- package/dist/client-v2/components/ExecutionViewHeader.d.ts +29 -0
- package/dist/client-v2/components/ExecutionsDropdown.d.ts +25 -0
- package/dist/client-v2/components/FilterDynamicComponent.d.ts +22 -0
- package/dist/client-v2/components/HideVariableContext.d.ts +11 -0
- package/dist/client-v2/components/JobResultModal.d.ts +11 -0
- package/dist/client-v2/components/RadioWithTooltip.d.ts +23 -0
- package/dist/client-v2/components/SyncModeSelect.d.ts +16 -0
- package/dist/{client/triggers/schedule/OnField.d.ts → client-v2/components/SyncModeTag.d.ts} +3 -3
- package/dist/client-v2/components/TestRunButton.d.ts +36 -0
- package/dist/client-v2/components/TimeoutInput.d.ts +15 -0
- package/dist/client-v2/components/WorkflowCanvasHeader.d.ts +17 -0
- package/dist/client-v2/components/WorkflowDetailsModal.d.ts +25 -0
- package/dist/client-v2/components/WorkflowEnabledSwitch.d.ts +16 -0
- package/dist/client-v2/components/WorkflowMenu.d.ts +17 -0
- package/dist/client-v2/components/WorkflowRevisionsDropdown.d.ts +15 -0
- package/dist/client-v2/components/WorkflowVariableWrapper.d.ts +25 -0
- package/dist/client-v2/components/collection/AppendsSelect.d.ts +15 -0
- package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +16 -0
- package/dist/client-v2/components/collection/CollectionCascader.d.ts +15 -0
- package/dist/client-v2/components/collection/FieldsSelect.d.ts +16 -0
- package/dist/client-v2/components/collection/PaginationFields.d.ts +14 -0
- package/dist/client-v2/components/collection/SortFieldsInput.d.ts +19 -0
- package/dist/client-v2/components/collection/TriggerCollectionRecordSelect.d.ts +15 -0
- package/dist/client-v2/components/collection/index.d.ts +16 -0
- package/dist/client-v2/components/collection/utils.d.ts +42 -0
- package/dist/client-v2/components/formatResultForDisplay.d.ts +17 -0
- package/dist/client-v2/components/jobStatus.d.ts +27 -0
- package/dist/client-v2/components/renderEngineReference.d.ts +10 -0
- package/dist/client-v2/components/workflowCanvas.d.ts +41 -0
- package/dist/client-v2/constants.d.ts +14 -0
- package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +37 -0
- package/dist/client-v2/index.d.ts +43 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +41 -0
- package/dist/{client → client-v2}/models/NodeDetailsGridModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/NodeDetailsModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/NodeValueModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/TaskCardCommonItemModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/index.d.ts +1 -0
- package/dist/client-v2/models/triggerWorkflows.d.ts +43 -0
- package/dist/client-v2/nodes/calculation.d.ts +38 -0
- package/dist/client-v2/nodes/collectionNode.d.ts +29 -0
- package/dist/client-v2/nodes/components/calculation.d.ts +11 -0
- package/dist/client-v2/nodes/components/collection.d.ts +15 -0
- package/dist/client-v2/nodes/components/condition.d.ts +25 -0
- package/dist/client-v2/nodes/components/conditionShared.d.ts +20 -0
- package/dist/client-v2/nodes/components/create.d.ts +12 -0
- package/dist/client-v2/nodes/components/destroy.d.ts +12 -0
- package/dist/{client/triggers/schedule/ScheduleConfig.d.ts → client-v2/nodes/components/end.d.ts} +1 -1
- package/dist/client-v2/nodes/components/filter.d.ts +16 -0
- package/dist/client-v2/nodes/components/multi-conditions.d.ts +13 -0
- package/dist/client-v2/nodes/components/multiConditionsShared.d.ts +20 -0
- package/dist/client-v2/nodes/components/output.d.ts +10 -0
- package/dist/client-v2/nodes/components/query.d.ts +12 -0
- package/dist/client-v2/nodes/components/update.d.ts +12 -0
- package/dist/client-v2/nodes/condition.d.ts +46 -0
- package/dist/client-v2/nodes/create.d.ts +30 -0
- package/dist/client-v2/nodes/destroy.d.ts +24 -0
- package/dist/client-v2/nodes/end.d.ts +21 -0
- package/dist/client-v2/nodes/multi-conditions.d.ts +34 -0
- package/dist/client-v2/nodes/output.d.ts +29 -0
- package/dist/client-v2/nodes/query.d.ts +32 -0
- package/dist/client-v2/nodes/update.d.ts +25 -0
- package/dist/client-v2/pages/ExecutionHistoryDrawer.d.ts +13 -0
- package/dist/client-v2/pages/ExecutionViewPage.d.ts +10 -0
- package/dist/client-v2/pages/WorkflowCanvasPage.d.ts +10 -0
- package/dist/client-v2/pages/WorkflowCategoryTabs.d.ts +25 -0
- package/dist/client-v2/pages/WorkflowFormDrawer.d.ts +39 -0
- package/dist/client-v2/pages/WorkflowPane.d.ts +10 -0
- package/dist/client-v2/plugin.d.ts +67 -0
- package/dist/client-v2/triggers/ExecuteWorkflowButton.d.ts +35 -0
- package/dist/client-v2/triggers/TriggerConfig.d.ts +22 -0
- package/dist/client-v2/triggers/TriggerExecutionButton.d.ts +13 -0
- package/dist/client-v2/triggers/collection/CollectionConfig.d.ts +14 -0
- package/dist/client-v2/triggers/collection/TriggerCollectionConfig.d.ts +11 -0
- package/dist/client-v2/triggers/collection/constants.d.ts +28 -0
- package/dist/client-v2/triggers/collection/index.d.ts +40 -0
- package/dist/client-v2/triggers/index.d.ts +61 -0
- package/dist/client-v2/triggers/schedule/EndsByField.d.ts +17 -0
- package/dist/client-v2/triggers/schedule/OnField.d.ts +20 -0
- package/dist/client-v2/triggers/schedule/RepeatField.d.ts +23 -0
- package/dist/client-v2/triggers/schedule/ScheduleConfig.d.ts +17 -0
- package/dist/client-v2/triggers/schedule/ScheduleModes.d.ts +41 -0
- package/dist/{client → client-v2}/triggers/schedule/TriggerScheduleConfig.d.ts +1 -0
- package/dist/{client → client-v2}/triggers/schedule/constants.d.ts +8 -5
- package/dist/client-v2/triggers/schedule/index.d.ts +40 -0
- package/dist/client-v2/triggers/schedule/locale/Cron.zh-CN.d.ts +11 -0
- package/dist/common/executionStatus.d.ts +44 -0
- package/dist/common/executionStatus.js +133 -0
- package/dist/externalVersion.js +16 -12
- package/dist/locale/de-DE.json +14 -1
- package/dist/locale/en-US.json +21 -1
- package/dist/locale/es-ES.json +14 -1
- package/dist/locale/fr-FR.json +14 -1
- package/dist/locale/hu-HU.json +14 -1
- package/dist/locale/id-ID.json +14 -1
- package/dist/locale/it-IT.json +14 -1
- package/dist/locale/ja-JP.json +14 -1
- package/dist/locale/ko-KR.json +14 -1
- package/dist/locale/nl-NL.json +14 -1
- package/dist/locale/pt-BR.json +14 -1
- package/dist/locale/ru-RU.json +14 -1
- package/dist/locale/tr-TR.json +14 -1
- package/dist/locale/uk-UA.json +14 -1
- package/dist/locale/vi-VN.json +14 -1
- package/dist/locale/zh-CN.json +20 -1
- package/dist/locale/zh-TW.json +14 -1
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/server/Processor.d.ts +16 -0
- package/dist/server/Processor.js +112 -0
- package/dist/server/index.d.ts +1 -1
- package/dist/server/instructions/CreateInstruction.js +6 -2
- package/dist/server/instructions/DestroyInstruction.js +2 -1
- package/dist/server/instructions/QueryInstruction.js +2 -1
- package/dist/server/instructions/UpdateInstruction.js +2 -1
- package/dist/server/triggers/CollectionTrigger.d.ts +5 -0
- package/dist/server/triggers/CollectionTrigger.js +26 -1
- package/package.json +3 -2
- package/dist/client/67.61e70b8b777f8638.js +0 -10
- package/dist/client/964.ffbf5b47ed12bbdc.js +0 -10
- package/dist/client/triggers/schedule/ScheduleModes.d.ts +0 -170
- package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -42
package/dist/locale/pt-BR.json
CHANGED
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
"Executed at": "Executado em",
|
|
103
103
|
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Executed workflow cannot be modified. Could be copied to a new version to modify.",
|
|
104
104
|
"Execution history": "Histórico de execução",
|
|
105
|
+
"Version ID": "ID da versão",
|
|
106
|
+
"Parent execution ID": "ID da execução pai",
|
|
107
|
+
"Triggered manually": "Acionado manualmente",
|
|
105
108
|
"Timeout settings": "Configurações de tempo limite",
|
|
106
109
|
"0 means unlimited. If you set any other value and the execution is still not completed when the timeout is reached, the execution plan will be terminated and the remaining nodes will not be executed. Time spent in queue is not counted; timing starts only after it first enters a processor.": "0 significa sem limite. Se você definir qualquer outro valor e a execução ainda não tiver sido concluída quando o tempo limite for atingido, o plano de execução será encerrado e os nós restantes não serão executados. O tempo na fila não é contabilizado; a contagem só começa depois que a execução entra em um processador pela primeira vez.",
|
|
107
110
|
"Exit when query result is null": "Exit when query result is null",
|
|
@@ -202,6 +205,7 @@
|
|
|
202
205
|
"Syntax references: ": "Syntax references: ",
|
|
203
206
|
"System time": "System time",
|
|
204
207
|
"System variables": "System variables",
|
|
208
|
+
"System process failed, please contact administrator.": "Falha no processo do sistema, contate o administrador.",
|
|
205
209
|
"Task type {{type}} is invalid": "Task type {{type}} is invalid",
|
|
206
210
|
"Test run": "Test run",
|
|
207
211
|
"Test run will do the actual data manipulating or API calling, please use with caution.": "Test run will do the actual data manipulating or API calling, please use with caution.",
|
|
@@ -265,5 +269,14 @@
|
|
|
265
269
|
"Impacted dependent node variables": "Nós que referenciam as variáveis do nó atual",
|
|
266
270
|
"Keep variable references": "Manter referências de variáveis",
|
|
267
271
|
"Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Manter referências de variáveis exige ajuste manual, caso contrário o workflow pode falhar.",
|
|
268
|
-
"Failed to update node variables": "Falha ao atualizar as variáveis do nó"
|
|
272
|
+
"Failed to update node variables": "Falha ao atualizar as variáveis do nó",
|
|
273
|
+
"Unsupported node": "Unsupported node",
|
|
274
|
+
"This node type is not available in the new canvas yet.": "This node type is not available in the new canvas yet.",
|
|
275
|
+
"This node's configuration has not been migrated to the new canvas yet.": "This node's configuration has not been migrated to the new canvas yet.",
|
|
276
|
+
"Node title": "Node title",
|
|
277
|
+
"Failed to add node": "Failed to add node",
|
|
278
|
+
"Failed to delete node": "Failed to delete node",
|
|
279
|
+
"Failed to save node": "Failed to save node",
|
|
280
|
+
"Failed to run": "Failed to run",
|
|
281
|
+
"Copied node": "Copied node"
|
|
269
282
|
}
|
package/dist/locale/ru-RU.json
CHANGED
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
"Executed at": "Выполнено в",
|
|
103
103
|
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Выполненный рабочий процесс не может быть изменен. Может быть скопирован в новую версию для изменения.",
|
|
104
104
|
"Execution history": "История запусков",
|
|
105
|
+
"Version ID": "ID версии",
|
|
106
|
+
"Parent execution ID": "ID родительского запуска",
|
|
107
|
+
"Triggered manually": "Запущено вручную",
|
|
105
108
|
"Timeout settings": "Настройки тайм-аута",
|
|
106
109
|
"0 means unlimited. If you set any other value and the execution is still not completed when the timeout is reached, the execution plan will be terminated and the remaining nodes will not be executed. Time spent in queue is not counted; timing starts only after it first enters a processor.": "0 означает без ограничений. Если установить любое другое значение и к моменту достижения тайм-аута выполнение все еще не завершено, план выполнения будет остановлен, а оставшиеся узлы не будут выполнены. Время в очереди не учитывается; отсчет начинается только после первого входа в процессор.",
|
|
107
110
|
"Exit when query result is null": "Выйти, если результат запроса равен null",
|
|
@@ -202,6 +205,7 @@
|
|
|
202
205
|
"Syntax references: ": "Ссылки на синтаксис: ",
|
|
203
206
|
"System time": "Системное время",
|
|
204
207
|
"System variables": "Системные переменные",
|
|
208
|
+
"System process failed, please contact administrator.": "Системный процесс завершился с ошибкой, обратитесь к администратору.",
|
|
205
209
|
"Task type {{type}} is invalid": "Task type {{type}} is invalid",
|
|
206
210
|
"Test run": "Тестовый запуск",
|
|
207
211
|
"Test run will do the actual data manipulating or API calling, please use with caution.": "Тестовый запуск выполнит реальные действия с данными или вызов API, используйте с осторожностью.",
|
|
@@ -265,5 +269,14 @@
|
|
|
265
269
|
"Impacted dependent node variables": "Узлы, которые ссылаются на переменные текущего узла",
|
|
266
270
|
"Keep variable references": "Сохранить ссылки на переменные",
|
|
267
271
|
"Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Сохранение ссылок на переменные требует ручной настройки, иначе рабочий процесс может завершиться ошибкой.",
|
|
268
|
-
"Failed to update node variables": "Не удалось обновить переменные узла"
|
|
272
|
+
"Failed to update node variables": "Не удалось обновить переменные узла",
|
|
273
|
+
"Unsupported node": "Unsupported node",
|
|
274
|
+
"This node type is not available in the new canvas yet.": "This node type is not available in the new canvas yet.",
|
|
275
|
+
"This node's configuration has not been migrated to the new canvas yet.": "This node's configuration has not been migrated to the new canvas yet.",
|
|
276
|
+
"Node title": "Node title",
|
|
277
|
+
"Failed to add node": "Failed to add node",
|
|
278
|
+
"Failed to delete node": "Failed to delete node",
|
|
279
|
+
"Failed to save node": "Failed to save node",
|
|
280
|
+
"Failed to run": "Failed to run",
|
|
281
|
+
"Copied node": "Copied node"
|
|
269
282
|
}
|
package/dist/locale/tr-TR.json
CHANGED
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
"Executed at": "Executed at",
|
|
103
103
|
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Executed workflow cannot be modified. Could be copied to a new version to modify.",
|
|
104
104
|
"Execution history": "Yürütme Geçmişi",
|
|
105
|
+
"Version ID": "Sürüm Kimliği",
|
|
106
|
+
"Parent execution ID": "Üst yürütme kimliği",
|
|
107
|
+
"Triggered manually": "Elle tetiklendi",
|
|
105
108
|
"Timeout settings": "Zaman aşımı ayarları",
|
|
106
109
|
"0 means unlimited. If you set any other value and the execution is still not completed when the timeout is reached, the execution plan will be terminated and the remaining nodes will not be executed. Time spent in queue is not counted; timing starts only after it first enters a processor.": "0 sınırsız anlamına gelir. Başka herhangi bir değer ayarlanırsa ve zaman aşımına ulaşıldığında yürütme hâlâ tamamlanmamışsa, yürütme planı sonlandırılır ve kalan düğümler çalıştırılmaz. Kuyrukta bekleme süresi hesaba katılmaz; süre sayımı yalnızca ilk kez bir işlemciye girdikten sonra başlar.",
|
|
107
110
|
"Exit when query result is null": "Exit when query result is null",
|
|
@@ -202,6 +205,7 @@
|
|
|
202
205
|
"Syntax references: ": "Syntax references: ",
|
|
203
206
|
"System time": "System time",
|
|
204
207
|
"System variables": "System variables",
|
|
208
|
+
"System process failed, please contact administrator.": "Sistem işlemi başarısız oldu, yöneticiyle iletişime geçin.",
|
|
205
209
|
"Task type {{type}} is invalid": "Task type {{type}} is invalid",
|
|
206
210
|
"Test run": "Test run",
|
|
207
211
|
"Test run will do the actual data manipulating or API calling, please use with caution.": "Test run will do the actual data manipulating or API calling, please use with caution.",
|
|
@@ -265,5 +269,14 @@
|
|
|
265
269
|
"Impacted dependent node variables": "Mevcut düğüm değişkenlerine başvuran düğümler",
|
|
266
270
|
"Keep variable references": "Değişken başvurularını koru",
|
|
267
271
|
"Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Değişken başvurularını korumak manuel ayar gerektirir; aksi halde iş akışı başarısız olabilir.",
|
|
268
|
-
"Failed to update node variables": "Düğüm değişkenleri güncellenemedi"
|
|
272
|
+
"Failed to update node variables": "Düğüm değişkenleri güncellenemedi",
|
|
273
|
+
"Unsupported node": "Unsupported node",
|
|
274
|
+
"This node type is not available in the new canvas yet.": "This node type is not available in the new canvas yet.",
|
|
275
|
+
"This node's configuration has not been migrated to the new canvas yet.": "This node's configuration has not been migrated to the new canvas yet.",
|
|
276
|
+
"Node title": "Node title",
|
|
277
|
+
"Failed to add node": "Failed to add node",
|
|
278
|
+
"Failed to delete node": "Failed to delete node",
|
|
279
|
+
"Failed to save node": "Failed to save node",
|
|
280
|
+
"Failed to run": "Failed to run",
|
|
281
|
+
"Copied node": "Copied node"
|
|
269
282
|
}
|
package/dist/locale/uk-UA.json
CHANGED
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
"Executed at": "Executed at",
|
|
103
103
|
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Executed workflow cannot be modified. Could be copied to a new version to modify.",
|
|
104
104
|
"Execution history": "Execution history",
|
|
105
|
+
"Version ID": "Version ID",
|
|
106
|
+
"Parent execution ID": "Parent execution ID",
|
|
107
|
+
"Triggered manually": "Triggered manually",
|
|
105
108
|
"Timeout settings": "Налаштування тайм-ауту",
|
|
106
109
|
"0 means unlimited. If you set any other value and the execution is still not completed when the timeout is reached, the execution plan will be terminated and the remaining nodes will not be executed. Time spent in queue is not counted; timing starts only after it first enters a processor.": "0 означає без обмежень. Якщо встановити будь-яке інше значення і на момент досягнення тайм-ауту виконання ще не завершене, план виконання буде зупинено, а решта вузлів не виконуватиметься. Час у черзі не враховується; відлік починається лише після першого входу до процесора.",
|
|
107
110
|
"Exit when query result is null": "Exit when query result is null",
|
|
@@ -202,6 +205,7 @@
|
|
|
202
205
|
"Syntax references: ": "Syntax references: ",
|
|
203
206
|
"System time": "System time",
|
|
204
207
|
"System variables": "System variables",
|
|
208
|
+
"System process failed, please contact administrator.": "Системний процес завершився з помилкою, зверніться до адміністратора.",
|
|
205
209
|
"Task type {{type}} is invalid": "Task type {{type}} is invalid",
|
|
206
210
|
"Test run": "Test run",
|
|
207
211
|
"Test run will do the actual data manipulating or API calling, please use with caution.": "Test run will do the actual data manipulating or API calling, please use with caution.",
|
|
@@ -265,5 +269,14 @@
|
|
|
265
269
|
"Impacted dependent node variables": "Вузли, які посилаються на змінні поточного вузла",
|
|
266
270
|
"Keep variable references": "Зберегти посилання на змінні",
|
|
267
271
|
"Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Збереження посилань на змінні потребує ручного налаштування, інакше робочий процес може завершитися помилкою.",
|
|
268
|
-
"Failed to update node variables": "Не вдалося оновити змінні вузла"
|
|
272
|
+
"Failed to update node variables": "Не вдалося оновити змінні вузла",
|
|
273
|
+
"Unsupported node": "Unsupported node",
|
|
274
|
+
"This node type is not available in the new canvas yet.": "This node type is not available in the new canvas yet.",
|
|
275
|
+
"This node's configuration has not been migrated to the new canvas yet.": "This node's configuration has not been migrated to the new canvas yet.",
|
|
276
|
+
"Node title": "Node title",
|
|
277
|
+
"Failed to add node": "Failed to add node",
|
|
278
|
+
"Failed to delete node": "Failed to delete node",
|
|
279
|
+
"Failed to save node": "Failed to save node",
|
|
280
|
+
"Failed to run": "Failed to run",
|
|
281
|
+
"Copied node": "Copied node"
|
|
269
282
|
}
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
"Executed at": "Executed at",
|
|
103
103
|
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Executed workflow cannot be modified. Could be copied to a new version to modify.",
|
|
104
104
|
"Execution history": "Execution history",
|
|
105
|
+
"Version ID": "Version ID",
|
|
106
|
+
"Parent execution ID": "Parent execution ID",
|
|
107
|
+
"Triggered manually": "Triggered manually",
|
|
105
108
|
"Timeout settings": "Cài đặt thời gian chờ",
|
|
106
109
|
"0 means unlimited. If you set any other value and the execution is still not completed when the timeout is reached, the execution plan will be terminated and the remaining nodes will not be executed. Time spent in queue is not counted; timing starts only after it first enters a processor.": "0 nghĩa là không giới hạn. Nếu đặt bất kỳ giá trị nào khác mà việc thực thi vẫn chưa hoàn tất khi hết thời gian chờ, kế hoạch thực thi sẽ bị chấm dứt và các nút còn lại sẽ không được thực thi. Thời gian chờ trong hàng đợi không được tính; chỉ bắt đầu tính thời gian sau khi lần đầu đi vào bộ xử lý.",
|
|
107
110
|
"Exit when query result is null": "Exit when query result is null",
|
|
@@ -202,6 +205,7 @@
|
|
|
202
205
|
"Syntax references: ": "Syntax references: ",
|
|
203
206
|
"System time": "System time",
|
|
204
207
|
"System variables": "System variables",
|
|
208
|
+
"System process failed, please contact administrator.": "Quy trình hệ thống thất bại, vui lòng liên hệ quản trị viên.",
|
|
205
209
|
"Task type {{type}} is invalid": "Task type {{type}} is invalid",
|
|
206
210
|
"Test run": "Test run",
|
|
207
211
|
"Test run will do the actual data manipulating or API calling, please use with caution.": "Test run will do the actual data manipulating or API calling, please use with caution.",
|
|
@@ -266,5 +270,14 @@
|
|
|
266
270
|
"Impacted dependent node variables": "Các nút tham chiếu đến biến của nút hiện tại",
|
|
267
271
|
"Keep variable references": "Giữ tham chiếu biến",
|
|
268
272
|
"Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Giữ tham chiếu biến cần điều chỉnh thủ công, nếu không quy trình có thể lỗi.",
|
|
269
|
-
"Failed to update node variables": "Không thể cập nhật biến của nút"
|
|
273
|
+
"Failed to update node variables": "Không thể cập nhật biến của nút",
|
|
274
|
+
"Unsupported node": "Unsupported node",
|
|
275
|
+
"This node type is not available in the new canvas yet.": "This node type is not available in the new canvas yet.",
|
|
276
|
+
"This node's configuration has not been migrated to the new canvas yet.": "This node's configuration has not been migrated to the new canvas yet.",
|
|
277
|
+
"Node title": "Node title",
|
|
278
|
+
"Failed to add node": "Failed to add node",
|
|
279
|
+
"Failed to delete node": "Failed to delete node",
|
|
280
|
+
"Failed to save node": "Failed to save node",
|
|
281
|
+
"Failed to run": "Failed to run",
|
|
282
|
+
"Copied node": "Copied node"
|
|
270
283
|
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"Add": "添加",
|
|
9
9
|
"Add branch": "添加分支",
|
|
10
10
|
"Add category": "添加分类",
|
|
11
|
+
"Add field": "添加字段",
|
|
11
12
|
"Add new record to a collection. You can use variables from upstream nodes to assign values to fields.": "向一个数据表中添加新的数据。可以使用上游节点里的变量为字段赋值。",
|
|
12
13
|
"Add node": "添加节点",
|
|
13
14
|
"Add workflow": "添加工作流",
|
|
@@ -120,6 +121,7 @@
|
|
|
120
121
|
"Failed to satisfy node configurations.": "未满足节点配置造成的失败。",
|
|
121
122
|
"False": "假",
|
|
122
123
|
"Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.",
|
|
124
|
+
"Fields values": "字段值",
|
|
123
125
|
"First condition": "第一个条件",
|
|
124
126
|
"For user actions that require immediate feedback. Can not use asynchronous nodes in such mode, and it is not recommended to perform time-consuming operations under synchronous mode.": "适用于需要即时反馈的用户操作。不能在此模式下使用异步节点,并且不建议在同步模式下执行耗时的操作。",
|
|
125
127
|
"From left to right, attempt each branch sequentially based on the configured conditions. Only branches that meet the conditions will be executed. Otherwise, the next branch will be attempted. If none of the branches meet the conditions, it can either exit the process or continue to the next node based on configuration.": "从左到右,基于配置的条件,依次尝试每个分支。只有满足条件的分支才会被执行,否则尝试下一个分支。如果没有任何分支满足条件,可以根据配置选择退出流程或继续下一个节点。",
|
|
@@ -159,6 +161,7 @@
|
|
|
159
161
|
"No workflow tasks available. Please contact the administrator.": "没有可用的工作流待办,请联系管理员。",
|
|
160
162
|
"Node in executed workflow cannot be modified": "Node in executed workflow cannot be modified",
|
|
161
163
|
"Node result": "节点数据",
|
|
164
|
+
"Node title": "节点标题",
|
|
162
165
|
"Node type": "节点类型",
|
|
163
166
|
"Node with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的节点会导致错误,请删除或检查提供该类型的插件。",
|
|
164
167
|
"Null": "Null",
|
|
@@ -173,6 +176,7 @@
|
|
|
173
176
|
"Otherwise": "否则",
|
|
174
177
|
"Output": "流程输出",
|
|
175
178
|
"Output value": "结果值",
|
|
179
|
+
"Parent execution ID": "父执行 ID",
|
|
176
180
|
"Pending": "待处理",
|
|
177
181
|
"Please add at least one condition": "请添加至少一个条件",
|
|
178
182
|
"Please select collection first": "请先选择数据表",
|
|
@@ -212,8 +216,12 @@
|
|
|
212
216
|
"Support pre-action event (local mode), post-action event (local mode), and approval event here.": "此处支持“操作前事件(局部模式)”、“操作后事件(局部模式)”、“审批事件”。",
|
|
213
217
|
"Sync": "同步",
|
|
214
218
|
"Sync enabled status of all workflows from database": "从数据库同步所有工作流的启用状态",
|
|
219
|
+
"Synchronous collection event workflows run within the trigger transaction by default. Related data operations automatically use this transaction.": "同步的数据表事件工作流默认包含在触发器事务之内,相关的数据处理会自动应用该事务。",
|
|
220
|
+
"Rollback when workflow execution fails": "流程执行失败时回滚",
|
|
221
|
+
"Only available in synchronous mode. When enabled, if the workflow execution ends with a failed status, the data operation that triggered it will fail and be rolled back.": "仅在同步模式下可用。启用后,如果流程执行以失败状态结束,触发该流程的数据操作也会失败并回滚。",
|
|
215
222
|
"Synchronously": "同步",
|
|
216
223
|
"Syntax references: ": "语法参考:",
|
|
224
|
+
"System process failed, please contact administrator.": "系统处理失败,请联系管理员。",
|
|
217
225
|
"System time": "系统时间",
|
|
218
226
|
"System variables": "系统变量",
|
|
219
227
|
"Generate snowflake ID": "生成雪花 ID",
|
|
@@ -232,6 +240,8 @@
|
|
|
232
240
|
"This is a main version, delete it will cause the whole workflow to be deleted (including all other revisions).": "当前是主版本,删除将导致整个流程被删除(包括所有其他版本)。",
|
|
233
241
|
"This node contains branches, deleting will also be preformed to them, are you sure?": "节点包含分支,将同时删除其所有分支下的子节点,确定继续?",
|
|
234
242
|
"This type of node can not be used in current type of workflow or execute mode.": "该类型的节点在当前类型的工作流或执行模式中不可用。",
|
|
243
|
+
"This node type is not available in the new canvas yet.": "该节点类型尚未在新画布中支持。",
|
|
244
|
+
"This node's configuration has not been migrated to the new canvas yet.": "该节点的配置尚未迁移到新画布。",
|
|
235
245
|
"This type of trigger has not been supported to be executed manually.": "该类型的触发器暂未支持手动执行。",
|
|
236
246
|
"This will perform all the actions configured in the workflow. Are you sure you want to continue?": "将按照工作流中配置的所有操作执行,确定继续吗?",
|
|
237
247
|
"Trigger": "触发器",
|
|
@@ -248,6 +258,7 @@
|
|
|
248
258
|
"Triggered according to preset time conditions. Suitable for one-time or periodic tasks, such as sending notifications and cleaning data on a schedule.": "按预设的时间条件定时触发。适用于一次性或周期性的任务,如定时发送通知、清理数据等。",
|
|
249
259
|
"Triggered at": "触发时间",
|
|
250
260
|
"Triggered but still waiting in queue to execute.": "已触发但仍在队列中等待执行。",
|
|
261
|
+
"Triggered manually": "手动触发",
|
|
251
262
|
"Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added, any field is considered to have been changed.": "只有被选中的某个字段发生变动时才会触发。如果不选择,则表示任何字段变动时都会触发。新增数据时,任意字段都被认为发生变动。",
|
|
252
263
|
"Triggered when data changes in the collection, such as after adding, updating, or deleting a record. Unlike \"Post-action event\", Collection event listens for data changes rather than HTTP requests. Unless you understand the exact meaning, it is recommended to use \"Post-action event\".": "当数据表中的数据发生变化时触发,比如新增、更新或删除一条数据后。与“操作后事件”不同,数据表事件监听数据变动而不是 HTTP 请求,除非你明白确切含义,否则推荐使用“操作后事件”。",
|
|
253
264
|
"True": "真",
|
|
@@ -259,16 +270,19 @@
|
|
|
259
270
|
"Update in a batch": "批量更新",
|
|
260
271
|
"Update mode": "更新模式",
|
|
261
272
|
"Update one by one": "逐条更新",
|
|
273
|
+
"Unsupported node": "暂不支持的节点",
|
|
262
274
|
"Update record": "更新数据",
|
|
263
275
|
"Update records of a collection. You can use variables from upstream nodes as query conditions and field values.": "更新一个数据表中的数据。可以使用上游节点里的变量作为查询条件和数据值。",
|
|
264
276
|
"Use transaction": "启用事务",
|
|
265
277
|
"Variable key of node": "节点变量标识",
|
|
266
278
|
"Version": "版本",
|
|
279
|
+
"Version ID": "版本 ID",
|
|
267
280
|
"View result": "查看结果",
|
|
268
281
|
"Weeks": "周",
|
|
269
282
|
"When no condition matches": "未满足任何条件时",
|
|
270
283
|
"Will be executed in the background as a queued task.": "将作为队列任务在后台执行。",
|
|
271
284
|
"Workflow": "工作流",
|
|
285
|
+
"Workflow canvas editor is being migrated to the new UI.": "工作流画布编辑器正在迁移到新版界面。",
|
|
272
286
|
"Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "工作流已执行,结果状态为 <1>{{statusText}}</1><2>查看执行详情</2>",
|
|
273
287
|
"Workflow of execution is not existed": "执行计划对应的工作流不存在",
|
|
274
288
|
"Workflow tasks": "流程待办",
|
|
@@ -277,6 +291,10 @@
|
|
|
277
291
|
"Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "按钮点击后直接触发工作流,但不会保存数据。仅支持绑定“自定义操作事件”。",
|
|
278
292
|
"Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的工作流会导致错误,请删除或检查提供该类型的插件。",
|
|
279
293
|
"Yes": "是",
|
|
294
|
+
"Failed to add node": "添加节点失败",
|
|
295
|
+
"Failed to delete node": "删除节点失败",
|
|
296
|
+
"Failed to run": "执行失败",
|
|
297
|
+
"Failed to save node": "保存节点失败",
|
|
280
298
|
"Failed to move node": "节点移动失败",
|
|
281
299
|
"Confirm move": "确认移动",
|
|
282
300
|
"Moving this node may remove variable references.": "移动该节点可能会移除变量引用。",
|
|
@@ -292,5 +310,6 @@
|
|
|
292
310
|
"Click a paste button to place": "点击粘贴按钮放置",
|
|
293
311
|
"Confirm paste": "确认粘贴",
|
|
294
312
|
"This action will remove invalid variable references, otherwise the workflow cannot run correctly.": "该操作将移除无效的变量引用,否则工作流将无法正确执行。",
|
|
295
|
-
"Failed to paste node": "粘贴节点失败"
|
|
313
|
+
"Failed to paste node": "粘贴节点失败",
|
|
314
|
+
"Available in the classic UI for now": "暂时仅在旧版界面中可用"
|
|
296
315
|
}
|
package/dist/locale/zh-TW.json
CHANGED
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
"Executed at": "Executed at",
|
|
103
103
|
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Executed workflow cannot be modified. Could be copied to a new version to modify.",
|
|
104
104
|
"Execution history": "Execution history",
|
|
105
|
+
"Version ID": "Version ID",
|
|
106
|
+
"Parent execution ID": "Parent execution ID",
|
|
107
|
+
"Triggered manually": "Triggered manually",
|
|
105
108
|
"Timeout settings": "逾時設定",
|
|
106
109
|
"0 means unlimited. If you set any other value and the execution is still not completed when the timeout is reached, the execution plan will be terminated and the remaining nodes will not be executed. Time spent in queue is not counted; timing starts only after it first enters a processor.": "0 表示不限制,設定其他任意值在到期仍未執行完成時,執行計畫將被終止,剩餘節點不再執行。處於佇列中的執行計畫不計時,僅在首次進入處理器後開始計時。",
|
|
107
110
|
"Exit when query result is null": "Exit when query result is null",
|
|
@@ -202,6 +205,7 @@
|
|
|
202
205
|
"Syntax references: ": "Syntax references: ",
|
|
203
206
|
"System time": "System time",
|
|
204
207
|
"System variables": "System variables",
|
|
208
|
+
"System process failed, please contact administrator.": "系統處理失敗,請聯絡管理員。",
|
|
205
209
|
"Task type {{type}} is invalid": "Task type {{type}} is invalid",
|
|
206
210
|
"Test run": "Test run",
|
|
207
211
|
"Test run will do the actual data manipulating or API calling, please use with caution.": "Test run will do the actual data manipulating or API calling, please use with caution.",
|
|
@@ -265,5 +269,14 @@
|
|
|
265
269
|
"Impacted dependent node variables": "引用目前節點變數的節點",
|
|
266
270
|
"Keep variable references": "保留變數引用",
|
|
267
271
|
"Keeping variable references requires manual adjustment, otherwise workflow may fail.": "已保留變數引用,請手動調整,否則工作流執行可能出錯。",
|
|
268
|
-
"Failed to update node variables": "更新節點變數失敗"
|
|
272
|
+
"Failed to update node variables": "更新節點變數失敗",
|
|
273
|
+
"Unsupported node": "Unsupported node",
|
|
274
|
+
"This node type is not available in the new canvas yet.": "This node type is not available in the new canvas yet.",
|
|
275
|
+
"This node's configuration has not been migrated to the new canvas yet.": "This node's configuration has not been migrated to the new canvas yet.",
|
|
276
|
+
"Node title": "Node title",
|
|
277
|
+
"Failed to add node": "Failed to add node",
|
|
278
|
+
"Failed to delete node": "Failed to delete node",
|
|
279
|
+
"Failed to save node": "Failed to save node",
|
|
280
|
+
"Failed to run": "Failed to run",
|
|
281
|
+
"Copied node": "Copied node"
|
|
269
282
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-06-
|
|
1
|
+
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-06-26T03:51:21.935Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-06-
|
|
1
|
+
{"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-06-26T03:51:21.654Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"11.3.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","prepare":"tshy && bash scripts/build.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig ./.tshy/esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile","lint":"oxlint --fix src test","postsnap":"npm run lint","postlint":"npm run format"},"main":"./dist/commonjs/index.min.js","types":"./dist/commonjs/index.d.ts","tshy":{"esmDialects":["node","browser"],"exports":{"./raw":"./src/index.ts",".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"selfLink":false},"repository":{"type":"git","url":"git+ssh://git@github.com/isaacs/node-lru-cache.git"},"devDependencies":{"benchmark":"^2.1.4","esbuild":"^0.25.9","marked":"^4.2.12","mkdirp":"^3.0.1","oxlint":"^1.58.0","oxlint-tsgolint":"^0.19.0","prettier":"^3.8.1","tap":"^21.6.3","tshy":"^4.1.1","typedoc":"^0.28.18"},"license":"BlueOak-1.0.0","files":["dist"],"engines":{"node":"20 || >=22"},"exports":{"./raw":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"type":"module","module":"./dist/esm/index.min.js","_lastModified":"2026-06-
|
|
1
|
+
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"11.3.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","prepare":"tshy && bash scripts/build.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig ./.tshy/esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile","lint":"oxlint --fix src test","postsnap":"npm run lint","postlint":"npm run format"},"main":"./dist/commonjs/index.min.js","types":"./dist/commonjs/index.d.ts","tshy":{"esmDialects":["node","browser"],"exports":{"./raw":"./src/index.ts",".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"selfLink":false},"repository":{"type":"git","url":"git+ssh://git@github.com/isaacs/node-lru-cache.git"},"devDependencies":{"benchmark":"^2.1.4","esbuild":"^0.25.9","marked":"^4.2.12","mkdirp":"^3.0.1","oxlint":"^1.58.0","oxlint-tsgolint":"^0.19.0","prettier":"^3.8.1","tap":"^21.6.3","tshy":"^4.1.1","typedoc":"^0.28.18"},"license":"BlueOak-1.0.0","files":["dist"],"engines":{"node":"20 || >=22"},"exports":{"./raw":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"type":"module","module":"./dist/esm/index.min.js","_lastModified":"2026-06-26T03:51:20.891Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-06-
|
|
1
|
+
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-06-26T03:51:20.719Z"}
|
|
@@ -29,6 +29,12 @@ export type BackgroundAbortHandle = {
|
|
|
29
29
|
dispose: () => void;
|
|
30
30
|
throwIfAborted: () => void;
|
|
31
31
|
};
|
|
32
|
+
export type ScopeTransaction = {
|
|
33
|
+
transaction: Transaction;
|
|
34
|
+
dataSource: string;
|
|
35
|
+
isolationLevel?: string;
|
|
36
|
+
closing?: 'commit' | 'rollback';
|
|
37
|
+
};
|
|
32
38
|
export default class Processor {
|
|
33
39
|
execution: ExecutionModel;
|
|
34
40
|
options: ProcessorOptions;
|
|
@@ -58,6 +64,7 @@ export default class Processor {
|
|
|
58
64
|
private jobsMapByNodeKey;
|
|
59
65
|
private jobResultsMapByNodeKey;
|
|
60
66
|
private jobsToSave;
|
|
67
|
+
private scopeTransactions;
|
|
61
68
|
private rerunContext;
|
|
62
69
|
/**
|
|
63
70
|
* @experimental
|
|
@@ -111,6 +118,15 @@ export default class Processor {
|
|
|
111
118
|
end(node: FlowNodeModel, job: JobModel): Promise<any>;
|
|
112
119
|
private recall;
|
|
113
120
|
exit(s?: number | true): Promise<any>;
|
|
121
|
+
setScopeTransaction(key: string, info: ScopeTransaction): void;
|
|
122
|
+
getScopeTransactionByKey(key: string): ScopeTransaction;
|
|
123
|
+
clearScopeTransaction(key: string): void;
|
|
124
|
+
markScopeTransactionClosing(key: string, action: 'commit' | 'rollback'): void;
|
|
125
|
+
getScopeTransaction(node: FlowNodeModel, dataSourceName?: string): Transaction | null;
|
|
126
|
+
isInstructionSync(node: FlowNodeModel): boolean;
|
|
127
|
+
private hasOpenScopeTransactions;
|
|
128
|
+
private markOpenScopePendingJobsAsError;
|
|
129
|
+
private cleanupScopeTransactions;
|
|
114
130
|
/**
|
|
115
131
|
* @experimental
|
|
116
132
|
*/
|
package/dist/server/Processor.js
CHANGED
|
@@ -46,6 +46,7 @@ var import_utils = require("@nocobase/utils");
|
|
|
46
46
|
var import_set = __toESM(require("lodash/set"));
|
|
47
47
|
var import_constants = require("./constants");
|
|
48
48
|
var import_timeout_errors = require("./timeout-errors");
|
|
49
|
+
const OPEN_SCOPE_PENDING_ERROR = "Pending jobs are not allowed inside an open transaction scope";
|
|
49
50
|
class Processor {
|
|
50
51
|
constructor(execution, options) {
|
|
51
52
|
this.execution = execution;
|
|
@@ -79,6 +80,7 @@ class Processor {
|
|
|
79
80
|
jobsMapByNodeKey = {};
|
|
80
81
|
jobResultsMapByNodeKey = {};
|
|
81
82
|
jobsToSave = /* @__PURE__ */ new Map();
|
|
83
|
+
scopeTransactions = /* @__PURE__ */ new Map();
|
|
82
84
|
rerunContext = null;
|
|
83
85
|
/**
|
|
84
86
|
* @experimental
|
|
@@ -447,6 +449,15 @@ class Processor {
|
|
|
447
449
|
if (s === true) {
|
|
448
450
|
return;
|
|
449
451
|
}
|
|
452
|
+
if ((s == null || s === import_constants.JOB_STATUS.PENDING) && this.hasOpenScopeTransactions()) {
|
|
453
|
+
this.markOpenScopePendingJobsAsError(OPEN_SCOPE_PENDING_ERROR);
|
|
454
|
+
s = import_constants.JOB_STATUS.ERROR;
|
|
455
|
+
}
|
|
456
|
+
const hadScopeTransactions = this.scopeTransactions.size > 0;
|
|
457
|
+
await this.cleanupScopeTransactions({ allowCommit: s === import_constants.JOB_STATUS.RESOLVED });
|
|
458
|
+
if (hadScopeTransactions && s == null && this.execution.status === import_constants.EXECUTION_STATUS.STARTED) {
|
|
459
|
+
s = import_constants.JOB_STATUS.ERROR;
|
|
460
|
+
}
|
|
450
461
|
if (this.jobsToSave.size) {
|
|
451
462
|
const newJobs = [];
|
|
452
463
|
for (const job of this.jobsToSave.values()) {
|
|
@@ -520,6 +531,107 @@ class Processor {
|
|
|
520
531
|
});
|
|
521
532
|
return null;
|
|
522
533
|
}
|
|
534
|
+
setScopeTransaction(key, info) {
|
|
535
|
+
this.scopeTransactions.set(key, info);
|
|
536
|
+
}
|
|
537
|
+
getScopeTransactionByKey(key) {
|
|
538
|
+
return this.scopeTransactions.get(key) ?? null;
|
|
539
|
+
}
|
|
540
|
+
clearScopeTransaction(key) {
|
|
541
|
+
this.scopeTransactions.delete(key);
|
|
542
|
+
}
|
|
543
|
+
markScopeTransactionClosing(key, action) {
|
|
544
|
+
const scopeTransaction = this.scopeTransactions.get(key);
|
|
545
|
+
if (scopeTransaction) {
|
|
546
|
+
scopeTransaction.closing = action;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
getScopeTransaction(node, dataSourceName) {
|
|
550
|
+
for (let current = node; current; current = current.upstream) {
|
|
551
|
+
const scopeTransaction = this.scopeTransactions.get(current.key);
|
|
552
|
+
if (!scopeTransaction) {
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
if (dataSourceName && scopeTransaction.dataSource !== dataSourceName) {
|
|
556
|
+
continue;
|
|
557
|
+
}
|
|
558
|
+
const branchStartNode = this.findBranchStartNode(node, current);
|
|
559
|
+
if ((branchStartNode == null ? void 0 : branchStartNode.branchIndex) !== 1) {
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
return scopeTransaction.transaction;
|
|
563
|
+
}
|
|
564
|
+
return null;
|
|
565
|
+
}
|
|
566
|
+
isInstructionSync(node) {
|
|
567
|
+
return this.options.plugin.isWorkflowSync(this.execution.workflow) || Boolean(this.getScopeTransaction(node));
|
|
568
|
+
}
|
|
569
|
+
hasOpenScopeTransactions() {
|
|
570
|
+
for (const { transaction } of this.scopeTransactions.values()) {
|
|
571
|
+
if (!transaction.finished) {
|
|
572
|
+
return true;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return false;
|
|
576
|
+
}
|
|
577
|
+
markOpenScopePendingJobsAsError(message) {
|
|
578
|
+
const pendingJobs = /* @__PURE__ */ new Set();
|
|
579
|
+
for (const job of this.jobsToSave.values()) {
|
|
580
|
+
if (job.status === import_constants.JOB_STATUS.PENDING) {
|
|
581
|
+
pendingJobs.add(job);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
for (const job of Object.values(this.jobsMapByNodeKey)) {
|
|
585
|
+
if (job.status === import_constants.JOB_STATUS.PENDING) {
|
|
586
|
+
pendingJobs.add(job);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
for (const key of this.scopeTransactions.keys()) {
|
|
590
|
+
const job = this.jobsMapByNodeKey[key];
|
|
591
|
+
if ((job == null ? void 0 : job.status) === import_constants.JOB_STATUS.PENDING) {
|
|
592
|
+
pendingJobs.add(job);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
for (const job of pendingJobs) {
|
|
596
|
+
job.set({
|
|
597
|
+
status: import_constants.JOB_STATUS.ERROR,
|
|
598
|
+
result: {
|
|
599
|
+
message
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
this.saveJob(job);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
async cleanupScopeTransactions({ allowCommit = false } = {}) {
|
|
606
|
+
if (!this.scopeTransactions.size) {
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
|
+
for (const [key, { transaction, dataSource, closing }] of Array.from(this.scopeTransactions.entries()).reverse()) {
|
|
610
|
+
const tx = transaction;
|
|
611
|
+
if (tx.finished) {
|
|
612
|
+
this.scopeTransactions.delete(key);
|
|
613
|
+
continue;
|
|
614
|
+
}
|
|
615
|
+
const action = closing === "commit" && allowCommit ? "commit" : "rollback";
|
|
616
|
+
const actionText = action === "commit" ? "committing" : "rolling back";
|
|
617
|
+
this.logger.warn(
|
|
618
|
+
`scope transaction (${key}) on data source "${dataSource}" was not closed before exit, ${actionText}`,
|
|
619
|
+
{
|
|
620
|
+
workflowId: this.execution.workflowId
|
|
621
|
+
}
|
|
622
|
+
);
|
|
623
|
+
try {
|
|
624
|
+
await tx[action]();
|
|
625
|
+
} catch (error) {
|
|
626
|
+
this.logger.error(`scope transaction (${key}) fallback ${action} failed`, {
|
|
627
|
+
error,
|
|
628
|
+
workflowId: this.execution.workflowId
|
|
629
|
+
});
|
|
630
|
+
} finally {
|
|
631
|
+
this.scopeTransactions.delete(key);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
523
635
|
/**
|
|
524
636
|
* @experimental
|
|
525
637
|
*/
|
package/dist/server/index.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export * from './timeout-errors';
|
|
|
15
15
|
export { Trigger } from './triggers';
|
|
16
16
|
export type { EventOptions } from './Dispatcher';
|
|
17
17
|
export { default as Processor } from './Processor';
|
|
18
|
-
export type { BackgroundAbortHandle, ProcessorOptions } from './Processor';
|
|
18
|
+
export type { BackgroundAbortHandle, ProcessorOptions, ScopeTransaction } from './Processor';
|
|
19
19
|
export { default } from './Plugin';
|
|
20
20
|
export * from './types';
|
|
@@ -63,9 +63,13 @@ class CreateInstruction extends import__.Instruction {
|
|
|
63
63
|
async run(node, input, processor) {
|
|
64
64
|
const { collection, params: { appends = [], ...params } = {} } = node.config;
|
|
65
65
|
const [dataSourceName, collectionName] = (0, import_data_source_manager.parseCollectionName)(collection);
|
|
66
|
-
const
|
|
66
|
+
const dataSource = this.workflow.app.dataSourceManager.dataSources.get(dataSourceName);
|
|
67
|
+
if (!dataSource) {
|
|
68
|
+
throw new Error(`Data source ${dataSourceName} not found`);
|
|
69
|
+
}
|
|
70
|
+
const { repository, filterTargetKey } = dataSource.collectionManager.getCollection(collectionName);
|
|
67
71
|
const options = processor.getParsedValue(params, node.id);
|
|
68
|
-
const transaction = this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction);
|
|
72
|
+
const transaction = processor.getScopeTransaction(node, dataSourceName) ?? this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction);
|
|
69
73
|
const created = await repository.create({
|
|
70
74
|
...options,
|
|
71
75
|
context: {
|
|
@@ -64,12 +64,13 @@ class DestroyInstruction extends import__.Instruction {
|
|
|
64
64
|
const [dataSourceName, collectionName] = (0, import_data_source_manager.parseCollectionName)(collection);
|
|
65
65
|
const { repository } = this.workflow.app.dataSourceManager.dataSources.get(dataSourceName).collectionManager.getCollection(collectionName);
|
|
66
66
|
const options = processor.getParsedValue(params, node.id);
|
|
67
|
+
const transaction = processor.getScopeTransaction(node, dataSourceName) ?? this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction);
|
|
67
68
|
const result = await repository.destroy({
|
|
68
69
|
...options,
|
|
69
70
|
context: {
|
|
70
71
|
stack: Array.from(new Set((processor.execution.stack ?? []).concat(processor.execution.id)))
|
|
71
72
|
},
|
|
72
|
-
transaction
|
|
73
|
+
transaction
|
|
73
74
|
});
|
|
74
75
|
return {
|
|
75
76
|
result,
|
|
@@ -78,6 +78,7 @@ class QueryInstruction extends import__.Instruction {
|
|
|
78
78
|
return set;
|
|
79
79
|
}, /* @__PURE__ */ new Set())
|
|
80
80
|
) : options.appends;
|
|
81
|
+
const transaction = processor.getScopeTransaction(node, dataSourceName) ?? this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction);
|
|
81
82
|
const result = await (multiple ? repository.find : repository.findOne).call(repository, {
|
|
82
83
|
...options,
|
|
83
84
|
...import_actions.utils.pageArgsToLimitArgs(page ?? import_actions.DEFAULT_PAGE, pageSize ?? import_actions.DEFAULT_PER_PAGE),
|
|
@@ -86,7 +87,7 @@ class QueryInstruction extends import__.Instruction {
|
|
|
86
87
|
return `${((_a = item.direction) == null ? void 0 : _a.toLowerCase()) === "desc" ? "-" : ""}${item.field}`;
|
|
87
88
|
}),
|
|
88
89
|
appends,
|
|
89
|
-
transaction
|
|
90
|
+
transaction
|
|
90
91
|
});
|
|
91
92
|
if (failOnEmpty && (multiple ? !result.length : !result)) {
|
|
92
93
|
return {
|
|
@@ -66,12 +66,13 @@ class UpdateInstruction extends import__.Instruction {
|
|
|
66
66
|
const [dataSourceName, collectionName] = (0, import_data_source_manager.parseCollectionName)(collection);
|
|
67
67
|
const { repository } = this.workflow.app.dataSourceManager.dataSources.get(dataSourceName).collectionManager.getCollection(collectionName);
|
|
68
68
|
const options = processor.getParsedValue(params, node.id);
|
|
69
|
+
const transaction = processor.getScopeTransaction(node, dataSourceName) ?? this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction);
|
|
69
70
|
const result = await repository.update({
|
|
70
71
|
...options,
|
|
71
72
|
context: {
|
|
72
73
|
stack: Array.from(new Set((processor.execution.stack ?? []).concat(processor.execution.id)))
|
|
73
74
|
},
|
|
74
|
-
transaction
|
|
75
|
+
transaction
|
|
75
76
|
});
|
|
76
77
|
return {
|
|
77
78
|
result: result.length ?? result,
|