Skip to content
Tracon

WorkflowResponseRecord

Namespace Tracon · Assembly Tracon.Abstractions.dll

One answer to a workflow’s pending human request.

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

Gets the SHA-256 of the answer, as 64 lowercase hexadecimal characters.

public required string AnswerHash { get; init; }

string

The hash tells two answers apart; it does not hide the answer. An answer with few possible values, such as a yes/no, can be recovered from it by trying each value.

Gets the scope of the single-answer claim this record holds, or null for an answer to a WorkflowResponseMode.Branch workflow, which claims nothing.

public string? ClaimScope { get; init; }

string?

Gets the id of the request that was answered.

public required string RequestId { get; init; }

string

Gets when the answer was accepted (UTC).

public required DateTimeOffset RespondedAt { get; init; }

DateTimeOffset

Gets who answered, as the audit trail names the actor; null when unknown.

public string? RespondedBy { get; init; }

string?

Gets the run the answer started. It identifies the record.

public required Guid ResponseRunId { get; init; }

Guid

Gets the execution session the two runs share.

public required string SessionId { get; init; }

string

Gets the run that waited for the answer.

public required Guid SourceRunId { get; init; }

Guid

Gets the state of the answer.

public WorkflowResponseStatus Status { get; init; }

WorkflowResponseStatus

Gets the tenant the record belongs to. Set when it is written; not part of the HTTP response.

[JsonIgnore]
public string? TenantId { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowResponseRecord? other)

other WorkflowResponseRecord?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowResponseRecord?, WorkflowResponseRecord?)

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

left WorkflowResponseRecord?

right WorkflowResponseRecord?

bool

operator !=(WorkflowResponseRecord?, WorkflowResponseRecord?)

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

left WorkflowResponseRecord?

right WorkflowResponseRecord?

bool