Function: resolvePinnedWorkflow()
resolvePinnedWorkflow(
run,deps):Workflow<any,any>
Defined in: packages/workflow-engine/src/kernel/helpers/definition-pinning.ts:96
Returns the workflow definition a run must be executed against, or throws DefinitionVersionMismatchError when this build presents a different structure than the one the run was pinned to.
An unpinned run (definitionVersion === null) resolves against the live
definition, which is what every run did before versioning existed.
Parameters
run
Pick<WorkflowRunRecord, "id" | "workflowId" | "definitionVersion">
deps
KernelDeps
Returns
Workflow<any, any>