Class: LocalActivityMarkerData
Represents a LocalActivityMarkerData.
Properties
activationIndex?
optionalactivationIndex?:Long|null
Position, within the workflow task, of the activation this resolution was delivered in. Replay must deliver resolutions in the same activations because workflow code can branch on which handles are ready. Absent in markers written by Core versions that predate this field.
activityId
activityId:
string
LocalActivityMarkerData activityId.
activityType
activityType:
string
LocalActivityMarkerData 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.
backoff?
optionalbackoff?:$Properties|null
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.
completeTime?
optionalcompleteTime?:$Properties|null
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
originalScheduleTime?
optionaloriginalScheduleTime?:$Properties|null
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
seq
seq:
number
LocalActivityMarkerData seq.
Methods
toJSON()
toJSON():
object
Converts this LocalActivityMarkerData to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):LocalActivityMarkerData&$Properties
Creates a new LocalActivityMarkerData instance using the specified properties.
Parameters
properties?
Properties to set
Returns
LocalActivityMarkerData & $Properties
LocalActivityMarkerData instance
Call Signature
staticcreate(properties?):LocalActivityMarkerData
Creates a new LocalActivityMarkerData instance using the specified properties.
Parameters
properties?
Properties to set
Returns
LocalActivityMarkerData
LocalActivityMarkerData instance
decode()
staticdecode(reader,length?):LocalActivityMarkerData&$Properties
Decodes a LocalActivityMarkerData 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
LocalActivityMarkerData & $Properties
LocalActivityMarkerData
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):LocalActivityMarkerData&$Properties
Decodes a LocalActivityMarkerData message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
LocalActivityMarkerData & $Properties
LocalActivityMarkerData
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 LocalActivityMarkerData message. Does not implicitly coresdk.external_data.LocalActivityMarkerData.verify|verify messages.
Parameters
message
LocalActivityMarkerData message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified LocalActivityMarkerData message, length delimited. Does not implicitly coresdk.external_data.LocalActivityMarkerData.verify|verify messages.
Parameters
message
LocalActivityMarkerData message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):LocalActivityMarkerData
Creates a LocalActivityMarkerData message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
LocalActivityMarkerData
LocalActivityMarkerData
toObject()
statictoObject(message,options?):object
Creates a plain object from a LocalActivityMarkerData message. Also converts values to other types if specified.
Parameters
message
LocalActivityMarkerData
LocalActivityMarkerData
options?
IConversionOptions
Conversion options
Returns
object
Plain object