Class: HistoryEvent
History events are the method by which Temporal SDKs advance (or recreate) workflow state.
See the EventType enum for more info about what each event is for.
Properties
activityPropertiesModifiedExternallyEventAttributes?
optionalactivityPropertiesModifiedExternallyEventAttributes?:$Properties|null
HistoryEvent activityPropertiesModifiedExternallyEventAttributes.
activityTaskCanceledEventAttributes?
optionalactivityTaskCanceledEventAttributes?:$Properties|null
HistoryEvent activityTaskCanceledEventAttributes.
activityTaskCancelRequestedEventAttributes?
optionalactivityTaskCancelRequestedEventAttributes?:$Properties|null
HistoryEvent activityTaskCancelRequestedEventAttributes.
activityTaskCompletedEventAttributes?
optionalactivityTaskCompletedEventAttributes?:$Properties|null
HistoryEvent activityTaskCompletedEventAttributes.
activityTaskFailedEventAttributes?
optionalactivityTaskFailedEventAttributes?:$Properties|null
HistoryEvent activityTaskFailedEventAttributes.
activityTaskScheduledEventAttributes?
optionalactivityTaskScheduledEventAttributes?:$Properties|null
HistoryEvent activityTaskScheduledEventAttributes.
activityTaskStartedEventAttributes?
optionalactivityTaskStartedEventAttributes?:$Properties|null
HistoryEvent activityTaskStartedEventAttributes.
activityTaskTimedOutEventAttributes?
optionalactivityTaskTimedOutEventAttributes?:$Properties|null
HistoryEvent activityTaskTimedOutEventAttributes.
attributes?
optionalattributes?:"workflowExecutionStartedEventAttributes"|"workflowExecutionCompletedEventAttributes"|"workflowExecutionFailedEventAttributes"|"workflowExecutionTimedOutEventAttributes"|"workflowTaskScheduledEventAttributes"|"workflowTaskStartedEventAttributes"|"workflowTaskCompletedEventAttributes"|"workflowTaskTimedOutEventAttributes"|"workflowTaskFailedEventAttributes"|"activityTaskScheduledEventAttributes"|"activityTaskStartedEventAttributes"|"activityTaskCompletedEventAttributes"|"activityTaskFailedEventAttributes"|"activityTaskTimedOutEventAttributes"|"timerStartedEventAttributes"|"timerFiredEventAttributes"|"activityTaskCancelRequestedEventAttributes"|"activityTaskCanceledEventAttributes"|"timerCanceledEventAttributes"|"markerRecordedEventAttributes"|"workflowExecutionSignaledEventAttributes"|"workflowExecutionTerminatedEventAttributes"|"workflowExecutionCancelRequestedEventAttributes"|"workflowExecutionCanceledEventAttributes"|"requestCancelExternalWorkflowExecutionInitiatedEventAttributes"|"requestCancelExternalWorkflowExecutionFailedEventAttributes"|"externalWorkflowExecutionCancelRequestedEventAttributes"|"workflowExecutionContinuedAsNewEventAttributes"|"startChildWorkflowExecutionInitiatedEventAttributes"|"startChildWorkflowExecutionFailedEventAttributes"|"childWorkflowExecutionStartedEventAttributes"|"childWorkflowExecutionCompletedEventAttributes"|"childWorkflowExecutionFailedEventAttributes"|"childWorkflowExecutionCanceledEventAttributes"|"childWorkflowExecutionTimedOutEventAttributes"|"childWorkflowExecutionTerminatedEventAttributes"|"signalExternalWorkflowExecutionInitiatedEventAttributes"|"signalExternalWorkflowExecutionFailedEventAttributes"|"externalWorkflowExecutionSignaledEventAttributes"|"upsertWorkflowSearchAttributesEventAttributes"|"workflowExecutionUpdateAcceptedEventAttributes"|"workflowExecutionUpdateRejectedEventAttributes"|"workflowExecutionUpdateCompletedEventAttributes"|"workflowPropertiesModifiedExternallyEventAttributes"|"activityPropertiesModifiedExternallyEventAttributes"|"workflowPropertiesModifiedEventAttributes"|"workflowExecutionUpdateAdmittedEventAttributes"|"nexusOperationScheduledEventAttributes"|"nexusOperationStartedEventAttributes"|"nexusOperationCompletedEventAttributes"|"nexusOperationFailedEventAttributes"|"nexusOperationCanceledEventAttributes"|"nexusOperationTimedOutEventAttributes"|"nexusOperationCancelRequestedEventAttributes"|"workflowExecutionOptionsUpdatedEventAttributes"|"nexusOperationCancelRequestCompletedEventAttributes"|"nexusOperationCancelRequestFailedEventAttributes"|"workflowExecutionPausedEventAttributes"|"workflowExecutionUnpausedEventAttributes"|"workflowExecutionTimeSkippingTransitionedEventAttributes"
The event details. The type must match that in event_type.
childWorkflowExecutionCanceledEventAttributes?
optionalchildWorkflowExecutionCanceledEventAttributes?:$Properties|null
HistoryEvent childWorkflowExecutionCanceledEventAttributes.
childWorkflowExecutionCompletedEventAttributes?
optionalchildWorkflowExecutionCompletedEventAttributes?:$Properties|null
HistoryEvent childWorkflowExecutionCompletedEventAttributes.
childWorkflowExecutionFailedEventAttributes?
optionalchildWorkflowExecutionFailedEventAttributes?:$Properties|null
HistoryEvent childWorkflowExecutionFailedEventAttributes.
childWorkflowExecutionStartedEventAttributes?
optionalchildWorkflowExecutionStartedEventAttributes?:$Properties|null
HistoryEvent childWorkflowExecutionStartedEventAttributes.
childWorkflowExecutionTerminatedEventAttributes?
optionalchildWorkflowExecutionTerminatedEventAttributes?:$Properties|null
HistoryEvent childWorkflowExecutionTerminatedEventAttributes.
childWorkflowExecutionTimedOutEventAttributes?
optionalchildWorkflowExecutionTimedOutEventAttributes?:$Properties|null
HistoryEvent childWorkflowExecutionTimedOutEventAttributes.
eventGroupMarkers
eventGroupMarkers:
$Properties[]
Event group markers attached to this event.
eventId
eventId:
Long
Monotonically increasing event number, starts at 1.
eventTime?
optionaleventTime?:$Properties|null
HistoryEvent eventTime.
eventType
eventType:
EventType
HistoryEvent eventType.
externalWorkflowExecutionCancelRequestedEventAttributes?
optionalexternalWorkflowExecutionCancelRequestedEventAttributes?:$Properties|null
HistoryEvent externalWorkflowExecutionCancelRequestedEventAttributes.
externalWorkflowExecutionSignaledEventAttributes?
optionalexternalWorkflowExecutionSignaledEventAttributes?:$Properties|null
HistoryEvent externalWorkflowExecutionSignaledEventAttributes.
links
links:
$Properties[]
Links to related entities, such as the entity that started this event's workflow.
markerRecordedEventAttributes?
optionalmarkerRecordedEventAttributes?:$Properties|null
HistoryEvent markerRecordedEventAttributes.
nexusOperationCanceledEventAttributes?
optionalnexusOperationCanceledEventAttributes?:$Properties|null
HistoryEvent nexusOperationCanceledEventAttributes.
nexusOperationCancelRequestCompletedEventAttributes?
optionalnexusOperationCancelRequestCompletedEventAttributes?:$Properties|null
HistoryEvent nexusOperationCancelRequestCompletedEventAttributes.
nexusOperationCancelRequestedEventAttributes?
optionalnexusOperationCancelRequestedEventAttributes?:$Properties|null
HistoryEvent nexusOperationCancelRequestedEventAttributes.
nexusOperationCancelRequestFailedEventAttributes?
optionalnexusOperationCancelRequestFailedEventAttributes?:$Properties|null
HistoryEvent nexusOperationCancelRequestFailedEventAttributes.
nexusOperationCompletedEventAttributes?
optionalnexusOperationCompletedEventAttributes?:$Properties|null
HistoryEvent nexusOperationCompletedEventAttributes.
nexusOperationFailedEventAttributes?
optionalnexusOperationFailedEventAttributes?:$Properties|null
HistoryEvent nexusOperationFailedEventAttributes.
nexusOperationScheduledEventAttributes?
optionalnexusOperationScheduledEventAttributes?:$Properties|null
HistoryEvent nexusOperationScheduledEventAttributes.
nexusOperationStartedEventAttributes?
optionalnexusOperationStartedEventAttributes?:$Properties|null
HistoryEvent nexusOperationStartedEventAttributes.
nexusOperationTimedOutEventAttributes?
optionalnexusOperationTimedOutEventAttributes?:$Properties|null
HistoryEvent nexusOperationTimedOutEventAttributes.
principal?
optionalprincipal?:$Properties|null
Server-computed authenticated caller identity associated with this event.
requestCancelExternalWorkflowExecutionFailedEventAttributes?
optionalrequestCancelExternalWorkflowExecutionFailedEventAttributes?:$Properties|null
HistoryEvent requestCancelExternalWorkflowExecutionFailedEventAttributes.
requestCancelExternalWorkflowExecutionInitiatedEventAttributes?
optionalrequestCancelExternalWorkflowExecutionInitiatedEventAttributes?:$Properties|null
HistoryEvent requestCancelExternalWorkflowExecutionInitiatedEventAttributes.
signalExternalWorkflowExecutionFailedEventAttributes?
optionalsignalExternalWorkflowExecutionFailedEventAttributes?:$Properties|null
HistoryEvent signalExternalWorkflowExecutionFailedEventAttributes.
signalExternalWorkflowExecutionInitiatedEventAttributes?
optionalsignalExternalWorkflowExecutionInitiatedEventAttributes?:$Properties|null
HistoryEvent signalExternalWorkflowExecutionInitiatedEventAttributes.
startChildWorkflowExecutionFailedEventAttributes?
optionalstartChildWorkflowExecutionFailedEventAttributes?:$Properties|null
HistoryEvent startChildWorkflowExecutionFailedEventAttributes.
startChildWorkflowExecutionInitiatedEventAttributes?
optionalstartChildWorkflowExecutionInitiatedEventAttributes?:$Properties|null
HistoryEvent startChildWorkflowExecutionInitiatedEventAttributes.
taskId
taskId:
Long
Identifier used by the service to order replication and transfer tasks associated with this event. SDKs generally ignore this field.
timerCanceledEventAttributes?
optionaltimerCanceledEventAttributes?:$Properties|null
HistoryEvent timerCanceledEventAttributes.
timerFiredEventAttributes?
optionaltimerFiredEventAttributes?:$Properties|null
HistoryEvent timerFiredEventAttributes.
timerStartedEventAttributes?
optionaltimerStartedEventAttributes?:$Properties|null
HistoryEvent timerStartedEventAttributes.
upsertWorkflowSearchAttributesEventAttributes?
optionalupsertWorkflowSearchAttributesEventAttributes?:$Properties|null
HistoryEvent upsertWorkflowSearchAttributesEventAttributes.
userMetadata?
optionaluserMetadata?:$Properties|null
Metadata on the event. This is often carried over from commands and client calls. Most events won't have this information, and how this information is used is dependent upon the interface that reads it.
Current well-known uses:
- workflow_execution_started_event_attributes - summary and details from start workflow.
- timer_started_event_attributes - summary represents an identifier for the timer for use by user interfaces.
version
version:
Long
Failover version of the event, used by the server for multi-cluster replication and history versioning. SDKs generally ignore this field.
workerMayIgnore
workerMayIgnore:
boolean
Set to true when the SDK may ignore the event as it does not impact workflow state or information in any way that the SDK need be concerned with. If an SDK encounters an event type which it does not understand, it must error unless this is true. If it is true, it's acceptable for the event type and/or attributes to be uninterpretable.
workflowExecutionCanceledEventAttributes?
optionalworkflowExecutionCanceledEventAttributes?:$Properties|null
HistoryEvent workflowExecutionCanceledEventAttributes.
workflowExecutionCancelRequestedEventAttributes?
optionalworkflowExecutionCancelRequestedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionCancelRequestedEventAttributes.
workflowExecutionCompletedEventAttributes?
optionalworkflowExecutionCompletedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionCompletedEventAttributes.
workflowExecutionContinuedAsNewEventAttributes?
optionalworkflowExecutionContinuedAsNewEventAttributes?:$Properties|null
HistoryEvent workflowExecutionContinuedAsNewEventAttributes.
workflowExecutionFailedEventAttributes?
optionalworkflowExecutionFailedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionFailedEventAttributes.
workflowExecutionOptionsUpdatedEventAttributes?
optionalworkflowExecutionOptionsUpdatedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionOptionsUpdatedEventAttributes.
workflowExecutionPausedEventAttributes?
optionalworkflowExecutionPausedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionPausedEventAttributes.
workflowExecutionSignaledEventAttributes?
optionalworkflowExecutionSignaledEventAttributes?:$Properties|null
HistoryEvent workflowExecutionSignaledEventAttributes.
workflowExecutionStartedEventAttributes?
optionalworkflowExecutionStartedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionStartedEventAttributes.
workflowExecutionTerminatedEventAttributes?
optionalworkflowExecutionTerminatedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionTerminatedEventAttributes.
workflowExecutionTimedOutEventAttributes?
optionalworkflowExecutionTimedOutEventAttributes?:$Properties|null
HistoryEvent workflowExecutionTimedOutEventAttributes.
workflowExecutionTimeSkippingTransitionedEventAttributes?
optionalworkflowExecutionTimeSkippingTransitionedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionTimeSkippingTransitionedEventAttributes.
workflowExecutionUnpausedEventAttributes?
optionalworkflowExecutionUnpausedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionUnpausedEventAttributes.
workflowExecutionUpdateAcceptedEventAttributes?
optionalworkflowExecutionUpdateAcceptedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionUpdateAcceptedEventAttributes.
workflowExecutionUpdateAdmittedEventAttributes?
optionalworkflowExecutionUpdateAdmittedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionUpdateAdmittedEventAttributes.
workflowExecutionUpdateCompletedEventAttributes?
optionalworkflowExecutionUpdateCompletedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionUpdateCompletedEventAttributes.
workflowExecutionUpdateRejectedEventAttributes?
optionalworkflowExecutionUpdateRejectedEventAttributes?:$Properties|null
HistoryEvent workflowExecutionUpdateRejectedEventAttributes.
workflowPropertiesModifiedEventAttributes?
optionalworkflowPropertiesModifiedEventAttributes?:$Properties|null
HistoryEvent workflowPropertiesModifiedEventAttributes.
workflowPropertiesModifiedExternallyEventAttributes?
optionalworkflowPropertiesModifiedExternallyEventAttributes?:$Properties|null
HistoryEvent workflowPropertiesModifiedExternallyEventAttributes.
workflowTaskCompletedEventAttributes?
optionalworkflowTaskCompletedEventAttributes?:$Properties|null
HistoryEvent workflowTaskCompletedEventAttributes.
workflowTaskFailedEventAttributes?
optionalworkflowTaskFailedEventAttributes?:$Properties|null
HistoryEvent workflowTaskFailedEventAttributes.
workflowTaskScheduledEventAttributes?
optionalworkflowTaskScheduledEventAttributes?:$Properties|null
HistoryEvent workflowTaskScheduledEventAttributes.
workflowTaskStartedEventAttributes?
optionalworkflowTaskStartedEventAttributes?:$Properties|null
HistoryEvent workflowTaskStartedEventAttributes.
workflowTaskTimedOutEventAttributes?
optionalworkflowTaskTimedOutEventAttributes?:$Properties|null
HistoryEvent workflowTaskTimedOutEventAttributes.
Methods
toJSON()
toJSON():
object
Converts this HistoryEvent to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):HistoryEvent&$Shape
Creates a new HistoryEvent instance using the specified properties.
Parameters
properties?
Properties to set
Returns
HistoryEvent & $Shape
HistoryEvent instance
Call Signature
staticcreate(properties?):HistoryEvent
Creates a new HistoryEvent instance using the specified properties.
Parameters
properties?
Properties to set
Returns
HistoryEvent
HistoryEvent instance
decode()
staticdecode(reader,length?):HistoryEvent&$Shape
Decodes a HistoryEvent message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
HistoryEvent & $Shape
HistoryEvent
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):HistoryEvent&$Shape
Decodes a HistoryEvent message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
HistoryEvent & $Shape
HistoryEvent
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified HistoryEvent message. Does not implicitly temporal.api.history.v1.HistoryEvent.verify|verify messages.
Parameters
message
HistoryEvent message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified HistoryEvent message, length delimited. Does not implicitly temporal.api.history.v1.HistoryEvent.verify|verify messages.
Parameters
message
HistoryEvent message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):HistoryEvent
Creates a HistoryEvent message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
HistoryEvent
HistoryEvent
toObject()
statictoObject(message,options?):object
Creates a plain object from a HistoryEvent message. Also converts values to other types if specified.
Parameters
message
HistoryEvent
HistoryEvent
options?
IConversionOptions
Conversion options
Returns
object
Plain object