Skip to main content

Class: WorkflowTaskStartedEventAttributes

history.v1.WorkflowTaskStartedEventAttributes

Represents a WorkflowTaskStartedEventAttributes.

Implements

Constructors

constructor

new WorkflowTaskStartedEventAttributes(properties?): WorkflowTaskStartedEventAttributes

Constructs a new WorkflowTaskStartedEventAttributes.

Parameters

NameTypeDescription
properties?IWorkflowTaskStartedEventAttributesProperties to set

Returns

WorkflowTaskStartedEventAttributes

Properties

historySizeBytes

historySizeBytes: Long

Total history size in bytes, which the workflow might use to decide when to continue-as-new regardless of the suggestion. Note that history event count is just the event id of this event, so we don't include it explicitly here.

Implementation of

IWorkflowTaskStartedEventAttributes.historySizeBytes


identity

identity: string

Identity of the worker who picked up this task

Implementation of

IWorkflowTaskStartedEventAttributes.identity


requestId

requestId: string

TODO: ? Appears unused?

Implementation of

IWorkflowTaskStartedEventAttributes.requestId


scheduledEventId

scheduledEventId: Long

The id of the WORKFLOW_TASK_SCHEDULED event this task corresponds to

Implementation of

IWorkflowTaskStartedEventAttributes.scheduledEventId


suggestContinueAsNew

suggestContinueAsNew: boolean

True if this workflow should continue-as-new soon because its history size (in either event count or bytes) is getting large.

Implementation of

IWorkflowTaskStartedEventAttributes.suggestContinueAsNew

Methods

toJSON

toJSON(): Object

Converts this WorkflowTaskStartedEventAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): WorkflowTaskStartedEventAttributes

Creates a new WorkflowTaskStartedEventAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?IWorkflowTaskStartedEventAttributesProperties to set

Returns

WorkflowTaskStartedEventAttributes

WorkflowTaskStartedEventAttributes instance


decode

decode(reader, length?): WorkflowTaskStartedEventAttributes

Decodes a WorkflowTaskStartedEventAttributes message from the specified reader or buffer.

Parameters

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

Returns

WorkflowTaskStartedEventAttributes

WorkflowTaskStartedEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WorkflowTaskStartedEventAttributes

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WorkflowTaskStartedEventAttributes

WorkflowTaskStartedEventAttributes

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 WorkflowTaskStartedEventAttributes message. Does not implicitly temporal.api.history.v1.WorkflowTaskStartedEventAttributes.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): WorkflowTaskStartedEventAttributes

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

WorkflowTaskStartedEventAttributes

WorkflowTaskStartedEventAttributes


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for WorkflowTaskStartedEventAttributes

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 WorkflowTaskStartedEventAttributes message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageWorkflowTaskStartedEventAttributesWorkflowTaskStartedEventAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object