Method ResumeAsync
ResumeAsync(AgentRunState, AgentRunInput, OrchestrationOptions, CancellationToken)
Continues a workflow that stopped for a person with what unblocks it: decisions on the calls it waits for (an approval step's included), the answer to its question, or the outcome of a write. Steps already done replay their recorded output.
public Task<WorkflowResult> ResumeAsync(AgentRunState state, AgentRunInput input = null, OrchestrationOptions options = null, CancellationToken cancellationToken = default)
Parameters
stateAgentRunStateThe stopped workflow's state, from RunState.
inputAgentRunInputWhat unblocks it.
optionsOrchestrationOptionsOrchestration options.
cancellationTokenCancellationTokenA token to cancel the run.
Returns
- Task<WorkflowResult>
The workflow's result, which may stop again.
Exceptions
- ArgumentNullException
Thrown when
stateis null.- InvalidOperationException
Thrown when the state is not a stopped run of this workflow.
- ArgumentException
Thrown when a decision does not answer a call the workflow waits for.