Skip to main content

Class: LocalActivityMarkerData

coresdk.external_data.LocalActivityMarkerData

Represents a LocalActivityMarkerData.

Implements

Constructors

constructor

new LocalActivityMarkerData(properties?): LocalActivityMarkerData

Constructs a new LocalActivityMarkerData.

Parameters

NameTypeDescription
properties?ILocalActivityMarkerDataProperties to set

Returns

LocalActivityMarkerData

Properties

activityId

activityId: string

LocalActivityMarkerData activityId.

Implementation of

ILocalActivityMarkerData.activityId


activityType

activityType: string

LocalActivityMarkerData activityType.

Implementation of

ILocalActivityMarkerData.activityType


attempt

attempt: number

The number of attempts at execution before we recorded this result. Typically starts at 1, but it is possible to start at a higher number when backing off using a timer.

Implementation of

ILocalActivityMarkerData.attempt


backoff

Optional backoff: null | IDuration

If set, this local activity conceptually is retrying after the specified backoff. Implementation wise, they are really two different LA machines, but with the same type & input. The retry starts with an attempt number > 1.

Implementation of

ILocalActivityMarkerData.backoff


completeTime

Optional completeTime: null | ITimestamp

You can think of this as "perceived completion time". It is the time the local activity thought it was when it completed. Which could be different from wall-clock time because of workflow replay. It's the WFT start time + the LA's runtime

Implementation of

ILocalActivityMarkerData.completeTime


originalScheduleTime

Optional originalScheduleTime: null | ITimestamp

The time the LA was originally scheduled (wall clock time). This is used to track schedule-to-close timeouts when timer-based backoffs are used

Implementation of

ILocalActivityMarkerData.originalScheduleTime


seq

seq: number

LocalActivityMarkerData seq.

Implementation of

ILocalActivityMarkerData.seq

Methods

toJSON

toJSON(): Object

Converts this LocalActivityMarkerData to JSON.

Returns

Object

JSON object


create

create(properties?): LocalActivityMarkerData

Creates a new LocalActivityMarkerData instance using the specified properties.

Parameters

NameTypeDescription
properties?ILocalActivityMarkerDataProperties to set

Returns

LocalActivityMarkerData

LocalActivityMarkerData instance


decode

decode(reader, length?): LocalActivityMarkerData

Decodes a LocalActivityMarkerData message from the specified reader or buffer.

Parameters

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

Returns

LocalActivityMarkerData

LocalActivityMarkerData

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): LocalActivityMarkerData

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

LocalActivityMarkerData

LocalActivityMarkerData

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 LocalActivityMarkerData message. Does not implicitly coresdk.external_data.LocalActivityMarkerData.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified LocalActivityMarkerData message, length delimited. Does not implicitly coresdk.external_data.LocalActivityMarkerData.verify|verify messages.

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): LocalActivityMarkerData

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

LocalActivityMarkerData

LocalActivityMarkerData


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for LocalActivityMarkerData

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

Parameters

NameTypeDescription
messageLocalActivityMarkerDataLocalActivityMarkerData
options?IConversionOptionsConversion options

Returns

Object

Plain object