Skip to content
Tracon

JobItemRecord

Namespace Tracon · Assembly Tracon.Abstractions.dll

A single input of a batch job and that input’s processing result.

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

The failure message. Populated only for JobItemStatus.Failed.

public string? Error { get; init; }

string?

The item identifier.

public required Guid Id { get; init; }

Guid

This item’s input text.

public required string Input { get; init; }

string

The identifier of the job it belongs to.

public required Guid JobId { get; init; }

Guid

The identifier of the run record created while processing this item. null if the item has not been processed yet.

public Guid? RunId { get; init; }

Guid?

A JobItemStatus.Pending item can carry a value too. A handler that can resume interrupted work writes the run identifier on the item BEFORE the run starts (a report with JobItemStatus.Pending), so a job leased again finds the run the item was processing. The built-in workflow handler does this when TraconWorkflowOptions.ResumeInterruptedRuns is on. When the item finishes, the value names the run that finished it.

The sequence number within the job (starts at 0).

public required int Seq { get; init; }

int

The item’s processing status.

public required JobItemStatus Status { get; init; }

JobItemStatus

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(JobItemRecord? other)

other JobItemRecord?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(JobItemRecord?, JobItemRecord?)

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

left JobItemRecord?

right JobItemRecord?

bool

operator !=(JobItemRecord?, JobItemRecord?)

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

left JobItemRecord?

right JobItemRecord?

bool