Skip to main content

Workflow.then()

.then() 方法在工作流步骤之间创建顺序依赖,确保步骤按特定顺序执行。

🌐 The .then() method creates a sequential dependency between workflow steps, ensuring steps execute in a specific order.

使用示例
Direct link to 使用示例

🌐 Usage example

workflow.then(step1).then(step2);

参数
Direct link to 参数

🌐 Parameters

step:

Step
The step instance that should execute after the previous step completes

返回
Direct link to 返回

🌐 Returns

workflow:

NewWorkflow
The workflow instance for method chaining

🌐 Related