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,