after
The after
method defines explicit dependencies between workflow steps, enabling branching and merging paths in your workflow execution.
Usage
workflow
.step(stepA)
.then(stepB)
.after(stepA) // Create new branch after stepA completes
.step(stepC);
Parameters
stepId:
string | string[]
ID(s) of step(s) that must complete before continuing
Returns
workflow:
Workflow
The workflow instance for method chaining