Skip to content

@saflib/workflows


Function: runWorkflow() ​

runWorkflow(options): Promise<RunWorkflowResult>>

Convenience function to take a WorkflowDefinition, run it in the specified mode, and return the output. Can be used to run a given workflow in checklist mode for a unit test. This is also used internally by the CLI tool.

Parameters ​

ParameterType
optionsRunWorkflowOptions

Returns ​

Promise<RunWorkflowResult>