@nocobase/plugin-workflow 2.0.0-beta.2 → 2.0.0-beta.21

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.
Files changed (55) hide show
  1. package/dist/client/0b6813dae26ccf21.js +10 -0
  2. package/dist/client/{80d4cd8911e03c27.js → 2076012783c998ad.js} +1 -1
  3. package/dist/client/59fcf22e646963ed.js +10 -0
  4. package/dist/client/AddNodeContext.d.ts +1 -0
  5. package/dist/client/NodeClipboardContext.d.ts +11 -0
  6. package/dist/client/NodeDragContext.d.ts +11 -0
  7. package/dist/client/index.d.ts +3 -0
  8. package/dist/client/index.js +1 -1
  9. package/dist/client/models/NodeDetailsModel.d.ts +34 -0
  10. package/dist/client/models/NodeValueModel.d.ts +15 -0
  11. package/dist/client/models/TaskCardCommonItemModel.d.ts +14 -0
  12. package/dist/client/models/index.d.ts +11 -0
  13. package/dist/client/nodeVariableUtils.d.ts +14 -0
  14. package/dist/client/nodes/calculation.d.ts +7 -0
  15. package/dist/client/nodes/create.d.ts +7 -0
  16. package/dist/client/nodes/index.d.ts +14 -0
  17. package/dist/client/nodes/output.d.ts +53 -0
  18. package/dist/client/nodes/query.d.ts +7 -0
  19. package/dist/client/style.d.ts +4 -0
  20. package/dist/common/collections/jobs.js +4 -0
  21. package/dist/externalVersion.js +12 -12
  22. package/dist/locale/de-DE.json +10 -3
  23. package/dist/locale/en-US.json +22 -3
  24. package/dist/locale/es-ES.json +10 -3
  25. package/dist/locale/fr-FR.json +10 -3
  26. package/dist/locale/hu-HU.json +10 -2
  27. package/dist/locale/id-ID.json +10 -2
  28. package/dist/locale/it-IT.json +10 -3
  29. package/dist/locale/ja-JP.json +10 -5
  30. package/dist/locale/ko-KR.json +10 -3
  31. package/dist/locale/nl-NL.json +10 -3
  32. package/dist/locale/pt-BR.json +10 -3
  33. package/dist/locale/ru-RU.json +10 -3
  34. package/dist/locale/tr-TR.json +10 -3
  35. package/dist/locale/uk-UA.json +10 -3
  36. package/dist/locale/vi-VN.json +10 -2
  37. package/dist/locale/zh-CN.json +25 -4
  38. package/dist/locale/zh-TW.json +10 -3
  39. package/dist/node_modules/cron-parser/package.json +1 -1
  40. package/dist/node_modules/lru-cache/package.json +1 -1
  41. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  42. package/dist/server/Dispatcher.js +2 -1
  43. package/dist/server/Plugin.js +6 -1
  44. package/dist/server/Processor.d.ts +9 -0
  45. package/dist/server/Processor.js +6 -1
  46. package/dist/server/actions/index.js +2 -0
  47. package/dist/server/actions/nodes.d.ts +2 -0
  48. package/dist/server/actions/nodes.js +281 -2
  49. package/dist/server/instructions/ConditionInstruction.js +4 -1
  50. package/dist/server/instructions/OutputInstruction.d.ts +21 -0
  51. package/dist/server/instructions/OutputInstruction.js +54 -0
  52. package/dist/server/repositories/WorkflowRepository.js +2 -1
  53. package/package.json +2 -2
  54. package/dist/client/bfc2a351589613e1.js +0 -10
  55. package/dist/client/e078314a62391f36.js +0 -10
@@ -54,7 +54,7 @@
54
54
  "Collection event": "Collection event",
55
55
  "Collection operations": "Collection operations",
56
56
  "Completed": "Completed",
57
- "Concat": "Concat",
57
+ "Concatenate": "Concatenate",
58
58
  "Condition": "Voorwaarde",
59
59
  "Condition expression": "Condition expression",
60
60
  "Condition label": "Condition label",
@@ -247,12 +247,19 @@
247
247
  "Will be executed in the background as a queued task.": "Will be executed in the background as a queued task.",
248
248
  "Workflow": "Workflow",
249
249
  "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>",
250
- "Workflow is not exists": "Workflow is not exists",
250
+ "Workflow of execution is not existed": "Workflow of execution is not existed",
251
251
  "Workflow tasks": "Workflow tasks",
252
252
  "Workflow todos": "Workflow todos",
253
253
  "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).",
254
254
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".",
255
255
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.",
256
256
  "Yes": "Yes",
257
- "concat": "concat"
257
+ "Failed to move node": "Verplaatsen van knooppunt mislukt",
258
+ "Confirm move": "Verplaatsing bevestigen",
259
+ "Moving this node may remove variable references.": "Het verplaatsen van dit knooppunt kan variabele verwijzingen verwijderen.",
260
+ "Impacted current node variables": "Variabelen waarnaar de huidige node verwijst",
261
+ "Impacted dependent node variables": "Nodes die naar variabelen van de huidige node verwijzen",
262
+ "Keep variable references": "Variabelverwijzingen behouden",
263
+ "Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Het behouden van variabelverwijzingen vereist handmatige aanpassing, anders kan de workflow falen.",
264
+ "Failed to update node variables": "Bijwerken van knooppuntvariabelen mislukt"
258
265
  }
@@ -54,7 +54,7 @@
54
54
  "Collection event": "Evento da coleção",
55
55
  "Collection operations": "Operações de coleção",
56
56
  "Completed": "Completed",
57
- "Concat": "Concat",
57
+ "Concatenate": "Concatenar",
58
58
  "Condition": "Condição",
59
59
  "Condition expression": "Condition expression",
60
60
  "Condition label": "Condition label",
@@ -247,12 +247,19 @@
247
247
  "Will be executed in the background as a queued task.": "Will be executed in the background as a queued task.",
248
248
  "Workflow": "Fluxo de trabalho",
249
249
  "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>",
250
- "Workflow is not exists": "Workflow is not exists",
250
+ "Workflow of execution is not existed": "Workflow of execution is not existed",
251
251
  "Workflow tasks": "Workflow tasks",
252
252
  "Workflow todos": "Workflow todos",
253
253
  "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).",
254
254
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".",
255
255
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.",
256
256
  "Yes": "Yes",
257
- "concat": "concatenar"
257
+ "Failed to move node": "Falha ao mover o nó",
258
+ "Confirm move": "Confirmar movimentação",
259
+ "Moving this node may remove variable references.": "Mover este nó pode remover referências de variáveis.",
260
+ "Impacted current node variables": "Variáveis referenciadas pelo nó atual",
261
+ "Impacted dependent node variables": "Nós que referenciam as variáveis do nó atual",
262
+ "Keep variable references": "Manter referências de variáveis",
263
+ "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.",
264
+ "Failed to update node variables": "Falha ao atualizar as variáveis do nó"
258
265
  }
@@ -54,7 +54,7 @@
54
54
  "Collection event": "Событие коллекции",
55
55
  "Collection operations": "Операции с коллекцией",
56
56
  "Completed": "Завершено",
57
- "Concat": "Concat",
57
+ "Concatenate": "объединить",
58
58
  "Condition": "Условие",
59
59
  "Condition expression": "Выражение условия",
60
60
  "Condition label": "Condition label",
@@ -247,12 +247,19 @@
247
247
  "Will be executed in the background as a queued task.": "Будет выполнен в фоновом режиме как задача в очереди.",
248
248
  "Workflow": "Рабочий процесс",
249
249
  "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "Рабочий процесс выполнен, статус результата: <1>{{statusText}}</1><2>Посмотреть выполнение</2>",
250
- "Workflow is not exists": "Workflow is not exists",
250
+ "Workflow of execution is not existed": "Workflow of execution is not existed",
251
251
  "Workflow tasks": "Workflow tasks",
252
252
  "Workflow todos": "Задачи рабочего процесса",
253
253
  "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "Рабочий процесс будет запущен перед успешным удалением (поддерживается только событие \"предварительного действия\" в локальном режиме).",
254
254
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Рабочий процесс будет запущен сразу после нажатия кнопки без сохранения данных. Поддерживается только привязка к событию \"Пользовательское действие\".",
255
255
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Рабочий процесс с неизвестным типом вызовет ошибку. Пожалуйста, удалите его или проверьте плагин, который предоставляет этот тип.",
256
256
  "Yes": "Yes",
257
- "concat": "объединить"
257
+ "Failed to move node": "Не удалось переместить узел",
258
+ "Confirm move": "Подтвердить перемещение",
259
+ "Moving this node may remove variable references.": "Перемещение этого узла может удалить ссылки на переменные.",
260
+ "Impacted current node variables": "Переменные, на которые ссылается текущий узел",
261
+ "Impacted dependent node variables": "Узлы, которые ссылаются на переменные текущего узла",
262
+ "Keep variable references": "Сохранить ссылки на переменные",
263
+ "Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Сохранение ссылок на переменные требует ручной настройки, иначе рабочий процесс может завершиться ошибкой.",
264
+ "Failed to update node variables": "Не удалось обновить переменные узла"
258
265
  }
@@ -54,7 +54,7 @@
54
54
  "Collection event": "Koleksiyon etkinliği",
55
55
  "Collection operations": "Koleksiyon operasyonları",
56
56
  "Completed": "Completed",
57
- "Concat": "Concat",
57
+ "Concatenate": "Concatenate",
58
58
  "Condition": "Koşul",
59
59
  "Condition expression": "Condition expression",
60
60
  "Condition label": "Condition label",
@@ -247,12 +247,19 @@
247
247
  "Will be executed in the background as a queued task.": "Will be executed in the background as a queued task.",
248
248
  "Workflow": "İş Akışı",
249
249
  "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>",
250
- "Workflow is not exists": "Workflow is not exists",
250
+ "Workflow of execution is not existed": "Workflow of execution is not existed",
251
251
  "Workflow tasks": "Workflow tasks",
252
252
  "Workflow todos": "Workflow todos",
253
253
  "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).",
254
254
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".",
255
255
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.",
256
256
  "Yes": "Yes",
257
- "concat": "concat"
257
+ "Failed to move node": "Düğüm taşınamadı",
258
+ "Confirm move": "Taşımayı onayla",
259
+ "Moving this node may remove variable references.": "Bu düğümü taşımak değişken başvurularını kaldırabilir.",
260
+ "Impacted current node variables": "Mevcut düğümün başvurduğu değişkenler",
261
+ "Impacted dependent node variables": "Mevcut düğüm değişkenlerine başvuran düğümler",
262
+ "Keep variable references": "Değişken başvurularını koru",
263
+ "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.",
264
+ "Failed to update node variables": "Düğüm değişkenleri güncellenemedi"
258
265
  }
@@ -54,7 +54,7 @@
54
54
  "Collection event": "Collection event",
55
55
  "Collection operations": "Collection operations",
56
56
  "Completed": "Completed",
57
- "Concat": "Concat",
57
+ "Concatenate": "Concatenate",
58
58
  "Condition": "Condition",
59
59
  "Condition expression": "Condition expression",
60
60
  "Condition label": "Condition label",
@@ -247,12 +247,19 @@
247
247
  "Will be executed in the background as a queued task.": "Will be executed in the background as a queued task.",
248
248
  "Workflow": "Workflow",
249
249
  "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>",
250
- "Workflow is not exists": "Workflow is not exists",
250
+ "Workflow of execution is not existed": "Workflow of execution is not existed",
251
251
  "Workflow tasks": "Workflow tasks",
252
252
  "Workflow todos": "Workflow todos",
253
253
  "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).",
254
254
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".",
255
255
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.",
256
256
  "Yes": "Yes",
257
- "concat": "concat"
257
+ "Failed to move node": "Не вдалося перемістити вузол",
258
+ "Confirm move": "Підтвердити переміщення",
259
+ "Moving this node may remove variable references.": "Переміщення цього вузла може видалити посилання на змінні.",
260
+ "Impacted current node variables": "Змінні, на які посилається поточний вузол",
261
+ "Impacted dependent node variables": "Вузли, які посилаються на змінні поточного вузла",
262
+ "Keep variable references": "Зберегти посилання на змінні",
263
+ "Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Збереження посилань на змінні потребує ручного налаштування, інакше робочий процес може завершитися помилкою.",
264
+ "Failed to update node variables": "Не вдалося оновити змінні вузла"
258
265
  }
@@ -254,5 +254,13 @@
254
254
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".",
255
255
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.",
256
256
  "Yes": "Yes",
257
- "concat": "concat"
258
- }
257
+ "concat": "concat",
258
+ "Failed to move node": "Không thể di chuyển nút",
259
+ "Confirm move": "Xác nhận di chuyển",
260
+ "Moving this node may remove variable references.": "Di chuyển nút này có thể loại bỏ các tham chiếu biến.",
261
+ "Impacted current node variables": "Các biến mà nút hiện tại tham chiếu",
262
+ "Impacted dependent node variables": "Các nút tham chiếu đến biến của nút hiện tại",
263
+ "Keep variable references": "Giữ tham chiếu biến",
264
+ "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.",
265
+ "Failed to update node variables": "Không thể cập nhật biến của nút"
266
+ }
@@ -53,10 +53,11 @@
53
53
  "Choose a record or primary key of a record in the collection to trigger.": "选择数据表中的一行记录或者记录的主键来触发。",
54
54
  "Clear all executions": "清除所有执行记录",
55
55
  "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": "清空执行记录不会重置执行次数,且执行中的也不会被删除,确定要删除所有执行记录吗?",
56
+ "Collection \"{{collectionName}}\" not found.": "数据表“{{collectionName}}”未找到。",
56
57
  "Collection event": "数据表事件",
57
58
  "Collection operations": "数据表操作",
58
59
  "Completed": "已完成",
59
- "Concat": "连接",
60
+ "Concatenate": "连接",
60
61
  "Condition": "条件判断",
61
62
  "Condition expression": "条件表达式",
62
63
  "Condition label": "条件名称",
@@ -75,6 +76,7 @@
75
76
  "Current version will be deleted (without affecting other versions).": "当前版本将被删除(不影响其他版本)。",
76
77
  "Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。",
77
78
  "Date range": "日期范围",
79
+ "Data source \"{{dataSourceName}}\" not found.": "数据源“{{dataSourceName}}”未找到。",
78
80
  "Date variables": "日期变量",
79
81
  "Days": "天",
80
82
  "Delete a main version will cause all other revisions to be deleted too.": "删除主版本将导致其他版本一并被删除。",
@@ -120,7 +122,7 @@
120
122
  "Hours": "小时",
121
123
  "If checked, all nodes in-progress could continue to be processed in execution of disabled workflow. Otherwise, all nodes in-progress will be aborted automatically.": "如果选中,在途的节点在禁用或升级到新版本的工作流中将继续处理。否则将自动取消执行。",
122
124
  "If checked, when there are multiple records in the query result, an array will be returned as the result, which can be operated on one by one using a loop node. Otherwise, only one record will be returned.": "选中后,当查询结果有多条记录时,会返回数组作为结果,可以使用循环节点对它逐条操作;否则,仅返回一条数据。",
123
- "If the number of loop calls is too large, there will be performance issues.": "If the number of loop calls is too large, there will be performance issues.",
125
+ "Input workflow result": "请输入工作流执行结果",
124
126
  "Inside of \"No\" branch": "“否”分支内",
125
127
  "Inside of \"Yes\" branch": "“是”分支内",
126
128
  "Inside of \"{{branchName}}\" branch": "“{{branchName}}”分支内",
@@ -152,6 +154,7 @@
152
154
  "Node type": "节点类型",
153
155
  "Node with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的节点会导致错误,请删除或检查提供该类型的插件。",
154
156
  "Null": "Null",
157
+ "Not found": "未找到",
155
158
  "Off": "停用",
156
159
  "On": "启用",
157
160
  "On going": "进行中",
@@ -160,6 +163,8 @@
160
163
  "Operations": "操作",
161
164
  "Operator": "运算符",
162
165
  "Otherwise": "否则",
166
+ "Output": "流程输出",
167
+ "Output value": "结果值",
163
168
  "Pending": "待处理",
164
169
  "Please add at least one condition": "请添加至少一个条件",
165
170
  "Please select collection first": "请先选择数据表",
@@ -185,6 +190,7 @@
185
190
  "Select context": "选择上下文",
186
191
  "Select users": "选择用户",
187
192
  "Select workflow": "选择工作流",
193
+ "Set output data of this workflow. When this one is executed as a subflow, the output could be used as variables in downstream nodes of super workflow. You can also use this node in an AI employee workflow, to define what to output. If this node is added multiple times, the value of the last executed node prevails.": "设置工作流的输出数据。在作为子流程执行后可以被上级流程后续节点使用。你也可以在 AI 员工工作流中使用此节点,来定义输出内容。如果多次添加此节点,则以最后一个被执行的节点的值为准。",
188
194
  "Single record": "单条数据",
189
195
  "Some node meets error.": "某个节点出错。",
190
196
  "Started and executing, maybe waiting for an async callback (manual, delay etc.).": "已开始执行,可能在等待异步回调(人工、延时等)。",
@@ -253,12 +259,27 @@
253
259
  "Will be executed in the background as a queued task.": "将作为队列任务在后台执行。",
254
260
  "Workflow": "工作流",
255
261
  "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "工作流已执行,结果状态为 <1>{{statusText}}</1><2>查看执行详情</2>",
256
- "Workflow is not exists": "工作流不存在",
262
+ "Workflow of execution is not existed": "执行计划对应的工作流不存在",
257
263
  "Workflow tasks": "流程待办",
258
264
  "Workflow todos": "流程待办",
259
265
  "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "删除成功之前触发工作流(支持操作前事件)。",
260
266
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "按钮点击后直接触发工作流,但不会保存数据。仅支持绑定“自定义操作事件”。",
261
267
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的工作流会导致错误,请删除或检查提供该类型的插件。",
262
268
  "Yes": "是",
263
- "concat": "连接"
269
+ "Failed to move node": "节点移动失败",
270
+ "Confirm move": "确认移动",
271
+ "Moving this node may remove variable references.": "移动该节点可能会移除变量引用。",
272
+ "Impacted current node variables": "当前节点引用的变量",
273
+ "Impacted dependent node variables": "引用当前节点变量的节点",
274
+ "Keep variable references": "保留变量引用,我将手动修复",
275
+ "Keeping variable references requires manual adjustment, otherwise workflow may fail.": "已保留变量引用,请手动调整,否则工作流执行可能出错。",
276
+ "Failed to update node variables": "更新节点变量失败",
277
+ "Copy": "复制",
278
+ "Cancel copy": "取消复制",
279
+ "Paste": "粘贴",
280
+ "Copied node": "已复制节点",
281
+ "Click a paste button to place": "点击粘贴按钮放置",
282
+ "Confirm paste": "确认粘贴",
283
+ "This action will remove invalid variable references, otherwise the workflow cannot run correctly.": "该操作将移除无效的变量引用,否则工作流将无法正确执行。",
284
+ "Failed to paste node": "粘贴节点失败"
264
285
  }
@@ -54,7 +54,7 @@
54
54
  "Collection event": "Collection event",
55
55
  "Collection operations": "Collection operations",
56
56
  "Completed": "Completed",
57
- "Concat": "Concat",
57
+ "Concatenate": "連接",
58
58
  "Condition": "Condition",
59
59
  "Condition expression": "Condition expression",
60
60
  "Condition label": "Condition label",
@@ -247,12 +247,19 @@
247
247
  "Will be executed in the background as a queued task.": "Will be executed in the background as a queued task.",
248
248
  "Workflow": "Workflow",
249
249
  "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>",
250
- "Workflow is not exists": "Workflow is not exists",
250
+ "Workflow of execution is not existed": "Workflow of execution is not existed",
251
251
  "Workflow tasks": "Workflow tasks",
252
252
  "Workflow todos": "Workflow todos",
253
253
  "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).",
254
254
  "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".",
255
255
  "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.",
256
256
  "Yes": "Yes",
257
- "concat": "concat"
257
+ "Failed to move node": "節點移動失敗",
258
+ "Confirm move": "確認移動",
259
+ "Moving this node may remove variable references.": "移動此節點可能會移除變數引用。",
260
+ "Impacted current node variables": "目前節點引用的變數",
261
+ "Impacted dependent node variables": "引用目前節點變數的節點",
262
+ "Keep variable references": "保留變數引用",
263
+ "Keeping variable references requires manual adjustment, otherwise workflow may fail.": "已保留變數引用,請手動調整,否則工作流執行可能出錯。",
264
+ "Failed to update node variables": "更新節點變數失敗"
258
265
  }
@@ -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-01-04T03:45:20.943Z"}
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-02-07T03:54:55.499Z"}
@@ -1 +1 @@
1
- {"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-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"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2026-01-04T03:45:20.595Z"}
1
+ {"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-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"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2026-02-07T03:54:55.152Z"}
@@ -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-01-04T03:45:20.400Z"}
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-02-07T03:54:54.947Z"}
@@ -390,7 +390,8 @@ class Dispatcher {
390
390
  logger.info(`execution (${execution.id}) ${job ? "resuming" : "starting"}...`);
391
391
  try {
392
392
  await (job ? processor.resume(job) : processor.start());
393
- logger.info(`execution (${execution.id}) finished with status: ${execution.status}`, { execution });
393
+ logger.info(`execution (${execution.id}) finished with status: ${execution.status}`);
394
+ logger.debug(`execution (${execution.id}) details:`, { execution });
394
395
  if (execution.status && ((_b = (_a = execution.workflow.options) == null ? void 0 : _a.deleteExecutionOnStatus) == null ? void 0 : _b.includes(execution.status))) {
395
396
  await execution.destroy({ transaction: processor.mainTransaction });
396
397
  }
@@ -55,6 +55,7 @@ var import_ScheduleTrigger = __toESM(require("./triggers/ScheduleTrigger"));
55
55
  var import_CalculationInstruction = __toESM(require("./instructions/CalculationInstruction"));
56
56
  var import_ConditionInstruction = __toESM(require("./instructions/ConditionInstruction"));
57
57
  var import_EndInstruction = __toESM(require("./instructions/EndInstruction"));
58
+ var import_OutputInstruction = __toESM(require("./instructions/OutputInstruction"));
58
59
  var import_CreateInstruction = __toESM(require("./instructions/CreateInstruction"));
59
60
  var import_DestroyInstruction = __toESM(require("./instructions/DestroyInstruction"));
60
61
  var import_QueryInstruction = __toESM(require("./instructions/QueryInstruction"));
@@ -270,6 +271,7 @@ class PluginWorkflowServer extends import_server.Plugin {
270
271
  this.registerInstruction("condition", import_ConditionInstruction.default);
271
272
  this.registerInstruction("multi-conditions", import_MultiConditionsInstruction.default);
272
273
  this.registerInstruction("end", import_EndInstruction.default);
274
+ this.registerInstruction("output", import_OutputInstruction.default);
273
275
  this.registerInstruction("create", import_CreateInstruction.default);
274
276
  this.registerInstruction("destroy", import_DestroyInstruction.default);
275
277
  this.registerInstruction("query", import_QueryInstruction.default);
@@ -287,7 +289,8 @@ class PluginWorkflowServer extends import_server.Plugin {
287
289
  filter: { name: this.name }
288
290
  });
289
291
  this.snowflake = new import_nodejs_snowflake.Snowflake({
290
- custom_epoch: pluginRecord == null ? void 0 : pluginRecord.createdAt.getTime()
292
+ custom_epoch: pluginRecord == null ? void 0 : pluginRecord.createdAt.getTime(),
293
+ instance_id: this.app.instanceId
291
294
  });
292
295
  }
293
296
  /**
@@ -335,6 +338,8 @@ class PluginWorkflowServer extends import_server.Plugin {
335
338
  "flow_nodes:update",
336
339
  "flow_nodes:destroy",
337
340
  "flow_nodes:destroyBranch",
341
+ "flow_nodes:duplicate",
342
+ "flow_nodes:move",
338
343
  "flow_nodes:test",
339
344
  "jobs:get",
340
345
  "workflowCategories:*"
@@ -96,6 +96,15 @@ export default class Processor {
96
96
  * @experimental
97
97
  */
98
98
  getScope(sourceNodeId?: number | string, includeSelfScope?: boolean): {
99
+ ctx: {
100
+ $context: any;
101
+ $jobsMapByNodeKey: {
102
+ [key: string]: any;
103
+ };
104
+ $system: {};
105
+ $scopes: {};
106
+ $env: {};
107
+ };
99
108
  $context: any;
100
109
  $jobsMapByNodeKey: {
101
110
  [key: string]: any;
@@ -439,13 +439,18 @@ class Processor {
439
439
  $scopes[n.id] = $scopes[n.key] = instruction.getScope(n, this.jobResultsMapByNodeKey[n.key], this);
440
440
  }
441
441
  }
442
- return {
442
+ const scopes = {
443
443
  $context: this.execution.context,
444
444
  $jobsMapByNodeKey: this.jobResultsMapByNodeKey,
445
445
  $system: systemFns,
446
446
  $scopes,
447
447
  $env: this.options.plugin.app.environment.getVariables()
448
448
  };
449
+ return {
450
+ ...scopes,
451
+ ctx: scopes
452
+ // 2.0
453
+ };
449
454
  }
450
455
  /**
451
456
  * @experimental
@@ -63,6 +63,8 @@ function actions_default({ app }) {
63
63
  update: nodes.update,
64
64
  destroy: nodes.destroy,
65
65
  destroyBranch: nodes.destroyBranch,
66
+ duplicate: nodes.duplicate,
67
+ move: nodes.move,
66
68
  test: nodes.test
67
69
  }),
68
70
  ...make("jobs", jobs),
@@ -8,7 +8,9 @@
8
8
  */
9
9
  import { Context } from '@nocobase/actions';
10
10
  export declare function create(context: Context, next: any): Promise<void>;
11
+ export declare function duplicate(context: Context, next: any): Promise<void>;
11
12
  export declare function destroy(context: Context, next: any): Promise<void>;
12
13
  export declare function destroyBranch(context: Context, next: any): Promise<void>;
14
+ export declare function move(context: Context, next: any): Promise<void>;
13
15
  export declare function update(context: Context, next: any): Promise<void>;
14
16
  export declare function test(context: Context, next: any): Promise<void>;