Skip to main content

Class: ActivityTaskCompletedEventAttributes

Represents an ActivityTaskCompletedEventAttributes.

Properties​

identity​

identity: string

id of the worker that completed this task


result?​

optional result?: $Properties | null

Serialized results of the activity. IE: The return value of the activity function


scheduledEventId​

scheduledEventId: Long

The id of the ACTIVITY_TASK_SCHEDULED event this completion corresponds to


startedEventId​

startedEventId: Long

The id of the ACTIVITY_TASK_STARTED event this completion corresponds to


workerVersion?​

optional workerVersion?: $Properties | null

Version info of the worker who processed this workflow task. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]

Methods​

toJSON()​

toJSON(): object

Converts this ActivityTaskCompletedEventAttributes to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): ActivityTaskCompletedEventAttributes & $Properties

Creates a new ActivityTaskCompletedEventAttributes instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ActivityTaskCompletedEventAttributes & $Properties

ActivityTaskCompletedEventAttributes instance

Call Signature​

static create(properties?): ActivityTaskCompletedEventAttributes

Creates a new ActivityTaskCompletedEventAttributes instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ActivityTaskCompletedEventAttributes

ActivityTaskCompletedEventAttributes instance


decode()​

static decode(reader, length?): ActivityTaskCompletedEventAttributes & $Properties

Decodes an ActivityTaskCompletedEventAttributes 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​

ActivityTaskCompletedEventAttributes & $Properties

ActivityTaskCompletedEventAttributes

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ActivityTaskCompletedEventAttributes & $Properties

Decodes an ActivityTaskCompletedEventAttributes message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

ActivityTaskCompletedEventAttributes & $Properties

ActivityTaskCompletedEventAttributes

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

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

Parameters​

message​

$Properties

ActivityTaskCompletedEventAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

ActivityTaskCompletedEventAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ActivityTaskCompletedEventAttributes

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

Parameters​

object​

Plain object

Returns​

ActivityTaskCompletedEventAttributes

ActivityTaskCompletedEventAttributes


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

ActivityTaskCompletedEventAttributes

ActivityTaskCompletedEventAttributes

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object