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 exampleUsage example的直接链接
workflow.then(step1).commit()
ReturnsReturns的直接链接
workflow:
Workflow
The workflow instance for method chaining