Workflow.commit()
The .commit() method finalizes the workflow definition and prepares it for execution. Call it after adding steps and before creating a run. Creating a run on a workflow with uncommitted step changes throws an error.
Usage exampleDirect link to Usage example
workflow.then(step1).commit()
ReturnsDirect link to Returns
workflow:
Workflow
The workflow instance for method chaining