# Workflow.commit()
[EN] Source: https://mastra.ai/reference/workflows/workflow-methods/commit

The `.commit()` method finalizes the workflow and returns the final result.

## Usage example

```typescript copy
workflow.then(step1).commit();
```

## Returns

<PropertiesTable
  content={[
    {
      name: "workflow",
      type: "Workflow",
      description: "The workflow instance for method chaining",
    },
  ]}
/>

## Related

- [Control Flow](/docs/workflows/control-flow)


---
title: "Reference: Workflow.createRunAsync() | Workflows"
description: Documentation for the `Workflow.createRunAsync()` method in workflows, which creates a new workflow run instance.
---