docsWorkflowsworkflow-methodsWorkflow.commit() On this pageWorkflow.commit() The .commit() method finalizes the workflow and returns the final result. Usage example workflow.then(step1).commit(); Returns workflow:WorkflowThe workflow instance for method chaining Related Control Flow