Skip to main content

Class: NexusOperationScheduledEventAttributes

history.v1.NexusOperationScheduledEventAttributes

Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command.

Implements

Constructors

constructor

new NexusOperationScheduledEventAttributes(properties?): NexusOperationScheduledEventAttributes

Constructs a new NexusOperationScheduledEventAttributes.

Parameters

NameTypeDescription
properties?INexusOperationScheduledEventAttributesProperties to set

Returns

NexusOperationScheduledEventAttributes

Properties

endpoint

endpoint: string

Endpoint name, must exist in the endpoint registry.

Implementation of

INexusOperationScheduledEventAttributes.endpoint


endpointId

endpointId: string

Endpoint ID as resolved in the endpoint registry at the time this event was generated. This is stored on the event and used internally by the server in case the endpoint is renamed from the time the event was originally scheduled.

Implementation of

INexusOperationScheduledEventAttributes.endpointId


input

Optional input: null | IPayload

Input for the operation. The server converts this into Nexus request content and the appropriate content headers internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the content is transformed back to the original Payload stored in this event.

Implementation of

INexusOperationScheduledEventAttributes.input


nexusHeader

nexusHeader: Object

Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal activities and child workflows, these are transmitted to Nexus operations that may be external and are not traditional payloads.

Index signature

▪ [k: string]: string

Implementation of

INexusOperationScheduledEventAttributes.nexusHeader


operation

operation: string

Operation name.

Implementation of

INexusOperationScheduledEventAttributes.operation


requestId

requestId: string

A unique ID generated by the history service upon creation of this event. The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key.

Implementation of

INexusOperationScheduledEventAttributes.requestId


scheduleToCloseTimeout

Optional scheduleToCloseTimeout: null | IDuration

Schedule-to-close timeout for this operation. Indicates how long the caller is willing to wait for operation completion. Calls are retried internally by the server. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --)

Implementation of

INexusOperationScheduledEventAttributes.scheduleToCloseTimeout


service

service: string

Service name.

Implementation of

INexusOperationScheduledEventAttributes.service


workflowTaskCompletedEventId

workflowTaskCompletedEventId: Long

The WORKFLOW_TASK_COMPLETED event that the corresponding ScheduleNexusOperation command was reported with.

Implementation of

INexusOperationScheduledEventAttributes.workflowTaskCompletedEventId

Methods

toJSON

toJSON(): Object

Converts this NexusOperationScheduledEventAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): NexusOperationScheduledEventAttributes

Creates a new NexusOperationScheduledEventAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?INexusOperationScheduledEventAttributesProperties to set

Returns

NexusOperationScheduledEventAttributes

NexusOperationScheduledEventAttributes instance


decode

decode(reader, length?): NexusOperationScheduledEventAttributes

Decodes a NexusOperationScheduledEventAttributes message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

NexusOperationScheduledEventAttributes

NexusOperationScheduledEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): NexusOperationScheduledEventAttributes

Decodes a NexusOperationScheduledEventAttributes message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

NexusOperationScheduledEventAttributes

NexusOperationScheduledEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified NexusOperationScheduledEventAttributes message. Does not implicitly temporal.api.history.v1.NexusOperationScheduledEventAttributes.verify|verify messages.

Parameters

NameTypeDescription
messageINexusOperationScheduledEventAttributesNexusOperationScheduledEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified NexusOperationScheduledEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.NexusOperationScheduledEventAttributes.verify|verify messages.

Parameters

NameTypeDescription
messageINexusOperationScheduledEventAttributesNexusOperationScheduledEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): NexusOperationScheduledEventAttributes

Creates a NexusOperationScheduledEventAttributes message from a plain object. Also converts values to their respective internal types.

Parameters

NameTypeDescription
objectObjectPlain object

Returns

NexusOperationScheduledEventAttributes

NexusOperationScheduledEventAttributes


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for NexusOperationScheduledEventAttributes

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

Creates a plain object from a NexusOperationScheduledEventAttributes message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageNexusOperationScheduledEventAttributesNexusOperationScheduledEventAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object