definePauseTask
Purpose and behavior
Section titled “Purpose and behavior”Define a gate task that holds the run once its dependencies are done until a listed actor submits resume or reject. It takes the same options and validation as defineApprovalTask(); resume makes the WorkflowDecisionRecord the gate’s value.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”optionsRequiredWorkflowGateOptionsGate key, dependencies, prompt, actors allowed to resume or reject, and the optional signed authentication.options.authenticationOptional"signed" | undefinedSet to signed to require a verified Ed25519 proof on every decision for this gate. Stored in the gate and in checkpoint identity.options.keyRequiredstringTask key of the gate, unique in the workflow and named by each decision. Letters, digits, dot, underscore and hyphen, starting with a letter or digit.options.afterOptionalreadonly Task<unknown>[] | undefinedTasks that must be done before the gate pauses. If one fails or is skipped, cancelled or rejected, the gate is skipped.options.promptRequiredstringQuestion put to the actors, copied into the pending request. A blank prompt throws.options.actorsRequiredreadonly string[]Names allowed to decide the gate: at least one, unique and nonblank. Outpost trusts the actor your application submits unless the gate is signed.