Class WorkflowExecution
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
Representation of a workflow execution.
public class WorkflowExecution
- Inheritance
-
WorkflowExecution
- Derived
- Inherited Members
Constructors
WorkflowExecution(WorkflowExecutionInfo, DataConverter, string?)
Initializes a new instance of the WorkflowExecution class.
protected WorkflowExecution(WorkflowExecutionInfo rawInfo, DataConverter dataConverter, string? clientNamespaceForDataConverterWithContext)
Parameters
rawInfo
WorkflowExecutionInfoRaw proto info.
dataConverter
DataConverterData converter used for memos.
clientNamespaceForDataConverterWithContext
stringNamespace to make the data converter specific to the workflow context. If null, assumes the data converter is already context specific.
Properties
CloseTime
Gets when the workflow was closed if closed.
public DateTime? CloseTime { get; }
Property Value
ExecutionTime
Gets when the workflow run started or should start.
public DateTime? ExecutionTime { get; }
Property Value
HistoryLength
Gets the number of events in history.
public int HistoryLength { get; }
Property Value
Id
Gets the ID for the workflow.
public string Id { get; }
Property Value
Memo
Gets the workflow memo dictionary, lazily creating when accessed.
public IReadOnlyDictionary<string, IEncodedRawValue> Memo { get; }
Property Value
ParentId
Gets the ID for the parent workflow if this was started as a child.
public string? ParentId { get; }
Property Value
ParentRunId
Gets the run ID for the parent workflow if this was started as a child.
public string? ParentRunId { get; }
Property Value
RunId
Gets the run ID for the workflow.
public string RunId { get; }
Property Value
StartTime
Gets when the workflow was created.
public DateTime StartTime { get; }
Property Value
Status
Gets the status for the workflow.
public WorkflowExecutionStatus Status { get; }
Property Value
TaskQueue
Gets the task queue for the workflow.
public string TaskQueue { get; }
Property Value
TypedSearchAttributes
Gets the search attributes on the workflow.
public SearchAttributeCollection TypedSearchAttributes { get; }
Property Value
Remarks
This is lazily converted on first access.
WorkflowType
Gets the type name of the workflow.
public string WorkflowType { get; }