From 31fc27f8c0e3b8e99b81f48b8893505c0542689f Mon Sep 17 00:00:00 2001 From: "bai.zixv" Date: Thu, 18 Jul 2024 17:18:18 +0800 Subject: [PATCH] feat: workflow, end node, passthrough result (#1344) Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1344 Co-authored-by: bai.zixv Co-committed-by: bai.zixv --- .../plugin-workflow/src/server/instructions/EndInstruction.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/EndInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/EndInstruction.ts index a48e8ab59..514217e3b 100644 --- a/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/EndInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/EndInstruction.ts @@ -11,6 +11,7 @@ export default class extends Instruction { async run(node: FlowNodeModel, prevJob, processor: Processor) { const { endStatus = JOB_STATUS.RESOLVED } = node.config; await processor.saveJob({ + result: prevJob?.result ?? null, status: endStatus, nodeId: node.id, nodeKey: node.key,