Workflow.then()
The .then()
method creates a sequential dependency between workflow steps, ensuring steps execute in a specific order.
Usage
workflow.then(stepOne).then(stepTwo);
Parameters
step:
Step
The step instance that should execute after the previous step completes
Returns
workflow:
NewWorkflow
The workflow instance for method chaining