Class WorkflowInfo
- Namespace
- Temporalio.Workflows
- Assembly
- Temporalio.dll
Information about the running workflow. This is immutable for the life of the workflow run.
public record WorkflowInfo : IEquatable<WorkflowInfo>
- Inheritance
-
WorkflowInfo
- Implements
- Inherited Members
Remarks
WARNING: This constructor may have required properties added. Do not rely on the exact constructor, only use "with" clauses.
Constructors
WorkflowInfo(int, string?, string?, TimeSpan?, IReadOnlyDictionary<string, Payload>?, Exception?, IReadOnlyCollection<IRawValue>?, string, ParentInfo?, RetryPolicy?, string, TimeSpan?, DateTime, string, TimeSpan, string, string)
Information about the running workflow. This is immutable for the life of the workflow run.
public WorkflowInfo(int Attempt, string? ContinuedRunId, string? CronSchedule, TimeSpan? ExecutionTimeout, IReadOnlyDictionary<string, Payload>? Headers, Exception? LastFailure, IReadOnlyCollection<IRawValue>? LastResult, string Namespace, WorkflowInfo.ParentInfo? Parent, RetryPolicy? RetryPolicy, string RunId, TimeSpan? RunTimeout, DateTime StartTime, string TaskQueue, TimeSpan TaskTimeout, string WorkflowId, string WorkflowType)
Parameters
Attempt
intCurrent workflow attempt.
ContinuedRunId
stringRun ID if this was continued.
CronSchedule
stringCron schedule if applicable.
ExecutionTimeout
TimeSpan?Execution timeout for the workflow.
Headers
IReadOnlyDictionary<string, Payload>Headers from when the workflow was started.
LastFailure
ExceptionFailure if this workflow run is a continuation of a failure.
LastResult
IReadOnlyCollection<IRawValue>Successful result if this workflow is a continuation of a success.
Namespace
stringNamespace for the workflow.
Parent
WorkflowInfo.ParentInfoParent information for the workflow if this is a child.
RetryPolicy
RetryPolicyRetry policy for the workflow.
RunId
stringRun ID for the workflow.
RunTimeout
TimeSpan?Run timeout for the workflow.
StartTime
DateTimeTime when the workflow started.
TaskQueue
stringTask queue for the workflow.
TaskTimeout
TimeSpanTask timeout for the workflow.
WorkflowId
stringID for the workflow.
WorkflowType
stringWorkflow type name.
Remarks
WARNING: This constructor may have required properties added. Do not rely on the exact constructor, only use "with" clauses.
Properties
Attempt
Current workflow attempt.
public int Attempt { get; init; }
Property Value
ContinuedRunId
Run ID if this was continued.
public string? ContinuedRunId { get; init; }
Property Value
CronSchedule
Cron schedule if applicable.
public string? CronSchedule { get; init; }
Property Value
ExecutionTimeout
Execution timeout for the workflow.
public TimeSpan? ExecutionTimeout { get; init; }
Property Value
Headers
Headers from when the workflow was started.
public IReadOnlyDictionary<string, Payload>? Headers { get; init; }
Property Value
LastFailure
Failure if this workflow run is a continuation of a failure.
public Exception? LastFailure { get; init; }
Property Value
LastResult
Successful result if this workflow is a continuation of a success.
public IReadOnlyCollection<IRawValue>? LastResult { get; init; }
Property Value
Namespace
Namespace for the workflow.
public string Namespace { get; init; }
Property Value
Parent
Parent information for the workflow if this is a child.
public WorkflowInfo.ParentInfo? Parent { get; init; }
Property Value
RetryPolicy
Retry policy for the workflow.
public RetryPolicy? RetryPolicy { get; init; }
Property Value
RunId
Run ID for the workflow.
public string RunId { get; init; }
Property Value
RunTimeout
Run timeout for the workflow.
public TimeSpan? RunTimeout { get; init; }
Property Value
StartTime
Time when the workflow started.
public DateTime StartTime { get; init; }
Property Value
TaskQueue
Task queue for the workflow.
public string TaskQueue { get; init; }
Property Value
TaskTimeout
Task timeout for the workflow.
public TimeSpan TaskTimeout { get; init; }
Property Value
WorkflowId
ID for the workflow.
public string WorkflowId { get; init; }
Property Value
WorkflowType
Workflow type name.
public string WorkflowType { get; init; }