Skip to content
Tracon

WorkflowResumeRequest

Namespace Tracon · Assembly Tracon.Abstractions.dll

The information needed to resume a workflow from a checkpoint.

public sealed record WorkflowResumeRequest : IEquatable<WorkflowResumeRequest>
Inheritance
object ← WorkflowResumeRequest
Implements
IEquatable<WorkflowResumeRequest>
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
public WorkflowResumeRequest()

The identifier of the checkpoint to resume from. If left empty, that run’s most recent checkpoint is used.

public string? CheckpointId { get; init; }

string?

The version of the workflow’s stored definition to resume with. null (the default) resumes with the version the source run recorded, so an edit made while the run waited does not change what resumes.

public int? DefinitionVersion { get; init; }

int?

A source run that recorded no version (it predates version recording, or the workflow is defined in code) resumes with the current definition. A version the workflow does not have is refused with a TraconException before any run row is opened; the run never falls back to the current definition.

Naming a version whose graph differs from the one the checkpoint was written with fails the run with “the graph’s structure differs”: the checkpoint belongs to the graph it was written from. That is how an operator carries a run over a fix, when the fix did not change the structure.

The new run’s identifier. If given, the record is opened with this identifier.

public Guid? NewRunId { get; init; }

Guid?

The identifier of the run to resume.

public required Guid RunId { get; init; }

Guid

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowResumeRequest? other)

other WorkflowResumeRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowResumeRequest?, WorkflowResumeRequest?)

Section titled “ operator ==(WorkflowResumeRequest?, WorkflowResumeRequest?)”
public static bool operator ==(WorkflowResumeRequest? left, WorkflowResumeRequest? right)

left WorkflowResumeRequest?

right WorkflowResumeRequest?

bool

operator !=(WorkflowResumeRequest?, WorkflowResumeRequest?)

Section titled “ operator !=(WorkflowResumeRequest?, WorkflowResumeRequest?)”
public static bool operator !=(WorkflowResumeRequest? left, WorkflowResumeRequest? right)

left WorkflowResumeRequest?

right WorkflowResumeRequest?

bool