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?, string, IReadOnlyDictionary<string, Payload>?, Exception?, IReadOnlyCollection<IRawValue>?, string, ParentInfo?, Priority, RetryPolicy?, RootInfo?, string, TimeSpan?, DateTime, string, TimeSpan, string, DateTime, 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, string FirstExecutionRunId, IReadOnlyDictionary<string, Payload>? Headers, Exception? LastFailure, IReadOnlyCollection<IRawValue>? LastResult, string Namespace, WorkflowInfo.ParentInfo? Parent, Priority Priority, RetryPolicy? RetryPolicy, WorkflowInfo.RootInfo? Root, string RunId, TimeSpan? RunTimeout, DateTime StartTime, string TaskQueue, TimeSpan TaskTimeout, string WorkflowId, DateTime WorkflowStartTime, string WorkflowType)
Parameters
AttemptintCurrent workflow attempt.
ContinuedRunIdstringRun ID if this was continued.
CronSchedulestringCron schedule if applicable.
ExecutionTimeoutTimeSpan?Execution timeout for the workflow.
FirstExecutionRunIdstringThe very first run ID the workflow ever had, following continuation chains.
HeadersIReadOnlyDictionary<string, Payload>Headers from when the workflow was started.
LastFailureExceptionFailure if this workflow run is a continuation of a failure.
LastResultIReadOnlyCollection<IRawValue>Successful result if this workflow is a continuation of a success.
NamespacestringNamespace for the workflow.
ParentWorkflowInfo.ParentInfoParent information for the workflow if this is a child.
PriorityPriorityThe Priority of this workflow.
RetryPolicyRetryPolicyRetry policy for the workflow.
RootWorkflowInfo.RootInfoRoot information for the workflow. This is nil in pre-1.27.0 server versions or if there is no root (i.e. the root is itself).
RunIdstringRun ID for the workflow.
RunTimeoutTimeSpan?Run timeout for the workflow.
StartTimeDateTimeTime when the first workflow task started.
TaskQueuestringTask queue for the workflow.
TaskTimeoutTimeSpanTask timeout for the workflow.
WorkflowIdstringID for the workflow.
WorkflowStartTimeDateTimeTime when the workflow started on the server.
WorkflowTypestringWorkflow 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
FirstExecutionRunId
The very first run ID the workflow ever had, following continuation chains.
public string FirstExecutionRunId { 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
Priority
The Priority of this workflow.
public Priority Priority { get; init; }
Property Value
RetryPolicy
Retry policy for the workflow.
public RetryPolicy? RetryPolicy { get; init; }
Property Value
Root
Root information for the workflow. This is nil in pre-1.27.0 server versions or if there is no root (i.e. the root is itself).
public WorkflowInfo.RootInfo? Root { 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 first workflow task 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
WorkflowStartTime
Time when the workflow started on the server.
public DateTime WorkflowStartTime { get; init; }
Property Value
WorkflowType
Workflow type name.
public string WorkflowType { get; init; }