Class WorkflowExecutionInfo
- Namespace
- Temporalio.Api.Workflow.V1
- Assembly
- Temporalio.dll
public sealed class WorkflowExecutionInfo : IMessage<WorkflowExecutionInfo>, IEquatable<WorkflowExecutionInfo>, IDeepCloneable<WorkflowExecutionInfo>, IBufferMessage, IMessage
- Inheritance
-
WorkflowExecutionInfo
- Implements
-
IMessage<WorkflowExecutionInfo>IDeepCloneable<WorkflowExecutionInfo>IBufferMessageIMessage
- Inherited Members
Constructors
WorkflowExecutionInfo()
public WorkflowExecutionInfo()
WorkflowExecutionInfo(WorkflowExecutionInfo)
public WorkflowExecutionInfo(WorkflowExecutionInfo other)
Parameters
other
WorkflowExecutionInfo
Fields
AssignedBuildIdFieldNumber
Field number for the "assigned_build_id" field.
public const int AssignedBuildIdFieldNumber = 19
Field Value
AutoResetPointsFieldNumber
Field number for the "auto_reset_points" field.
public const int AutoResetPointsFieldNumber = 12
Field Value
CloseTimeFieldNumber
Field number for the "close_time" field.
public const int CloseTimeFieldNumber = 4
Field Value
ExecutionDurationFieldNumber
Field number for the "execution_duration" field.
public const int ExecutionDurationFieldNumber = 17
Field Value
ExecutionFieldNumber
Field number for the "execution" field.
public const int ExecutionFieldNumber = 1
Field Value
ExecutionTimeFieldNumber
Field number for the "execution_time" field.
public const int ExecutionTimeFieldNumber = 9
Field Value
HistoryLengthFieldNumber
Field number for the "history_length" field.
public const int HistoryLengthFieldNumber = 6
Field Value
HistorySizeBytesFieldNumber
Field number for the "history_size_bytes" field.
public const int HistorySizeBytesFieldNumber = 15
Field Value
InheritedBuildIdFieldNumber
Field number for the "inherited_build_id" field.
public const int InheritedBuildIdFieldNumber = 20
Field Value
MemoFieldNumber
Field number for the "memo" field.
public const int MemoFieldNumber = 10
Field Value
MostRecentWorkerVersionStampFieldNumber
Field number for the "most_recent_worker_version_stamp" field.
public const int MostRecentWorkerVersionStampFieldNumber = 16
Field Value
ParentExecutionFieldNumber
Field number for the "parent_execution" field.
public const int ParentExecutionFieldNumber = 8
Field Value
ParentNamespaceIdFieldNumber
Field number for the "parent_namespace_id" field.
public const int ParentNamespaceIdFieldNumber = 7
Field Value
RootExecutionFieldNumber
Field number for the "root_execution" field.
public const int RootExecutionFieldNumber = 18
Field Value
SearchAttributesFieldNumber
Field number for the "search_attributes" field.
public const int SearchAttributesFieldNumber = 11
Field Value
StartTimeFieldNumber
Field number for the "start_time" field.
public const int StartTimeFieldNumber = 3
Field Value
StateTransitionCountFieldNumber
Field number for the "state_transition_count" field.
public const int StateTransitionCountFieldNumber = 14
Field Value
StatusFieldNumber
Field number for the "status" field.
public const int StatusFieldNumber = 5
Field Value
TaskQueueFieldNumber
Field number for the "task_queue" field.
public const int TaskQueueFieldNumber = 13
Field Value
TypeFieldNumber
Field number for the "type" field.
public const int TypeFieldNumber = 2
Field Value
Properties
AssignedBuildId
The currently assigned build ID for this execution. Presence of this value means worker versioning is used for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled again, the assigned build ID may change according to the latest versioning rules. Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to this execution.
public string AssignedBuildId { get; set; }
Property Value
AutoResetPoints
public ResetPoints AutoResetPoints { get; set; }
Property Value
CloseTime
public Timestamp CloseTime { get; set; }
Property Value
- Timestamp
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Execution
public WorkflowExecution Execution { get; set; }
Property Value
ExecutionDuration
Workflow execution duration is defined as difference between close time and execution time. This field is only populated if the workflow is closed.
public Duration ExecutionDuration { get; set; }
Property Value
- Duration
ExecutionTime
public Timestamp ExecutionTime { get; set; }
Property Value
- Timestamp
HistoryLength
public long HistoryLength { get; set; }
Property Value
HistorySizeBytes
public long HistorySizeBytes { get; set; }
Property Value
InheritedBuildId
Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead of using the assignment rules.
public string InheritedBuildId { get; set; }
Property Value
Memo
public Memo Memo { get; set; }
Property Value
MostRecentWorkerVersionStamp
If set, the most recent worker version stamp that appeared in a workflow task completion
public WorkerVersionStamp MostRecentWorkerVersionStamp { get; set; }
Property Value
ParentExecution
public WorkflowExecution ParentExecution { get; set; }
Property Value
ParentNamespaceId
public string ParentNamespaceId { get; set; }
Property Value
Parser
public static MessageParser<WorkflowExecutionInfo> Parser { get; }
Property Value
- MessageParser<WorkflowExecutionInfo>
RootExecution
Contains information about the root workflow execution. The root workflow execution is defined as follows:
- A workflow without parent workflow is its own root workflow.
- A workflow that has a parent workflow has the same root workflow as its parent workflow. Note: workflows continued as new or reseted may or may not have parents, check examples below.
Examples: Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3. - The root workflow of all three workflows is W1. Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3. - The root workflow of all three workflows is W1. Scenario 3: Workflow W1 continued as new W2. - The root workflow of W1 is W1 and the root workflow of W2 is W2. Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3 - The root workflow of all three workflows is W1. Scenario 5: Workflow W1 is reseted, creating W2. - The root workflow of W1 is W1 and the root workflow of W2 is W2.
public WorkflowExecution RootExecution { get; set; }
Property Value
SearchAttributes
public SearchAttributes SearchAttributes { get; set; }
Property Value
StartTime
public Timestamp StartTime { get; set; }
Property Value
- Timestamp
StateTransitionCount
public long StateTransitionCount { get; set; }
Property Value
Status
public WorkflowExecutionStatus Status { get; set; }
Property Value
TaskQueue
public string TaskQueue { get; set; }
Property Value
Type
public WorkflowType Type { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public WorkflowExecutionInfo Clone()
Returns
- WorkflowExecutionInfo
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
Equals(WorkflowExecutionInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(WorkflowExecutionInfo other)
Parameters
other
WorkflowExecutionInfoAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(WorkflowExecutionInfo)
Merges the given message into this one.
public void MergeFrom(WorkflowExecutionInfo other)
Parameters
other
WorkflowExecutionInfo
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.